 /* ==========================================================================
   1. VARIABLES, BASE Y TIPOGRAFÍA ULTRA-LIVIANA
   ========================================================================== */
:root {
    --azul-profundo: #060F1A;
    --azul-medio: #0F233C;
    --azul-tarjeta: #132A47;
    --dorado: #D4AF37;
    --dorado-brillante: #F7D070;
    --blanco-puro: #FFFFFF;
    --blanco-humo: #F8FAFC;
    --texto-gris: #94A3B8;
    --texto-oscuro: #1E293B;
    --texto-mutado: #64748B;
    --azul-alto: #2563eb
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
}

body {
    background-color: var(--azul-profundo);
    color: var(--blanco-puro);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* CONTENEDOR CENTRAL: Alineación perfecta con los bordes de la web */
.main-header .header-container,
.services-hero-panel .services-hero-container,
.light-body-container .deliverables-container,
.light-body-container .pricing-container,
.main-footer .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
}

/* ==========================================================================
   2. RECONSTRUCCIÓN DEL HEADER (MENÚ SUPERIOR ELIMINANDO RIGIDEZ)
   ========================================================================== */
.main-header {
    background-color: var(--azul-profundo);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-container {
    height: 120px; /* Altura perfecta para el logo de Canva */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area .logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* CONTROL ESTRICTO DEL LOGOTIPO DE CANVA */
.brand-logo-img {
    height: 95px !important; /* Forza el tamaño óptimo sin deformarse */
    width: auto !important;  
    display: block;
    transition: transform 0.3s ease;
}

.logo-link:hover .brand-logo-img {
    transform: scale(1.02);
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    margin: 0 35px;
}

.nav-menu a {
    color: var(--texto-gris);
    text-decoration: none;
    margin: 0 18px;
    font-size: 1.05rem;
    font-weight: 400; /* Letra fina y estilizada */
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--dorado-brillante);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

/* BOTONES SUPERIORES SUAVIZADOS */
.btn-login {
    color: var(--blanco-puro) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 11px 22px;
    border-radius: 8px;
    font-size: 0.95rem;
    text-decoration: none;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--blanco-puro);
}

.btn-cta-agenda {
    background: linear-gradient(135deg, var(--dorado), var(--dorado-brillante));
    color: var(--azul-profundo) !important;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    text-decoration: none;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease !important;
}

.btn-cta-agenda:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--blanco-puro);
    font-size: 1.8rem;
    cursor: pointer;
}

/* ==========================================================================
   3. SECCIÓN HERO DE LA LANDING Y PORTAFOLIO
   ========================================================================== */
.services-hero-panel {
    padding: 80px 0 40px 0;
    text-align: center;
    background-color: var(--azul-profundo);
}

.hero-subtitle-text {
    color: var(--texto-gris);
    font-size: 1.05rem;
    max-width: 750px;
    margin: 20px auto 0 auto;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: 0.2px;
}
/* ==========================================================================
   4. SECCIÓN BLANCA DE ENTREGABLES Y CARDS DE PRECIO (CENTRADO TOTAL)
   ========================================================================== */
.light-body-container {
    background-color: var(--blanco-humo);
    color: var(--texto-oscuro);
    width: 100%;
}

.value-deliverables-section {
    padding: 80px 0;
    background-color: var(--blanco-puro);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.block-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--azul-profundo);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.block-sub {
    font-size: 1rem;
    color: var(--texto-mutado);
    margin-bottom: 40px;
    font-weight: 400;
}

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

