        /* --- Reset y Variables Globales --- */
        :root {
            --color-primary: #111111;   /* Negro elegante */
            --color-secondary-hover: #333; /* Gris oscuro para hover */
            --color-bg-white: #FFFFFF;
            --color-bg-light-gray: #F8F9FA;
            --color-text-dark: #111111;
            --color-text-body: #333333;
            --color-text-grey: #6C757D;
            --color-border: #EAEAEA;
            --color-success: #28a745;
            --font-body: 'Inter', sans-serif;
            --shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
            --shadow-hover: 0 12px 24px rgba(0, 0, 0, 0.08);
            /* Colores para el carrusel de valores */
            --value-wheel-bg: #E9ECEF;
            --value-wheel-highlight: #111111;
            --value-wheel-text-active: #FFFFFF;
            --value-wheel-text-inactive: #333333;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            scroll-behavior: smooth;
        }

        body {
            font-family: var(--font-body);
            color: var(--color-text-body);
            line-height: 1.7;
            background-color: var(--color-bg-white); /* Fondo general del body */
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        .container {
            width: 90%;
            max-width: 1100px;
            margin: auto;
            overflow: hidden;
            padding: 80px 0; /* Espaciado vertical por defecto de los contenedores */
        }

        .subtitle {
            font-family: var(--font-body);
            font-weight: 800;
            font-size: 3rem;
            color: var(--color-text-dark);
            text-align: center;
            margin-bottom: 20px;
            letter-spacing: -1px;
        }
        
        .subtitle span {
            font-style: italic;
            color: var(--color-text-grey);
        }

        .subtitle-desc {
            text-align: center;
            color: var(--color-text-grey);
            margin-bottom: 60px; /* Espaciado reducido */
            max-width: 750px;
            margin-left: auto;
            margin-right: auto;
            font-size: 1.1rem;
        }
        
        /* --- Animación de Scroll --- */
        .reveal {
            opacity: 0;
            transform: translateY(40px);
            transition: opacity 0.8s ease-out, transform 0.6s ease-out;
        }
        .reveal.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* --- Header y Navegación --- */
        .header {
            background-color: transparent;
            position: fixed;
            width: 100%;
            top: 0;
            left: 0;
            z-index: 1000;
            transition: background-color 0.4s ease, box-shadow 0.4s ease;
        }

        .header.scrolled {
            background-color: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
        }
        
        .header.scrolled .nav__logo img {
            filter: none;
        }
        
        .header.scrolled .nav__link {
            color: var(--color-text-dark);
        }
        
        .header.top .nav__logo img {
             filter: brightness(0) invert(1);
        }
        
        .header.top .nav__link {
             color: var(--color-bg-white); 
        }

        .header.top .nav__link:hover {
            color: var(--color-bg-white);
        }
        
        .header.top .nav__link::after {
            background-color: var(--color-bg-white);
        }
        
        .nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 90px;
            width: 90%;
            max-width: 1100px;
            margin: auto;
        }

        .nav__logo img {
            width: 180px;
            transition: filter 0.4s ease;
        }

        .nav__menu {
            display: flex;
            list-style: none;
        }

        .nav__item {
            margin: 0 20px;
        }

        .nav__link {
            text-decoration: none;
            color: var(--color-text-dark);
            font-weight: 700;
            position: relative;
            padding-bottom: 8px;
            transition: color 0.4s ease;
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .nav__link:hover {
            color: var(--color-primary);
        }

        .nav__link::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            background-color: var(--color-primary);
            transition: all 0.4s ease;
        }

        .nav__link:hover::after {
            width: 100%;
        }

        /* --- Hero Section --- */
        .hero {
            height: 100vh;
            background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(https://images.unsplash.com/photo-1516321497487-e288fb19713f?q=80&w=2070&auto=format&fit=crop);
            background-size: cover;
            background-position: center;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
        }
        
        .hero__content {
            color: var(--color-bg-white);
        }

        .hero__title {
            font-family: var(--font-body);
            font-weight: 800;
            font-size: 4.5rem;
            margin-bottom: 20px;
            letter-spacing: -2px;
        }

        .hero__subtitle {
            font-family: var(--font-body);
            font-size: 1.2rem;
            font-weight: 400;
            margin-bottom: 50px;
            letter-spacing: 0;
            color: rgba(255,255,255,0.9);
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        .cta-button {
            display: inline-block;
            background-color: transparent;
            color: var(--color-bg-white);
            padding: 16px 35px;
            text-decoration: none;
            font-weight: 700;
            border-radius: 5px;
            transition: all 0.4s ease;
            font-family: var(--font-body);
            text-transform: uppercase;
            letter-spacing: 1.5px;
            border: 2px solid var(--color-bg-white);
        }

        .cta-button:hover {
            background-color: var(--color-bg-white);
            color: var(--color-primary);
            transform: translateY(-5px);
        }
        
        /* --- Nosotros Section (Misión, Visión, Valores) --- */
        #nosotros {
            background-color: var(--color-bg-white); /* Fondo blanco */
            padding-bottom: 120px; /* Mantener espacio inferior */
        }
        .about__grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 40px;
            margin-bottom: 60px; /* Espaciado reducido */
            max-width: 900px;
            margin-left: auto;
            margin-right: auto;
        }

        .about__card {
            background-color: var(--color-bg-light-gray);
            padding: 60px 30px 40px 30px;
            border-radius: 8px;
            text-align: center;
            transition: transform 0.4s ease, box-shadow 0.4s ease;
            box-shadow: var(--shadow);
            position: relative;
            border: 1px solid var(--color-border);
        }
        
        .about__card:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow-hover);
        }

        .about__icon-wrapper {
            width: 90px;
            height: 90px;
            background-color: var(--color-primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            position: absolute;
            top: 0;
            left: 50%;
            transform: translate(-50%, -50%);
            box-shadow: 0 8px 20px rgba(0,0,0,0.15);
            border: 4px solid var(--color-bg-white);
        }

        .about__icon {
            width: 40px;
            height: 40px;
            fill: var(--color-bg-white);
        }

        .about__card-title {
            font-family: var(--font-body);
            font-weight: 800;
            font-size: 1.5rem;
            color: var(--color-text-dark);
            margin-bottom: 15px;
        }
        
        .about__card-text {
            color: var(--color-text-grey);
            text-align: justify;
        }
        
        .values-section-card {
            background-color: var(--color-bg-light-gray);
            padding: 50px;
            border-radius: 12px;
            box-shadow: var(--shadow);
            border: 1px solid var(--color-border);
        }

        .values-carousel-wrapper {
            display: grid;
            grid-template-columns: 1fr;
            gap: 40px;
            align-items: center;
        }
        
        .values-carousel__wheel-card, .values-carousel__text-card {
            width: 100%;
        }

        .values-carousel__svg-container {
            position: relative;
            max-width: 500px;
            margin: auto;
        }

        .values-carousel__svg {
            width: 100%;
            height: auto;
        }
        
        .value-segment {
            cursor: pointer;
            fill: var(--value-wheel-bg);
            transition: none;
        }
        
        .value-segment.active {
            fill: var(--value-wheel-highlight);
            transform: none !important;
        }
        
        .value-text {
            font-family: var(--font-body);
            font-size: 14px;
            font-weight: 800;
            pointer-events: none;
            fill: var(--value-wheel-text-inactive);
            transition: none;
            text-rendering: geometricPrecision;
        }
        
        .value-segment.active + .value-text {
             fill: var(--value-wheel-text-active);
        }
        
        .values-carousel__text-container {
            position: relative;
            text-align: center;
            min-height: 150px; /* Altura mínima para evitar saltos */
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 20px 0;
        }

        .values-carousel__text-slide {
            display: none;
            animation: fadeIn 0.8s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .values-carousel__text-slide.active {
            display: block;
        }
        
        .values-carousel__text-slide h3 {
            font-family: var(--font-body);
            font-weight: 800;
            font-size: 2.5rem;
            color: var(--color-text-dark);
            margin-bottom: 20px;
        }
        
        .values-carousel__text-slide p {
            color: var(--color-text-grey);
            font-size: 1.2rem;
            max-width: 600px;
            margin: 0 auto;
        }

        .values-carousel__nav-wrapper {
            margin-top: 30px;
            display: flex;
            justify-content: center;
        }

        .values-carousel__nav {
            display: flex;
            gap: 15px;
        }

        .values-carousel__nav-btn {
            background: var(--color-bg-white);
            border: 1px solid var(--color-border);
            border-radius: 50%;
            width: 45px;
            height: 45px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 8px rgba(0,0,0,0.05);
            transition: background-color 0.3s, transform 0.3s;
        }
        
        .values-carousel__nav-btn:hover {
            background-color: #f1f1f1;
            transform: scale(1.1);
        }

        .values-carousel__nav-btn svg {
            width: 20px;
            height: 20px;
            fill: var(--color-primary);
        }

        /* --- Empresas y Servicios Section --- */
        #empresas {
             background-color: var(--color-bg-light-gray); /* Fondo gris claro */
             padding-bottom: 120px; /* Mantener espacio inferior */
        }
        #empresas .subtitle {color: var(--color-text-dark);}
        #empresas .subtitle span {color: var(--color-text-grey);}
        #empresas .subtitle-desc {color: var(--color-text-grey);}

        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
            gap: 40px;
        }
