/* ==============================================================================
   ACCURETTA INGENIERÍA - ESTILOS PÁGINA INICIO (PAGE-HOME.CSS)
   DISEÑO INDUSTRIAL ÉLITE B2B Y MAQUETACIÓN MODULAR DE SERVICIOS (LEGO)
   ============================================================================== */

/* --- HERO INDUSTRIAL CON SLIDER FLUIDO --- */
.hero-slider-container {
    position: relative;
    width: 100%;
    height: 85vh; /* Altura fija en desktop para evitar saltos entre slides */
    overflow: hidden;
    background-color: #000;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 800ms cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Capa de contraste oscuro (55% opacidad) */
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(11, 19, 41, 0.8) 0%, rgba(11, 19, 41, 0.55) 100%);
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 3;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    padding: 8rem 2rem 5rem 2rem;
    display: flex;
    flex-direction: column;
}

.hero-text-wrapper {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    text-align: left;
}

.hero-text-wrapper h1,
.hero-text-wrapper h2 {
    font-size: 3.2rem;
    line-height: 1.15;
    color: #F8FAFC; /* Blanco base */
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpText 800ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-slide.active .hero-text-wrapper h1,
.hero-slide.active .hero-text-wrapper h2 {
    opacity: 1;
    transform: translateY(0);
}

.premium-copy-hero {
    color: #E2E8F0; /* Apoyo text */
    font-size: 1.15rem;
    line-height: 1.7;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpText 800ms cubic-bezier(0.4, 0, 0.2, 1) 150ms forwards;
}

.hero-slide.active .premium-copy-hero {
    opacity: 1;
    transform: translateY(0);
}

.hero-actions-wrapper {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpText 800ms cubic-bezier(0.4, 0, 0.2, 1) 300ms forwards;
}

.hero-slide.active .hero-actions-wrapper {
    opacity: 1;
    transform: translateY(0);
}

.btn-elite-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(27, 89, 192, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, background 0.3s ease;
}

.btn-elite-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 25%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: left 0.6s ease-in-out;
    z-index: -1;
}

.btn-elite-primary:hover::after {
    left: 125%;
}

.btn-elite-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(27, 89, 192, 0.45);
}

.btn-elite-primary:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 15px rgba(27, 89, 192, 0.3);
}

.btn-elite-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.2rem;
    background-color: var(--precision);
    color: #0B1329;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(245, 180, 0, 0.25);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, background-color 0.3s ease;
}

.btn-elite-whatsapp::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 25%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: left 0.6s ease-in-out;
    z-index: -1;
}

.btn-elite-whatsapp:hover::after {
    left: 125%;
}

.btn-elite-whatsapp:hover {
    transform: translateY(-3px) scale(1.02);
    background-color: #FFC425;
    box-shadow: 0 12px 30px rgba(245, 180, 0, 0.45);
}

.btn-elite-whatsapp:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 15px rgba(245, 180, 0, 0.25);
}

/* Controles de Slider */
.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(11, 19, 41, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
}

/* --- REFRESCO VISUAL: SECCIONES CON FONDOS ALTERNADOS Y TRANSICIONES DE DISEÑO --- */
main > section {
    padding: 5rem 2rem;
    margin-bottom: 3rem;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}

/* El primer elemento (Hero) se mantiene sin fondos ni bordes */
main > section:first-of-type,
main > section.service-hero,
main > section.portfolio-hero,
main > section.blog-hero,
main > section.nosotros-hero,
main > section.faq-hero,
main > section.contacto-hero,
main > section.hero-industrial {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
}

/* Secciones pares: Gradiente suave de marca con destellos (excluyendo secciones oscuras específicas) */
main > section:nth-of-type(even):not(.autoridad-section):not(.cta-final-section):not(.suscripcion-section) {
    background: linear-gradient(180deg, rgba(27, 89, 192, 0.02) 0%, rgba(0, 168, 112, 0.01) 100%);
    border: 1px solid rgba(27, 89, 192, 0.06);
    box-shadow: 0 10px 30px rgba(27, 89, 192, 0.02);
}

/* Secciones impares subsiguientes: Fondo de malla técnica e ingeniería */
main > section:nth-of-type(odd):not(:first-of-type):not(.autoridad-section):not(.cta-final-section):not(.suscripcion-section) {
    background-color: #FFFFFF;
    background-image: radial-gradient(rgba(27, 89, 192, 0.03) 1.2px, transparent 1.2px);
    background-size: 24px 24px;
    border: 1px solid rgba(92, 102, 112, 0.08);
    box-shadow: 0 10px 30px rgba(11, 19, 41, 0.02);
}

