/**
 * Edit Innovation — Index Visual Refresh
 * Solo afecta a index.html (secciones debajo del hero)
 * El hero se deja intacto por petición del usuario
 * v2026-04-11
 */

/* ============================================
   1. VARIABLES DEL REFRESH
   ============================================ */
:root {
    --ei-teal: #0D9488;
    --ei-teal-light: #14B8A6;
    --ei-teal-dark: #115E59;
    --ei-ink: #0F172A;
    --ei-ink-soft: #334155;
    --ei-muted: #64748B;
    --ei-bg-soft: #F8FAFC;
    --ei-border: rgba(13, 148, 136, 0.12);
    --ei-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --ei-shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
    --ei-shadow-lg: 0 24px 48px rgba(13, 148, 136, 0.18);
    --ei-radius: 18px;
    --ei-radius-lg: 28px;
}

/* ============================================
   2. SECTIONS: padding y fondos modernos
   (IMPORTANTE: excluye .hero-section para no romper el stacking)
   ============================================ */
main > section:not(.hero-section) {
    position: relative;
    overflow: hidden;
}

main > section.products-section,
main > section.bg-light {
    padding: 100px 0 !important;
}

/* Fondo decorativo con blobs suaves */
main > section.products-section::before,
main > section.bg-light::before {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, rgba(13, 148, 136, 0) 70%);
    top: -200px;
    right: -150px;
    pointer-events: none;
    z-index: 0;
}

main > section.products-section::after,
main > section.bg-light::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.06) 0%, rgba(20, 184, 166, 0) 70%);
    bottom: -180px;
    left: -120px;
    pointer-events: none;
    z-index: 0;
}

/* Container por encima de los blobs decorativos — excluye hero */
main > section:not(.hero-section) > .container {
    position: relative;
    z-index: 1;
}

/* ============================================
   3. SECTION TITLES — tipografía editorial
   ============================================ */
main > section .section-title {
    margin-bottom: 72px;
    text-align: center;
}

main > section .section-title h2 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    color: var(--ei-ink);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 18px;
}

main > section .section-title h2 .text-gradient {
    background: linear-gradient(135deg, var(--ei-teal) 0%, var(--ei-teal-light) 60%, #06B6D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

main > section .section-title p {
    font-size: 1.15rem;
    color: var(--ei-muted);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Línea decorativa debajo del título */
main > section .section-title::after {
    content: '';
    display: block;
    width: 64px;
    height: 4px;
    margin: 24px auto 0;
    background: linear-gradient(90deg, var(--ei-teal), var(--ei-teal-light));
    border-radius: 4px;
}

main > section .bg-gradient-primary .section-title::after,
main > section .text-white .section-title::after {
    background: linear-gradient(90deg, #ffffff, rgba(255,255,255,0.5));
}

main > section .bg-gradient-primary .section-title h2,
main > section .text-white .section-title h2,
main > section .bg-gradient-primary .section-title p,
main > section .text-white .section-title p {
    color: #ffffff;
}

/* ============================================
   4. PRODUCT / SERVICE CARDS — glassmorphism moderno
   ============================================ */
main > section .product-card,
main > section .service-card,
main > section .expertise-card {
    background: #ffffff;
    border-radius: var(--ei-radius) !important;
    padding: 0;
    border: 1px solid var(--ei-border);
    box-shadow: var(--ei-shadow-sm);
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

/* Acento superior con gradiente */
main > section .product-card::before,
main > section .service-card::before,
main > section .expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ei-teal) 0%, var(--ei-teal-light) 50%, #06B6D4 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

main > section .product-card:hover,
main > section .service-card:hover,
main > section .expertise-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--ei-shadow-lg);
    border-color: rgba(13, 148, 136, 0.28);
}

main > section .product-card:hover::before,
main > section .service-card:hover::before,
main > section .expertise-card:hover::before {
    transform: scaleX(1);
}

main > section .product-card .card-body,
main > section .service-card .card-body {
    padding: 32px 28px !important;
}

main > section .product-card .card-title,
main > section .service-card .card-title {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: var(--ei-ink) !important;
    margin-bottom: 14px !important;
    letter-spacing: -0.02em;
}

main > section .product-card .card-text,
main > section .service-card .card-text {
    color: var(--ei-ink-soft) !important;
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 22px;
}

/* Icono de servicio en círculo con gradiente */
main > section .service-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.12), rgba(20, 184, 166, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 32px auto 0;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

main > section .service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
}

main > section .service-icon i {
    font-size: 2rem !important;
    background: linear-gradient(135deg, var(--ei-teal), var(--ei-teal-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Feature tags con nueva cara */
main > section .feature-tag {
    display: inline-block;
    padding: 6px 12px;
    margin: 4px 4px 4px 0;
    background: rgba(13, 148, 136, 0.08);
    color: var(--ei-teal-dark) !important;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid rgba(13, 148, 136, 0.15);
    transition: all 0.3s ease;
}

main > section .product-card:hover .feature-tag,
main > section .service-card:hover .feature-tag {
    background: rgba(13, 148, 136, 0.14);
    border-color: rgba(13, 148, 136, 0.25);
}

main > section .service-features,
main > section .product-features {
    margin: 18px 0 24px;
}

/* Botón "Conocer más" moderno */
main > section .product-card .btn,
main > section .service-card .btn {
    background: var(--ei-ink) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 28px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 0.92rem !important;
    letter-spacing: 0.02em;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

main > section .product-card .btn::after,
main > section .service-card .btn::after {
    content: '→';
    transition: transform 0.3s ease;
}

main > section .product-card .btn:hover,
main > section .service-card .btn:hover {
    background: var(--ei-teal) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.35);
}

main > section .product-card .btn:hover::after,
main > section .service-card .btn:hover::after {
    transform: translateX(4px);
}

/* Cards con estilo custom (EditHub, SalonHub, etc.) — respetar sus colores */
main > section .product-card[style*="border"] .btn {
    color: #ffffff !important;
}

/* ============================================
   5. IMAGEN DENTRO DE CARDS (Edit Box, Red Counter)
   ============================================ */
main > section .product-card .card-img-top {
    border-radius: var(--ei-radius) var(--ei-radius) 0 0 !important;
    height: 240px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

main > section .product-card:hover .card-img-top {
    transform: scale(1.05);
}

/* ============================================
   6. EXPERTISE CARDS (¿Por qué elegir?)
   ============================================ */
main > section .expertise-card {
    padding: 44px 32px !important;
    text-align: center;
}

main > section .expertise-icon {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--ei-teal) 0%, var(--ei-teal-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 12px 24px rgba(13, 148, 136, 0.25);
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

main > section .expertise-card:hover .expertise-icon {
    transform: scale(1.1) rotate(5deg);
}

main > section .expertise-icon i {
    font-size: 2.3rem !important;
    color: #ffffff !important;
}

main > section .expertise-card h5 {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--ei-ink) !important;
    margin-bottom: 14px !important;
}

main > section .expertise-card p {
    color: var(--ei-muted) !important;
    font-size: 0.98rem !important;
    line-height: 1.65;
}

/* ============================================
   7. STATS SECTION (Impacto Comprobado)
   ============================================ */
main > section.bg-gradient-primary {
    background: linear-gradient(135deg, #0D9488 0%, #115E59 50%, #0F766E 100%) !important;
    position: relative;
}

/* Patrón de puntos decorativo */
main > section.bg-gradient-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.08) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
}

main > section.bg-gradient-primary .stat-item {
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--ei-radius);
    transition: all 0.4s ease;
}

main > section.bg-gradient-primary .stat-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.25);
}

main > section.bg-gradient-primary .stat-item i {
    font-size: 2.5rem !important;
    margin-bottom: 16px !important;
    opacity: 0.95;
}

main > section.bg-gradient-primary .stat-item h3,
main > section.bg-gradient-primary .stat-item .counter {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem !important;
    font-weight: 800 !important;
    margin: 10px 0 !important;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 24px rgba(255, 255, 255, 0.2);
    letter-spacing: -0.02em;
}

main > section.bg-gradient-primary .stat-item p {
    font-size: 0.95rem !important;
    opacity: 0.92;
    font-weight: 500;
    margin-bottom: 0 !important;
}

/* ============================================
   8. FAQ SECTION — acordeón premium
   ============================================ */
main > section#preguntas-frecuentes .card {
    border-radius: 16px !important;
    border: 1px solid var(--ei-border) !important;
    box-shadow: var(--ei-shadow-sm) !important;
    margin-bottom: 14px !important;
    transition: all 0.3s ease;
    overflow: hidden;
}

main > section#preguntas-frecuentes .card:hover {
    box-shadow: var(--ei-shadow-md) !important;
    border-color: rgba(13, 148, 136, 0.25) !important;
    transform: translateY(-2px);
}

main > section#preguntas-frecuentes .card-header {
    background: transparent !important;
    padding: 8px !important;
    border: none !important;
    border-radius: 16px 16px 0 0 !important;
}

main > section#preguntas-frecuentes .card-header button {
    padding: 20px 24px !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    color: var(--ei-ink) !important;
    transition: color 0.3s ease;
}

main > section#preguntas-frecuentes .card-header button:not(.collapsed) {
    color: var(--ei-teal) !important;
}

main > section#preguntas-frecuentes .card-body {
    padding: 0 28px 24px 28px !important;
    color: var(--ei-ink-soft) !important;
    font-size: 1rem;
    line-height: 1.75;
}

main > section#preguntas-frecuentes .card-body p {
    color: var(--ei-ink-soft) !important;
}

main > section#preguntas-frecuentes .card-body strong {
    color: var(--ei-teal-dark) !important;
}

main > section#preguntas-frecuentes .card-body a.text-gradient {
    font-weight: 700 !important;
    text-decoration: none;
    border-bottom: 2px solid var(--ei-teal);
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

main > section#preguntas-frecuentes .card-body a.text-gradient:hover {
    border-bottom-color: var(--ei-teal-dark);
}

/* ============================================
   9. CTA FINAL — más premium
   ============================================ */
main > section.bg-gradient-primary.text-white:last-of-type,
main > section.bg-gradient-primary:last-child {
    padding: 120px 0 !important;
    background: linear-gradient(135deg, #0F172A 0%, #0D9488 60%, #14B8A6 100%) !important;
    position: relative;
}

main > section.bg-gradient-primary.text-white:last-of-type::before,
main > section.bg-gradient-primary:last-child::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.15) 0%, transparent 45%);
    pointer-events: none;
}

main > section.bg-gradient-primary.text-white:last-of-type h2,
main > section.bg-gradient-primary:last-child h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.6rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em;
    margin-bottom: 24px !important;
}

