/* --- ANDUYLAB V2: SISTEMA DE DISEÑO "CONFIANZA DINÁMICA" --- */

/* 1. VARIABLES GLOBALES */
:root {
    /* Paleta de Colores (Basada en tu imagen) */
    --color-deep-navy: #0C1C32;
    --color-oceanic-teal: #083A32;
    --color-action-blue: #3043D7;
    --color-mist-white: #F4F9FB;
    --color-data-lime: #B4F25E;
    --color-white: #FFFFFF;
    --color-text-dark: #333;
    --color-text-light: #E0E5EC;

    /* Tipografía */
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Lato', sans-serif;

    /* Otros */
    --container-width: 1200px;
    --border-radius: 8px;
    --transition-smooth: all 0.3s cubic-bezier(.25,.8,.25,1);
}

/* 2. RESET Y ESTILOS BASE */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    color: var(--color-text-dark);
    background-color: var(--color-mist-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
main {
    padding-top: 100px; /* Espacio de reserva para el header fijo */
}

/* 3. TIPOGRAFÍA Y ESTILOS DE TEXTO */
h1, h2, h3, h4 {
    font-family: var(--font-primary);
    color: var(--color-deep-navy);
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); } /* Tipografía fluida */
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.75rem; }

a {
    color: var(--color-action-blue);
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* 4. CLASES DE UTILIDAD (NUESTRO KIT DE HERRAMIENTAS) */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden; /* Controla elementos que se salen */
}

/* Botón Primario - Más Atrevido */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px; /* Completamente redondeado */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
    cursor: pointer;
    text-align: center;
}

.btn--primary {
    background-color: var(--color-action-blue);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(48, 67, 215, 0.2);
}

.btn--primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(48, 67, 215, 0.3);
}

/* Botón Secundario */
.btn--secondary {
    background-color: transparent;
    color: var(--color-deep-navy);
    border-color: var(--color-deep-navy);
}

.btn--secondary:hover {
    background-color: var(--color-deep-navy);
    color: var(--color-white);
    transform: scale(1.05);
}

/* --- SECCIÓN 1: HÉROE --- */
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--color-white);
}

.hero__video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}

.hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cubre todo el espacio sin deformarse */
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradiente sutil para mejorar legibilidad y estilo */
    background: linear-gradient(0deg, rgba(12, 28, 50, 0.8) 0%, rgba(12, 28, 50, 0.6) 50%, rgba(12, 28, 50, 0.8) 100%);
    z-index: -1;
}

.hero__content {
    position: relative;
    z-index: 1;
}

.hero__title {
    color: var(--color-white);
    font-weight: 800; /* Más audaz */
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}

.hero__subtitle {
    font-size: 1.25rem;
    max-width: 750px;
    margin: 0 auto 2.5rem auto;
    color: var(--color-text-light);
    opacity: 0.9;
    text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}

.hero__cta-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap; /* Para que funcione bien en móviles */
}

/* Modificador para el botón secundario en el héroe */
.hero__btn--secondary {
    color: var(--color-white);
    border-color: var(--color-white);
}

.hero__btn--secondary:hover {
    background-color: var(--color-white);
    color: var(--color-deep-navy);
}

/* ... tu código CSS anterior ... */

/* ======================================================= */
/* === 5. HEADER Y NAVEGACIÓN (VERSIÓN FINAL BASADA EN TU CÓDIGO) ==== */
/* ======================================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
    padding: 20px 0;
}

/* --- ESTILOS POR DEFECTO (PARA PÁGINAS INTERNAS O AL HACER SCROLL) --- */
/* Por defecto, o cuando tiene la clase .scrolled, el header es blanco */
.header.scrolled,
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}
/* Por defecto, se ve el logo oscuro */
.header .logo-main { display: block; }
.header .logo-white { display: none; }
/* Por defecto, los enlaces son oscuros */
.header .nav__link { color: var(--color-deep-navy); }
/* Por defecto, la hamburguesa es oscura */
.header .nav__toggle span { background-color: var(--color-deep-navy); }


/* --- EXCEPCIÓN: SOLO PARA LA HOMEPAGE CUANDO ESTÁ EN LA CIMA --- */
/* Si estamos en .homepage Y el header NO tiene la clase .scrolled... */
.homepage .header:not(.scrolled) {
    background-color: transparent;
    backdrop-filter: none;
    box-shadow: none;
    padding: 20px 0;
}
/* ...entonces se ve el logo blanco */
.homepage .header:not(.scrolled) .logo-main { display: none; }
.homepage .header:not(.scrolled) .logo-white { display: block; }
/* ...y los enlaces son blancos */
.homepage .header:not(.scrolled) .nav__link { color: var(--color-white); }
/* ...y la hamburguesa es blanca */
.homepage .header:not(.scrolled) .nav__toggle span { background-color: var(--color-white); }


/* --- ESTILOS GENERALES DE NAVEGACIÓN (se aplican siempre) --- */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav__logo img {
    height: 220px; /* Corregido de 220px a un tamaño más apropiado */
    width: auto;
    transition: var(--transition-smooth);
}

.nav__logo img:hover {
    opacity: 0.8;
}

.nav__menu {
    display: block;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.nav__link {
    font-weight: bold;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 5px;
    text-decoration: none;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-action-blue);
    transition: width 0.3s ease;
}

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

.nav__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn--small {
    padding: 10px 24px;
    font-size: 0.8rem;
}

.nav__toggle {
    display: none;
    cursor: pointer;
}