.slider-control:hover {
    background: rgba(27, 89, 192, 0.85);
    border-color: var(--primary-light);
}

.slider-control.hero-prev {
    left: 2rem;
}

.slider-control.hero-next {
    right: 2rem;
}

.slider-control svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

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

/* --- MÓDULO 2: BENEFICIOS PRINCIPALES --- */
.beneficios-section {
    max-width: 1280px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.beneficios-text-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.beneficios-subtitle {
    color: var(--accent);
    font-size: 0.95rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.beneficios-section h2 {
    font-size: 2rem;
    line-height: 1.3;
    color: var(--primary);
    border-left: 5px solid var(--accent);
    padding-left: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.beneficios-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    text-align: justify;
}

.beneficios-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.beneficios-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.beneficios-icon {
    width: 24px;
    height: 24px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 3px;
}

.beneficios-item-text h4 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 0.3rem;
}

.beneficios-item-text p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.beneficios-img-col {
    position: relative;
    display: flex;
    justify-content: center;
}

.beneficios-slider-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    width: 100%;
    max-width: 380px;
    height: 570px; /* Mantener la proporción vertical 2:3 */
}

.beneficios-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 1;
    transition: opacity 1000ms ease-in-out;
}

.beneficios-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Marco flotante perimetral GeoTech Green */
.beneficios-img-col::after {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    bottom: 15px;
    left: 15px;
    border: 3px solid var(--accent);
    border-radius: 8px;
    z-index: -1;
    pointer-events: none;
}

/* --- MÓDULO ADICIONAL: PROPUESTA DE VALOR --- */
.propuesta-valor-section {
    max-width: 1280px;
    margin: 5rem auto;
    padding: 0 2rem;
}

.propuesta-valor-header {
    text-align: left;
    margin-bottom: 3.5rem;
}

.propuesta-valor-header span {
    color: var(--accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.propuesta-valor-header h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    border-left: 5px solid var(--accent);
    padding-left: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.propuesta-valor-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0;
    line-height: 1.7;
}

.propuesta-valor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 2rem;
}

.propuesta-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--support);
    border-radius: 8px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.01);
    transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

.propuesta-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(0, 168, 112, 0.1);
}

.propuesta-card .propuesta-icon-wrapper {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: rgba(0, 168, 112, 0.08);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    transition: background-color 300ms ease, color 300ms ease;
}

.propuesta-card:hover .propuesta-icon-wrapper {
    background-color: var(--accent);
    color: #FFFFFF;
}

.propuesta-card .propuesta-icon-wrapper svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.propuesta-card h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.propuesta-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 992px) {
    .propuesta-valor-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* --- MÓDULO 3: SERVICIOS CORE --- */
.servicios-section {
    max-width: 1280px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.servicios-header {
    text-align: left;
    margin-bottom: 3.5rem;
}

.servicios-header h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    border-left: 5px solid var(--accent);
    padding-left: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.servicios-header p {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.servicio-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--support);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.servicio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(92, 102, 112, 0.12);
}

.servicio-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.servicio-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
}

.servicio-card h3 {
    font-size: 1.25rem;
    color: var(--primary);
    line-height: 1.4;
}

.servicio-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex-grow: 1;
}

.btn-card-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.btn-card-link:hover {
    color: var(--primary-light);
}

.btn-card-link span {
    margin-left: 0.5rem;
    transition: transform 200ms ease;
}

.btn-card-link:hover span {
    transform: translateX(4px);
}