main > section.bg-gradient-primary.text-white:last-of-type .lead,
main > section.bg-gradient-primary:last-child .lead {
    font-size: 1.2rem !important;
    opacity: 0.95;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
}

main > section.bg-gradient-primary.text-white:last-of-type .btn-light,
main > section.bg-gradient-primary:last-child .btn-light {
    background: #ffffff !important;
    color: var(--ei-teal-dark) !important;
    padding: 16px 40px !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    border-radius: 14px !important;
    border: none !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease !important;
}

main > section.bg-gradient-primary.text-white:last-of-type .btn-light:hover,
main > section.bg-gradient-primary:last-child .btn-light:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

main > section.bg-gradient-primary.text-white:last-of-type .btn-outline-light,
main > section.bg-gradient-primary:last-child .btn-outline-light {
    padding: 16px 40px !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    border-radius: 14px !important;
    border: 2px solid rgba(255, 255, 255, 0.6) !important;
    transition: all 0.3s ease !important;
}

main > section.bg-gradient-primary.text-white:last-of-type .btn-outline-light:hover,
main > section.bg-gradient-primary:last-child .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: #ffffff !important;
    transform: translateY(-4px);
}

/* ============================================
   10. EDITHUB DESTACADO — un poco de pulido
   ============================================ */
main > section.py-5[style*="linear-gradient(135deg, #0D9488"] {
    padding: 100px 0 !important;
    position: relative;
}

main > section.py-5[style*="linear-gradient(135deg, #0D9488"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0);
    background-size: 28px 28px;
    pointer-events: none;
}

main > section.py-5[style*="linear-gradient(135deg, #0D9488"] .container {
    position: relative;
    z-index: 1;
}

main > section.py-5[style*="linear-gradient(135deg, #0D9488"] h2.display-4 {
    font-size: clamp(2.5rem, 5vw, 4rem) !important;
    letter-spacing: -0.03em;
}

/* ============================================
   11. ANIMACIONES DE ENTRADA (scroll)
   ============================================ */
@keyframes ei-fade-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main > section:not(.hero-section) .product-card,
main > section:not(.hero-section) .service-card,
main > section:not(.hero-section) .expertise-card,
main > section:not(.hero-section) .stat-item {
    animation: ei-fade-up 0.7s ease-out both;
}

main > section .row > div:nth-child(2) .product-card,
main > section .row > div:nth-child(2) .service-card,
main > section .row > div:nth-child(2) .expertise-card {
    animation-delay: 0.1s;
}

main > section .row > div:nth-child(3) .product-card,
main > section .row > div:nth-child(3) .service-card,
main > section .row > div:nth-child(3) .expertise-card {
    animation-delay: 0.2s;
}

main > section .row > div:nth-child(4) .product-card,
main > section .row > div:nth-child(4) .service-card {
    animation-delay: 0.3s;
}

/* Respeta usuarios con motion sickness */
@media (prefers-reduced-motion: reduce) {
    main > section:not(.hero-section) .product-card,
    main > section:not(.hero-section) .service-card,
    main > section:not(.hero-section) .expertise-card,
    main > section:not(.hero-section) .stat-item {
        animation: none;
    }

    main > section:not(.hero-section) .product-card:hover,
    main > section:not(.hero-section) .service-card:hover,
    main > section:not(.hero-section) .expertise-card:hover {
        transform: none;
    }
}

/* ============================================
   12. RESPONSIVE — ajustes móvil
   ============================================ */
@media (max-width: 768px) {
    main > section.products-section,
    main > section.bg-light {
        padding: 70px 0 !important;
    }

    main > section .section-title {
        margin-bottom: 48px;
    }

    main > section .section-title h2 {
        font-size: 2rem;
    }

    main > section .section-title p {
        font-size: 1rem;
        padding: 0 16px;
    }

    main > section .product-card .card-body,
    main > section .service-card .card-body {
        padding: 26px 22px !important;
    }

    main > section .expertise-card {
        padding: 36px 24px !important;
    }

    main > section.bg-gradient-primary .stat-item h3,
    main > section.bg-gradient-primary .stat-item .counter {
        font-size: 2.8rem !important;
    }

    main > section.bg-gradient-primary.text-white:last-of-type,
    main > section.bg-gradient-primary:last-child {
        padding: 80px 0 !important;
    }

    main > section#preguntas-frecuentes .card-header button {
        padding: 18px 20px !important;
        font-size: 0.98rem !important;
    }

    main > section#preguntas-frecuentes .card-body {
        padding: 0 22px 20px 22px !important;
    }
}

@media (max-width: 480px) {
    main > section .section-title h2 {
        font-size: 1.75rem;
    }
}

/* ============================================
   13. SERVICIOS.HTML — reglas específicas
   (algunas secciones usan h2.section-title directo
    en lugar de div.section-title > h2)
   ============================================ */

/* Sección "Software Empresarial" usa py-5 + inline background */
main > section.py-5[style*="#f8f9fa"],
main > section.py-5[style*="#F8F9FA"] {
    padding: 100px 0 !important;
    position: relative;
    overflow: hidden;
    background: #F8FAFC !important;
}

main > section.py-5[style*="#f8f9fa"]::before,
main > section.py-5[style*="#F8F9FA"]::before {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, rgba(13, 148, 136, 0) 70%);
    top: -200px;
    right: -150px;
    pointer-events: none;
    z-index: 0;
}

main > section.py-5[style*="#f8f9fa"]::after,
main > section.py-5[style*="#F8F9FA"]::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.06) 0%, rgba(20, 184, 166, 0) 70%);
    bottom: -180px;
    left: -120px;
    pointer-events: none;
    z-index: 0;
}

main > section.py-5[style*="#f8f9fa"] > .container,
main > section.py-5[style*="#F8F9FA"] > .container {
    position: relative;
    z-index: 1;
}

/* h2.section-title usado como título directo (no como wrapper) */
main > section:not(.hero-section) h2.section-title {
    display: block;
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    color: var(--ei-ink);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 18px;
    text-align: center;
}

main > section:not(.hero-section) h2.section-title::after {
    content: '';
    display: block;
    width: 64px;
    height: 4px;
    margin: 24px auto 0;
    background: linear-gradient(90deg, var(--ei-teal), var(--ei-teal-light));
    border-radius: 4px;
}

main > section:not(.hero-section) .section-subtitle {
    font-size: 1.15rem;
    color: var(--ei-muted);
    max-width: 680px;
    margin: 18px auto 0;
    line-height: 1.6;
    text-align: center;
    display: block;
}

/* El text-center mb-5 wrapper del título en servicios */
main > section.py-5 .text-center.mb-5 {
    margin-bottom: 72px !important;
}

/* CTA grande "Ver Todos los Productos" al final de una sección */
main > section.py-5 .text-center.mt-5 {
    margin-top: 60px !important;
}

main > section.py-5 .text-center.mt-5 .btn-primary {
    background: linear-gradient(135deg, var(--ei-teal) 0%, var(--ei-teal-light) 100%) !important;
    border: none !important;
    padding: 18px 48px !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 40px rgba(13, 148, 136, 0.3);
    transition: all 0.3s ease !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

main > section.py-5 .text-center.mt-5 .btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 24px 48px rgba(13, 148, 136, 0.45);
}

/* ============================================
   14. SECCIÓN "POR QUÉ ELEGIR" con features list
   (la de servicios.html — no es stats, es feature items)
   ============================================ */
main > section.bg-gradient-primary.text-white.py-5 {
    padding: 110px 0 !important;
    background: linear-gradient(135deg, #0D9488 0%, #115E59 50%, #0F766E 100%) !important;
    position: relative;
    overflow: hidden;
}

main > section.bg-gradient-primary.text-white.py-5::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.08) 1px, transparent 0);
    background-size: 26px 26px;
    pointer-events: none;
}

main > section.bg-gradient-primary.text-white.py-5 > .container {
    position: relative;
    z-index: 1;
}

main > section.bg-gradient-primary.text-white.py-5 h2 {
    font-size: clamp(2rem, 4vw, 3rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em;
    margin-bottom: 42px !important;
}

/* Items de "Por qué elegir" con glassmorphism */
main > section.bg-gradient-primary.text-white.py-5 .d-flex.align-items-center {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 22px 20px;
    transition: all 0.35s ease;
    min-height: 100%;
}

main > section.bg-gradient-primary.text-white.py-5 .col-md-6 {
    display: flex;
}

main > section.bg-gradient-primary.text-white.py-5 .d-flex.align-items-center:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.25);
}

main > section.bg-gradient-primary.text-white.py-5 .d-flex.align-items-center i {
    font-size: 1.8rem !important;
    opacity: 0.95;
    flex-shrink: 0;
    width: 48px;
    text-align: center;
}

main > section.bg-gradient-primary.text-white.py-5 .d-flex.align-items-center h5 {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
    color: #ffffff !important;
}

main > section.bg-gradient-primary.text-white.py-5 .d-flex.align-items-center p {
    font-size: 0.9rem !important;
    opacity: 0.85;
    line-height: 1.4;
    margin-bottom: 0 !important;
    color: rgba(255, 255, 255, 0.88) !important;
}

/* Imagen del equipo con tratamiento moderno */
main > section.bg-gradient-primary.text-white.py-5 img {
    border-radius: 20px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    transition: transform 0.5s ease;
}

main > section.bg-gradient-primary.text-white.py-5 img:hover {
    transform: scale(1.02);
}

/* Responsive ajustes para servicios */
@media (max-width: 768px) {
    main > section.py-5[style*="#f8f9fa"],
    main > section.py-5[style*="#F8F9FA"] {
        padding: 70px 0 !important;
    }

    main > section.py-5 .text-center.mb-5 {
        margin-bottom: 48px !important;
    }

    main > section.bg-gradient-primary.text-white.py-5 {
        padding: 70px 0 !important;
    }

    main > section.bg-gradient-primary.text-white.py-5 h2 {
        font-size: 1.9rem !important;
        text-align: center;
    }

    main > section.bg-gradient-primary.text-white.py-5 .d-flex.align-items-center {
        padding: 18px 16px;
    }
}

/* ============================================
   15. NOSOTROS.HTML — reglas específicas
   ============================================ */

/* 15a. Section title alineado a la izquierda (sección Historia) */
main > section:not(.hero-section) .section-title.text-left {
    text-align: left !important;
    margin-bottom: 32px;
}

main > section:not(.hero-section) .section-title.text-left h2 {
    text-align: left !important;
}

main > section:not(.hero-section) .section-title.text-left::after {
    margin-left: 0 !important;
    margin-right: auto;
}

main > section:not(.hero-section) .section-title.text-left p {
    text-align: left !important;
    margin-left: 0 !important;
    max-width: 100%;
}