/* --- ESTILOS PARA MÓVIL (Y TABLETS PEQUEÑAS) --- */
@media (max-width: 992px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--color-deep-navy);
        padding: 6rem 2rem 2rem;
        transition: right 0.4s cubic-bezier(.25,.8,.25,1);
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }
    
    .nav__menu.show-menu {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 3rem;
    }

    /* En el menú lateral, los enlaces SIEMPRE son blancos */
    .nav__link, 
    .header .nav__link, 
    .homepage .header:not(.scrolled) .nav__link {
        color: var(--color-white);
    }
    
    .nav__actions .btn {
        display: none;
    }

    .nav__toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 24px;
        height: 20px;
    }

    .nav__toggle span {
        width: 100%;
        height: 2px;
        transition: var(--transition-smooth);
    }

    
}

/* --- NUEVO: LÓGICA DE VISIBILIDAD DE LOGOS --- */
/* Por defecto, mostramos el logo blanco y ocultamos el principal */
.logo-main {
    display: none;
}
.logo-white {
    display: block;
}

/* Cuando el header tiene la clase .scrolled (fondo blanco)... */
.header.scrolled .logo-main {
    display: block; /* ...mostramos el logo principal... */
}
.header.scrolled .logo-white {
    display: none; /* ...y ocultamos el logo blanco. */
}
/* --- FIN DE LA LÓGICA DE VISIBILIDAD --- */


.nav__logo img:hover {
    opacity: 0.8;
}

.nav__menu {
    display: block;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.nav__link {
    color: var(--color-white); /* Color inicial para estar sobre el Héroe */
    font-weight: bold;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 5px;
}

.scrolled .nav__link {
    color: var(--color-deep-navy); /* Cambia de color al hacer scroll */
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-action-blue);
    transition: width 0.3s ease;
}

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

.nav__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn--small {
    padding: 10px 24px;
    font-size: 0.8rem;
}

.nav__toggle {
    display: none;
    cursor: pointer;
}


/* --- ESTILOS PARA MÓVIL (Y TABLETS PEQUEÑAS) --- */
@media (max-width: 992px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--color-deep-navy);
        padding: 6rem 2rem 2rem;
        transition: right 0.4s cubic-bezier(.25,.8,.25,1);
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }
    
    .nav__menu.show-menu {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 3rem;
    }

    .nav__link, .scrolled .nav__link {
        color: var(--color-white);
        font-size: 1.2rem;
    }
    
    .nav__actions .btn {
        display: none;
    }

    .nav__toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 24px;
        height: 20px;
    }

    .nav__toggle span {
        width: 100%;
        height: 2px;
        background-color: var(--color-white);
        transition: var(--transition-smooth);
    }

    .scrolled .nav__toggle span {
        background-color: var(--color-deep-navy);
    }
}

/* --- SECCIÓN 2: BARRA DE CREDIBILIDAD --- */
.credibility-bar {
    background-color: var(--color-white); /* Un fondo blanco limpio */
    padding: 50px 0;
    border-bottom: 1px solid #e0e5ec; /* Una línea divisoria muy sutil */
}

.credibility-bar__title {
    display: block;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    color: #888; /* Un gris suave para no competir con los logos */
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.credibility-bar__logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px; /* Espacio generoso entre logos */
    flex-wrap: wrap; /* Para que se ajuste en móviles */
}

.credibility-bar__logo-item img {
    max-height: 55px; /* Altura máxima uniforme para todos los logos */
    width: auto;
    filter: grayscale(100%); /* Efecto inicial en escala de grises */
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.credibility-bar__logo-item img:hover {
    filter: grayscale(0%); /* Revela el color al pasar el cursor */
    opacity: 1;
    transform: scale(1.1); /* Efecto de ampliación sutil */
}

/* Ajustes para Móviles */
@media (max-width: 768px) {
    .credibility-bar__logos {
        gap: 40px;
        justify-content: space-around; /* Mejor distribución en pantallas pequeñas */
    }
    .credibility-bar__logo-item img {
        max-height: 45px;
    }
}

/* --- SECCIÓN 3: MENSAJE CENTRAL (PILARES) --- */

.text-center {
    text-align: center;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: left;
}

.pillar-card {
    background-color: var(--color-white);
    border: 1px solid #e0e5ec;
    border-radius: var(--border-radius);
    padding: 40px 30px;
    position: relative;
    overflow: hidden; /* Importante para el número de fondo */
    transition: var(--transition-smooth);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.pillar-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border-color: var(--color-action-blue);
}

.pillar-card__number {
    position: absolute;
    top: -20px;
    right: 10px;
    font-size: 100px;
    font-weight: 800;
    font-family: var(--font-primary);
    color: var(--color-deep-navy);
    opacity: 0.05;
    z-index: 1;
    user-select: none; /* Evita que el texto sea seleccionable */
}

.pillar-card__icon {
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
    color: var(--color-action-blue);
    transition: transform 0.3s ease;
}

.pillar-card:hover .pillar-card__icon {
    transform: scale(1.1);
}

.pillar-card__title {
    position: relative;
    z-index: 2;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.pillar-card__text {
    position: relative;
    z-index: 2;
    color: #555;
    font-size: 0.95rem;
}

/* --- RESPONSIVIDAD PARA PILARES --- */
@media (max-width: 992px) {
    .pillars-grid {
        grid-template-columns: 1fr; /* Una sola columna */
    }
}

/* --- SECCIÓN 4: RESUMEN DE SOLUCIONES (VERSIÓN FINAL CORREGIDA) --- */

.section--dark .section__title--light {
    color: var(--color-white);
    margin-bottom: 3rem;
}

.solutions-container {
    max-width: 1300px; /* Un poco más ancho para que las tarjetas respiren */
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* --- NUEVO: Estilos para el enlace que envuelve la tarjeta --- */
.solution-card-link {
    display: block; /* Asegura que el enlace ocupe todo el espacio de la tarjeta */
    text-decoration: none; /* Elimina el subrayado por defecto */
    color: inherit; /* Hereda el color del texto para no volverse azul */
    border-radius: var(--border-radius); /* Hereda el borde redondeado para el focus */
    transition: var(--transition-smooth);
}

.solution-card-link:hover,
.solution-card-link:focus {
    text-decoration: none; /* Se asegura de que no haya subrayado en ningún estado */
    box-shadow: 0 20px 40px rgba(0,0,0,0.2); /* Añade una sombra al enlace completo */
    transform: scale(1.03); /* Mueve el efecto de zoom al enlace */
}
/* --- FIN DE LA NUEVA SECCIÓN --- */


.solution-card {
    position: relative;
    height: 500px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    /* La transición y sombra se mueven al .solution-card-link para mejor efecto */
}


/* Asignación de imágenes de fondo */
#card-asesoria { background-image: url('../assets/images/solucion-asesoria.jpg'); }
#card-equipos { background-image: url('../assets/images/solucion-equipos.jpg'); }
#card-daas { background-image: url('../assets/images/solucion-daas.jpg'); }


.solution-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    color: var(--color-white);
    background: linear-gradient(0deg, rgba(12, 28, 50, 0.8) 0%, rgba(12, 28, 50, 0) 100%);
}

.solution-card__title {
    color: var(--color-white);
    font-size: 2rem;
    line-height: 1.2;
}

.solution-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(12, 28, 50, 0.9);
    backdrop-filter: blur(5px);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    overflow-y: auto;
}

.solution-card-link:hover .solution-card__overlay {
    transform: translateY(0);
}

.solution-card__text {
    opacity: 0;
    transition: opacity 0.3s ease 0.25s;
    margin-bottom: 2rem;
}

.solution-card-link:hover .solution-card__text {
    opacity: 1;
}

/* RESPONSIVIDAD PARA SOLUCIONES */
@media (max-width: 992px) {
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .solution-card {
        height: 400px;
    }
}

/* Estilos para un Scrollbar Personalizado y Elegante */
.solution-card__overlay::-webkit-scrollbar {
  width: 6px;
}
.solution-card__overlay::-webkit-scrollbar-track {
  background: transparent;
}
.solution-card__overlay::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 20px;
}