/* --- MÓDULO 4: AUTORIDAD CORPORATIVA --- */
.autoridad-section {
    width: 100%;
    background: linear-gradient(135deg, #3A4550 0%, #1A222B 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 5rem 2rem;
}

.autoridad-container {
    max-width: 1280px;
    margin: 0 auto;
}

.autoridad-header {
    margin-bottom: 3.5rem;
    text-align: left;
}

.autoridad-subtitle {
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.autoridad-header h2 {
    color: var(--precision);
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 15px;
    border-left: 5px solid var(--accent);
    padding-left: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.autoridad-header p {
    color: #FFFFFF;
    font-family: var(--font-body);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0;
    line-height: 1.6;
    opacity: 0.9;
}

.autoridad-framework {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 3rem;
    border-left: 6px solid var(--accent);
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}

.col-autoridad {
    flex: 1;
    min-width: 280px;
    margin: 15px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.col-autoridad svg {
    width: 90px; /* Aumentado al doble para impacto y jerarquía visual */
    height: 90px;
    fill: #F8FAFC; /* Blanco brillante para máximo contraste en fondo oscuro */
    align-self: center; /* Centrar icono en la columna */
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
    transition: transform 300ms ease, fill 300ms ease;
}

.col-autoridad:hover svg {
    transform: scale(1.08);
    fill: var(--accent); /* GeoTech Green en hover para animación micro-interactiva */
}

.col-autoridad h4 {
    color: var(--precision);
    font-family: var(--font-heading);
    font-size: 1.35rem;
    text-align: center; /* Alinear título de cada columna para centrado visual */
}

.col-autoridad p {
    color: #FFFFFF;
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: justify;
}

/* --- MÓDULO 5: FAQ ACCORDION --- */
.faq-section {
    max-width: 900px;
    margin: 5rem auto;
    padding: 0 2rem;
}

.faq-header {
    margin-bottom: 3rem;
    text-align: left;
}

.faq-header h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
    border-left: 5px solid var(--accent);
    padding-left: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.faq-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0;
    line-height: 1.6;
}

/* --- MÓDULO 6: TESTIMONIOS (PRESENTACIÓN SLIDE INFINITO) --- */
.testimonios-section {
    max-width: 1280px;
    margin: 5rem auto;
    padding: 0 2rem;
}

.testimonios-header {
    margin-bottom: 3.5rem;
    text-align: left;
}

.testimonios-header h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
    border-left: 5px solid var(--accent);
    padding-left: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.testimonios-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0;
    line-height: 1.6;
}

/* Estructura del Slider / Carrusel en Presentación Infinito */
.testimonios-slider-container {
    position: relative;
    width: 100%;
    margin-top: 2rem;
    padding: 0 0.5rem;
}

.testimonios-slider-wrapper {
    overflow: hidden;
    width: 100%;
    border-radius: 16px;
    padding: 0.5rem 0;
}

.testimonios-track {
    display: flex;
    transition: transform 650ms cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.testimonio-card {
    flex: 0 0 100%;
    max-width: 100%;
    background: #FFFFFF;
    border: 1px solid rgba(27, 89, 192, 0.1);
    border-radius: 16px;
    padding: 2.2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 8px 25px rgba(92, 102, 112, 0.06);
    box-sizing: border-box;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin: 0 0.5rem;
}

/* En resoluciones medianas/grandes, mostramos 2 o 3 tarjetas por slide */
@media (min-width: 768px) {
    .testimonio-card {
        flex: 0 0 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
}

@media (min-width: 1024px) {
    .testimonio-card {
        flex: 0 0 calc(33.333% - 1rem);
        max-width: calc(33.333% - 1rem);
    }
}

.testimonio-card::before {
    content: '“';
    position: absolute;
    top: 0.8rem;
    right: 1.5rem;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: rgba(27, 89, 192, 0.08);
    line-height: 1;
    pointer-events: none;
}

.testimonio-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 168, 112, 0.35);
    box-shadow: 0 16px 35px rgba(27, 89, 192, 0.12), 0 0 20px rgba(0, 168, 112, 0.1);
}

/* Controles del Slider de Testimonios */
.testimonios-slider-container .slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(11, 19, 41, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: 0 4px 15px rgba(11, 19, 41, 0.2);
}

.testimonios-slider-container .slider-control:hover {
    background: var(--primary);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 168, 112, 0.3);
}

.testimonios-slider-container .testimonios-prev {
    left: -22px;
}

.testimonios-slider-container .testimonios-next {
    right: -22px;
}

.testimonios-slider-container .slider-control svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.testimonios-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 2.2rem;
}

.testimonios-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(92, 102, 112, 0.25);
    cursor: pointer;
    transition: all 350ms cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    padding: 0;
}

.testimonios-dots .dot:hover {
    background-color: var(--primary-light);
}

.testimonios-dots .dot.active {
    width: 32px;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    box-shadow: 0 2px 8px rgba(0, 168, 112, 0.3);
}

.testimonio-text {
    font-family: var(--font-body);
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: left;
    position: relative;
    z-index: 1;
}

.testimonio-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 0.8rem;
    border-top: 1px dashed rgba(27, 89, 192, 0.1);
}

.testimonio-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.testimonio-meta h5 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.2rem 0;
}

.testimonio-meta p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
}