/* 15b. About content (párrafos debajo del section-title en Historia) */
main > section:not(.hero-section) .about-content {
    margin-top: 24px;
}

main > section:not(.hero-section) .about-content .lead {
    font-size: 1.15rem !important;
    font-weight: 500;
    color: var(--ei-ink) !important;
    line-height: 1.65;
    margin-bottom: 18px;
}

main > section:not(.hero-section) .about-content p {
    color: var(--ei-ink-soft) !important;
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 16px;
}

/* 15c. Imagen con overlay "+5 Años" */
main > section:not(.hero-section) .about-image {
    position: relative;
    border-radius: var(--ei-radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    transition: transform 0.5s ease;
}

main > section:not(.hero-section) .about-image:hover {
    transform: translateY(-6px);
}

main > section:not(.hero-section) .about-image img {
    border-radius: var(--ei-radius-lg) !important;
    width: 100%;
    display: block;
    transition: transform 0.7s ease;
}

main > section:not(.hero-section) .about-image:hover img {
    transform: scale(1.05);
}

main > section:not(.hero-section) .about-image .image-overlay {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.95), rgba(20, 184, 166, 0.95));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 22px 28px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 32px rgba(13, 148, 136, 0.35);
}

main > section:not(.hero-section) .about-image .overlay-content h4 {
    color: #ffffff !important;
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    margin-bottom: 4px !important;
    letter-spacing: -0.02em;
}

main > section:not(.hero-section) .about-image .overlay-content p {
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 0.95rem;
    margin-bottom: 0 !important;
    font-weight: 500;
}

/* 15d. Lista de valores con checkmarks (dentro de la card "Valores") */
main > section:not(.hero-section) .valores-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

main > section:not(.hero-section) .valor-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(13, 148, 136, 0.06);
    border-radius: 10px;
    border: 1px solid rgba(13, 148, 136, 0.12);
    transition: all 0.3s ease;
}

main > section:not(.hero-section) .valor-item:hover {
    background: rgba(13, 148, 136, 0.1);
    border-color: rgba(13, 148, 136, 0.25);
    transform: translateX(4px);
}

main > section:not(.hero-section) .valor-item i {
    font-size: 1.1rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--ei-teal), var(--ei-teal-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

main > section:not(.hero-section) .valor-item span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ei-ink);
    line-height: 1.3;
}

/* 15e. Expertise cards dentro de <a> (sección Especialidades con links) */
main > section:not(.hero-section) a:has(.expertise-card) {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
}

main > section:not(.hero-section) a .expertise-card {
    cursor: pointer;
}

/* 15f. CTA final con texto centrado dentro de products-section */
main > section:not(.hero-section) .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 32px;
}

main > section:not(.hero-section) .cta-buttons .btn-primary-modern,
main > section:not(.hero-section) .cta-buttons .btn-outline-modern {
    padding: 16px 36px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    border-radius: 14px !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease !important;
}

main > section:not(.hero-section) .cta-buttons .btn-primary-modern:hover,
main > section:not(.hero-section) .cta-buttons .btn-outline-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(13, 148, 136, 0.25);
}

/* Responsive para nosotros */
@media (max-width: 768px) {
    main > section:not(.hero-section) .section-title.text-left,
    main > section:not(.hero-section) .section-title.text-left h2,
    main > section:not(.hero-section) .section-title.text-left p {
        text-align: center !important;
    }

    main > section:not(.hero-section) .section-title.text-left::after {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    main > section:not(.hero-section) .about-image {
        margin-top: 36px;
    }

    main > section:not(.hero-section) .about-image .image-overlay {
        bottom: 16px;
        left: 16px;
        right: 16px;
        padding: 16px 20px;
    }

    main > section:not(.hero-section) .about-image .overlay-content h4 {
        font-size: 1.7rem !important;
    }

    main > section:not(.hero-section) .valor-item {
        padding: 10px 12px;
    }
}

/* ============================================
   16. INTELIGENCIA-ARTIFICIAL.HTML — reglas específicas
   ============================================ */

/* 16a. Feature list (lista con checkmarks dentro de las cards de Servicios IA) */
main > section:not(.hero-section) .feature-list {
    list-style: none;
    padding-left: 0;
    margin: 18px 0 0;
}

main > section:not(.hero-section) .feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--ei-ink-soft);
    line-height: 1.5;
    border-bottom: 1px solid rgba(13, 148, 136, 0.08);
    transition: color 0.3s ease;
}

main > section:not(.hero-section) .feature-list li:last-child {
    border-bottom: none;
}

main > section:not(.hero-section) .feature-list li i {
    flex-shrink: 0;
    margin-top: 4px;
    font-size: 0.85rem;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ei-teal), var(--ei-teal-light));
    color: #ffffff !important;
    border-radius: 50%;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: #ffffff !important;
}

main > section:not(.hero-section) .product-card:hover .feature-list li,
main > section:not(.hero-section) .service-card:hover .feature-list li {
    color: var(--ei-ink);
}

/* 16b. Use case cards (sección "Casos de Uso de IA Empresarial") */
main > section:not(.hero-section) .use-case-card {
    background: #ffffff;
    border-radius: var(--ei-radius);
    padding: 38px 30px;
    border: 1px solid var(--ei-border);
    box-shadow: var(--ei-shadow-sm);
    height: 100%;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: ei-fade-up 0.7s ease-out both;
}

main > section:not(.hero-section) .use-case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ei-teal) 0%, var(--ei-teal-light) 50%, #06B6D4 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

main > section:not(.hero-section) .use-case-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--ei-shadow-lg);
    border-color: rgba(13, 148, 136, 0.28);
}

main > section:not(.hero-section) .use-case-card:hover::before {
    transform: scaleX(1);
}

main > section:not(.hero-section) .use-case-icon {
    width: 86px;
    height: 86px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.12), rgba(20, 184, 166, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

main > section:not(.hero-section) .use-case-card:hover .use-case-icon {
    transform: scale(1.1) rotate(-5deg);
}

main > section:not(.hero-section) .use-case-icon i {
    font-size: 2.3rem !important;
    background: linear-gradient(135deg, var(--ei-teal), var(--ei-teal-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

main > section:not(.hero-section) .use-case-card h5 {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--ei-ink) !important;
    margin-bottom: 12px !important;
    letter-spacing: -0.01em;
}

main > section:not(.hero-section) .use-case-card p {
    color: var(--ei-muted) !important;
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 0;
}

/* Delays escalonados para animación de entrada */
main > section:not(.hero-section) .row > div:nth-child(2) .use-case-card {
    animation-delay: 0.1s;
}

main > section:not(.hero-section) .row > div:nth-child(3) .use-case-card {
    animation-delay: 0.2s;
}

/* 16c. Tech grid (sección "Tecnologías y Frameworks") */
main > section:not(.hero-section) .tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 12px 0;
}

main > section:not(.hero-section) .tech-item {
    background: #ffffff;
    border: 1px solid var(--ei-border);
    border-radius: 16px;
    padding: 26px 16px;
    text-align: center;
    transition: all 0.35s ease;
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: var(--ei-shadow-sm);
    position: relative;
    overflow: hidden;
}

main > section:not(.hero-section) .tech-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.08), rgba(6, 182, 212, 0.05));
    opacity: 0;
    transition: opacity 0.35s ease;
}

main > section:not(.hero-section) .tech-item:hover {
    transform: translateY(-6px);
    border-color: rgba(13, 148, 136, 0.3);
    box-shadow: 0 16px 32px rgba(13, 148, 136, 0.15);
}

main > section:not(.hero-section) .tech-item:hover::before {
    opacity: 1;
}

main > section:not(.hero-section) .tech-item i {
    position: relative;
    z-index: 1;
    font-size: 2.4rem;
    background: linear-gradient(135deg, var(--ei-teal), var(--ei-teal-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.35s ease;
}

main > section:not(.hero-section) .tech-item:hover i {
    transform: scale(1.15);
}

main > section:not(.hero-section) .tech-item span {
    position: relative;
    z-index: 1;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ei-ink);
    letter-spacing: 0.01em;
}

/* Imagen al lado del tech-grid */
main > section:not(.hero-section) .tech-grid + .col-lg-6,
main > section:not(.hero-section) .col-lg-6 > img.rounded-modern {
    border-radius: var(--ei-radius-lg) !important;
}

main > section:not(.hero-section) img.shadow-strong {
    border-radius: var(--ei-radius-lg) !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2) !important;
    transition: transform 0.5s ease;
}

main > section:not(.hero-section) img.shadow-strong:hover {
    transform: translateY(-4px) scale(1.01);
}

/* 16d. CTA buttons del CTA final (inteligencia-artificial) */
main > section.bg-gradient-primary.text-white.py-5 .cta-buttons .btn.btn-light,
main > section.bg-gradient-primary.text-white.py-5 .cta-buttons .btn.btn-outline-light {
    padding: 16px 36px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    border-radius: 14px !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 6px !important;
    transition: all 0.3s ease !important;
}

main > section.bg-gradient-primary.text-white.py-5 .cta-buttons .btn.btn-light {
    background: #ffffff !important;
    color: var(--ei-teal-dark) !important;
    border: none !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

main > section.bg-gradient-primary.text-white.py-5 .cta-buttons .btn.btn-light:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

main > section.bg-gradient-primary.text-white.py-5 .cta-buttons .btn.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.7) !important;
    color: #ffffff !important;
}

main > section.bg-gradient-primary.text-white.py-5 .cta-buttons .btn.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: #ffffff !important;
    transform: translateY(-3px);
}

/* Responsive para inteligencia-artificial */
@media (max-width: 768px) {
    main > section:not(.hero-section) .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    main > section:not(.hero-section) .use-case-card {
        padding: 32px 22px;
    }

    main > section:not(.hero-section) .use-case-icon {
        width: 72px;
        height: 72px;
    }
}