/* --- SECCIÓN 5: NUESTRA EXPERIENCIA --- */
.experience-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr; /* Columna de texto un poco más ancha */
    align-items: center;
    gap: 60px;
}

.experience-text .section__paragraph {
    margin-bottom: 1rem;
    color: #555;
}

.experience-text .btn {
    margin-top: 2rem;
}

.experience-network {
    position: relative;
    height: 450px; /* Altura fija para el lienzo del gráfico */
}

.network-node {
    position: absolute;
    width: 90px;
    height: 90px;
    background-color: var(--color-white);
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    animation: pulse 3s ease-in-out infinite;
}

.network-node--center {
    width: 120px;
    height: 120px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    animation-delay: 0.5s;
}

.network-node--satellite {
    transform: translate(-50%, -50%);
}

.network-node img {
    max-width: 90%;
    max-height: 90%;
}

.network-line {
    position: absolute;
    height: 2px;
    background-color: var(--color-action-blue);
    opacity: 0.3;
}

/* --- Animación de pulso para los nodos --- */
@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* --- RESPONSIVIDAD PARA EXPERIENCIA --- */
@media (max-width: 992px) {
    .experience-grid {
        grid-template-columns: 1fr; /* Una sola columna */
        gap: 30px;
    }
    .experience-network {
        margin-top: 3rem;
        transform: scale(0.8); /* Hacemos el gráfico un poco más pequeño */
    }
}
@media (max-width: 768px) {
    .experience-network {
        display: none; /* Ocultamos el gráfico complejo en móviles */
    }
}

/* --- SECCIÓN 6: CTA FINAL --- */
.cta-section {
    background-color: var(--color-action-blue);
    color: var(--color-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Patrón de fondo animado y sutil */
.cta-section__bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='%23FFF' fill-opacity='0.1'%3E%3Crect x='0' y='0' width='1' height='100'/%3E%3Crect x='10' y='0' width='1' height='100'/%3E%3Crect x='20' y='0' width='1' height='100'/%3E%3Crect x='30' y='0' width='1' height='100'/%3E%3Crect x='40' y='0' width='1' height='100'/%3E%3Crect x='50' y='0' width='1' height='100'/%3E%3Crect x='60' y='0' width='1' height='100'/%3E%3Crect x='70' y='0' width='1' height='100'/%3E%3Crect x='80' y='0' width='1' height='100'/%3E%3Crect x='90' y='0' width='1' height='100'/%3E%3C/g%3E%3C/svg%3E");
    animation: slide 20s linear infinite;
    z-index: 1;
}

@keyframes slide {
  from { background-position: 0 0; }
  to { background-position: -200px 0; }
}

.cta-container {
    position: relative;
    z-index: 2; /* Asegura que el contenido esté sobre el patrón */
}

.cta-title {
    color: var(--color-white);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
}

.cta-text {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    opacity: 0.9;
}

/* Estilo para un botón más grande y prominente */
.btn--large {
    padding: 18px 40px;
    font-size: 1rem;
}

/* Animación de "pulso" para el botón */
.cta-button {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 35px rgba(255, 255, 255, 0.25);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    }
}

/* --- FOOTER GLOBAL --- */
.footer {
    background-color: var(--color-deep-navy);
    color: var(--color-text-light);
    padding-top: 80px;
    font-size: 0.95rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr; /* 3 columnas con anchos diferentes */
    gap: 50px;
    padding-bottom: 50px;
}

.footer__logo {
    display: block; /* Asegura un comportamiento predecible */
    margin-bottom: 1rem; /* ESTE es ahora el que controla el espacio */
}

.footer__logo img {
    height: 180px; 
    display: block; /* Elimina cualquier espacio extra debajo de la imagen */
}