/* --- MÓDULO 7: ÚLTIMAS PUBLICACIONES --- */
.blog-preview-section {
    max-width: 1280px;
    margin: 5rem auto;
    padding: 0 2rem;
    box-sizing: border-box;
    overflow: hidden;
}

.blog-preview-header {
    margin-bottom: 3.5rem;
    text-align: left;
}

.blog-preview-header h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
    border-left: 5px solid var(--accent);
    padding-left: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.blog-preview-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0;
    line-height: 1.6;
}

.blog-cards-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.8rem;
    width: 100%;
    box-sizing: border-box;
}

.blog-card {
    border: 1px solid #D7DDE3;
    padding: 0;
    background-color: #FFFFFF;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

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

.blog-category {
    color: #007A51; /* Verde oscuro de alto contraste para WCAG AA */
    font-family: var(--font-body);
    font-size: 0.78rem;
    text-transform: uppercase;
    font-weight: 700;
}

.blog-card h3 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-size: 1.05rem;
    line-height: 1.35;
    margin: 0;
}

.blog-card p {
    font-family: var(--font-body);
    color: var(--text-muted);
    line-height: 1.55;
    font-size: 0.88rem;
    text-align: justify;
    flex-grow: 1;
    margin: 0;
}

.blog-readmore {
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.4rem;
    transition: color 0.2s ease;
}

.blog-readmore:hover {
    color: var(--accent);
    text-decoration: none;
}

/* Imagen en tarjeta de blog */
.blog-card-img-link {
    display: block;
    overflow: hidden;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.blog-card-img {
    width: 100% !important;
    max-width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
    display: block;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-card-img {
    transform: scale(1.05);
}

.blog-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex-grow: 1;
    padding: 1.25rem 1.35rem 1.4rem;
    border-top: 3px solid var(--accent);
    min-width: 0;
    box-sizing: border-box;
}

.blog-card-body h3 a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    line-height: 1.35;
}

.blog-card-body h3 a:hover {
    color: var(--accent);
}


.redes-section {
    background-color: #F8FAFC;
    padding: 4rem 2rem;
    border-top: 1px solid var(--support);
    border-bottom: 1px solid var(--support);
}

.redes-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.redes-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.redes-info h3 {
    font-size: 1.8rem;
    color: var(--text-main);
}

.redes-info p {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.7;
    text-align: justify;
}

.redes-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 0.8rem;
}

.btn-social {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.8rem;
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-social::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-social:hover::before {
    left: 0;
}

.btn-social:hover {
    color: #FFFFFF !important;
    border-color: var(--primary-light);
    box-shadow: 0 8px 20px rgba(27, 89, 192, 0.25);
    transform: translateY(-2px);
}

.btn-social:active {
    transform: translateY(0) scale(0.97);
}

.btn-social.youtube {
    border-color: #FF0000;
    color: #FF0000;
}

.btn-social.youtube::before {
    background-color: #FF0000;
}

.btn-social.youtube:hover {
    border-color: #FF3333;
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.25);
}

.btn-social.instagram {
    border-color: #E1306C;
    color: #E1306C;
}

.btn-social.instagram::before {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.btn-social.instagram:hover {
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(214, 36, 159, 0.25);
}

.btn-social svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.youtube-placeholder-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.youtube-lazy-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    position: relative;
}

.youtube-lazy-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 19, 41, 0.4);
}

.play-button-overlay {
    position: relative;
    z-index: 2;
    width: 70px;
    height: 70px;
    background-color: #FF0000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 200ms ease, background-color 200ms ease;
}

.youtube-lazy-placeholder:hover .play-button-overlay {
    transform: scale(1.1);
    background-color: #E60000;
}

.play-button-overlay svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
    margin-left: 4px;
}

/* --- MÓDULO 9: SUSCRIPCIÓN --- */
.suscripcion-section {
    max-width: 900px;
    margin: 5rem auto;
    padding: 0 2rem;
}

.suscripcion-container {
    background-color: var(--support);
    padding: 3px;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
}