@media (max-width: 480px) {
    main > section:not(.hero-section) .tech-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================
   17. CHATBOT-WHATSAPP-BUSINESS.HTML
   Mantiene la identidad verde WhatsApp en lugar del teal
   ============================================ */

/* Detectamos la página por el ID único #precios + hero con gradient verde.
   Usamos la sección #precios como ancla para aplicar el skin verde a TODA la página. */

/* 17a. Hover de product cards en verde WhatsApp (solo esta página) */
body:has(section#precios) main > section:not(.hero-section) .product-card::before,
body:has(section#precios) main > section:not(.hero-section) .service-card::before {
    background: linear-gradient(90deg, #25D366 0%, #128C7E 50%, #25D366 100%);
}

body:has(section#precios) main > section:not(.hero-section) .product-card:hover,
body:has(section#precios) main > section:not(.hero-section) .service-card:hover {
    border-color: rgba(37, 211, 102, 0.35);
    box-shadow: 0 24px 48px rgba(37, 211, 102, 0.22);
}

/* 17b. Section title gradient en verde WhatsApp */
body:has(section#precios) main > section:not(.hero-section) .section-title h2 .text-gradient,
body:has(section#precios) main > section:not(.hero-section) h2.section-title .text-gradient {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 60%, #0F766E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body:has(section#precios) main > section:not(.hero-section) .section-title::after,
body:has(section#precios) main > section:not(.hero-section) h2.section-title::after {
    background: linear-gradient(90deg, #25D366, #128C7E);
}

/* 17c. Expertise icon en verde WhatsApp (sección Beneficios ROI) */
body:has(section#precios) main > section:not(.hero-section) .expertise-icon {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 12px 24px rgba(37, 211, 102, 0.25);
}

/* 17d. Service icon con gradient inline de verde — dejar que los inline ganen
   pero ajustar el círculo para que se vea bien */
body:has(section#precios) main > section:not(.hero-section) .service-icon[style*="#25D366"],
body:has(section#precios) main > section:not(.hero-section) .service-icon[style*="linear-gradient"] {
    background: linear-gradient(135deg, #25D366, #128C7E) !important;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

body:has(section#precios) main > section:not(.hero-section) .service-icon[style*="#25D366"] i,
body:has(section#precios) main > section:not(.hero-section) .service-icon[style*="linear-gradient"] i {
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
}

/* 17e. Feature list items: los checks verdes ya tienen inline style, respetar.
   Pero mejorar el border y spacing */
body:has(section#precios) main > section:not(.hero-section) .feature-list li {
    border-bottom-color: rgba(37, 211, 102, 0.12);
}

body:has(section#precios) main > section:not(.hero-section) .feature-list li i[style*="#25D366"] {
    background: none !important;
    -webkit-text-fill-color: #25D366 !important;
    color: #25D366 !important;
    border-radius: 0;
    width: auto;
    height: auto;
}

/* 17f. Stats section (México Lidera el Mundo) — cards blancas con hover */
body:has(section#precios) main > section.bg-light .stat-item[style*="background: white"],
body:has(section#precios) main > section.bg-light .stat-item[style*="background:white"] {
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2), box-shadow 0.4s ease !important;
    border: 1px solid rgba(37, 211, 102, 0.1);
    animation: ei-fade-up 0.7s ease-out both;
}

body:has(section#precios) main > section.bg-light .stat-item[style*="background: white"]:hover,
body:has(section#precios) main > section.bg-light .stat-item[style*="background:white"]:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 211, 102, 0.2) !important;
    border-color: rgba(37, 211, 102, 0.3);
}

/* 17g. Price cards con hover lift y shadow verde */
body:has(section#precios) main > section#precios .product-card {
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2), box-shadow 0.4s ease !important;
    animation: ei-fade-up 0.7s ease-out both;
    padding: 0;
}

body:has(section#precios) main > section#precios .product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 48px rgba(37, 211, 102, 0.25);
}

body:has(section#precios) main > section#precios .product-card .card-body {
    padding: 40px 32px !important;
}

body:has(section#precios) main > section#precios .row > div:nth-child(2) .product-card {
    animation-delay: 0.1s;
}

body:has(section#precios) main > section#precios .row > div:nth-child(3) .product-card {
    animation-delay: 0.2s;
}

/* 17h. Alert de "Consultoría Gratuita Incluida" */
body:has(section#precios) main > section#precios .alert {
    transition: all 0.35s ease;
}

body:has(section#precios) main > section#precios .alert:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(37, 211, 102, 0.18);
}

/* 17i. CTA Final en verde — respetar gradient inline, solo agregar padding y fondo decorativo */
body:has(section#precios) main > section.bg-gradient-primary.text-white:last-of-type {
    padding: 110px 0 !important;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
}

body:has(section#precios) main > section.bg-gradient-primary.text-white:last-of-type::before {
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 45%);
}

body:has(section#precios) main > section.bg-gradient-primary.text-white:last-of-type h2 {
    color: #ffffff !important;
    font-size: clamp(2rem, 4.5vw, 3.4rem) !important;
    font-weight: 800 !important;
}

body:has(section#precios) main > section.bg-gradient-primary.text-white:last-of-type .btn-light {
    color: #128C7E !important;
}

/* 17j. Alert "Oficial de Meta" en la sección "Qué es" */
body:has(section#precios) main > section:not(.hero-section) .alert[style*="linear-gradient"] {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

body:has(section#precios) main > section:not(.hero-section) .alert[style*="linear-gradient"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.2);
}

/* ============================================
   18. SOFTWARE-AUTOLAVADOS (BRILTO) — polish con paleta AZUL sky
   Las clases -brilto son únicas de esta página
   ============================================ */

/* Variables locales para la paleta azul sky de Brilto */
.features-brilto,
.pricing-brilto,
.testimonials-brilto,
.faq-brilto,
.cta-brilto {
    --brilto-sky-500: #0ea5e9;
    --brilto-cyan-500: #06b6d4;
    --brilto-sky-700: #0369a1;
    --brilto-sky-900: #0c4a6e;
    --brilto-shadow-blue: 0 24px 48px rgba(14, 165, 233, 0.22);
}

/* 18a. Section header con línea decorativa azul */
.features-brilto .section-header,
.pricing-brilto .section-header,
.testimonials-brilto .section-header,
.faq-brilto .section-header {
    margin-bottom: 72px;
    position: relative;
}

.features-brilto .section-header h2,
.pricing-brilto .section-header h2,
.testimonials-brilto .section-header h2,
.faq-brilto .section-header h2 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: clamp(2rem, 4vw, 3.25rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 18px !important;
}

.features-brilto .section-header::after,
.pricing-brilto .section-header::after,
.faq-brilto .section-header::after {
    content: '';
    display: block;
    width: 72px;
    height: 4px;
    margin: 24px auto 0;
    background: linear-gradient(90deg, #0ea5e9, #06b6d4);
    border-radius: 4px;
}

.testimonials-brilto .section-header::after {
    content: '';
    display: block;
    width: 72px;
    height: 4px;
    margin: 24px auto 0;
    background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.5));
    border-radius: 4px;
}

.testimonials-brilto .section-header h2 {
    color: #ffffff !important;
}

.testimonials-brilto .section-header p {
    color: rgba(255, 255, 255, 0.88) !important;
}

/* 18b. Features section — fondo con blobs decorativos azules */
.features-brilto {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f0f9ff 0%, #f8fafc 100%) !important;
}

.features-brilto::before {
    content: '';
    position: absolute;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, rgba(14, 165, 233, 0) 70%);
    top: -220px;
    right: -160px;
    pointer-events: none;
}

.features-brilto::after {
    content: '';
    position: absolute;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, rgba(6, 182, 212, 0) 70%);
    bottom: -160px;
    left: -120px;
    pointer-events: none;
}

.features-brilto > .container {
    position: relative;
    z-index: 1;
}

/* 18c. Feature cards — acento superior gradient + hover profundo */
.feature-card-brilto {
    position: relative;
    overflow: hidden;
    animation: ei-fade-up 0.65s ease-out both;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2),
                box-shadow 0.4s ease,
                border-color 0.4s ease !important;
}

.feature-card-brilto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9 0%, #06b6d4 50%, #38bdf8 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.feature-card-brilto:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 24px 48px rgba(14, 165, 233, 0.2) !important;
}

.feature-card-brilto:hover::before {
    transform: scaleX(1);
}

.feature-card-brilto:hover .feature-icon-brilto {
    transform: scale(1.08) rotate(-4deg);
}

.feature-icon-brilto {
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

/* Delays escalonados en features grid (3 columnas) */
.features-grid > .feature-card-brilto:nth-child(3n+2) {
    animation-delay: 0.08s;
}
.features-grid > .feature-card-brilto:nth-child(3n+3) {
    animation-delay: 0.16s;
}
.features-grid > .feature-card-brilto:nth-child(n+4) {
    animation-delay: 0.1s;
}
.features-grid > .feature-card-brilto:nth-child(n+7) {
    animation-delay: 0.15s;
}
.features-grid > .feature-card-brilto:nth-child(n+10) {
    animation-delay: 0.2s;
}

/* 18d. Pricing section con fondo decorativo */
.pricing-brilto {
    position: relative;
    overflow: hidden;
}

.pricing-brilto::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.07) 0%, rgba(14, 165, 233, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.pricing-brilto > .container {
    position: relative;
    z-index: 1;
}

.pricing-card {
    animation: ei-fade-up 0.7s ease-out both;
}

.pricing-grid > .pricing-card:nth-child(2) {
    animation-delay: 0.1s;
}

.pricing-grid > .pricing-card:nth-child(3) {
    animation-delay: 0.2s;
}

.pricing-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 24px 48px rgba(14, 165, 233, 0.2) !important;
}

/* Popular card: destacada con doble sombra azul y lift permanente
   (NO usar pseudo-elementos con blur — causa artefactos visuales) */
.pricing-card.popular {
    transform: translateY(-8px);
    box-shadow:
        0 0 0 1px rgba(14, 165, 233, 0.15),
        0 24px 56px rgba(14, 165, 233, 0.28) !important;
}

.pricing-card.popular:hover {
    transform: translateY(-14px) !important;
    box-shadow:
        0 0 0 1px rgba(14, 165, 233, 0.2),
        0 32px 64px rgba(14, 165, 233, 0.35) !important;
}

/* 18e. Testimonials — mejora del fondo oscuro y cards glassmorphism */
.testimonials-brilto {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 50%, #075985 100%) !important;
}

.testimonials-brilto::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.08) 1px, transparent 0);
    background-size: 26px 26px;
    pointer-events: none;
}

.testimonials-brilto::after {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(6, 182, 212, 0) 70%);
    top: -300px;
    right: -200px;
    pointer-events: none;
}

.testimonials-brilto > .container {
    position: relative;
    z-index: 1;
}

.testimonial-card {
    animation: ei-fade-up 0.7s ease-out both;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2), box-shadow 0.4s ease;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 12px;
    right: 22px;
    font-family: 'Georgia', serif;
    font-size: 5rem;
    line-height: 1;
    color: #0ea5e9;
    opacity: 0.15;
    font-weight: 700;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.3);
}

.testimonials-grid > .testimonial-card:nth-child(2) {
    animation-delay: 0.1s;
}

.testimonials-grid > .testimonial-card:nth-child(3) {
    animation-delay: 0.2s;
}