.footer__mission {
    opacity: 0.7;
    max-width: 350px;
    line-height: 1.6;
    margin-top: 0; /* Asegura que no haya un margen superior extra */   
}

.footer__title {
    font-family: var(--font-secondary);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.footer__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer__list--contact li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__list--contact svg {
    flex-shrink: 0;
}

.footer__link {
    color: var(--color-text-light);
    opacity: 0.8;
    transition: var(--transition-smooth);
}

.footer__link:hover {
    opacity: 1;
    color: var(--color-data-lime);
    text-decoration: none;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__copyright {
    opacity: 0.6;
}

.footer__socials {
    display: flex;
    gap: 15px;
}

.footer__social-link {
    color: var(--color-text-light);
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.footer__social-link:hover {
    opacity: 1;
    color: var(--color-data-lime);
    transform: scale(1.2);
}

/* --- RESPONSIVIDAD PARA FOOTER --- */
@media (max-width: 992px) {
    .footer__grid {
        grid-template-columns: 1fr; /* Una sola columna en tablets y móviles */
    }
}

@media (max-width: 768px) {
    .footer__bottom {
        flex-direction: column; /* Apila el copyright y las redes */
        gap: 20px;
    }
}

/* --- PÁGINA: CONTACTO --- */

.contact-page-section {
    background-color: var(--color-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-info .section__paragraph {
    color: #555;
    line-height: 1.8;
}

.contact-details {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e5ec;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-details__item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-details__item svg {
    color: var(--color-action-blue);
    flex-shrink: 0;
}

.contact-details__item a {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-text-dark);
}
.contact-details__item a:hover {
    color: var(--color-action-blue);
}

/* Estilos del Formulario */
.contact-form-wrapper {
    background-color: var(--color-mist-white);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid #e0e5ec;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 15px;
    border-radius: var(--border-radius);
    border: 1px solid #ccc;
    background-color: var(--color-white);
    color: var(--color-text-dark);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--color-action-blue);
    box-shadow: 0 0 0 3px rgba(48, 67, 215, 0.2);
}

.form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}
.form-group-checkbox input[type="checkbox"] {
    width: auto;
    accent-color: var(--color-action-blue);
}
.form-group-checkbox label {
    margin: 0;
    font-weight: normal;
}

/* --- RESPONSIVIDAD PARA CONTACTO --- */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .contact-form-wrapper {
        padding: 25px;
    }
}

/* --- PÁGINA: QUIÉNES SOMOS --- */

/* Hero de la Página (reutilizable) */
.page-hero {
    background-color: var(--color-deep-navy);
    padding: 180px 0 100px 0;
    text-align: center;
}
.page-hero__title {
    color: var(--color-white);
    max-width: 900px;
    margin: 0 auto;
}

/* Sección 1: Nuestra Historia */
.story-section { background-color: var(--color-white); }
.story-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.story__image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}
.story__narrative {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* Sección 2: Equipo Fundador */
.team-section { background-color: var(--color-mist-white); }
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.team-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
}
.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.team-card__image-wrapper {
    height: 400px;
    position: relative;
    overflow: hidden;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}
.team-card__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.4s ease, filter 0.4s ease;
}
.team-card:hover .team-card__image-wrapper img {
    transform: scale(1.05);
    filter: grayscale(80%);
}
.team-card__content { padding: 30px; }
.team-card__name { margin-bottom: 0.75rem; }
.team-card__bio {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* Sección 3: Misión y Visión */
.mission-vision-section { background-color: var(--color-white); }
.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.mission-vision-card {
    background-color: var(--color-mist-white);
    padding: 40px;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--color-action-blue);
}
.mission-vision-card h3 { margin-bottom: 1rem; }
.mission-vision-card p {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
}

/* --- RESPONSIVIDAD PARA QUIÉNES SOMOS --- */
@media (max-width: 992px) {
    .story-container { grid-template-columns: 1fr; }
    .allies-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    .mission-vision-grid { grid-template-columns: 1fr; }
    .allies-grid {
        grid-template-columns: 1fr;
    }
    .ally-card--featured {
        grid-template-columns: 1fr; /* Apila la imagen sobre el texto */
        text-align: center;
    }
    .ally-card__image {
        margin: 0 auto 2rem auto;
        width: 200px;
        height: 200px;
    }
}

/* Sección 4: Aliados Estratégicos */
.allies-section { background-color: var(--color-mist-white); }

.section__subtitle {
    max-width: 800px;
    margin: 1rem auto 4rem auto;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #666;
}

.allies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ally-card {
    background-color: var(--color-white);
    padding: 35px;
    border-radius: var(--border-radius);
    border-top: 4px solid var(--color-action-blue-light);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: var(--transition-smooth);

    /* --- Mejoras para las tarjetas de Aliados --- */

.ally-card--with-logo {
    display: flex;
    flex-direction: column; /* Apila el logo sobre el contenido */
    text-align: center; /* Centra todo el contenido */
    padding-top: 25px; /* Más espacio arriba para el logo */
    padding-bottom: 25px;
    /* Elimina el borde superior que teníamos antes */
    border-top: none; 
    /* Añadimos un borde sutil alrededor para definir la tarjeta */
    border: 1px solid #e9e9e9;
}

.ally-card__logo-wrapper {
    margin-bottom: 25px;
    min-height: 60px; /* Altura mínima para alinear logos de diferentes tamaños */
    display: flex;
    justify-content: center;
    align-items: center;
}

.ally-card__logo {
    max-height: 50px; /* Altura máxima para el logo */
    width: auto;      /* Ancho automático para no distorsionar */
    max-width: 180px; /* Ancho máximo para logos muy anchos */
    opacity: 0.85;
    transition: var(--transition-smooth);
}

/* Efecto hover sobre el logo */
.ally-card__logo-wrapper a:hover .ally-card__logo {
    opacity: 1;
    transform: scale(1.05);
}

.ally-card--with-logo .ally-card__content {
    flex-grow: 1; /* Permite que el contenido crezca para igualar alturas */
    display: flex;
    flex-direction: column;
}

.ally-card--with-logo .ally-card__title {
    font-size: 1.5rem; /* Título principal más grande */
    margin-bottom: 0.5rem;
}

.ally-card__tagline {
    display: block; /* La descripción va en una nueva línea */
    font-size: 1rem;
    font-weight: 400; /* Peso de fuente normal */
    color: #777;
    margin-bottom: 1rem;
}

.ally-card--with-logo .ally-card__text {
    margin-top: auto; /* Empuja el texto hacia abajo para alinear los títulos */
}
}