.suscripcion-box {
    background-color: #FFFFFF;
    padding: 3rem;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.btn-suscripcion-submit {
    background-color: #00A870;
    color: #F8FAFC;
    border: none;
    padding: 12px 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    width: 100%;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-suscripcion-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 25%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: left 0.6s ease-in-out;
    z-index: -1;
}

.btn-suscripcion-submit:hover::after {
    left: 125%;
}

.btn-suscripcion-submit:hover {
    transform: translateY(-2px);
    background-color: #00C281;
    box-shadow: 0 8px 25px rgba(0, 168, 112, 0.35);
}

.btn-suscripcion-submit:active {
    transform: translateY(0) scale(0.98);
}

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

.suscripcion-header h3 {
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.suscripcion-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Form Styles */
.form-grid-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* --- MÓDULO 10: CTA FINAL --- */
.cta-final-section {
    width: 100%;
    background-color: var(--primary);
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.cta-final-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.btn-whatsapp-core {
    background-color: #F5B400;
    color: #0B1329;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: inline-block;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-whatsapp-core::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 25%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: left 0.6s ease-in-out;
    z-index: -1;
}

.btn-whatsapp-core:hover::after {
    left: 125%;
}

.btn-whatsapp-core:hover {
    transform: translateY(-3px) scale(1.02);
    background-color: #FFC425;
    box-shadow: 0 12px 30px rgba(245, 180, 0, 0.45);
}

.btn-whatsapp-core:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-form-internal {
    background-color: transparent;
    color: #F8FAFC;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    padding: 15px 35px;
    text-decoration: none;
    border: 2px solid #F8FAFC;
    border-radius: 4px;
    font-size: 1.1rem;
    display: inline-block;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-form-internal:hover {
    transform: translateY(-3px);
    background-color: #FFFFFF;
    color: var(--primary);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.btn-form-internal:active {
    transform: translateY(-1px) scale(0.98);
}

.cta-final-section h2 {
    font-size: 2.6rem;
    color: #FFFFFF;
    line-height: 1.25;
}

.cta-final-desc {
    color: #CBD5E1; /* Azul hielo discreto - no blanco puro para reducir contraste extremo */
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 850px;
    margin: 0 auto;
    text-align: justify;
}

.cta-watermark {
    position: absolute;
    bottom: -50px;
    right: -50px;
    opacity: 0.06;
    width: 450px;
    pointer-events: none;
    z-index: 1;
}

/* --- ESTILIZACIÓN DE ENLACES ESTRATÉGICOS DENTRO DEL TEXTO (CON SUBRAYADO DE ACCESIBILIDAD, CON ANIMACIÓN HOVER) --- */
main p a {
    color: #007A51; /* GeoTech Green Oscurecido - contraste WCAG >4.5:1 en fondo blanco/gris */
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(0, 122, 81, 0.4);
    text-underline-offset: 3px;
    background-image: linear-gradient(#007A51, #007A51);
    background-size: 0% 1.5px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: color 0.3s ease, background-size 0.3s ease, text-decoration-color 0.3s ease;
}

main p a:hover {
    color: var(--accent); /* GeoTech Green Oficial (#00A870) */
    background-size: 100% 1.5px;
    background-image: linear-gradient(var(--precision), var(--precision)); /* Laser Gold slide-in */
    text-shadow: 0 0 10px rgba(0, 168, 112, 0.15);
    text-decoration-color: var(--precision);
}

/* SOBRESCRITURAS DE CONTRASTE PARA ENLACES EN SECCIONES DE FONDO OSCURO */
.hero-slide p a {
    color: var(--accent) !important; /* GeoTech Green brillante (#00A870) para fondo oscuro */
    text-decoration: underline !important;
    text-decoration-color: rgba(0, 168, 112, 0.4) !important;
    text-underline-offset: 3px;
    background-image: linear-gradient(var(--accent), var(--accent)) !important;
    background-size: 0% 1.5px !important;
    background-position: 0 100% !important;
    background-repeat: no-repeat !important;
    transition: color 0.3s ease, background-size 0.3s ease, text-decoration-color 0.3s ease !important;
}

.hero-slide p a:hover {
    color: #FFFFFF !important;
    background-size: 100% 1.5px !important;
    background-image: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7)) !important;
    text-shadow: 0 0 8px rgba(0, 168, 112, 0.4) !important;
    text-decoration-color: #FFFFFF !important;
}

.autoridad-section a {
    color: #00D18C !important; /* Verde técnico de alto contraste para fondo gris oscuro */
    text-decoration: underline !important;
    text-decoration-color: rgba(0, 209, 140, 0.4) !important;
    text-underline-offset: 3px;
    background-image: linear-gradient(#00D18C, #00D18C) !important;
    background-size: 0% 1.5px !important;
    background-position: 0 100% !important;
    background-repeat: no-repeat !important;
    font-weight: 700 !important;
    transition: color 0.3s ease, background-size 0.3s ease, text-decoration-color 0.3s ease !important;
}

.autoridad-section a:hover {
    color: #FFFFFF !important;
    background-size: 100% 1.5px !important;
    background-image: linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)) !important;
    text-shadow: 0 0 8px rgba(0, 209, 140, 0.5) !important;
    text-decoration-color: #FFFFFF !important;
}

.cta-final-section p a {
    color: #E2E8F0 !important; /* Azul hielo suave - no blanco puro - sobre fondo azul primario */
    text-decoration: underline !important;
    text-decoration-color: rgba(226, 232, 240, 0.4) !important;
    text-underline-offset: 3px;
    background-image: linear-gradient(var(--precision), var(--precision)) !important; /* Laser Gold slide-in */
    background-size: 0% 1.5px !important;
    background-position: 0 100% !important;
    background-repeat: no-repeat !important;
    transition: color 0.3s ease, background-size 0.3s ease, text-decoration-color 0.3s ease !important;
}

.cta-final-section p a:hover {
    color: var(--precision) !important; /* Laser Gold */
    background-size: 100% 1.5px !important;
    text-shadow: 0 0 8px rgba(245, 180, 0, 0.3) !important;
    text-decoration-color: var(--precision) !important;
}

/* --- DIVISORES DE SECCIÓN SUTILES DE ALTA INGENIERÍA --- */
main > section:not(:first-of-type) {
    position: relative;
}

main > section:not(:first-of-type)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(27, 89, 192, 0.12) 20%, 
        rgba(0, 168, 112, 0.18) 50%, 
        rgba(27, 89, 192, 0.12) 80%, 
        transparent 100%
    );
}

/* --- DISEÑO DE FONDOS PREMIUM CON MÁS DIVERSIFICACIÓN --- */
main > section.beneficios-section {
    background: 
        radial-gradient(circle at 10% 20%, rgba(0, 168, 112, 0.02) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(27, 89, 192, 0.015) 0%, transparent 45%),
        #FFFFFF;
    border: 1px solid rgba(27, 89, 192, 0.05);
    box-shadow: 0 10px 30px rgba(27, 89, 192, 0.01);
}

main > section.servicios-section {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.6) 0%, rgba(27, 89, 192, 0.02) 100%);
    background-image: radial-gradient(rgba(27, 89, 192, 0.035) 1.2px, transparent 1.2px);
    background-size: 24px 24px;
    border: 1px solid rgba(27, 89, 192, 0.06);
    box-shadow: 0 10px 30px rgba(27, 89, 192, 0.02);
}