.testimonial-avatar {
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.35);
}

/* 18f. FAQ — cards con mejor hover y transiciones */
.faq-brilto {
    position: relative;
    overflow: hidden;
}

.faq-brilto::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.07) 0%, rgba(14, 165, 233, 0) 70%);
    top: -180px;
    right: -140px;
    pointer-events: none;
}

.faq-brilto > .container {
    position: relative;
    z-index: 1;
}

.faq-item {
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.faq-item:hover {
    transform: translateY(-2px);
    border-color: rgba(14, 165, 233, 0.3) !important;
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.12);
}

.faq-item.active {
    border-color: #0ea5e9 !important;
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.15);
}

.faq-item.active .faq-question {
    color: #0ea5e9 !important;
}

/* 18g. CTA Final con patrón decorativo radial */
.cta-brilto {
    position: relative;
    overflow: hidden;
    padding: 120px 0 !important;
    background: linear-gradient(135deg, #0c4a6e 0%, #0ea5e9 55%, #06b6d4 100%) !important;
}

.cta-brilto::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(56, 189, 248, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0);
    background-size: auto, auto, 28px 28px;
    pointer-events: none;
}

.cta-brilto > .container {
    position: relative;
    z-index: 1;
}

.cta-brilto h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.6rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em;
    margin-bottom: 20px !important;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.cta-brilto p {
    font-size: 1.2rem !important;
    max-width: 720px;
    line-height: 1.65;
}

.cta-brilto .btn-brilto-primary,
.cta-brilto .btn-brilto-outline {
    padding: 18px 44px !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    border-radius: 14px !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.cta-brilto .btn-brilto-primary:hover,
.cta-brilto .btn-brilto-outline:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

/* 18h. Responsive ajustes Brilto */
@media (max-width: 768px) {
    .features-brilto,
    .pricing-brilto,
    .testimonials-brilto,
    .faq-brilto {
        padding: 70px 0 !important;
    }

    .features-brilto .section-header,
    .pricing-brilto .section-header,
    .testimonials-brilto .section-header,
    .faq-brilto .section-header {
        margin-bottom: 48px;
    }

    .features-brilto .section-header h2,
    .pricing-brilto .section-header h2,
    .testimonials-brilto .section-header h2,
    .faq-brilto .section-header h2 {
        font-size: 2rem !important;
    }

    .cta-brilto {
        padding: 80px 0 !important;
    }

    .cta-brilto h2 {
        font-size: 2.1rem !important;
    }
}

/* Respeta prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .feature-card-brilto,
    .pricing-card,
    .testimonial-card {
        animation: none;
    }
    .feature-card-brilto:hover,
    .pricing-card:hover,
    .testimonial-card:hover {
        transform: none !important;
    }
}

/* ============================================
   19. HERO MATRIX (servicios.html)
   Fondo negro con matrix rain, título con glow,
   botones estilo terminal y scan line decorativa
   ============================================ */

.hero-section.hero-matrix {
    min-height: 100vh;
    background: #000000 !important;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 80px 0 !important;
}

/* Ocultar elementos del hero original que no aplican al modo matrix */
.hero-section.hero-matrix .hero-background,
.hero-section.hero-matrix .hero-overlay,
.hero-section.hero-matrix #particles-js {
    display: none !important;
}

/* Canvas ocupa toda el área del hero */
.hero-section.hero-matrix .matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    display: block;
}

/* Vignette para legibilidad del texto central */
.hero-section.hero-matrix::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.65) 50%,
        rgba(0, 0, 0, 0.88) 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* Gradient sutil en los bordes superior/inferior para marco */
.hero-section.hero-matrix::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, transparent 15%, transparent 85%, rgba(0, 0, 0, 0.7) 100%),
        linear-gradient(180deg, transparent 0%, rgba(14, 165, 233, 0.04) 100%);
    z-index: 3;
    pointer-events: none;
}

/* Contenido por encima de todos los layers decorativos */
.hero-section.hero-matrix .container {
    position: relative;
    z-index: 10;
}

.hero-section.hero-matrix .hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Badge "terminal" arriba del título (opcional pero se ve bien) */
.hero-section.hero-matrix .matrix-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    margin-bottom: 32px;
    background: rgba(0, 255, 65, 0.08);
    border: 1px solid rgba(0, 255, 65, 0.35);
    border-radius: 999px;
    color: #00ff41;
    font-family: 'Courier New', Menlo, monospace;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.15);
    animation: matrix-fade-in 1s ease-out both;
}

.hero-section.hero-matrix .matrix-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff41;
    box-shadow: 0 0 8px #00ff41;
    animation: matrix-blink 1.5s ease-in-out infinite;
}

@keyframes matrix-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Título: grande, blanco, con glow verde/cyan */
.hero-section.hero-matrix .hero-title {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: clamp(2.4rem, 6vw, 4.6rem) !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin-bottom: 24px !important;
    letter-spacing: -0.03em;
    line-height: 1.05 !important;
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow:
        0 0 2px #ffffff,
        0 0 20px rgba(0, 255, 65, 0.4),
        0 0 40px rgba(14, 165, 233, 0.3),
        0 4px 30px rgba(0, 0, 0, 0.8);
    animation: matrix-title-in 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    position: relative;
}

/* Subtítulo con sombra sutil para legibilidad */
.hero-section.hero-matrix .hero-subtitle {
    font-size: 1.25rem !important;
    color: rgba(255, 255, 255, 0.92) !important;
    margin-bottom: 40px !important;
    line-height: 1.65;
    font-weight: 400;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
    animation: matrix-fade-in 1.4s ease-out 0.3s both;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA container */
.hero-section.hero-matrix .hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: matrix-fade-in 1.4s ease-out 0.55s both;
}

/* Botón primario estilo terminal verde */
.hero-section.hero-matrix .btn-primary-modern {
    background: rgba(0, 255, 65, 0.08) !important;
    border: 1px solid rgba(0, 255, 65, 0.55) !important;
    color: #00ff41 !important;
    padding: 16px 34px !important;
    font-family: 'Courier New', Menlo, monospace !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow:
        0 0 24px rgba(0, 255, 65, 0.2),
        inset 0 0 12px rgba(0, 255, 65, 0.06);
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.hero-section.hero-matrix .btn-primary-modern::before {
    content: '> ';
    font-weight: 700;
}

.hero-section.hero-matrix .btn-primary-modern:hover {
    background: rgba(0, 255, 65, 0.18) !important;
    border-color: #00ff41 !important;
    color: #ffffff !important;
    box-shadow:
        0 0 36px rgba(0, 255, 65, 0.5),
        inset 0 0 16px rgba(0, 255, 65, 0.15);
    transform: translateY(-2px);
    text-shadow: 0 0 8px #00ff41;
}

/* Botón outline estilo terminal cyan (brand) */
.hero-section.hero-matrix .btn-outline-modern {
    background: rgba(14, 165, 233, 0.06) !important;
    border: 1px solid rgba(103, 232, 249, 0.55) !important;
    color: #67e8f9 !important;
    padding: 16px 34px !important;
    font-family: 'Courier New', Menlo, monospace !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow:
        0 0 24px rgba(14, 165, 233, 0.15),
        inset 0 0 12px rgba(14, 165, 233, 0.04);
    transition: all 0.3s ease !important;
}

.hero-section.hero-matrix .btn-outline-modern::before {
    content: '$ ';
    font-weight: 700;
}

.hero-section.hero-matrix .btn-outline-modern:hover {
    background: rgba(14, 165, 233, 0.2) !important;
    border-color: #67e8f9 !important;
    color: #ffffff !important;
    box-shadow:
        0 0 36px rgba(103, 232, 249, 0.45),
        inset 0 0 16px rgba(14, 165, 233, 0.15);
    transform: translateY(-2px);
    text-shadow: 0 0 8px #67e8f9;
}

/* Scan line decorativa que recorre el hero de arriba a abajo */
.hero-section.hero-matrix .matrix-scanline {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 255, 65, 0.6) 25%,
        rgba(103, 232, 249, 0.6) 50%,
        rgba(0, 255, 65, 0.6) 75%,
        transparent 100%
    );
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
    z-index: 4;
    pointer-events: none;
    top: 0;
    animation: matrix-scan 9s linear infinite;
}

@keyframes matrix-scan {
    0% { top: -5%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 105%; opacity: 0; }
}

/* Animaciones de entrada del contenido */
@keyframes matrix-title-in {
    from {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes matrix-fade-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section.hero-matrix {
        min-height: 90vh;
        padding: 60px 0 !important;
    }

    .hero-section.hero-matrix .hero-title {
        font-size: 2.2rem !important;
    }

    .hero-section.hero-matrix .hero-subtitle {
        font-size: 1.05rem !important;
    }

    .hero-section.hero-matrix .btn-primary-modern,
    .hero-section.hero-matrix .btn-outline-modern {
        padding: 14px 26px !important;
        font-size: 0.85rem !important;
    }

    .hero-section.hero-matrix .matrix-badge {
        font-size: 0.72rem;
        padding: 6px 14px;
        margin-bottom: 24px;
    }
}

/* Reduced motion — desactivar animaciones pero mantener el hero funcional */
@media (prefers-reduced-motion: reduce) {
    .hero-section.hero-matrix .matrix-scanline,
    .hero-section.hero-matrix .matrix-badge,
    .hero-section.hero-matrix .matrix-badge::before,
    .hero-section.hero-matrix .hero-title,
    .hero-section.hero-matrix .hero-subtitle,
    .hero-section.hero-matrix .hero-cta {
        animation: none !important;
    }
    .hero-section.hero-matrix .matrix-scanline {
        display: none;
    }
}

/* ============================================
   20. HERO NEGRO TOTAL + particles mejoradas
   Scopeado por aria-labelledby (index y contacto)
   ============================================ */

section.hero-section[aria-labelledby="hero-title"],
section.hero-section[aria-labelledby="contact-hero-title"],
section.hero-section[aria-labelledby="about-hero-title"],
section.hero-section[aria-labelledby="erp-hero-title"] {
    background: #000000 !important;
    position: relative;
    overflow: hidden;
}

/* Ocultar la imagen del logo que aparecía en el fondo */
section.hero-section[aria-labelledby="hero-title"] .hero-background,
section.hero-section[aria-labelledby="contact-hero-title"] .hero-background,
section.hero-section[aria-labelledby="about-hero-title"] .hero-background,
section.hero-section[aria-labelledby="erp-hero-title"] .hero-background {
    display: none !important;
}

/* Overlay radial oscuro para dar profundidad al centro donde va el texto */
section.hero-section[aria-labelledby="hero-title"] .hero-overlay,
section.hero-section[aria-labelledby="contact-hero-title"] .hero-overlay,
section.hero-section[aria-labelledby="about-hero-title"] .hero-overlay,
section.hero-section[aria-labelledby="erp-hero-title"] .hero-overlay {
    background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.55) 55%,
        rgba(0, 0, 0, 0.85) 100%
    ) !important;
    z-index: 2;
}