.deliverable-card {
    background-color: var(--blanco-humo);
    padding: 35px 25px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.deliv-icon {
    font-size: 1.6rem;
    color: var(--azul-medio);
    margin-bottom: 15px;
}

.deliverable-card h3 {
    font-size: 1.15rem;
    color: var(--azul-profundo);
    margin-bottom: 10px;
    font-weight: 600;
}

.deliverable-card p {
    font-size: 0.9rem;
    color: var(--texto-oscuro);
    line-height: 1.5;
    font-weight: 400;
}

.highlight-card {
    background-color: #FFFDF2;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.semaforo-list {
    list-style: none;
    margin-top: 15px;
}

.semaforo-list li {
    margin-bottom: 8px;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* PRICING CARDS */
.pricing-cards-section {
    padding: 80px 0;
}

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

/* ==========================================================================
   OPTIMIZACIÓN TIPOGRÁFICA ULTRA-LIVIANA PARA PRICING CARDS
   ========================================================================== */
.pricing-container .block-title {
    font-size: 2.1rem;
    font-weight: 500 !important; /* Letra de título más delgada y elegante */
    color: var(--azul-profundo);
    letter-spacing: -0.5px;
}

.pricing-card {
    background-color: var(--blanco-puro);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 14px;
    padding: 45px 30px;
    box-shadow: 0 10px 30px rgba(6, 15, 26, 0.01);
    display: flex;
    flex-direction: column;
    position: relative;
}

.featured-plan {
    border: 1.5px solid var(--dorado);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--azul-profundo);
    color: var(--dorado-brillante);
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 20px;
    border: 1px solid var(--dorado);
}

/* Centrado absoluto del nombre de cada plan */
.plan-header {
    text-align: center;
    width: 100%;
}

.plan-header h3 {
    font-size: 1.35rem;
    color: var(--azul-profundo);
    font-weight: 600 !important; /* Semi-bold para autoridad visual */
    margin-bottom: 15px;
    letter-spacing: -0.3px;
    display: inline-block;
    background-color: var(--blanco-humo); /* Cápsula de resalte sutil */
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(6, 15, 26, 0.04);
}

/* El precio centrado y estilizado */
.plan-price {
    font-size: 2.2rem;
    font-weight: 700 !important; /* Fuerza visual en el valor */
    color: var(--azul-profundo);
    margin-bottom: 30px;
    border-bottom: 2px solid var(--blanco-humo);
    padding-bottom: 20px;
    letter-spacing: -1px;
    text-align: center;
}

.plan-price .currency {
    font-size: 0.95rem;
    color: var(--texto-mutado);
    font-weight: 300 !important;
}

.plan-features {
    list-style: none;
    flex-grow: 1;
    margin-bottom: 25px;
}

.plan-features li {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--texto-oscuro);
    margin-bottom: 10px;
    display: flex;
    gap: 8px;
}

.plan-features li i {
    color: var(--dorado);
    margin-top: 3px;
}

.btn-trigger-checkout {
    width: 100%;
    background-color: var(--azul-profundo);
    color: var(--blanco-puro);
    border: none;
    padding: 13px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}

.btn-trigger-checkout:hover {
    background-color: var(--azul-medio);
}

.featured-plan .btn-trigger-checkout {
    background-color: var(--dorado);
    color: var(--azul-profundo);
}


/* ==========================================================================
   5. POP-UP MODAL Y FORMULARIO ULTRA-MINIMALISTA (CERO RECARGADO)
   ========================================================================== */
.payment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 15, 26, 0.55);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.payment-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.payment-modal-window {
    background-color: var(--blanco-puro);
    color: var(--texto-oscuro);
    width: 100%;
    max-width: 520px;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    position: relative;
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.form-group { margin-bottom: 12px; }
.form-grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group label { display: block; font-size: 0.75rem; font-weight: 500; color: var(--azul-medio); margin-bottom: 4px; }
.form-group input, .form-group select { width: 100%; padding: 9px 12px; border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 6px; font-size: 0.88rem; background-color: #FAFAFA; color: var(--texto-oscuro); outline: none; font-weight: 400; }
.form-group input:focus { border-color: var(--dorado); }

.btn-submit-payment {
    width: 100%;
    background-color: #10B981;
    color: var(--blanco-puro);
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
}

.modal-text-notice {
    margin-top: 15px;
    font-size: 0.78rem;
    color: var(--texto-mutado);
    line-height: 1.4;
    background-color: var(--blanco-humo);
    padding: 12px;
    border-radius: 6px;
    border-left: 2px solid var(--dorado);
}

/* ==========================================================================
   RECONSTRUCCIÓN DE PIE DE PÁGINA PREMIUM (FOOTER IMPONENTE)
   ========================================================================== */
.main-footer {
    background-color: var(--azul-profundo);
    border-top: 3px solid var(--dorado);
    padding: 70px 20px 40px 20px;
    color: var(--blanco-puro);
    width: 100%;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.1fr 1fr 0.9fr; /* Balance perfecto de columnas */
    gap: 50px;
    align-items: start;
}

/* TAMAÑO DEL LOGO EN EL FOOTER */
.footer-logo-img {
    height: auto !important;         /* Deja que la altura se adapte de forma natural */
    width: 100% !important;          /* Se adapta de forma fluida a su columna */
    max-width: 250px !important;     /* LÍMITE PERFECTO: Evita el gigantismo en pantallas de PC */
    display: block;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.4)); /* Realza el relieve tridimensional */
}