main > section.faq-section {
    background: 
        radial-gradient(circle at 95% 10%, rgba(245, 180, 0, 0.02) 0%, transparent 35%),
        radial-gradient(circle at 5% 90%, rgba(27, 89, 192, 0.025) 0%, transparent 40%),
        #FFFFFF;
    border: 1px solid rgba(92, 102, 112, 0.06);
    box-shadow: 0 10px 30px rgba(11, 19, 41, 0.01);
}

main > section.testimonios-section {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, rgba(0, 168, 112, 0.015) 100%);
    border: 1px solid rgba(27, 89, 192, 0.06);
    box-shadow: 0 10px 30px rgba(27, 89, 192, 0.02);
}

main > section.blog-preview-section {
    background: 
        radial-gradient(circle at 50% 50%, rgba(0, 168, 112, 0.02) 0%, rgba(27, 89, 192, 0.03) 100%),
        #FFFFFF;
    border: 1px solid rgba(92, 102, 112, 0.08);
    box-shadow: 0 10px 35px rgba(27, 89, 192, 0.03);
}

main > section.redes-section {
    background: linear-gradient(180deg, #F8FAFC 0%, rgba(27, 89, 192, 0.03) 100%);
    border-top: 1px solid var(--support);
    border-bottom: 1px solid var(--support);
}

main > section.suscripcion-section {
    background: linear-gradient(135deg, rgba(27, 89, 192, 0.04) 0%, rgba(0, 168, 112, 0.02) 100%), #FFFFFF;
    border: 1px solid rgba(27, 89, 192, 0.06);
    box-shadow: 0 10px 30px rgba(27, 89, 192, 0.03);
}

/* --- ANIMACIONES DE TRANSPORTE Y MICRO-INTERACCIONES (CARDS ÉLITE) --- */
.servicio-card {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.4s ease, 
                border-color 0.4s ease;
}

.servicio-card:hover {
    transform: translateY(-8px) scale(1.025);
    border-color: var(--accent);
    box-shadow: 0 15px 40px rgba(0, 168, 112, 0.14);
}

.testimonio-card {
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.35s ease, 
                border-color 0.35s ease;
}

.testimonio-card:hover {
    transform: translateY(-6px);
    border-color: rgba(27, 89, 192, 0.2);
    box-shadow: 0 12px 35px rgba(27, 89, 192, 0.1);
}

.blog-card {
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.35s ease, 
                border-color 0.35s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 12px 35px rgba(0, 168, 112, 0.1);
}

/* --- RESPONSIVIDAD GENERAL --- */
@media (max-width: 1024px) {
    .servicios-grid,
    .testimonios-grid,
    .blog-cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-text-wrapper h1,
    .hero-text-wrapper h2 {
        font-size: 2.6rem;
    }

    .beneficios-section,
    .redes-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .beneficios-img-col::after {
        display: none;
    }

    .beneficios-img-wrapper {
        max-width: 100%;
    }

    .beneficios-img-wrapper img {
        aspect-ratio: 16/9;
    }
}

@media (max-width: 768px) {
    .hero-slider-container {
        height: auto;
        min-height: 85vh;
    }

    .hero-slide {
        align-items: flex-start !important;
    }

    .hero-content-wrapper {
        padding-top: 8.5rem !important;
        padding-bottom: 3rem !important;
    }

    .hero-text-wrapper h1,
    .hero-text-wrapper h2 {
        font-size: 2.2rem;
    }

    .hero-actions-wrapper {
        flex-direction: column;
    }

    .btn-elite-primary, .btn-elite-whatsapp {
        width: 100%;
    }

    .servicios-grid,
    .testimonios-grid,
    .blog-cards-container {
        grid-template-columns: 1fr;
    }

    .form-grid-inputs {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .cta-final-section h2 {
        font-size: 2rem;
    }

    .cta-final-buttons {
        flex-direction: column;
    }
    
    .btn-whatsapp-core,
    .btn-form-internal {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-text-wrapper h1,
    .hero-text-wrapper h2 {
        font-size: 1.85rem !important;
    }

    .hero-content-wrapper {
        padding-top: 7rem !important;
        padding-bottom: 2rem !important;
    }

    .premium-copy-hero {
        font-size: 0.95rem !important;
    }

    .btn-elite-primary, .btn-elite-whatsapp {
        padding: 0.8rem 1.5rem !important;
        font-size: 0.95rem !important;
    }

    .slider-control {
        display: none !important; /* Ocultar controles del slider en móviles pequeños para evitar desbordes */
    }

    .propuesta-card {
        padding: 1.5rem !important;
    }

    .suscripcion-box {
        padding: 1.5rem !important;
    }

    .cta-final-section h2 {
        font-size: 1.7rem !important;
    }

    .cta-final-desc {
        font-size: 0.95rem !important;
    }

    .h2-section-title,
    .servicios-header h2,
    .beneficios-section h2,
    .propuesta-valor-header h2,
    .autoridad-header h2,
    .faq-header h2,
    .testimonios-header h2,
    .blog-preview-header h2 {
        font-size: 1.4rem !important;
        padding-left: 0.8rem !important;
        margin-bottom: 1.2rem !important;
    }

    .col-autoridad svg {
        width: 60px !important;
        height: 60px !important;
    }

    .col-autoridad h4 {
        font-size: 1.15rem !important;
    }

    .autoridad-framework {
        padding: 1.5rem !important;
    }
}

/* --- SOPORTE TÁCTIL Y FEEDBACK MÓVIL (SIN HOVER PEGAJOSO) --- */
@media (hover: none) {
    .btn-elite-primary:active, 
    .btn-elite-whatsapp:active, 
    .btn-whatsapp-core:active, 
    .btn-suscripcion-submit:active,
    .btn-form-internal:active,
    .btn-social:active,
    .slider-control:active,
    .testimonios-slider-container .slider-control:active {
        transform: scale(0.95) !important;
        opacity: 0.9 !important;
        transition: transform 100ms ease !important;
    }
}

/* ==============================================================================
   MÓDULO 7: NUESTROS CLIENTES Y ALIADOS ESTRATÉGICOS (SLIDE 2 FILAS - 5 COLS)
   ============================================================================== */
.aliados-section {
    width: 100%;
    max-width: 1280px;
    margin: 5rem auto;
    padding: 0 2rem;
    position: relative;
}

.aliados-header {
    margin-bottom: 3rem;
    text-align: left;
}

.aliados-header h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
    border-left: 5px solid var(--accent);
    padding-left: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.aliados-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 850px;
    margin: 0;
    line-height: 1.6;
}

/* Contenedor del Slider / Marquee a lo ancho de la página */
.aliados-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* Degradado de desvanecimiento elegante en los bordes */
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 1) 4%, rgba(0, 0, 0, 1) 96%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 1) 4%, rgba(0, 0, 0, 1) 96%, transparent 100%);
}