/* Gradient sutil en el borde inferior (efecto marco) */
section.hero-section[aria-labelledby="hero-title"]::after,
section.hero-section[aria-labelledby="contact-hero-title"]::after,
section.hero-section[aria-labelledby="about-hero-title"]::after,
section.hero-section[aria-labelledby="erp-hero-title"]::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(0, 0, 0, 0.5) 0%,
            transparent 20%,
            transparent 80%,
            rgba(0, 0, 0, 0.6) 100%),
        radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.06) 0%, transparent 45%);
    z-index: 3;
    pointer-events: none;
}

/* Particles canvas al 100% de opacidad y sin blend modes que lo apaguen */
section.hero-section[aria-labelledby="hero-title"] #particles-js,
section.hero-section[aria-labelledby="contact-hero-title"] #particles-js,
section.hero-section[aria-labelledby="about-hero-title"] #particles-js,
section.hero-section[aria-labelledby="erp-hero-title"] #particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 1 !important;
}

/* Asegurar que el contenido quede por encima de todos los layers */
section.hero-section[aria-labelledby="hero-title"] > .container,
section.hero-section[aria-labelledby="contact-hero-title"] > .container,
section.hero-section[aria-labelledby="about-hero-title"] > .container,
section.hero-section[aria-labelledby="erp-hero-title"] > .container {
    position: relative;
    z-index: 10;
}

/* Reforzar el glow del título en blanco sobre negro total */
section.hero-section[aria-labelledby="hero-title"] .hero-title,
section.hero-section[aria-labelledby="contact-hero-title"] .hero-title,
section.hero-section[aria-labelledby="about-hero-title"] .hero-title,
section.hero-section[aria-labelledby="erp-hero-title"] .hero-title {
    text-shadow:
        0 0 2px rgba(255, 255, 255, 0.5),
        0 0 30px rgba(14, 165, 233, 0.35),
        0 0 60px rgba(6, 182, 212, 0.2),
        0 4px 40px rgba(0, 0, 0, 0.9);
}

/* ============================================
   21. CONTACTO.HTML — rediseño de cards, mapa y mega CTA
   ============================================ */

/* 21a. Info cards (Oficina, Contacto Inmediato, Redes Sociales) */
body:has(section[aria-labelledby="contact-hero-title"]) main > section:not(.hero-section) .contact-info {
    margin-top: 6px;
}

body:has(section[aria-labelledby="contact-hero-title"]) main > section:not(.hero-section) .contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--ei-ink-soft) !important;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 4px !important;
}

body:has(section[aria-labelledby="contact-hero-title"]) main > section:not(.hero-section) .contact-info p i {
    flex-shrink: 0;
    width: 22px;
    font-size: 1rem;
}

body:has(section[aria-labelledby="contact-hero-title"]) main > section:not(.hero-section) .contact-info strong {
    color: var(--ei-teal-dark) !important;
    display: block;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(13, 148, 136, 0.1);
}

body:has(section[aria-labelledby="contact-hero-title"]) main > section:not(.hero-section) .contact-info a {
    color: var(--ei-teal) !important;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

body:has(section[aria-labelledby="contact-hero-title"]) main > section:not(.hero-section) .contact-info a:hover {
    color: var(--ei-teal-dark) !important;
    text-decoration: underline;
}

/* 21b. Social links en la card de "Síguenos" */
body:has(section[aria-labelledby="contact-hero-title"]) main > section:not(.hero-section) .social-links-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

body:has(section[aria-labelledby="contact-hero-title"]) main > section:not(.hero-section) .social-link-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(13, 148, 136, 0.06);
    border: 1px solid rgba(13, 148, 136, 0.12);
    border-radius: 12px;
    color: var(--ei-ink) !important;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

body:has(section[aria-labelledby="contact-hero-title"]) main > section:not(.hero-section) .social-link-contact:hover {
    background: rgba(13, 148, 136, 0.12);
    border-color: rgba(13, 148, 136, 0.3);
    transform: translateX(4px);
    color: var(--ei-teal-dark) !important;
    text-decoration: none;
}

body:has(section[aria-labelledby="contact-hero-title"]) main > section:not(.hero-section) .social-link-contact i {
    font-size: 1.15rem;
    width: 22px;
    text-align: center;
    background: linear-gradient(135deg, var(--ei-teal), var(--ei-teal-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body:has(section[aria-labelledby="contact-hero-title"]) main > section:not(.hero-section) .social-links-contact + p {
    margin-top: 14px;
    color: var(--ei-muted);
    font-size: 0.9rem;
}

/* 21c. Map container con rounded corners grandes y sombra */
body:has(section[aria-labelledby="contact-hero-title"]) main > section:not(.hero-section) .map-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(13, 148, 136, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

body:has(section[aria-labelledby="contact-hero-title"]) main > section:not(.hero-section) .map-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 72px rgba(13, 148, 136, 0.22);
}

body:has(section[aria-labelledby="contact-hero-title"]) main > section:not(.hero-section) .map-container iframe {
    display: block;
    border-radius: 24px;
    border: 0 !important;
    filter: grayscale(0.1) contrast(1.02);
    transition: filter 0.4s ease;
}

body:has(section[aria-labelledby="contact-hero-title"]) main > section:not(.hero-section) .map-container:hover iframe {
    filter: grayscale(0) contrast(1.05);
}

/* 21d. Mega CTA de WhatsApp (nueva sección) */
.contact-mega-cta {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    background: linear-gradient(135deg, #0F172A 0%, #0D9488 50%, #14B8A6 100%);
    color: #ffffff;
}

.contact-mega-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.2) 0%, transparent 45%),
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0);
    background-size: auto, auto, 26px 26px;
    pointer-events: none;
}

.contact-mega-cta > .container {
    position: relative;
    z-index: 1;
}

.contact-mega-cta .mega-cta-wrapper {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.contact-mega-cta .mega-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    margin-bottom: 28px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.contact-mega-cta .mega-cta-icon i {
    font-size: 2.8rem;
    color: #ffffff;
}

.contact-mega-cta h2 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 20px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.contact-mega-cta p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.65;
    margin-bottom: 36px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.contact-mega-cta .mega-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-mega-cta .btn-mega-primary,
.contact-mega-cta .btn-mega-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 42px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.02rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-mega-cta .btn-mega-primary {
    background: #ffffff;
    color: #0F766E;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.contact-mega-cta .btn-mega-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.4);
    color: #0F766E;
    text-decoration: none;
}

.contact-mega-cta .btn-mega-primary i {
    font-size: 1.25rem;
    color: #25D366;
}

.contact-mega-cta .btn-mega-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.contact-mega-cta .btn-mega-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-4px);
    text-decoration: none;
}

.contact-mega-cta .mega-cta-meta {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.contact-mega-cta .mega-cta-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
    font-weight: 500;
}

.contact-mega-cta .mega-cta-meta-item i {
    color: #67e8f9;
    font-size: 1.1rem;
}

/* Responsive mega CTA */
@media (max-width: 768px) {
    .contact-mega-cta {
        padding: 70px 0;
    }
    .contact-mega-cta h2 {
        font-size: 2rem;
    }
    .contact-mega-cta p {
        font-size: 1rem;
    }
    .contact-mega-cta .btn-mega-primary,
    .contact-mega-cta .btn-mega-secondary {
        padding: 14px 28px;
        font-size: 0.92rem;
    }
    .contact-mega-cta .mega-cta-meta {
        gap: 18px;
        margin-top: 28px;
    }
    .contact-mega-cta .mega-cta-meta-item {
        font-size: 0.85rem;
    }
}

/* ============================================
   22. CONTACT CARDS REDESIGN (contacto.html)
   3 cards con banner gradient + icono centrado
   ============================================ */

.contact-card {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(13, 148, 136, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2),
                box-shadow 0.4s ease;
    animation: ei-fade-up 0.7s ease-out both;
}

.contact-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 32px 64px rgba(13, 148, 136, 0.2);
}

/* Animación escalonada */
.row > .col-lg-4:nth-child(2) .contact-card { animation-delay: 0.1s; }
.row > .col-lg-4:nth-child(3) .contact-card { animation-delay: 0.2s; }

/* Banner superior gradient donde vive el icono */
.contact-card-banner {
    position: relative;
    height: 130px;
    background: linear-gradient(135deg, #0D9488 0%, #14B8A6 50%, #0EA5E9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.contact-card-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.12) 1px, transparent 0);
    background-size: 20px 20px;
    pointer-events: none;
}

.contact-card-banner::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    top: -40px;
    right: -40px;
    pointer-events: none;
}

/* Banner verde para la card de WhatsApp */
.contact-card-banner-green {
    background: linear-gradient(135deg, #128C7E 0%, #25D366 50%, #34d879 100%);
}

/* Icono circular centrado — hijo directo del card, NO del banner
   (para que el overflow:hidden del banner no lo clipee) */
.contact-card-icon {
    position: absolute;
    top: 94px;           /* 130 (alto del banner) - 36 (mitad del icono sobresaliendo) */
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.18),
        0 0 0 4px #ffffff;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2);
    z-index: 5;
    pointer-events: none;
}

.contact-card:hover .contact-card-icon {
    transform: translateX(-50%) scale(1.08) rotate(-4deg);
}

/* Color sólido para los iconos — más legible que el gradient clip text */
.contact-card-icon i {
    font-size: 2rem;
    color: #0D9488;
    line-height: 1;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: #0D9488;
    background-clip: initial;
}

/* Icono verde WhatsApp para la card verde */
.contact-card-whatsapp .contact-card-icon i {
    color: #128C7E;
    -webkit-text-fill-color: #128C7E;
}

/* Badge flotante "Respuesta < 24h" */
.contact-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: #128C7E;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.contact-card-badge i {
    font-size: 0.7rem;
    color: #FBBF24;
}

/* Cuerpo de la card */
.contact-card-body {
    padding: 50px 28px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.contact-card-title {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--ei-ink);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.contact-card-subtitle {
    font-size: 0.9rem;
    color: var(--ei-muted);
    margin-bottom: 22px;
    font-weight: 500;
}

/* Lista de info dentro de la card */
.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    text-align: left;
    flex: 1;
}

.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(13, 148, 136, 0.08);
    color: var(--ei-ink-soft);
    font-size: 0.95rem;
    line-height: 1.45;
}