.footer-brand-slogan {
    color: var(--texto-gris);
    font-size: 0.92rem;
    line-height: 1.6;
    font-weight: 400;
    max-width: 320px;
}

.footer-contact h4, .footer-social h4 {
    color: var(--dorado);
    margin-bottom: 20px;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.sub-sedes-title {
    margin-top: 25px !important; /* Espaciado extra para separar sedes de contactos */
}

.footer-contact p {
    color: var(--texto-gris);
    margin-bottom: 12px;
    font-size: 0.92rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact p i {
    color: var(--dorado);
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

/* Resalte especial del icono de WhatsApp */
.whatsapp-icon {
    color: #25D366 !important;
}

.social-notice-text {
    color: var(--texto-gris);
    font-size: 0.92rem;
    margin-bottom: 20px;
    font-weight: 400;
}

/* CONTENEDOR DE REDES SOCIALES CON VIDA */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--blanco-puro);
    background-color: var(--azul-medio);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-icons a:hover {
    color: var(--azul-profundo);
    background-color: var(--dorado-brillante);
    border-color: var(--dorado);
    transform: translateY(-3px);
}

/* BARRA DE DERECHOS RESERVADOS */
.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.82rem;
    color: var(--texto-gris);
    font-weight: 400;
    line-height: 1.6;
}

.footer-bottom a {
    color: var(--dorado);
    text-decoration: none;
    margin: 0 5px;
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: var(--dorado-brillante);
    text-decoration: underline;
}

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 35px;
    }
    .footer-logo-img, .social-icons {
        margin-left: auto;
        margin-right: auto;
    }
    .footer-brand-slogan {
        margin: 0 auto;
    }
    .footer-contact p {
        justify-content: center;
    }
}


/* ==========================================================================
   AGREGADO: ESTILOS ESPECÍFICOS PARA LA PÁGINA DE INICIO (INDEX.PHP)
   ========================================================================== */

/* Sección Hero Principal de Bienvenida */
.hero-section {
    padding: 100px 0;
    background-image: radial-gradient(circle at 85% 30%, var(--azul-medio) 0%, var(--azul-profundo) 65%);
    width: 100%;
}

/* Alineación de la caja contenedora de inicio */
.hero-section .hero-container,
.pillars-section .pillars-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

/* Etiqueta flotante superior */
.badge-digital {
    background-color: rgba(212, 175, 55, 0.08);
    color: var(--dorado-brillante);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    display: inline-block;
    margin-bottom: 25px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    text-transform: uppercase;
}

/* Título imponente de inicio */
.hero-text h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--blanco-puro);
}

.hero-text p {
    font-size: 1.05rem;
    color: var(--texto-gris);
    line-height: 1.7;
    margin-bottom: 40px;
    font-weight: 400;
}

/* Botones de acción del banner principal */
.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-hero-primary {
    background-color: var(--dorado);
    color: var(--azul-profundo);
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
    transition: all 0.3s ease;
}

.btn-hero-primary:hover {
    background-color: var(--dorado-brillante);
    transform: translateY(-1px);
}

.btn-hero-secondary {
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--blanco-puro);
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.hero-visual {
    display: flex;
    justify-content: center;
}