.aliados-row {
    display: flex;
    width: 100%;
    overflow: hidden;
    user-select: none;
}

.aliados-track {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: max-content;
    will-change: transform;
}

/* Fila 1 deslíza hacia la izquierda */
.aliados-row-1 .aliados-track {
    animation: marqueeLeft 35s linear infinite;
}

/* Fila 2 deslíza hacia la derecha */
.aliados-row-2 .aliados-track {
    animation: marqueeRight 35s linear infinite;
}

/* Pausar animación en hover */
.aliados-slider-container:hover .aliados-track {
    animation-play-state: paused;
}

/* Tarjeta individual de aliado (5 columnas en desktop) */
.aliado-card {
    flex: 0 0 calc(250px);
    width: 250px;
    height: 120px;
    background: var(--bg-surface);
    border: 1px solid rgba(27, 89, 192, 0.1);
    border-radius: 14px;
    padding: 0.4rem 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(92, 102, 112, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.aliado-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.aliado-card img {
    max-width: 96%;
    max-height: 105px;
    object-fit: contain;
    filter: grayscale(35%) opacity(0.9);
    transition: all 0.35s ease;
}

.aliado-card:hover {
    transform: translateY(-6px) scale(1.04);
    border-color: rgba(0, 168, 112, 0.35);
    box-shadow: 0 14px 32px rgba(27, 89, 192, 0.15), 0 0 20px rgba(0, 168, 112, 0.2);
    background: #FFFFFF;
}

.aliado-card:hover::before {
    opacity: 1;
}

.aliado-card:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.06);
}