.contact-info-list li:last-child {
    border-bottom: none;
}

.contact-info-list li i {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(13, 148, 136, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0D9488;
    font-size: 1rem;
}

.contact-info-list li span small {
    display: block;
    color: var(--ei-muted);
    font-size: 0.82rem;
    margin-top: 2px;
}

.contact-info-list li a {
    color: var(--ei-ink) !important;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-word;
}

.contact-info-list li a:hover {
    color: #0D9488 !important;
}

/* Botón grande al final de la card */
.contact-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.contact-card-btn-outline {
    background: #ffffff;
    color: #0D9488;
    border: 2px solid rgba(13, 148, 136, 0.3);
}

.contact-card-btn-outline:hover {
    background: rgba(13, 148, 136, 0.08);
    border-color: #0D9488;
    color: #0D9488;
    text-decoration: none;
    transform: translateY(-2px);
}

.contact-card-btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #ffffff;
    border: none;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

.contact-card-btn-whatsapp:hover {
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.5);
}

.contact-card-btn-whatsapp i {
    font-size: 1.2rem;
}

/* Grid 3x1 de botones sociales en la card "Síguenos" */
.contact-social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin: 0 0 18px 0;
}

.contact-social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 6px;
    background: #F8FAFC;
    border: 1px solid rgba(13, 148, 136, 0.1);
    border-radius: 14px;
    text-decoration: none;
    color: var(--ei-ink);
    font-size: 0.78rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-social-btn i {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.contact-social-btn:hover {
    text-decoration: none;
    transform: translateY(-4px);
    color: #ffffff;
}

.contact-social-btn:hover i {
    transform: scale(1.2);
}

/* Cada red con su color oficial al hover */
.contact-social-facebook i { color: #1877F2; }
.contact-social-facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
}
.contact-social-facebook:hover i { color: #ffffff; }

.contact-social-instagram i {
    background: linear-gradient(135deg, #833AB4, #FD1D1D, #F77737);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.contact-social-instagram:hover {
    background: linear-gradient(135deg, #833AB4, #FD1D1D, #F77737);
    border-color: transparent;
}
.contact-social-instagram:hover i {
    background: none;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
}

.contact-social-linkedin i { color: #0A66C2; }
.contact-social-linkedin:hover {
    background: #0A66C2;
    border-color: #0A66C2;
}
.contact-social-linkedin:hover i { color: #ffffff; }

.contact-card-note {
    text-align: center;
    color: var(--ei-muted);
    font-size: 0.85rem;
    margin-top: auto;
    margin-bottom: 0;
    font-style: italic;
}

/* Responsive contact cards */
@media (max-width: 992px) {
    .contact-card-body {
        padding: 44px 22px 24px;
    }
    .contact-card-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .contact-card-banner {
        height: 110px;
    }
    .contact-card-icon {
        width: 64px;
        height: 64px;
        top: 78px;
    }
    .contact-card-icon i {
        font-size: 1.7rem;
    }
    .contact-card-body {
        padding: 42px 20px 22px;
    }
}

/* ============================================
   23. AGENCIA-IA-MEXICO.HTML — rediseño completo
   Hero negro con particles + Bootstrap cards mejoradas
   ============================================ */

/* 23a. Hero negro con particles */
section.hero-section[aria-labelledby="agencia-hero-title"],
section.hero-section[aria-labelledby="clinovaq-hero-title"] {
    background: #000000 !important;
    position: relative;
    overflow: hidden;
    padding: 140px 0 100px 0 !important;
    min-height: auto !important;
    margin-top: 0 !important;
}

section.hero-section[aria-labelledby="agencia-hero-title"] .hero-overlay,
section.hero-section[aria-labelledby="clinovaq-hero-title"] .hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.7) 55%,
        rgba(0, 0, 0, 0.9) 100%
    );
    z-index: 2;
    pointer-events: none;
}

section.hero-section[aria-labelledby="agencia-hero-title"]::after,
section.hero-section[aria-labelledby="clinovaq-hero-title"]::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 45%);
    z-index: 3;
    pointer-events: none;
}

section.hero-section[aria-labelledby="agencia-hero-title"] #particles-js,
section.hero-section[aria-labelledby="clinovaq-hero-title"] #particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 1 !important;
}

section.hero-section[aria-labelledby="agencia-hero-title"] .container,
section.hero-section[aria-labelledby="clinovaq-hero-title"] .container {
    position: relative;
    z-index: 10;
}

/* Badge de rating */
.hero-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    margin-bottom: 24px;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 999px;
    color: #FBBF24;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    animation: ei-fade-up 0.9s ease-out both;
}

/* Título hero */
.hero-agencia-title {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: clamp(2.4rem, 5.5vw, 4.2rem) !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: -0.03em;
    line-height: 1.05 !important;
    margin-bottom: 16px !important;
    text-shadow:
        0 0 30px rgba(14, 165, 233, 0.4),
        0 0 60px rgba(6, 182, 212, 0.2),
        0 4px 30px rgba(0, 0, 0, 0.8);
    animation: ei-fade-up 1s ease-out 0.1s both;
}

.text-gradient-brand {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #67e8f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtítulo con hook de precio */
.hero-agencia-subtitle {
    font-size: 1.35rem !important;
    color: rgba(255, 255, 255, 0.92) !important;
    font-weight: 500 !important;
    line-height: 1.5;
    margin-bottom: 28px !important;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
    animation: ei-fade-up 1s ease-out 0.2s both;
}

.hero-agencia-subtitle strong {
    color: #67e8f9;
    font-weight: 800;
}

/* Feature list hero */
.hero-agencia-features {
    list-style: none;
    padding: 0;
    margin: 0 0 36px 0;
    animation: ei-fade-up 1s ease-out 0.3s both;
}

.hero-agencia-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 500;
}

.hero-agencia-features li i {
    flex-shrink: 0;
    color: #0ea5e9;
    font-size: 1.15rem;
    filter: drop-shadow(0 0 8px rgba(14, 165, 233, 0.5));
}

/* CTA buttons hero */
.hero-agencia-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    animation: ei-fade-up 1s ease-out 0.4s both;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 34px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #ffffff;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.02rem;
    text-decoration: none;
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.btn-hero-primary:hover {
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 18px 40px rgba(37, 211, 102, 0.55);
}

.btn-hero-primary i {
    font-size: 1.2rem;
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 34px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1.5px solid rgba(14, 165, 233, 0.55);
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.02rem;
    text-decoration: none;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    color: #ffffff;
    text-decoration: none;
    background: rgba(14, 165, 233, 0.18);
    border-color: #0ea5e9;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.35);
}

/* Meta del hero (+50 proyectos, etc.) */
.hero-agencia-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    animation: ei-fade-up 1s ease-out 0.5s both;
}

.hero-agencia-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-agencia-meta i {
    color: #67e8f9;
}

/* Imagen del hero */
.hero-agencia-image {
    position: relative;
    animation: ei-fade-up 1s ease-out 0.4s both;
}

.hero-agencia-image img {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow:
        0 0 60px rgba(14, 165, 233, 0.25),
        0 24px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(14, 165, 233, 0.2);
}

/* 23b. Section padding — mejora del padding y fondo */
body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) main .section-padding,
body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .section-padding {
    padding: 100px 0 !important;
    position: relative;
    overflow: hidden;
}

body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .section-padding.bg-light {
    background: linear-gradient(180deg, #f0f9ff 0%, #f8fafc 100%) !important;
}

body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .section-padding.bg-light::before {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    top: -180px;
    right: -140px;
    pointer-events: none;
}

body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .section-padding.bg-light::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
    bottom: -150px;
    left: -120px;
    pointer-events: none;
}

body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .section-padding .container {
    position: relative;
    z-index: 1;
}

/* 23c. Section titles mejoradas */
body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .section-padding .text-center.mb-5 h2,
body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .section-padding .text-center.mb-5 .display-5,
body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .section-padding .text-center.mb-5 .display-4 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem) !important;
    font-weight: 800 !important;
    color: var(--ei-ink) !important;
    letter-spacing: -0.03em;
    line-height: 1.1 !important;
    margin-bottom: 18px !important;
    position: relative;
    display: inline-block;
}

body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .section-padding .text-center.mb-5 h2::after,
body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .section-padding .text-center.mb-5 .display-5::after,
body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .section-padding .text-center.mb-5 .display-4::after {
    content: '';
    display: block;
    width: 72px;
    height: 4px;
    margin: 20px auto 0;
    background: linear-gradient(90deg, #0ea5e9, #06b6d4);
    border-radius: 4px;
}

body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .section-padding .text-center.mb-5 .lead {
    font-size: 1.15rem !important;
    color: var(--ei-muted) !important;
    max-width: 680px;
    margin: 0 auto;
}

body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .section-padding .text-center.mb-5 {
    margin-bottom: 60px !important;
}

/* 23d. Bootstrap cards mejoradas (stats + servicios + partners) */
body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .section-padding .card {
    background: #ffffff !important;
    border-radius: 20px !important;
    border: 1px solid rgba(14, 165, 233, 0.12) !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06) !important;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2),
                box-shadow 0.4s ease,
                border-color 0.4s ease !important;
    position: relative;
    overflow: hidden;
    animation: ei-fade-up 0.7s ease-out both;
}

body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .section-padding .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9 0%, #06b6d4 50%, #67e8f9 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .section-padding .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 48px rgba(14, 165, 233, 0.2) !important;
    border-color: rgba(14, 165, 233, 0.3) !important;
}

body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .section-padding .card:hover::before {
    transform: scaleX(1);
}

body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .section-padding .card .card-body {
    padding: 32px 26px !important;
}

body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .section-padding .card h3,
body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .section-padding .card h4 {
    font-weight: 800 !important;
    color: var(--ei-ink) !important;
    letter-spacing: -0.01em;
}

body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .section-padding .card .display-4 {
    font-size: 3.2rem !important;
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px !important;
}