/* --- INICIO DE LA SOLUCIÓN --- */
        /* * Esta es la regla clave. 
         * Apunta a cualquier etiqueta <a> que sea hija directa del contenedor .services-grid.
         * Le quita el subrayado (text-decoration: none) y hace que el texto herede el color
         * de su contenedor padre (color: inherit), eliminando el color azul por defecto de los enlaces.
        */
        .services-grid > a {
            text-decoration: none;
            color: inherit;
            display: block; /* Asegura que el enlace ocupe todo el espacio de la tarjeta */
        }
        
        .service-card {
            border: 1px solid #e0e0e0;
            border-radius: 12px;
            padding: 1.5rem;
            background-color: #fff;
            height: 100%;
            box-sizing: border-box; /* Asegura que el padding no afecte el tamaño total */
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        }

        /* * Añadimos un efecto visual al pasar el cursor sobre la tarjeta.
         * Esto le da al usuario una pista visual de que el elemento es interactivo.
        */
        .services-grid > a:hover .service-card {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 85, 164, 0.1);
        }
        /* --- FIN DE LA SOLUCIÓN --- */


        .service-card {
            background-color: var(--color-bg-white);
            border-radius: 8px;
            overflow: hidden;
            box-shadow: var(--shadow);
            display: flex;
            flex-direction: column;
            transition: transform 0.4s ease, box-shadow 0.4s ease;
            border: 1px solid var(--color-border);
        }

        .service-card:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow-hover);
        }

        .service-card__image-wrapper {
            position: relative;
            height: 220px;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: var(--color-bg-light-gray);
        }

        .service-card__logo {
            max-width: 60%;
            max-height: 50%;
            transition: transform 0.4s ease;
        }

        .service-card:hover .service-card__logo {
            transform: scale(1.08);
        }

        .service-card__content {
            padding: 30px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .service-card__subtitle {
            text-transform: uppercase;
            color: var(--color-text-grey);
            font-weight: 700;
            letter-spacing: 1px;
            margin-bottom: 10px;
            font-size: 0.8rem;
        }

        .service-card__title {
            font-family: var(--font-body);
            font-weight: 800;
            font-size: 1.8rem;
            color: var(--color-text-dark);
            margin-bottom: 15px;
        }

        .service-card__description {
            font-size: 1rem;
            line-height: 1.7;
            color: var(--color-text-body);
            flex-grow: 1;
            text-align: justify;
        }
        
        /* --- Contacto Section --- */
        #contacto {
             background-color: var(--color-bg-white); /* Fondo blanco para el formulario de contacto */
             padding-bottom: 80px; /* Ajustar padding inferior si la siguiente sección tiene su propio padding */
        }

        .contact-form-container {
            max-width: 800px;
            margin: auto;
            background-color: var(--color-bg-white); /* Fondo blanco para el recuadro del formulario */
            padding: 40px;
            border-radius: 8px;
            box-shadow: var(--shadow-hover);
            border: 1px solid var(--color-border);
        }

        .contact__form .form-group {
            margin-bottom: 25px;
        }

        .contact__form label {
            display: block;
            margin-bottom: 8px;
            color: var(--color-text-grey);
            font-size: 0.9rem;
            font-weight: 700;
        }

        .contact__input {
            width: 100%;
            padding: 15px;
            border: 1px solid var(--color-border);
            border-radius: 5px;
            font-family: var(--font-body);
            font-size: 1rem;
            background-color: var(--color-bg-light-gray);
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
            color: var(--color-text-dark);
        }
        
        .contact__input::placeholder {
            color: var(--color-text-grey);
            opacity: 0.7;
        }
        
        .contact__input:focus {
            outline: none;
            border-color: var(--color-primary);
            box-shadow: 0 0 0 3px rgba(33, 37, 41, 0.1);
        }

        .contact__textarea {
            resize: vertical;
            min-height: 120px;
        }

        .contact__submit {
            background-color: var(--color-primary);
            color: #fff;
            width: 100%;
            border: none;
            padding: 18px;
            font-size: 1.1rem;
            font-weight: 700;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        .contact__submit:hover {
            background-color: var(--color-secondary-hover);
            transform: translateY(-3px);
            box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
        }
        
        /* Modificaciones para el mapa y la dirección - Ahora en su propia sección */
        #ubicacion {
            background-color: var(--color-bg-light-gray); /* Fondo gris claro para la sección de ubicación */
            padding: 80px 0; /* Asegurar padding completo para esta sección */
        }

        .map-wrapper { /* Nuevo contenedor para centrar el mapa */
            max-width: 800px; /* Ancho máximo para el mapa */
            margin: auto; /* Centra el mapa */
            padding: 0 5%; /* Pequeño padding horizontal para asegurar espacio en bordes */
        }

        .map-container {
            width: 100%;
            height: 450px; /* Altura fija para el mapa */
            border-radius: 8px;
            border: 1px solid var(--color-border);
            overflow: hidden; /* Asegura que el iframe no se salga del border-radius */
            box-shadow: var(--shadow-hover); /* Aplica la sombra al contenedor del mapa */
        }
        
        .map-container iframe {
            width: 100%;
            height: 100%;
            border: 0; /* Quita el borde del iframe */
        }

        /* --- Footer --- */
        .footer {
            background-color: var(--color-primary);
            color: var(--color-bg-light-gray);
            padding: 80px 0 30px;
            text-align: center;
        }

        .footer__logo {
            font-family: var(--font-body);
            font-weight: 800;
            font-size: 2.5rem;
            margin-bottom: 25px;
            color: var(--color-bg-white);
        }

        .footer__menu {
            list-style: none;
            display: flex;
            justify-content: center;
            gap: 35px;
            margin-bottom: 35px;
        }

        .footer__link {
            text-decoration: none;
            color: var(--color-bg-light-gray);
            transition: color 0.3s ease;
            text-transform: uppercase;
            font-size: 0.9rem;
            font-weight: 700;
        }

        .footer__link:hover {
            color: var(--color-bg-white);
        }

        .footer__copyright {
            font-size: 0.9rem;
            border-top: 1px solid #444;
            padding-top: 30px;
            margin-top: 30px;
            max-width: 1100px;
            margin-left: auto;
            margin-right: auto;
            color: var(--color-text-grey);
        }

        /* --- Alerta de Éxito --- */
        .alert-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }
        .alert-container.show {
            opacity: 1;
            visibility: visible;
        }
        .alert-box {
            background-color: var(--color-bg-white);
            padding: 40px;
            border-radius: 8px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
            text-align: center;
            max-width: 400px;
            width: 90%;
            transform: scale(0.9);
            transition: transform 0.3s ease;
        }
        .alert-container.show .alert-box {
            transform: scale(1);
        }
        .alert-icon {
            width: 60px;
            height: 60px;
            fill: var(--color-success);
            margin-bottom: 20px;
        }
        .alert-title {
            font-family: var(--font-body);
            font-weight: 800;
            font-size: 1.8rem;
            color: var(--color-text-dark);
            margin-bottom: 10px;
        }
        .alert-text {
            color: var(--color-text-grey);
            margin-bottom: 30px;
        }
        .alert-close-btn {
            background-color: var(--color-primary);
            color: #fff;
            border: none;
            padding: 12px 30px;
            border-radius: 5px;
            cursor: pointer;
            font-weight: 700;
            transition: background-color 0.3s ease;
        }
        .alert-close-btn:hover {
            background-color: var(--color-secondary-hover);
        }

        /* --- Botón de Volver Arriba --- */
        .scroll-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background-color: var(--color-primary);
            color: var(--color-bg-white);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px);
            transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
            z-index: 1000;
        }

        .scroll-to-top.visible {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .scroll-to-top:hover {
            background-color: var(--color-secondary-hover);
        }

        .scroll-to-top svg {
            width: 24px;
            height: 24px;
            fill: currentColor;
        }


        /* --- Responsive Design --- */
        @media(min-width: 992px) {
            .values-carousel-wrapper {
                grid-template-columns: 1fr 1.2fr;
                gap: 80px;
            }
            .values-carousel__text-container {
                text-align: justify;
            }
        }

        @media(max-width: 991px) {
            .subtitle { font-size: 2.8rem; }
            .hero__title { font-size: 4rem; }
            .about__grid { grid-template-columns: 1fr; gap: 80px; }
            .values-carousel__svg-container { max-width: 400px; }
            .map-container {
                height: 300px; /* Ajusta la altura en móviles */
            }
        }
        
        @media(max-width: 768px) {
            .hero__title { font-size: 2.8rem; }
            .subtitle { font-size: 2.2rem; }
            .nav__menu { display: none; } /* Ocultar menú en móvil */
            .about__grid { grid-template-columns: 1fr; }
            .footer__menu { flex-direction: column; gap: 20px; }
            .values-carousel__text-slide h3 { font-size: 2rem; }
            .values-carousel__text-slide p { font-size: 1.1rem; }
        }

        @media(max-width: 420px) {
            .values-carousel__text-slide h3 {
                font-size: 1.5625rem; /* Equivalente a 25px */
            }
        }