/* Keyframes de animación infinita sin saltos */
@keyframes marqueeLeft {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(calc(-50% - 0.75rem), 0, 0);
    }
}

@keyframes marqueeRight {
    0% {
        transform: translate3d(calc(-50% - 0.75rem), 0, 0);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

/* --- MODAL LIGHTBOX DE VISTA AMPLIADA DE ALIADOS --- */
.aliado-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 19, 41, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem;
}

.aliado-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.aliado-modal-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 540px;
    width: 100%;
    position: relative;
    box-shadow: 0 25px 50px rgba(11, 19, 41, 0.35), 0 0 30px rgba(0, 168, 112, 0.25);
    border: 1px solid rgba(27, 89, 192, 0.15);
    transform: scale(0.85);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
}

.aliado-modal-overlay.active .aliado-modal-card {
    transform: scale(1);
}

.aliado-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.aliado-modal-close:hover {
    background: var(--primary);
    color: #FFFFFF;
    transform: rotate(90deg);
}

.aliado-modal-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(0, 168, 112, 0.1);
    color: var(--accent-hover);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.aliado-modal-img-wrapper {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(92, 102, 112, 0.1);
}

.aliado-modal-img-wrapper img {
    max-width: 100%;
    max-height: 135px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.aliado-modal-card h3 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    color: var(--primary);
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.aliado-modal-subtitle {
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* Adaptación responsive */
@media (max-width: 1024px) {
    .aliado-card {
        flex: 0 0 210px;
        width: 210px;
        height: 105px;
        padding: 0.4rem 0.6rem;
    }
    .aliado-card img {
        max-height: 85px;
    }
}

@media (max-width: 768px) {
    .aliados-section {
        margin: 3.5rem auto;
        padding: 0 1rem;
    }
    .aliados-header h2 {
        font-size: 1.4rem !important;
        padding-left: 0.8rem !important;
    }
    .aliado-card {
        flex: 0 0 175px;
        width: 175px;
        height: 90px;
        padding: 0.3rem 0.5rem;
    }
    .aliado-card img {
        max-height: 72px;
    }
    .aliados-row-1 .aliados-track,
    .aliados-row-2 .aliados-track {
        animation-duration: 25s;
    }
    .aliado-modal-card {
        padding: 1.8rem 1.2rem;
    }
    .aliado-modal-img-wrapper {
        height: 140px;
    }
    .aliado-modal-img-wrapper img {
        max-height: 100px;
    }
}