body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .section-padding .card p,
body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .section-padding .card .text-muted {
    color: var(--ei-muted) !important;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Iconos de los cards */
body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .section-padding .card > .card-body > div:first-child,
body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .section-padding .card .card-body > .mb-3 {
    width: 76px;
    height: 76px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(6, 182, 212, 0.06));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px !important;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .section-padding .card:hover > .card-body > div:first-child,
body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .section-padding .card:hover .card-body > .mb-3 {
    transform: scale(1.08) rotate(-4deg);
}

body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .section-padding .card .card-body i[class*="fa-"] {
    font-size: 2rem !important;
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Feature list interna de cards */
body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .section-padding .card ul {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    text-align: left;
}

body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .section-padding .card ul li {
    padding: 8px 0;
    color: var(--ei-ink-soft);
    font-size: 0.93rem;
    line-height: 1.5;
    border-bottom: 1px solid rgba(14, 165, 233, 0.06);
    position: relative;
    padding-left: 22px;
}

body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .section-padding .card ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 8px;
    color: #0ea5e9;
    font-size: 0.78rem;
}

body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .section-padding .card ul li:last-child {
    border-bottom: none;
}

/* Badges */
body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .section-padding .card .badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(14, 165, 233, 0.12) !important;
    color: #0369a1 !important;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* 23e. Partner cards con card-header */
body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .section-padding .card .card-header {
    padding: 28px 20px !important;
    border-radius: 20px 20px 0 0 !important;
    border-bottom: none !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em;
}

body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .section-padding .card .card-header h3,
body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .section-padding .card .card-header h4 {
    color: #ffffff !important;
    margin: 0 !important;
    font-size: 1.4rem !important;
}

/* Delays escalonados en grids de 3 y 4 columnas */
body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .row > [class*="col-"]:nth-child(2) .card { animation-delay: 0.08s; }
body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .row > [class*="col-"]:nth-child(3) .card { animation-delay: 0.16s; }
body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .row > [class*="col-"]:nth-child(4) .card { animation-delay: 0.24s; }
body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .row > [class*="col-"]:nth-child(5) .card { animation-delay: 0.14s; }
body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .row > [class*="col-"]:nth-child(6) .card { animation-delay: 0.22s; }

/* 23f. FAQ accordion rediseñada */
body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .accordion .card {
    margin-bottom: 14px !important;
    border-radius: 16px !important;
    overflow: hidden;
}

body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .accordion .card-header {
    background: #ffffff !important;
    padding: 0 !important;
    border-radius: 16px 16px 0 0 !important;
    border: none !important;
}

body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .accordion .card-header button,
body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .accordion .btn-link {
    width: 100% !important;
    padding: 20px 24px !important;
    color: var(--ei-ink) !important;
    font-weight: 700 !important;
    font-size: 1.02rem !important;
    text-align: left !important;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
}

body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .accordion .btn-link:hover,
body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .accordion .btn-link:not(.collapsed) {
    color: #0ea5e9 !important;
    text-decoration: none !important;
}

body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .accordion .card-body {
    padding: 0 26px 24px 26px !important;
    color: var(--ei-ink-soft) !important;
    font-size: 0.98rem;
    line-height: 1.7;
}

/* 23g. CTA Final — gradient azul brand en vez de morado */
body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) main > section.section-padding:last-of-type[style*="linear-gradient"] {
    background: linear-gradient(135deg, #0F172A 0%, #0ea5e9 55%, #06b6d4 100%) !important;
    padding: 110px 0 !important;
    position: relative;
    overflow: hidden;
}

body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) main > section.section-padding:last-of-type[style*="linear-gradient"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(103, 232, 249, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0);
    background-size: auto, auto, 26px 26px;
    pointer-events: none;
}

body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) main > section.section-padding:last-of-type .container {
    position: relative;
    z-index: 1;
}

body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) main > section.section-padding:last-of-type h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) main > section.section-padding:last-of-type .bg-white {
    border-radius: 20px !important;
    border: 1px solid rgba(14, 165, 233, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) main > section.section-padding:last-of-type .bg-white:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) main > section.section-padding:last-of-type .btn-light {
    background: #ffffff !important;
    color: #0369a1 !important;
    padding: 16px 34px !important;
    border-radius: 14px !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease !important;
}

body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) main > section.section-padding:last-of-type .btn-light:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) main > section.section-padding:last-of-type .btn-outline-light {
    padding: 16px 34px !important;
    border-radius: 14px !important;
    font-weight: 700 !important;
    border: 2px solid rgba(255, 255, 255, 0.6) !important;
    transition: all 0.3s ease !important;
}

body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) main > section.section-padding:last-of-type .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: #ffffff !important;
    transform: translateY(-3px);
}

/* 23h. Responsive */
@media (max-width: 992px) {
    section.hero-section[aria-labelledby="agencia-hero-title"],
section.hero-section[aria-labelledby="clinovaq-hero-title"] {
        padding: 120px 0 80px 0 !important;
        text-align: center;
    }
    .hero-agencia-cta,
    .hero-agencia-meta {
        justify-content: center;
    }
    .hero-agencia-features li {
        justify-content: center;
    }
}

/* ============================================
   24. EDITHUB.HTML — pulido sutil
   La página ya tiene phone mockup + diseño completo
   Solo refinamientos: spacing, hover, animaciones
   ============================================ */

/* 24a. Sections con más respiración */
body:has(.edithub-hero) .py-5 {
    padding: 100px 0 !important;
}

body:has(.edithub-hero) .py-5.bg-light {
    background: linear-gradient(180deg, #F0FDFA 0%, #f8fafc 100%) !important;
    position: relative;
    overflow: hidden;
}

body:has(.edithub-hero) .py-5.bg-light::before {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, transparent 70%);
    top: -180px;
    right: -140px;
    pointer-events: none;
}

body:has(.edithub-hero) .py-5 > .container {
    position: relative;
    z-index: 1;
}

/* 24b. Section titles centrados con línea decorativa */
body:has(.edithub-hero) .section-title {
    margin-bottom: 60px !important;
}

body:has(.edithub-hero) .section-title h2 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
    margin-bottom: 18px !important;
    position: relative;
    display: inline-block;
}

body:has(.edithub-hero) .section-title h2::after {
    content: '';
    display: block;
    width: 72px;
    height: 4px;
    margin: 20px auto 0;
    background: linear-gradient(90deg, #0D9488, #14B8A6);
    border-radius: 4px;
}

body:has(.edithub-hero) .section-title .lead {
    font-size: 1.1rem !important;
    color: #64748B !important;
}

/* 24c. Use case cards mejoradas */
body:has(.edithub-hero) .use-case-card {
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2),
                box-shadow 0.4s ease,
                border-color 0.4s ease !important;
    animation: ei-fade-up 0.7s ease-out both;
    position: relative;
    overflow: hidden;
}

body:has(.edithub-hero) .use-case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0D9488 0%, #14B8A6 50%, #2DD4BF 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

body:has(.edithub-hero) .use-case-card:hover {
    transform: translateY(-12px) !important;
    box-shadow: 0 28px 56px rgba(13, 148, 136, 0.18) !important;
    border-top-color: transparent !important;
}

body:has(.edithub-hero) .use-case-card:hover::before {
    transform: scaleX(1);
}

body:has(.edithub-hero) .use-case-icon {
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

body:has(.edithub-hero) .use-case-card:hover .use-case-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* 24d. Feature cards mejoradas */
body:has(.edithub-hero) .feature-card {
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2),
                box-shadow 0.4s ease !important;
    animation: ei-fade-up 0.7s ease-out both;
}

body:has(.edithub-hero) .feature-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 24px 48px rgba(13, 148, 136, 0.15) !important;
}

body:has(.edithub-hero) .feature-card .feature-icon {
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

body:has(.edithub-hero) .feature-card:hover .feature-icon {
    transform: scale(1.08) rotate(-4deg);
}

/* Delays escalonados */
body:has(.edithub-hero) .row > [class*="col-"]:nth-child(2) .use-case-card,
body:has(.edithub-hero) .row > [class*="col-"]:nth-child(2) .feature-card { animation-delay: 0.08s; }
body:has(.edithub-hero) .row > [class*="col-"]:nth-child(3) .use-case-card,
body:has(.edithub-hero) .row > [class*="col-"]:nth-child(3) .feature-card { animation-delay: 0.16s; }
body:has(.edithub-hero) .row > [class*="col-"]:nth-child(4) .use-case-card,
body:has(.edithub-hero) .row > [class*="col-"]:nth-child(4) .feature-card { animation-delay: 0.24s; }

/* 24e. Pricing cards con hover lift */
body:has(.edithub-hero) .pricing-card {
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2),
                box-shadow 0.4s ease !important;
}

body:has(.edithub-hero) .pricing-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 28px 56px rgba(13, 148, 136, 0.2) !important;
}

body:has(.edithub-hero) .pricing-card.featured:hover {
    transform: translateY(-12px) scale(1.05) !important;
}

/* 24f. Testimonial cards */
body:has(.edithub-hero) .testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: ei-fade-up 0.7s ease-out both;
    position: relative;
}

body:has(.edithub-hero) .testimonial-card::before {
    content: '"';
    position: absolute;
    top: 12px;
    right: 22px;
    font-family: 'Georgia', serif;
    font-size: 4.5rem;
    line-height: 1;
    color: #14B8A6;
    opacity: 0.12;
    font-weight: 700;
}

body:has(.edithub-hero) .testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(13, 148, 136, 0.15) !important;
}

/* 24g. FAQ items con mejor hover */
body:has(.edithub-hero) .faq-item {
    transition: all 0.3s ease;
    border: 1px solid rgba(13, 148, 136, 0.08);
}

body:has(.edithub-hero) .faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(13, 148, 136, 0.12) !important;
    border-color: rgba(13, 148, 136, 0.25);
}

/* 24h. CTA Final mejorado */
body:has(.edithub-hero) main > section.py-5.text-white:last-of-type {
    padding: 110px 0 !important;
    background: linear-gradient(135deg, #0F172A 0%, #0D9488 55%, #14B8A6 100%) !important;
    position: relative;
    overflow: hidden;
}

body:has(.edithub-hero) main > section.py-5.text-white:last-of-type::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(45, 212, 191, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0);
    background-size: auto, auto, 26px 26px;
    pointer-events: none;
}

body:has(.edithub-hero) main > section.py-5.text-white:last-of-type > .container {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    body:has(.edithub-hero) .py-5 {
        padding: 70px 0 !important;
    }
    body:has(.edithub-hero) .section-title {
        margin-bottom: 42px !important;
    }
}

@media (max-width: 768px) {
    section.hero-section[aria-labelledby="agencia-hero-title"],
section.hero-section[aria-labelledby="clinovaq-hero-title"] {
        padding: 100px 0 70px 0 !important;
    }
    .hero-agencia-title {
        font-size: 2.2rem !important;
    }
    .hero-agencia-subtitle {
        font-size: 1.1rem !important;
    }
    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 14px 26px;
        font-size: 0.92rem;
        width: 100%;
        justify-content: center;
    }
    body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .section-padding,
    body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) main .section-padding {
        padding: 70px 0 !important;
    }
    body:is(:has(section[aria-labelledby="agencia-hero-title"]), :has(section[aria-labelledby="clinovaq-hero-title"])) .section-padding .card .display-4 {
        font-size: 2.4rem !important;
    }
}