.ally-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.ally-card__title {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.ally-card__text {
    color: #555;
    line-height: 1.7;
}

/* Estilos para la tarjeta destacada (Dr. Buytaert) */
.ally-card--featured {
    grid-column: 1 / -1; /* Ocupa todo el ancho */
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    align-items: center;
    padding: 40px;
    border-top: none;
    border-left: 5px solid var(--color-action-blue);
}

.ally-card__image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 50%; /* Círculo perfecto */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.ally-card__tag {
    display: inline-block;
    background-color: var(--color-action-blue-light);
    color: var(--color-action-blue);
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/*
================================================================
|                                                              |
|       PÁGINA DEDICADA: SOLUCIONES (VERSIÓN FINAL CORREGIDA)    |
|                                                              |
================================================================
*/
    
/* --- 1. Estructura General y Sub-navegación --- */
.page-hero__subtitle { max-width: 800px; margin: 1rem auto 0 auto; font-size: 1.2rem; color: var(--color-text-light); opacity: 0.9; }
.container--narrow { max-width: 900px; }
.page-submenu { position: sticky; top: 80px; background-color: rgba(255,255,255,0.95); backdrop-filter: blur(8px); padding: 15px 0; border-bottom: 1px solid #e0e5ec; z-index: 50; transition: top 0.4s ease; }
.page-submenu .container { display: flex; justify-content: center; align-items: center; gap: 30px; flex-wrap: wrap; }
.page-submenu__link { padding: 8px 18px; font-weight: bold; color: var(--color-text-dark); text-decoration: none; opacity: 0.7; transition: var(--transition-smooth); border-radius: 50px; border: 1px solid transparent; }
.page-submenu__link:hover { opacity: 1; color: var(--color-action-blue); background-color: #e9eef7; border-color: #d1ddf0; }

/* --- 2. Nuevo Diseño de Capítulo de Servicio --- */
.service-chapter-wrapper { position: relative; padding: 100px 0; }
.service-chapter { display: grid; grid-template-columns: 200px 1fr; gap: 60px; }
.service-chapter__sidebar {
    position: sticky;
    top: 120px; /* Se ancla debajo del sub-menú */
    height: calc(100vh - 160px); /* Ocupa casi toda la altura visible */
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--color-action-blue) 0%, var(--color-oceanic-teal) 100%);
    border-radius: var(--border-radius);
}

.sidebar-content h3 {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 3rem; /* Tamaño de fuente ajustado y legible */
    font-weight: 800;
    font-family: var(--font-primary);
    color: var(--color-white); /* Color sólido para máxima legibilidad */
    text-shadow: 0 2px 10px rgba(0,0,0,0.2); /* Sombra para darle profundidad */
    letter-spacing: 2px; /* Espaciado para que respire mejor */
    padding: 20px 0;
    margin: 0;
    user-select: none;
}
.service-chapter__content { padding-left: 30px; border-left: 2px solid #e0e5ec; }
.service-chapter-wrapper--dark { background-color: var(--color-deep-navy); }
.service-chapter-wrapper--dark .service-chapter__content { border-left-color: rgba(255,255,255,0.2); }
.service-chapter-wrapper--dark .service-title, .service-chapter-wrapper--dark h3, .service-chapter-wrapper--dark p { color: var(--color-white); }
.service-chapter-wrapper--dark .feature-item-alt { background-color: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.2); }

/* --- 3. Contenido de los Capítulos --- */
.service-intro { text-align: left; margin-bottom: 3rem; }
.service-title { font-size: clamp(2rem, 5vw, 2.5rem); }
.service-main-text { font-size: 1.1rem; line-height: 1.8; color: #555; }
.service-subsection { margin-top: 4rem; }
.service-subsection h3 {
    text-align: center; /* ¡Corregido! Ahora está centrado */
    margin-bottom: 3rem;
    font-size: 2rem;
    position: relative;
    padding-bottom: 1rem;
}
/* Línea decorativa para el subtítulo */
.service-subsection h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-action-blue);
}
.service-chapter-wrapper--dark .service-subsection h3::after {
    background-color: var(--color-white); /* Asegura que la línea sea visible en fondos oscuros */
}
.service-chapter__image { width: 100%; height: auto; border-radius: var(--border-radius); margin: 2rem 0; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

.feature-grid-alt {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.feature-item-alt {
    background-color: var(--color-mist-white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    border: 1px solid #e0e5ec;
    text-align: center;
    transition: var(--transition-smooth);
    border-bottom: 4px solid transparent; /* Espacio para el borde de color en hover */
}
.feature-item-alt:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-bottom-color: var(--color-action-blue);
}
.feature-item-alt__icon {
    margin-bottom: 1.5rem;
    color: var(--color-action-blue);
}
.feature-item-alt h4 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}
.advantage-grid-icons {
    display: flex; /* CAMBIO CLAVE: Usamos Flexbox */
    flex-wrap: wrap; /* Permite que los elementos pasen a la siguiente línea */
    justify-content: center; /* ¡LA SOLUCIÓN! Centra los items, incluyendo el último si queda solo */
    gap: 30px;
}
.advantage-item-icon svg { color: var(--color-action-blue); margin-bottom: 1rem; }
.advantage-item-icon {
    background-color: var(--color-white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    border: 1px solid #e0e5ec;
    text-align: center;
    transition: var(--transition-smooth);
    border-bottom: 4px solid transparent;
    flex: 1 1 300px; /* Flexbox: permite que crezcan y se encojan, con una base de 300px */
    max-width: 380px; /* Evita que las tarjetas se estiren demasiado */
}

.advantage-item-icon:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-bottom-color: var(--color-action-blue);
}

.advantage-item-icon__icon-wrapper {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #e9eef7; /* Un fondo suave para el icono */
    margin-bottom: 1.5rem;
    color: var(--color-action-blue);
}

.advantage-item-icon h4 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* --- REEMPLAZA ESTA REGLA EN TU ARCHIVO STYLE.CSS --- */

/* Estilo mejorado para los CTA dentro de cada capítulo */
.cta-crosslink {
    margin-top: 4rem;
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    overflow: hidden; /* Necesario para el efecto de fondo */
}

/* Variante para fondos claros */
.cta-crosslink--light {
    background-color: var(--color-mist-white);
    border: 1px solid #e0e5ec;
}

/* Variante para fondos oscuros (ya existente) */
.service-chapter-wrapper--dark .cta-crosslink {
    background-color: rgba(255, 255, 255, 0.08);
}

.cta-crosslink p {
    font-weight: bold;
    font-family: var(--font-primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.cta-crosslink .btn {
    position: relative;
    z-index: 2;
}

/* Efecto de fondo sutil y elegante */
.cta-crosslink::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--color-action-blue) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
    opacity: 0;
    z-index: 1;
}

.cta-crosslink:hover::before {
    width: 300%;
    height: 300%;
    opacity: 0.1;
}

.daas-flow { display: flex; justify-content: space-between; align-items: stretch; margin-top: 3rem; }
.daas-card { width: 30%; padding: 30px; border-radius: var(--border-radius); text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.daas-card h3 { margin-bottom: 1rem; font-size: 1.5rem; }
.daas-card ul { text-align: left; list-style: none; padding-left: 0; }
.daas-card li { margin-bottom: 0.5rem; }
.daas-arrow { font-size: 3rem; color: var(--color-action-blue); font-weight: bold; align-self: center; }
.daas-card--problem { background-color: #ffebee; border: 1px solid #f44336; }
.daas-card--problem h3 { color: #d32f2f; }
.daas-card--solution { background-color: var(--color-mist-white); }
.daas-card--result { background-color: #e8f5e9; border: 1px solid #4caf50; }
.daas-card--result h3 { color: #2e7d32; }

/* --- 4. RESPONSIVIDAD --- */
@media (max-width: 992px) {
    .service-chapter { grid-template-columns: 1fr; }
    .service-chapter__sidebar { display: none; }
    .service-chapter__content { padding-left: 0; border-left: none; }
    .daas-flow { flex-direction: column; gap: 30px; }
    .daas-card { width: 100%; }
    .daas-arrow { transform: rotate(90deg); }
}
@media (max-width: 768px) { 
    .page-submenu { top: 70px; } 
}

/*
================================================================
|                                                              |
|               PÁGINA DEDICADA: BLOG (PERSPECTIVAS)             |
|                                                              |
================================================================
*/

.blog-layout { display: grid; grid-template-columns: 2.5fr 1fr; gap: 50px; }
.article-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 30px; }

/* Estilo de las Tarjetas de Artículo */
.article-card { background-color: var(--color-white); border-radius: var(--border-radius); box-shadow: 0 5px 15px rgba(0,0,0,0.05); overflow: hidden; transition: var(--transition-smooth); }
.article-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.article-card__image { width: 100%; height: 220px; object-fit: cover; }
.article-card--featured .article-card__image { height: 350px; }
.article-card__content { padding: 25px; }
.article-card__category { font-size: 0.8rem; font-weight: bold; color: var(--color-action-blue); text-transform: uppercase; letter-spacing: 0.5px; }
.article-card__title a { color: var(--color-deep-navy); text-decoration: none; }
.article-card__title a:hover { color: var(--color-action-blue); }
.article-card__excerpt { font-size: 0.95rem; color: #666; margin: 0.75rem 0 1rem 0; }
.article-card__meta { font-size: 0.8rem; color: #999; }

/* Barra Lateral */

.blog-sidebar .sidebar-widget {
    margin-bottom: 3rem; /* Increased vertical space between widgets */
}

/* --- Widget Title --- */
.sidebar-widget__title {
    font-size: 1.3rem;
    font-weight: 700; /* Bolder for more emphasis */
    color: var(--color-deep-navy); /* A darker, richer color for titles */
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    /* An accent border that doesn't span the full width looks more modern */
    border-bottom: 3px solid var(--color-action-blue);
    display: inline-block;
}

/* --- Widget List (Categories, Recent Posts, etc.) --- */
.sidebar-widget__list {
    list-style: none; /* Removes default bullets */
    padding-left: 0;
}

.sidebar-widget__list li {
    margin-bottom: 0.75rem;
}

.sidebar-widget__list a {
    color: #333; /* Darker text for better readability */
    text-decoration: none;
    transition: all 0.3s ease; /* Smooth transition for all hover effects */
    display: block; /* Makes the entire area clickable */
}

.sidebar-widget__list a:hover {
    color: var(--color-action-blue); /* Changes color on hover */
    transform: translateX(5px); /* Adds a subtle movement effect */
}

/* --- Eye-Catching Call-to-Action (CTA) Widget --- */
.sidebar-widget--cta {
    background-color: var(--color-mist-white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid #EAEAEA;
    /* Adds a subtle shadow to make it "lift" off the page */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* --- Modern Newsletter Form --- */
.newsletter-form input {
    width: 100%;
    padding: 15px; /* More comfortable padding */
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    font-size: 1rem;
    box-sizing: border-box; /* Ensures padding doesn't break the layout */
    transition: all 0.3s ease;
}

/* Style for when the user clicks/tabs into the input field */
.newsletter-form input:focus {
    outline: none; /* Removes the default browser outline */
    border-color: var(--color-action-blue);
    /* Adds a soft "glow" to indicate the active field */
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
}


/* Página de Artículo Individual */
.article-full__header { text-align: center; margin-bottom: 3rem; }
.article-full__title { margin: 1rem 0; }
.article-full__image { width: 100%; height: 450px; object-fit: cover; border-radius: var(--border-radius); margin-top: 2rem; }
.article-full__content { font-size: 1.1rem; line-height: 1.8; color: var(--color-text-dark); }
.article-full__content h2 { margin: 2.5rem 0 1rem 0; }
.article-full__content blockquote { border-left: 4px solid var(--color-action-blue); margin: 2rem 0; padding-left: 1.5rem; font-style: italic; font-size: 1.2rem; color: #555; }

@media (max-width: 992px) {
    .blog-layout { grid-template-columns: 1fr; }
    .blog-sidebar { margin-top: 3rem; }
}
@media (max-width: 768px) {
    .article-grid { grid-template-columns: 1fr; }
}

/* --- PÁGINA: EQUIPOS Y PRODUCTOS --- */

/* Menú Desplegable en la Navegación */
.nav__item--dropdown {
    position: relative;
}
.nav__item--dropdown .icon-dropdown { /* Puedes usar un icono SVG o de una librería */
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid; /* El color lo hereda del link */
    margin-left: 8px;
    transition: var(--transition-smooth);
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    list-style: none;
    padding: 10px 0;
    margin-top: 10px; /* Espacio entre el botón y el menú */
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 1000;
}
.nav__item--dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav__item--dropdown:hover .icon-dropdown {
    transform: rotate(180deg);
}
.dropdown-menu__link {
    display: block;
    padding: 12px 20px;
    color: var(--color-deep-navy);
    font-size: 0.95rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.dropdown-menu__link:hover {
    background-color: var(--color-mist-white);
    color: var(--color-action-blue);
}

/* Hero de Página (Modificación para subtítulo) */
.page-hero__subtitle {
    color: var(--color-light-gray); /* Asumiendo que tienes este color, si no, usa #DDD */
    max-width: 800px;
    margin: 20px auto 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Catálogo de Productos */
.product-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
}
.product-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.product-card__image-wrapper {
    background-color: #f7f7f7; /* Un fondo neutro para las imágenes */
    padding: 40px 20px;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}
.product-card__image-wrapper img {
    width: 100%;
    height: 250px;
    object-fit: contain;
}
.product-card__content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Para que el contenido crezca y el botón se alinee abajo */
}
.product-card__name {
    margin-bottom: 0.75rem;
}
.product-card__description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Página de Producto Detallada */
.product-hero { background-color: var(--color-mist-white); }
.product-hero-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}
.product-hero__image img {
    width: 100%;
    max-width: 450px;
    height: auto;
}
.product-hero__title {
    font-size: 3rem; /* Más grande para el producto */
    margin-bottom: 1rem;
}
.product-hero__subtitle {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
}

/* Sección de Características */
.product-features {
    background-color: var(--color-mist-white); /* Asegura un fondo de contraste */
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    background-color: var(--color-white);
    text-align: center;
    padding: 40px 30px; /* Aumentamos el espacio interno */
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Sombra sutil por defecto */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Para que todas las tarjetas tengan la misma altura en el grid */
}
.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08); /* Sombra más pronunciada al pasar el mouse */
}
.feature-item__icon {
    /* Mantenemos el círculo contenedor */
    width: 70px;
    height: 70px;
    margin: 0 auto 25px auto;
    background-color: #eaf2ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-action-blue); /* El color del ícono lo hereda de aquí */
}
/* AÑADIMOS este nuevo selector para el SVG */
.feature-item__icon svg {
    width: 32px; /* Controlamos el tamaño del SVG */
    height: 32px;
    stroke-width: 2; /* Controlamos el grosor de la línea del SVG */
}
.feature-item__title {
    font-size: 1.25rem;
    color: var(--color-deep-navy); /* Usamos el color principal para consistencia */
    margin-bottom: 0.75rem;
}
.feature-item p {
    color: #555; /* Un gris un poco más oscuro para mejor contraste */
    line-height: 1.7;
}

/* Sección de Especificaciones Técnicas */
.tech-specs-section { background-color: var(--color-mist-white); }
.table-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    overflow: hidden; /* Para que el borde redondeado afecte a la tabla */
}
.tech-specs-table {
    width: 100%;
    border-collapse: collapse;
}
.tech-specs-table th, .tech-specs-table td {
    padding: 18px 25px;
    text-align: left;
    border-bottom: 1px solid #EEE;
}
.tech-specs-table tr:last-child th,
.tech-specs-table tr:last-child td {
    border-bottom: none;
}
.tech-specs-table th {
    background-color: #f9f9f9;
    font-weight: 700;
    color: var(--color-deep-navy);
}
.tech-specs-table td {
    color: #555;
}

/* Sección de Ciencia Aplicada */
.science-section { background-color: var(--color-white); }
.science-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.science__image img {
    width: 100%;
    border-radius: var(--border-radius);
}
.science__buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Para móviles */
}


/* --- RESPONSIVIDAD PARA EQUIPOS --- */
@media (max-width: 992px) {
    .product-hero-container, .science-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .product-hero__image {
        order: -1; /* Pone la imagen arriba en móvil */
        margin-bottom: 40px;
    }
    .product-hero__image img {
        margin: 0 auto;
    }
}

/* --- ESTILOS ADICIONALES PARA SENSORES-NIVEL.HTML --- */

/* Estilo general para subtítulos de sección */
.section__subtitle {
    max-width: 700px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #666;
}

/* Sección de Publicaciones */
.resources-section {
    background-color: var(--color-white);
}
.publications-list {
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.publication-item {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 25px;
    background-color: var(--color-mist-white);
    border-radius: var(--border-radius);
    text-align: left;
    border: 1px solid #EAEAEA;
    transition: var(--transition-smooth);
}
.publication-item:not(:last-child) {
    margin-bottom: 20px;
}
.publication-item:hover {
    border-color: var(--color-action-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.publication-item__icon {
    font-size: 2.5rem;
    color: var(--color-action-blue);
}
.publication-item__content {
    flex-grow: 1;
}
.publication-item__title {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}
.publication-item__description {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}
.publication-item__action {
    flex-shrink: 0; /* Evita que el botón se encoja */
}

/* Sección CTA (Call to Action) para Documentación */
.cta-section {
    padding-top: 80px;
    padding-bottom: 80px;
}
.btn--white { /* Nuevo estilo de botón para fondos oscuros */
    background-color: var(--color-white);
    color: var(--color-deep-navy);
    border: 2px solid var(--color-white);
}
.btn--white:hover {
    background-color: transparent;
    color: var(--color-white);
}


/* --- RESPONSIVIDAD PARA PUBLICACIONES --- */
@media (max-width: 768px) {
    .publication-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .publication-item__content {
        order: 1; /* Mueve el contenido después del ícono */
    }
    .publication-item__action {
        order: 2; /* Mueve la acción al final */
        width: 100%;
    }
    .btn {
        width: 100%;
        box-sizing: border-box; /* Asegura que el padding no desborde */
    }
}

/* --- Product Catalog Styles --- */

/* This creates a responsive grid for your product cards. */
.product-catalog-grid {
    display: grid;
    /* On larger screens, it creates columns, but never smaller than 280px. */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px; /* This is the space between the cards. */
}

/* This styles the product card itself. */
.product-card {
    border: 1px solid #EAEAEA;
    border-radius: 8px; /* Rounded corners */
    overflow: hidden; /* Ensures the image respects the rounded corners */
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* This styles the container that holds the image. */
.product-card__image-wrapper {
    background-color: #f7f7f7; /* Adds a light background for the image */
}

/* This is the key rule that fixes your problem! 
It targets the images you want to resize.
*/
.product-card__image-wrapper img {
    display: block; /* Removes extra space below the image */
    width: 120%;    /* Makes the image fill the container's width */
    height: auto;   /* Adjusts the height automatically to maintain aspect ratio */
    aspect-ratio: 1 / 1; /* Makes the image container a perfect square */
    object-fit: contain; /* Ensures the entire image fits inside without being cropped or stretched */
    padding: 1rem; /* Adds some breathing room around the image */
    box-sizing: border-box; /* Ensures padding is included in the element's total size */
}

/* This styles the text content area of the card. */
.product-card__content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Ensures cards in the same row have the same height */
}

.product-card__name {
    margin-bottom: 0.5rem;
}

.product-card__description {
    color: #555;
    flex-grow: 1; /* Pushes the button down to the bottom of the card */
    margin-bottom: 1.5rem;
}


/*
============================================
  Artículo para el Blog
============================================
*/

/* --- Header & Image Styling --- */
.article-full__header {
    margin-bottom: 3rem;
    text-align: center;
}

.article-full__image {
    width: 100%;
    max-height: 60vh;
    object-fit: cover;
    margin-top: 2rem;
    border-radius: var(--border-radius);
    background-color: #f0f2f5;
}

/* --- Content Typography & Layout --- */
.article-full__content {
    max-width: 720px; /* Optimal width for reading */
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-full__content p,
.article-full__content ul {
    margin-bottom: 1.5rem;
}

.article-full__content h2 {
    font-size: 1.8rem;
    color: var(--color-deep-navy);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.article-full__content ul {
    list-style-position: outside;
    padding-left: 20px;
}

.article-full__content li {
    padding-left: 10px;
    margin-bottom: 0.75rem;
}

.article-full__content strong {
    font-weight: 700;
    color: #222;
}

/* --- Elegant Blockquote Styling --- */
.article-full__content blockquote {
    margin: 2.5rem 0;
    padding: 1.5rem 2rem;
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-deep-navy);
    border-left: 5px solid var(--color-action-blue);
    background-color: var(--color-mist-white);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* --- Eye-Catching Call-to-Action (CTA) --- */
.article-cta {
    margin: 4rem 0 2rem 0;
    padding: 2.5rem;
    text-align: center;
    background-color: var(--color-deep-navy);
    color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.article-cta h3 {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.article-cta p {
    font-size: 1.1rem;
    color: var(--color-light-gray);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

/* Estilo para el botón principal */
.btn-principal {
    display: inline-block; /* Permite definir padding y margin */
    margin-top: 15px; /* Espacio para separarlo del párrafo de arriba */
    padding: 12px 25px; /* Relleno interno (vertical y horizontal) */
    background-color: #007bff; /* Color de fondo (un azul estándar) */
    color: #ffffff; /* Color del texto */
    font-weight: bold; /* Texto en negrita */
    text-align: center; /* Alineación del texto */
    text-decoration: none; /* Quita el subrayado del enlace */
    border-radius: 5px; /* Bordes ligeramente redondeados */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Transición suave para efectos */
}

/* Efecto al pasar el cursor sobre el botón */
.btn-principal:hover {
    background-color: #0056b3; /* Color de fondo más oscuro */
    transform: translateY(-2px); /* Eleva ligeramente el botón */
    cursor: pointer; /* Cambia el cursor a una mano */
}