/* Escudo digital decorativo al lado del texto */
.digital-shield-graphic {
    width: 260px;
    height: 260px;
    background-color: rgba(15, 35, 60, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Sección de Pilares Corporativos en Blanco Puro */
.pillars-section {
    padding: 90px 0;
    background-color: var(--blanco-puro);
    color: var(--texto-oscuro);
    width: 100%;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    color: var(--azul-profundo);
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.section-title p {
    color: var(--texto-mutado);
    font-size: 1.05rem;
    font-weight: 400;
}

/* Grilla balanceada para las tarjetas informativas */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.pillar-card {
    background-color: var(--blanco-humo);
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
    transition: all 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-4px);
    background-color: var(--blanco-puro);
    border-color: var(--dorado);
    box-shadow: 0 12px 30px rgba(6, 15, 26, 0.05);
}

.pillar-icon {
    font-size: 1.8rem;
    color: var(--azul-medio);
    margin-bottom: 20px;
}

.pillar-card h3 {
    color: var(--azul-profundo);
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 600;
}

.pillar-card p {
    color: var(--texto-oscuro);
    line-height: 1.6;
    font-size: 0.92rem;
    font-weight: 400;
}

/* Banner de Llamado a la Acción Intermedio en Inicio */
.cta-banner {
    background: linear-gradient(135deg, var(--azul-medio) 0%, var(--azul-profundo) 100%);
    padding: 85px 20px;
    text-align: center;
    color: var(--blanco-puro);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    width: 100%;
}

.cta-container h2 {
    font-size: 2.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.cta-container p {
    color: var(--texto-gris);
    margin-bottom: 30px;
    font-size: 1.05rem;
    font-weight: 400;
}

.btn-cta-large {
    display: inline-block;
    background-color: var(--dorado);
    color: var(--azul-profundo);
    text-decoration: none;
    padding: 14px 40px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-cta-large:hover {
    background-color: var(--dorado-brillante);
}
/* ==========================================================================
   ANIMACIONES LÍQUIDAS Y EFECTOS DE MOVIMIENTO (ESTILO LOMUSA)
   ========================================================================== */

/* Estado oculto inicial del elemento */
.reveal-hidden {
    opacity: 0;
    transform: translateY(40px); /* El elemento espera un poco más abajo */
    transition: opacity 0.8s cubic-bezier(0.215, 0.610, 0.355, 1), 
                transform 0.8s cubic-bezier(0.215, 0.610, 0.355, 1);
    will-change: transform, opacity;
}

/* Estado visible activado por Javascript al bajar el scroll */
.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Efecto de retraso escalonado para que las tarjetas broten una tras otra */
.deliverables-grid .deliverable-card:nth-child(2),
.pricing-grid .pricing-card:nth-child(2),
.pillars-grid .pillar-card:nth-child(2) {
    transition-delay: 0.15s !important;
}

.deliverables-grid .deliverable-card:nth-child(3),
.pricing-grid .pricing-card:nth-child(3),
.pillars-grid .pillar-card:nth-child(3) {
    transition-delay: 0.3s !important;
}

/* Profundidad Tridimensional en Tarjetas al pasar el mouse */
.deliverable-card, .pricing-card, .pillar-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease !important;
}

.deliverable-card:hover, .pricing-card:hover, .pillar-card:hover {
    transform: translateY(-8px) scale(1.01) !important; /* Levanta la tarjeta sutilmente */
    box-shadow: 0 20px 40px rgba(6, 15, 26, 0.08) !important;
}
/* Animación interactiva en los iconos de las tarjetas */
.deliv-icon i, .pillar-icon i {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.deliverable-card:hover .deliv-icon i, 
.pillar-card:hover .pillar-icon i {
    transform: scale(1.18) rotate(5deg); /* El icono se expande sutilmente al pasar el mouse */
    color: var(--dorado-brillante);
}

/* Efecto de pulso neumático en el botón de compra principal */
.btn-trigger-checkout, .btn-hero-primary, .btn-cta-large {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease !important;
}

.btn-trigger-checkout:hover, .btn-hero-primary:hover, .btn-cta-large:hover {
    letter-spacing: 0.8px; /* Abre un poco el espaciado al pasar el mouse dando dinamismo */
}
/* ==========================================================================
   DINAMISMO ACTIVO CONTINUO: FONDOS LÍQUIDOS Y FLOTACIÓN (ESTILO LOMUSA)
   ========================================================================== */

/* 1. Animación del Fondo del Hero y Banner */
.hero-section, .services-hero-panel, .cta-banner {
    background-size: 200% 200% !important;
    animation: gradientMovement 12s ease infinite alternate !important;
}

@keyframes gradientMovement {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 2. Balanceo Suspendido del Escudo Digital */
.digital-shield-graphic {
    animation: dynamicFloat 6s ease-in-out infinite alternate !important;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.08);
}

@keyframes dynamicFloat {
    0% {
        transform: translateY(0px) rotate(0deg);
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    50% {
        transform: translateY(-12px) rotate(1deg);
        border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    }
    100% {
        transform: translateY(0px) rotate(-1deg);
        border-radius: 70% 30% 52% 48% / 60% 40% 60% 40%;
    }
}
/* 3. Brillo Reflectivo en Botones Dorados (Llama a la Acción con Vida) */
.btn-cta-agenda, .btn-hero-primary, .btn-cta-large, .btn-submit-payment, .btn-trigger-checkout {
    position: relative;
    overflow: hidden;
}

.btn-cta-agenda::after, .btn-hero-primary::after, .btn-cta-large::after, .btn-submit-payment::after, .btn-trigger-checkout::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30px;
    height: 200%;
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(30deg);
    transition: none;
    animation: liquidGlow 4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes liquidGlow {
    0% { left: -60%; }
    30% { left: 130%; }
    100% { left: 130%; }
}

/* Transición suave para enlaces del menú al posarse sobre ellos */
.nav-menu a {
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--dorado-brillante);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-menu a:hover::after, .nav-menu a.active::after {
    width: 100%;
}

/* Eliminación total del estilo pesado en las viñetas informativas */
.plan-features {
    list-style: none;
    flex-grow: 1;
    margin-bottom: 30px;
}

.plan-features li {
    font-size: 0.9rem;
    line-height: 1.6 !important; /* Más separación entre líneas para que respire */
    color: var(--texto-oscuro);
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    font-weight: 300 !important; /* LETRA ULTRA-LIVIANA REGULAR */
}

/* Suavizado sutil de las etiquetas de enfoque, estado y expediente */
.plan-features li div strong {
    font-weight: 400 !important; /* Cambia de negrita tosca a un grosor sutil y elegante */
    color: var(--azul-medio);
}

.plan-features li i {
    color: var(--dorado);
    margin-top: 5px;
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Estilización fina del botón Comprar */
.btn-trigger-checkout {
    width: 100%;
    background-color: var(--azul-profundo);
    color: var(--blanco-puro);
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 400 !important; /* Botón con letra delgada y estilizada */
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.featured-plan .btn-trigger-checkout {
    background-color: var(--dorado);
    color: var(--azul-profundo);
    font-weight: 500 !important;
}

/* ==========================================================================
   OPTIMIZACIÓN TIPOGRÁFICA ULTRA-LIVIANA PARA ENTREGABLES Y ENTREGAS
   ========================================================================== */
.value-deliverables-section .block-title {
    font-size: 2.1rem;
    font-weight: 500 !important; /* Título de la sección más delgado y sofisticado */
    color: var(--azul-profundo);
    letter-spacing: -0.5px;
}

.value-deliverables-section .block-sub {
    font-size: 1.05rem;
    color: var(--texto-mutado);
    font-weight: 300 !important; /* Subtítulo fino */
    margin-bottom: 45px;
}

.deliverable-card h3 {
    font-size: 1.2rem;
    color: var(--azul-profundo);
    font-weight: 600 !important; /* Peso intermedio controlado para dar jerarquía sutil */
    margin-bottom: 12px;
    letter-spacing: -0.2px;
}

.deliverable-card p {
    font-size: 0.92rem;
    line-height: 1.65 !important; /* Incrementamos la separación para que el texto respire */
    color: var(--texto-oscuro);
    font-weight: 300 !important; /* LETRA ULTRA-LIVIANA REGULAR */
}
/* Suavizado integral de la tarjeta destacada del semáforo */
.highlight-card p {
    font-weight: 300 !important;
    margin-bottom: 15px;
}

.semaforo-list li {
    font-size: 0.88rem;
    line-height: 1.6 !important; /* Más aire entre cada alerta del semáforo */
    color: var(--texto-oscuro);
    font-weight: 300 !important; /* Letra ultra delgada para las descripciones */
    margin-bottom: 10px;
}

/* Control elegante de las negritas dentro del semáforo */
.semaforo-list li strong {
    font-weight: 500 !important; /* Evita que el color de las alertas se vea tosco o pesado */
    color: var(--azul-profundo);
}

.dot {
    width: 8px; /* Ajustamos ligeramente el tamaño para que guarde simetría con la fuente delgada */
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* ==========================================================================
   DINAMISMO ACTIVO Y MOVIMIENTO PREMIUM PARA EL HERO DE SERVICIOS
   ========================================================================== */

/* 1. Forza el fondo líquido en movimiento fluido para esta sección */
.services-hero-panel {
    background-size: 200% 200% !important;
    animation: gradientMovementHero 10s ease infinite alternate !important;
    overflow: hidden;
    position: relative;
}

@keyframes gradientMovementHero {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 2. Animación de revelado suave al cargar el título */
.services-hero-panel h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -1px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUpHero 0.8s cubic-bezier(0.215, 0.610, 0.355, 1) forwards !important;
}
/* 3. Animación de revelado con retraso para el texto descriptivo */
.hero-subtitle-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUpHero 0.8s cubic-bezier(0.215, 0.610, 0.355, 1) forwards !important;
    animation-delay: 0.2s !important; /* Aparece un instante después del título */
}

/* 4. Animación para la etiqueta flotante pequeña */
.services-hero-panel .badge-digital {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUpHero 0.6s cubic-bezier(0.215, 0.610, 0.355, 1) forwards !important;
    animation-delay: 0.1s !important;
}

/* Keyframes universales para el nacimiento del texto */
@keyframes fadeInUpHero {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ==========================================================================
   PÁGINA DE EDUCACIÓN JURÍDICA (EDUCACION.PHP) - ESTILO PREMIUM
   ========================================================================== */
.education-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    width: 100%;
}

.education-intro-text {
    text-align: center;
    margin-bottom: 50px;
}

/* INTERFAZ DE SEGMENTACIÓN DE DOS EJES (BOTONES LINDOS Y DELGADOS) */
.segmentation-buttons-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px auto 20px auto;
    max-width: 750px;
    width: 100%;
}

.btn-segment-tab {
    background-color: var(--blanco-puro);
    color: var(--azul-profundo);
    border: 1px solid rgba(6, 15, 26, 0.08);
    padding: 16px 28px;
    font-size: 1.05rem;
    font-weight: 400 !important; /* Trazo regular muy elegante */
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex: 1;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.01);
}

.btn-segment-tab i {
    color: var(--azul-medio);
    font-size: 1.1rem;
    transition: color 0.3s;
}

.btn-segment-tab:hover, .btn-segment-tab.active {
    background-color: var(--azul-alto);
    color: var(--blanco-puro);
    border-color: var(--azul-alto);
}

.btn-segment-tab.active i {
    color: var(--dorado-brillante);
}

/* MANEJO DE DESVANECIMIENTO EN PANELES */
.category-panel-block {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.category-panel-block.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* GRILLA Y ABANICO LÍQUIDO */
.accordion-penal-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 900px; /* Centramos el bloque para máxima armonía visual */
    margin: 0 auto;
}
.accordion-item-premium {
    background-color: var(--blanco-puro);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(6, 15, 26, 0.01);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}

.accordion-item-premium:hover, .accordion-item-premium.active {
    box-shadow: 0 12px 30px rgba(6, 15, 26, 0.04);
    border-color: rgba(212, 175, 55, 0.25);
}

.accordion-trigger {
    width: 100%;
    background: none;
    border: none;
    padding: 24px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    outline: none;
}

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

.case-icon-lead {
    font-size: 1.3rem;
    color: var(--azul-medio);
    transition: transform 0.3s ease;
}

.case-title-text {
    font-size: 1.1rem;
    font-weight: 400 !important; /* Letra ultra delgada solicitada */
    color: var(--azul-profundo);
    line-height: 1.4;
}

.arrow-indicator {
    font-size: 0.95rem;
    color: var(--texto-mutado);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin-left: 15px;
}

.accordion-item-premium.active .arrow-indicator {
    transform: rotate(180deg);
    color: var(--dorado);
}

.accordion-item-premium.active .case-icon-lead {
    color: var(--dorado);
    transform: scale(1.1);
}

/* PANEL INTERNO OCULTO CON ALTURA LÍQUIDA ANIMADA */
.accordion-content-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background-color: var(--blanco-humo);
}

.panel-inner-body {
    padding: 0 35px 35px 35px;
    border-top: 1px solid rgba(0, 0, 0, 0.02);
}

.panel-inner-body h4 {
    font-size: 1.15rem;
    color: var(--azul-profundo);
    margin: 25px 0 12px 0;
    font-weight: 500;
}

.panel-inner-body h5 {
    font-size: 0.95rem;
    color: var(--azul-medio);
    margin: 20px 0 10px 0;
    font-weight: 600;
}

.panel-intro-p {
    font-size: 0.92rem;
    line-height: 1.65 !important;
    color: var(--texto-oscuro);
    font-weight: 300 !important;
    margin: 0 0 20px 0;
}

.steps-bullet-list {
    list-style: none;
    margin-bottom: 25px;
}

.steps-bullet-list li {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--texto-oscuro);
    font-weight: 300 !important;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.steps-bullet-list li::before {
    content: '•';
    position: absolute;
    left: 4px;
    color: var(--dorado);
    font-size: 1.2rem;
}

.steps-subgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 25px;
}

.step-mini-box {
    padding: 22px;
    border-radius: 8px;
    font-size: 0.88rem;
    line-height: 1.6;
    font-weight: 300 !important;
}

.alert-verde { background-color: #F0FDF4; border-left: 3px solid #10B981; color: #166534; }
.alert-oro { background-color: #FFFDF0; border-left: 3px solid var(--dorado); color: #785A00; }
.alert-rojo { background-color: #FFF5F5; border-left: 3px solid #EF4444; color: #991B1B; }

/* CAJA DE CONVERSIÓN FINAL DE URGENCIA (CENTRADA AL ANCHO DEL HEADER) */
.urgency-cta-block {
    margin-top: 80px;
    width: 100%;
}

.urgency-container-inner {
    max-width: 850px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--azul-medio) 0%, var(--azul-profundo) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 50px 40px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(6, 15, 26, 0.15);
}

.urgency-container-inner h3 {
    font-size: 1.8rem;
    color: var(--blanco-puro);
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.urgency-container-inner p {
    font-size: 1.05rem;
    color: var(--texto-gris);
    line-height: 1.6;
    font-width: 300 !important;
    max-width: 700px;
    margin: 0 auto 35px auto;
}

.btn-request-consultation {
    display: inline-block;
    background: linear-gradient(135deg, var(--dorado), var(--dorado-brillante));
    color: var(--azul-profundo) !important;
    text-decoration: none;
    padding: 16px 36px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-request-consultation:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(212, 175, 55, 0.4);
}

@media (max-width: 768px) {
    .segmentation-buttons-grid, .steps-subgrid { grid-template-columns: 1fr; flex-direction: column; }
    .btn-segment-tab { width: 100%; }
}
/* ==========================================================================
   MOVIMIENTO LÍQUIDO Y DINAMISMO ACTIVO EN PORTAFOLIO DE EDUCACIÓN
   ========================================================================== */

/* 1. Suavizado y retraso en la aparición de los botones de segmentación */
.segmentation-buttons-grid .btn-segment-tab {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-segment-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(6, 15, 26, 0.05);
}

/* 2. Animación de revelado secuencial al abrir las tarjetas de abanico */
.accordion-item-premium {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUpEducation 0.6s cubic-bezier(0.215, 0.610, 0.355, 1) forwards !important;
}

@keyframes fadeInUpEducation {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Retraso escalonado continuo para que los bloques de casos no nazcan al tiempo */
.accordion-item-premium:nth-child(1) { animation-delay: 0.1s !important; }
.accordion-item-premium:nth-child(2) { animation-delay: 0.2s !important; }
.accordion-item-premium:nth-child(3) { animation-delay: 0.3s !important; }
.accordion-item-premium:nth-child(4) { animation-delay: 0.4s !important; }
.accordion-item-premium:nth-child(5) { animation-delay: 0.5s !important; }
/* 3. Profundidad tridimensional flotante al pasar el mouse por el abanico */
.accordion-trigger {
    transition: background-color 0.3s ease !important;
}

.accordion-item-premium:hover {
    transform: translateY(-4px) scale(1.005) !important;
    border-color: var(--dorado) !important;
    box-shadow: 0 15px 35px rgba(6, 15, 26, 0.06) !important;
}

/* 4. Movimiento dinámico en los iconos de naturaleza penal */
.case-icon-lead {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.accordion-item-premium:hover .case-icon-lead {
    transform: scale(1.2) rotate(8deg); /* Expande y rota sutilmente el icono */
    color: var(--dorado-brillante) !important;
}

/* 5. Efecto de transición líquida en las cajas internas de alerta */
.step-mini-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.step-mini-box:hover {
    transform: scale(1.01);
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}
/* ==========================================================================
   MÓDULO: ASISTENTE DE CONSULTA VIRTUAL (DISEÑO LIVIANO Y PREMIUM)
   ========================================================================== */
.wizard-step-panel {
    animation: fadeIn 0.4s ease-in-out;
}

.quiz-question-box {
    background-color: var(--blanco-puro);
    border: 1px solid rgba(0,0,0,0.03);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(6,15,26,0.01);
}

.quiz-question-title {
    font-size: 1.05rem;
    font-weight: 500 !important; /* Letra delgada refinada */
    color: var(--azul-profundo);
    margin-bottom: 20px;
}

.quiz-options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Tarjetas de opciones de radio de un solo clic */
.quiz-option-card {
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 16px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    background-color: var(--blanco-humo);
    transition: all 0.25s ease;
}

.quiz-option-card input[type="radio"] {
    accent-color: var(--dorado); /* Pinta el círculo interno de color dorado */
    transform: scale(1.1);
    cursor: pointer;
}

.quiz-option-card span {
    font-size: 0.92rem;
    color: var(--texto-oscuro);
    font-weight: 400;
    line-height: 1.4;
}

.quiz-option-card:hover {
    border-color: var(--dorado);
    background-color: var(--blanco-puro);
}

/* INSIGNIA DEL DIAGNÓSTICO EVALUADO */
.diagnostic-result-badge {
    background-color: var(--azul-profundo);
    border-left: 4px solid var(--dorado);
    padding: 25px 30px;
    border-radius: 8px;
    color: var(--blanco-puro);
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(6,15,26,0.1);
}

.diagnostic-result-badge i {
    font-size: 1.8rem;
    color: var(--dorado-brillante);
}

.diagnostic-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--texto-gris);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.diagnostic-name {
    display: block;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2px 0;
}

.diagnostic-price {
    display: block;
    font-size: 0.9rem;
    color: var(--dorado-brillante);
    font-weight: 400;
}

/* GRILLA DE HORAS DISPONIBLES EN LA AGENDA */
.calendar-grid-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.btn-slot-time-select {
    background-color: var(--blanco-puro);
    color: var(--texto-oscuro);
    border: 1px solid rgba(0,0,0,0.06);
    padding: 14px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.btn-slot-time-select i {
    color: var(--texto-mutado);
}

.btn-slot-time-select:hover {
    border-color: var(--azul-medio);
    background-color: var(--blanco-humo);
}

/* Estado activo cuando el cliente selecciona el horario */
.btn-slot-time-select.selected {
    background-color: var(--azul-profundo) !important;
    color: var(--blanco-puro) !important;
    border-color: var(--azul-profundo) !important;
}

.btn-slot-time-select.selected i {
    color: var(--dorado-brillante);
}

@media (max-width: 768px) {
    .calendar-grid-slots { grid-template-columns: 1fr; }
    .quiz-question-box { padding: 20px; }
}

/* RESALTE ESTRICTO DE SUBTÍTULOS INTERNOS (ENFOQUE, ESTADO, TAMANO) */
.plan-features li {
    font-size: 0.92rem;
    line-height: 1.65 !important;
    color: var(--texto-oscuro);
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 400 !important; /* Texto base limpio */
}

/* Contenedor del texto para controlar la alineación */
.plan-features li div {
    width: 100%;
}

/* La etiqueta se vuelve semi-bold, azul y con un relieve inferior */
.plan-features li div strong {
    font-weight: 600 !important; 
    color: var(--azul-medio);
    display: inline-block;
    margin-right: 4px;
    border-bottom: 1.5px solid rgba(212, 175, 55, 0.4); /* Resalte dorado inferior ultra-fino */
    padding-bottom: 1px;
}

/* Icono de viñeta más vivo y alineado */
.plan-features li i {
    color: var(--dorado);
    margin-top: 5px;
    font-size: 0.8rem;
    opacity: 0.9;
    flex-shrink: 0;
}

