/*
 * Theme Name: Authority DC
 * Theme URI: https://dcabogadas.cl
 * Description: Tema personalizado DC Abogadas SpA
 * Version: 2.0
 * Author: DC Abogadas
 */

/* =========================================
   0. VARIABLES GLOBALES UNIFICADAS
   =========================================
   FUENTE DE VERDAD ÚNICA.
   Elimina las redeclaraciones en:
   - part-hero.php   (--primary-teal, --font-sans, --font-serif, --primary-deep: #1C424F)
   - archive-evento.php (--dc-dark, --dc-teal)
   - header.php (--primary-deep: #0e3d4d  ← REEMPLAZADO)
   ========================================= */
:root {
    /* === COLORES PRIMARIOS === */
    --primary: #1C758E;
    /* Teal principal (era --primary-teal en part-hero) */
    --primary-dark: #155d72;
    /* Hover del primario */
    --primary-deep: #1C424F;
    /* Azul oscuro DC (valor canónico de part-hero / --dc-dark) */

    /* === COLORES SECUNDARIOS === */
    --secondary: #FDE365;
    /* Amarillo dorado (era --secondary-yellow en part-hero) */

    /* === TEXTO === */
    --text-main: #1f2937;
    --text-light: #4b5563;
    /* (era #64748b en part-hero — unificado al valor del header) */

    /* === FONDOS === */
    --bg-light: #F8FAFC;
    /* (era #f3f6f8 en header — ajustado al valor de part-hero) */
    --white: #ffffff;

    /* === BORDES === */
    --gray-border: #e5e7eb;
    --border-color: #e2e8f0;
    /* Alias semántico para componentes de contenido */

    /* === ESPECIALES === */
    --dark-btn: #383838;
    /* Botón header en estado scrolled */

    /* === TIPOGRAFÍA === */
    --font-main: 'Inter', sans-serif;
    --font-editorial: 'Playfair Display', serif;

    /* Aliases compatibles con part-hero.php y archive-evento.php */
    --font-sans: var(--font-main);
    --font-serif: var(--font-editorial);

    /* === LAYOUT === */
    --container-width: 1150px;
    --radius: 6px;
}


/* =========================================
   1. RESET & BASE
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    margin: 0;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}

a {
    text-decoration: none !important;
    transition: all 0.3s ease;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

/* Clase utilitaria tipográfica editorial */
.editorial {
    font-family: var(--font-editorial);
}


/* =========================================
   2. LAYOUT UTILITIES
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 25px;
}


/* =========================================
   3. BOTONES GLOBALES
   =========================================
   Fuente de verdad única.
   Elimina redeclaraciones en:
   - part-hero.php  (bloque .btn completo duplicado con box-shadow inset)
   - page-blog-b2b.php (.btn inline)
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    font-family: var(--font-main);
    gap: 8px;
    text-decoration: none !important;
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
    will-change: transform, box-shadow;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Botón Azul (Principal) */
.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Botón Amarillo (Secundario) */
.btn-secondary {
    background-color: var(--secondary);
    color: var(--primary-deep) !important;
    font-weight: 600;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-deep) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Botón Outline Teal (borde falso con box-shadow inset) */
.btn-outline {
    background-color: transparent;
    color: var(--primary);
    box-shadow: inset 0 0 0 2px var(--primary), 0 4px 10px rgba(0, 0, 0, 0.05);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: inset 0 0 0 2px var(--primary), 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Botón Outline Blanco (exclusivo hero oscuro) */
.btn-outline-white {
    background-color: transparent;
    color: var(--white) !important;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.8), 0 4px 10px rgba(0, 0, 0, 0.05);
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--primary-deep) !important;
    transform: translateY(-3px);
    box-shadow: inset 0 0 0 2px var(--white), 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Botón Header (estado base: blanco con elevación) */
.btn-header {
    background: var(--white);
    color: var(--primary) !important;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-header:hover {
    background-color: var(--secondary) !important;
    color: var(--primary-deep) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Botón Header — estado scrolled */
header.scrolled .btn-header {
    background: var(--dark-btn);
    color: var(--white) !important;
    box-shadow: none;
}

header.scrolled .btn-header:hover {
    background-color: var(--primary) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}


/* =========================================
   4. ETIQUETAS DE CATEGORÍA (Tags)
   =========================================
   Fuente de verdad única.
   Elimina redeclaraciones en:
   - category.php, search.php, page-blog-b2b.php
   ========================================= */
.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    font-family: var(--font-main);
    text-decoration: none !important;
    transition: opacity 0.2s;
}

.tag:hover {
    opacity: 0.8;
}

.tag-corp {
    background: #e0f2fe;
    color: #0369a1;
}

.tag-lab {
    background: #fef3c7;
    color: #b45309;
}

.tag-ip {
    background: #fce7f3;
    color: #be185d;
}

.tag-page {
    background: #374151;
    color: var(--white);
}


/* =========================================
   5. HEADER STICKY (Corrección de Submenús y Botón Móvil)
   ========================================= */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    padding: 20px 20px 0 20px;
    background: transparent;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

#site-header.scrolled {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
}

/* Logo */
.logo-img {
    height: 52px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: 0.3s ease;
}

#site-header.scrolled .logo-img {
    height: 40px;
    filter: none;
}

/* Contenedor de Navegación */
.nav-links {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: space-between;
    margin-left: 30px;
}

/* Menú Principal Centrado */
.nav-links>ul {
    display: flex;
    gap: 35px;
    align-items: center;
    list-style: none;
    margin: 0 auto;
    padding: 0;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-item>a {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--white);
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

#site-header.scrolled .nav-item>a {
    color: var(--text-main);
}

.nav-plus {
    color: var(--secondary);
    font-weight: 800;
    font-size: 0.85rem;
    margin-top: 2px;
}

/* =========================================
   SUBMENÚS DESPLEGABLES (Ocultos por defecto)
   ========================================= */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -15px;
    background: var(--white);
    min-width: 230px;
    padding: 12px 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-left: 4px solid var(--secondary);
    border-radius: 0 0 6px 6px;
    z-index: 2001;
    list-style: none;
    margin-top: 5px;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -4px;
    width: calc(100% + 4px);
    height: 10px;
    background: transparent;
}

.nav-item:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.2s ease;
}

.dropdown-menu a {
    display: block;
    padding: 10px 22px;
    color: var(--text-main) !important;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: #f8fafb;
    color: var(--primary) !important;
    padding-left: 26px;
}

/* =========================================
   BOTONES HEADER
   ========================================= */
.header-action-btns {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-compact-outline {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--secondary);
    color: var(--secondary);
    border-radius: var(--radius);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-compact-outline:hover {
    background-color: var(--secondary);
    color: var(--primary-deep) !important;
}

.btn-compact-solid {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 16px;
    background-color: var(--white);
    color: var(--primary-deep) !important;
    border: 1px solid var(--white);
    border-radius: var(--radius);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-compact-solid:hover {
    background-color: var(--secondary) !important;
    color: var(--primary-deep) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Estado Scrolled */
#site-header.scrolled .btn-compact-solid {
    background: var(--dark-btn);
    color: var(--white) !important;
    border-color: var(--dark-btn);
    box-shadow: none;
}

#site-header.scrolled .btn-compact-solid:hover {
    background-color: var(--primary) !important;
    color: var(--white) !important;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#site-header.scrolled .btn-compact-outline {
    border-color: var(--dark-btn);
    color: var(--dark-btn);
}

#site-header.scrolled .btn-compact-outline:hover {
    background-color: var(--dark-btn);
    color: var(--white) !important;
}

/* Ocultar botón de menú móvil en Escritorio */
.mobile-menu-btn {
    display: none !important;
}


/* =========================================
   6. MENÚ MÓVIL (Prefijos Safari/iOS Corregidos)
   ========================================= */
#mobile-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 380px;
    height: 100vh;
    background: var(--white);
    z-index: 3000;
    padding: 70px 25px 30px;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    font-family: var(--font-main);
}

#mobile-nav.open {
    right: 0;
}

/* Reset de Botones en iOS/Safari */
#mobile-nav button.mobile-nav-link {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #edf2f7 !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;

    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0 !important;
    margin: 0 !important;

    font-family: inherit;
    font-size: 1.05rem !important;
    font-weight: 600;
    color: var(--text-main) !important;
    cursor: pointer;
    text-align: left;
}

#mobile-nav a.mobile-nav-link {
    display: block;
    padding: 14px 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 1px solid #edf2f7;
}

.mobile-submenu {
    display: none;
    padding-left: 10px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.mobile-submenu a {
    display: block;
    padding: 10px 15px;
    color: var(--text-light);
    font-size: 0.95rem;
    border-left: 3px solid var(--secondary);
    margin-bottom: 5px;
    background-color: #f9fafb;
    border-radius: 0 4px 4px 0;
}

.mobile-nav-ctas {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
}

.btn-mobile-quiz {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    background-color: var(--primary-deep);
    color: var(--white) !important;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.95rem;
}

.btn-mobile-wsp {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    background-color: #25d366;
    color: var(--white) !important;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.95rem;
}

.overlay-bg {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 2999;
}

.overlay-bg.show {
    display: block;
}

.close-mobile {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.2rem;
    color: var(--primary);
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 5px;
}


/* =========================================
   7. FOOTER MODERN
   ========================================= */
.modern-footer {
    background-color: var(--white);
    color: var(--primary-deep);
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--gray-border);
    font-family: var(--font-main);
    width: 100%;
    display: block;
}

.footer-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14vw;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.03;
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
}

.footer-grid-modern {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.footer-logo {
    max-width: 200px;
    height: auto;
    display: block;
    margin-bottom: 25px;
}

.modern-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 25px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modern-title::before {
    content: "+";
    color: var(--secondary);
    font-weight: 900;
}

.f-col-info p,
.f-col-info a,
.clean-list a {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.8;
    display: block;
    margin-bottom: 8px;
}

.f-col-info a:hover,
.clean-list a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.f-col-meta {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

.social-icons-modern {
    display: flex;
    gap: 15px;
}

.social-icons-modern a {
    color: var(--primary);
    font-size: 1.5rem;
    transition: 0.2s;
}

.social-icons-modern a:hover {
    color: var(--secondary);
    transform: translateY(-3px);
}

.copyright {
    font-size: 0.75rem;
    color: #999;
    margin: 0;
}


/* =========================================
   8. UTILITARIOS GLOBALES
   ========================================= */

/* Botón flotante Volver Arriba */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

#back-to-top:hover {
    background-color: var(--secondary);
    color: var(--primary-deep);
    transform: translateY(-3px);
}

/* Animación Fade-In */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Fix Admin Bar WordPress */
body.admin-bar #site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar #site-header {
        top: 46px;
    }
}

/* =========================================
   9. RESPONSIVE GLOBAL
   ========================================= */
@media (max-width: 900px) {
    #site-header {
        padding: 25px 20px 0 20px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .footer-grid-modern {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .f-col-meta {
        align-items: flex-start;
        text-align: left;
        flex-direction: row;
        justify-content: space-between;
        border-top: 1px solid #eee;
        padding-top: 20px;
        margin-top: 20px;
    }
}

@media (max-width: 600px) {
    .f-col-meta {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }

    .footer-watermark {
        font-size: 18vw;
    }
}

@media (max-width: 480px) {
    #site-header {
        padding: 20px 15px 0 15px;
    }

    .logo-img {
        height: 36px !important;
    }

    #site-header.scrolled .logo-img {
        height: 36px !important;
    }
}

/* =========================================
   10. LAYOUT BLOG MAGAZINE (home.php)
   ========================================= */
.magazine-section {
    padding: 60px 0;
    margin-top: 60px;
    margin-bottom: 60px;
}

.magazine-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    margin-bottom: 80px;
}

/* Featured Post */
.featured-post {
    position: relative;
    border-radius: 9px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
    height: 100%;
    min-height: 450px;
}

.featured-post:hover {
    transform: translateY(-5px);
}

.featured-post-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.featured-post:hover .featured-img {
    transform: scale(1.03);
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 40px;
    color: white;
    z-index: 2;
    pointer-events: none;
}

.featured-overlay a {
    pointer-events: auto;
    position: relative;
    z-index: 10;
    text-decoration: none;
}

.featured-overlay h2 {
    color: white;
    font-size: 2rem;
    margin: 10px 0;
    display: inline-block;
}

.featured-overlay h2:hover {
    color: var(--secondary);
}

/* Sidebar List */
.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-heading {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
}

.sidebar-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-item:last-child {
    border: none;
}

.sidebar-number {
    font-size: 1.5rem;
    color: #e2e8f0;
    font-weight: 800;
}

.sidebar-content h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-main);
    transition: 0.2s;
    line-height: 1.4;
}

.sidebar-item:hover h3 {
    color: var(--primary);
}

.sidebar-date {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Mini CTA - B2B */
.mini-cta {
    background-color: var(--primary-deep);
    background-image: linear-gradient(135deg, var(--primary-deep) 0%, #102a33 100%);
    padding: 40px 50px;
    margin: 60px 0;
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 30px;
    color: white;
    box-shadow: 0 20px 40px -10px rgba(28, 66, 79, 0.3);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mini-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFFFFF' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 100%);
}

.mini-cta-icon,
.mini-cta-content,
.mini-cta-action {
    position: relative;
    z-index: 1;
}

.mini-cta-icon {
    background: rgba(255, 255, 255, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--secondary);
    flex-shrink: 0;
    backdrop-filter: blur(2px);
}

.mini-cta-content {
    flex-grow: 1;
}

.mini-cta-content h3 {
    margin: 0 0 8px 0;
    color: white;
    font-size: 1.5rem;
    font-family: var(--font-editorial);
}

.mini-cta-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.5;
}

.mini-cta-action {
    flex-shrink: 0;
}

/* Grid Inferior (part-post-card) */
.tabs-header {
    margin-bottom: 40px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.section-title {
    font-size: 1.8rem;
    color: var(--primary-deep);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Card Component */
.article-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}

.card-img-link {
    overflow: hidden;
    display: block;
}

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

.card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-deep);
    line-height: 1.3;
}

.card-excerpt {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-link {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
}

/* Componentes Helper (Móvil & Vacíos) */
.placeholder-img {
    height: 220px;
    background: #eee;
}

.placeholder-bg {
    height: 100%;
    background: var(--primary-deep);
}

.tag-small {
    margin-bottom: 5px;
    font-size: 0.65rem;
}

.tag-solid {
    background: #fff !important;
    color: var(--primary) !important;
}

.meta {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
    margin-top: 10px;
}

/* Responsive Blog */
@media (max-width: 900px) {
    .magazine-section {
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .magazine-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .featured-post {
        min-height: 420px;
        height: auto;
    }

    .featured-img {
        position: absolute;
        height: 100%;
    }

    .featured-overlay {
        height: 100%;
        padding: 25px;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.9) 100%);
    }

    .featured-post .tag {
        position: absolute;
        top: 25px;
        left: 25px;
        margin: 0;
        z-index: 20;
    }

    .featured-overlay h2 {
        font-size: 1.6rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .sidebar-list {
        margin-top: 30px;
    }

    .mini-cta {
        flex-direction: column;
        text-align: center;
        padding: 35px 25px;
        gap: 20px;
    }

    .mini-cta-content h3 {
        font-size: 1.3rem;
    }

    .mini-cta-action .btn {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================
   11. CATEGORY ARCHIVE (category.php)
   ========================================= */
.archive-hero-bg {
    background-image: linear-gradient(rgba(14, 61, 77, 0.95), rgba(14, 61, 77, 0.9)), url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
}

.archive-title {
    font-size: 3.5rem;
    margin: 0 auto 20px;
    color: var(--white);
    line-height: 1.1;
    max-width: 900px;
}

.archive-desc {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    font-weight: 300;
    color: var(--white);
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.breadcrumb a,
.breadcrumb span {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
    text-decoration: none !important;
    display: flex;
    align-items: center;
}

.breadcrumb a:hover {
    color: var(--secondary);
}

.breadcrumb i {
    font-size: 0.8rem;
    opacity: 0.6;
}

.breadcrumb span {
    opacity: 0.9;
    cursor: default;
}

.archive-container {
    padding: 60px 0 80px;
    background: white;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

@media (max-width: 768px) {
    .archive-title {
        font-size: 2.2rem;
    }

    .archive-grid {
        grid-template-columns: 1fr;
    }

    .archive-hero-bg {
        padding: 140px 0 80px;
    }
}

/* =========================================
   12. SEARCH RESULTS (search.php)
   ========================================= */
.search-hero-bg {
    background-image: linear-gradient(rgba(14, 61, 77, 0.92), rgba(14, 61, 77, 0.85)), url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
}

.search-title {
    font-size: 3rem;
    margin: 0 auto 30px;
    color: var(--white);
    line-height: 1.1;
    max-width: 900px;
}

.highlight-term {
    color: var(--secondary);
    font-style: italic;
    text-decoration: underline;
    text-decoration-color: rgba(253, 227, 101, 0.5);
}

/* Barra de Búsqueda */
.search-bar-wrapper {
    max-width: 750px;
    width: 90%;
    margin: 0 auto;
    position: relative;
}

.search-input-global {
    width: 100%;
    padding: 18px 60px 18px 25px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    outline: none;
    transition: 0.3s;
    background: var(--white);
    color: var(--text-main);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.search-input-global:focus {
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.25);
}

.search-btn-global {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    font-size: 1.2rem;
}

.search-btn-global:hover {
    background: var(--primary-dark);
}

/* Resultados */
.results-container {
    padding: 60px 0 80px;
    background: white;
}

.results-count {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    max-width: 200px;
    margin: 0 auto 40px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* No Results Box */
.no-results-box {
    text-align: center;
    padding: 60px 30px;
    background: var(--bg-light);
    border: 2px dashed var(--gray-border);
    border-radius: 12px;
    max-width: 700px;
    margin: 0 auto;
}

.no-results-icon {
    font-size: 3rem;
    color: #94a3b8;
    margin-bottom: 20px;
}

.no-results-title {
    font-size: 1.5rem;
    color: var(--primary-deep);
    margin-bottom: 15px;
}

.no-results-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Paginación Específica */
.pagination-wrapper {
    margin-top: 60px;
    text-align: center;
}

.btn-pagination {
    background: white;
    color: var(--text-main);
    border: 1px solid var(--gray-border);
}

.btn-pagination:hover {
    background: var(--bg-light);
    color: var(--primary);
}

@media (max-width: 768px) {
    .search-title {
        font-size: 2rem;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .search-hero-bg {
        padding: 140px 0 80px;
    }
}

/* =========================================
   13. SINGLE POST (single.php)
   ========================================= */
/* Hero */
.single-hero {
    background-color: var(--primary-deep);
    background-image: linear-gradient(rgba(14, 61, 77, 0.95), rgba(14, 61, 77, 0.9));
    color: var(--white);
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
}

.single-title {
    font-size: 3rem;
    max-width: 900px;
    margin: 0 auto 20px;
    color: var(--white);
    line-height: 1.15;
}

.single-meta {
    font-size: 0.9rem;
    opacity: 0.9;
    color: #cbd5e1;
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.meta-separator {
    color: var(--secondary);
    font-weight: 800;
}

/* Layout */
.content-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    max-width: var(--container-width);
    margin: -60px auto 60px;
    padding: 0 25px;
    position: relative;
    z-index: 10;
}

.sidebar-left {
    position: relative;
}

/* Sticky TOC */
.sticky-toc-wrapper {
    position: sticky;
    top: 130px;
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-border);
    max-height: calc(100vh - 150px);
    overflow-y: auto;
}

.toc-title {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 15px;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc-list li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.toc-list a {
    color: var(--text-light);
    display: block;
    padding-left: 10px;
    border-left: 2px solid transparent;
    transition: all 0.2s;
}

.toc-list a:hover,
.toc-list a.active {
    color: var(--primary-dark);
    border-left-color: var(--secondary);
    font-weight: 600;
}

.toc-subitem {
    margin-left: 15px;
    font-size: 0.85rem;
    opacity: 0.9;
}

.toc-quick-help {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-border);
}

.toc-quick-help p {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 10px;
}

.toc-quick-help a {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
}

/* Contenedor Principal del Post */
.single-article-card {
    background: var(--white);
    padding: 60px;
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    min-width: 0;
}

.post-thumbnail {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Cajones Especiales (Highlights) */
.success-box,
.legal-abstract-box,
.faq-box,
.tldr-box,
.news-alert {
    padding: 24px 30px;
    border-radius: var(--radius);
    margin-bottom: 40px;
    border-style: solid;
    border-width: 1px;
    border-left-width: 5px;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.success-title,
.legal-abstract-header,
.faq-title,
.tldr-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1.25rem;
    line-height: 1.3;
}

.legal-abstract-box {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    border-left-color: #334155;
}

.legal-abstract-header {
    font-family: var(--font-editorial);
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 1.1rem;
}

.legal-abstract-content {
    font-size: 1.05rem;
    color: #475569;
    font-style: italic;
}

.success-box {
    background-color: #fffbeb;
    border-color: #fcd34d;
    border-left-color: #d97706;
}

.success-title {
    color: #92400e;
    font-family: var(--font-editorial);
    font-weight: 700;
}

.success-body {
    color: #78350F;
    font-size: 1.05rem;
}

.faq-box {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
    border-left-color: #16a34a;
}

.faq-title {
    color: #15803d;
    font-weight: 700;
}

.faq-body p {
    margin: 0;
    font-size: 1.05rem;
    color: #14532d;
}

.tldr-box {
    background-color: #f9fafb;
    border-color: var(--gray-border);
    border-left-color: var(--secondary);
}

.tldr-header {
    color: var(--primary-deep);
    font-weight: 700;
}

.tldr-body p {
    margin: 0;
    font-style: italic;
    color: #4b5563;
    font-size: 1.05rem;
}

.news-alert {
    background: #fff7ed;
    border-color: #fdba74;
    border-left-color: #ea580c;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #9a3412;
    font-size: 0.95rem;
    padding: 20px 25px;
}

.news-alert i {
    font-size: 1.5rem;
}

/* Contenido del Texto (Typography) */
.entry-content p {
    margin-bottom: 1.8em;
    font-size: 1.15rem;
    color: #334155;
}

.entry-content h2,
.entry-content h3 {
    scroll-margin-top: 140px;
}

.entry-content h2 {
    font-size: 1.8rem;
    margin-top: 2em;
    margin-bottom: 0.8em;
    color: var(--primary-deep);
}

.entry-content h3 {
    font-size: 1.4rem;
    margin-top: 2em;
    margin-bottom: 0.5em;
    color: var(--primary);
}

.entry-content ul {
    padding-left: 25px;
    margin-bottom: 2em;
    list-style: disc;
}

.entry-content li {
    margin-bottom: 0.5em;
    font-size: 1.15rem;
    color: #334155;
}

.entry-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 10px 0 10px 25px;
    margin: 2.5em 0;
    font-size: 1.3rem;
    color: var(--primary-deep);
    font-family: var(--font-editorial);
    font-style: italic;
}

/* CTA Dinámico (In-Post) */
.dynamic-cta-card {
    margin: 60px 0;
    background-color: var(--white);
    border: 1px solid var(--primary-deep);
    border-radius: 3px;
    padding: 40px;
    text-align: left;
    position: relative;
    overflow: hidden;
    box-shadow: 8px 8px 0px rgba(28, 66, 79, 0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.dynamic-cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231C424F' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
    -webkit-mask-image: linear-gradient(to left, black 0%, transparent 80%);
    mask-image: linear-gradient(to left, black 0%, transparent 80%);
}

.cta-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--secondary);
    background: var(--primary-deep);
    padding: 4px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    display: inline-block;
    position: relative;
    z-index: 2;
}

.cta-headline {
    font-size: 1.6rem;
    font-family: var(--font-editorial);
    color: var(--primary-deep);
    margin-bottom: 25px;
    line-height: 1.25;
    position: relative;
    z-index: 2;
    max-width: 90%;
}

.cta-desc {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.dynamic-cta-card .btn {
    align-self: flex-start;
    position: relative;
    z-index: 2;
}

/* Footer del Post */
.legal-disclaimer {
    margin-top: 40px;
    padding: 20px;
    background-color: #f1f5f9;
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.legal-disclaimer i {
    font-size: 1.5rem;
    color: var(--primary);
    min-width: 24px;
}

.post-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--gray-border);
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #eee;
}

.author-name {
    margin: 0;
    font-size: 1rem;
    color: var(--primary-deep);
}

.author-role {
    font-size: 0.85rem;
    color: #888;
}

/* Sección Relacionados */
.related-section {
    background: var(--white);
    padding: 60px 0 80px;
    border-top: 1px solid var(--gray-border);
}

.section-title {
    font-size: 1.8rem;
    color: var(--primary-deep);
    margin-bottom: 30px;
}

/* Knowledge Docker (Barra de progreso inferior) */
#knowledge-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    border-top: 1px solid var(--border-color);
    padding: 15px 25px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#knowledge-dock.visible {
    transform: translateY(0);
}

.dock-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 900px;
    gap: 20px;
}

.dock-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-deep);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dock-label i {
    font-size: 1.3rem;
    color: var(--primary);
}

.dock-track {
    flex-grow: 1;
    height: 6px;
    background: #f1f5f9;
    border-radius: 9px;
    position: relative;
    overflow: hidden;
}

.dock-fill {
    height: 100%;
    width: 0%;
    background: var(--secondary);
    border-radius: 9px;
    transition: width 0.1s linear;
    position: relative;
}

.dock-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}

.dock-percent {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-light);
    min-width: 45px;
    text-align: right;
}

.dock-cta {
    opacity: 0.5;
    pointer-events: none;
    transform: scale(0.95);
    transition: all 0.3s ease;
    padding: 8px 20px;
    font-size: 0.85rem;
}

#knowledge-dock.completed .dock-fill {
    background: #10b981;
}

#knowledge-dock.completed .dock-cta {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(28, 117, 142, 0.3);
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Responsive Single Post */
@media (max-width: 900px) {
    .content-layout {
        grid-template-columns: 1fr;
        margin-top: -30px;
        padding: 0 10px;
        display: flex;
        flex-direction: column;
    }

    .sidebar-left {
        order: 1;
        margin-bottom: 20px;
    }

    .sticky-toc-wrapper {
        position: relative;
        top: 0;
        max-height: none;
        padding: 20px;
        border-left: 4px solid var(--secondary);
        border-top: none;
        border-right: none;
        border-bottom: none;
        box-shadow: none;
        background: var(--bg-light);
    }

    .single-article-card {
        order: 2;
        padding: 40px 10px;
        width: 100%;
        border-radius: 0 0 9px 9px;
    }

    .single-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .single-hero {
        padding: 130px 0 70px;
    }

    .post-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .desktop-only-cta {
        display: none;
    }

    /* Ajuste Dock Móvil */
    #knowledge-dock {
        padding: 10px 15px;
    }

    .dock-label span {
        display: none;
    }

    .dock-label i {
        font-size: 1.2rem;
    }

    .dock-label .ph-check-circle {
        color: var(--primary) !important;
    }

    .dock-cta {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    /* Ajuste CTA Móvil */
    .dynamic-cta-card {
        padding: 30px 25px;
        box-shadow: 5px 5px 0px rgba(28, 66, 79, 0.08);
    }

    .cta-headline {
        font-size: 1.4rem;
    }
}

/* =========================================
   14. ARCHIVO DE EVENTOS (archive-evento.php)
   ========================================= */
.events-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* Tarjeta Evento */
.event-card {
    background: var(--white);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--gray-border);
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.event-thumb {
    height: 220px;
    background: #eee;
    position: relative;
    overflow: hidden;
}

.event-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

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

/* Badges (Estado & Modalidad) */
.status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
}

.status-open {
    background: #dcfce7;
    color: #166534;
}

.status-closed {
    background: #f1f5f9;
    color: #64748b;
}

.mode-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(28, 66, 79, 0.85);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
}

/* Contenido de la Tarjeta */
.event-body {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-date {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.05em;
}

.event-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.event-title a:hover {
    color: var(--primary);
}

.event-excerpt {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Botón Interno del Evento */
.event-footer {
    padding-top: 20px;
    border-top: 1px solid var(--gray-border);
    margin-top: auto;
}

.btn-event {
    display: block;
    text-align: center;
    width: 100%;
    background: var(--white);
    border: 2px solid var(--primary-deep);
    color: var(--primary-deep);
    padding: 14px;
    border-radius: 6px;
    font-weight: 700;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.btn-event:hover {
    background: var(--primary-deep);
    color: var(--white);
}

/* Paginación Eventos */
.pagination {
    text-align: center;
    margin-top: 60px;
}

.page-numbers {
    display: inline-block;
    padding: 12px 20px;
    margin: 0 5px;
    background: var(--white);
    border: 1px solid var(--gray-border);
    color: var(--text-main);
    border-radius: 6px;
    font-weight: 600;
    transition: 0.3s;
}

.page-numbers.current,
.page-numbers:hover {
    background: var(--primary-deep);
    color: var(--white);
    border-color: var(--primary-deep);
}

/* Caja de "Sin Eventos" */
.no-events-box {
    text-align: center;
    padding: 80px 20px;
}

.no-events-box i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 20px;
    display: inline-block;
}

.no-events-box h3 {
    color: var(--text-main);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.no-events-box p {
    color: var(--text-light);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   15. PÁGINA DE ERROR 404 (404.php)
   ========================================= */
.error-hero-bg {
    background-image: linear-gradient(rgba(14, 61, 77, 0.96), rgba(14, 61, 77, 0.9)), url('https://images.unsplash.com/photo-1455849318743-b2233052fcff?q=80&w=2069&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 180px 0 120px;
    text-align: center;
    position: relative;
}

.error-code {
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    color: var(--secondary);
    opacity: 0.2;
    margin-bottom: -15px;
    display: block;
    font-family: var(--font-editorial);
}

.error-title {
    font-size: 3.5rem;
    margin: 0 auto 20px;
    color: var(--white);
    line-height: 1.1;
    max-width: 900px;
}

.error-desc {
    font-size: 1.25rem;
    max-width: 650px;
    margin: 0 auto 40px;
    opacity: 0.95;
    font-weight: 300;
    color: var(--white);
    line-height: 1.6;
}

.quick-links {
    margin-top: 50px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 6px;
    transition: 0.3s;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-deep);
    border-color: var(--white);
}

.btn-action {
    background: var(--secondary);
    color: var(--primary-deep);
    padding: 14px 30px;
    border-radius: 6px;
    font-weight: 800;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    background: var(--white);
}

@media (max-width: 768px) {
    .error-code {
        font-size: 5rem;
    }

    .error-title {
        font-size: 2.2rem;
    }

    .error-hero-bg {
        padding: 140px 0 100px;
    }

    .quick-links {
        flex-direction: column;
        gap: 15px;
    }

    .btn-outline,
    .btn-action {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================
   16. ÁREAS DE PRÁCTICA (page-areas-de-practica.php)
   ========================================= */
.page-wrapper-areas {
    overflow-x: hidden;
}

.ap-strips {
    background: var(--white);
}

.ap-strip-row {
    display: grid;
    grid-template-columns: 400px 1fr;
    border-bottom: 1px solid var(--border-color);
    min-height: 480px;
}

.ap-strip-row:last-child {
    border-bottom: none;
}

.ap-visual {
    position: relative;
    background-color: var(--primary-deep);
    background-size: cover;
    background-position: center;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
    overflow: hidden;
}

.ap-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(28, 66, 79, 0.96) 0%, rgba(28, 66, 79, 0.8) 100%);
    z-index: 1;
}

.ap-visual-content {
    position: relative;
    z-index: 2;
}

.ap-icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 20px;
    display: block;
}

.ap-title {
    font-family: var(--font-editorial);
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 15px;
    color: var(--white);
}

.ap-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 300;
}

.btn-ap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid transparent;
}

.btn-ap-outline {
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--white);
    background: transparent;
}

.btn-ap-outline:hover {
    background: var(--white);
    color: var(--primary-deep);
    border-color: var(--white);
}

.ap-tech {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* === NUEVA ESTRUCTURA DE COLUMNAS (UI/UX) === */
.ap-columns-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    width: 100%;
}

.ap-column {
    display: flex;
    flex-direction: column;
}

/* Encabezado (Legend) que actúa como título de columna */
.ap-legend-header {
    font-size: 0.9rem;
    color: var(--primary-deep);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.ap-legend-header i.ph-check {
    color: var(--primary);
    font-size: 1.3rem;
}

.ap-legend-header i.ph-star {
    color: var(--secondary);
    font-size: 1.3rem;
}

/* Lista de ítems */
.ap-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ap-item {
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--border-color);
}

.ap-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ap-item i {
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 3px;
}

.ap-item i.ph-star {
    color: var(--secondary);
}

.ap-item strong {
    color: var(--primary-deep);
    font-weight: 700;
    margin-right: 4px;
}

/* === RESPONSIVE ÁREAS DE PRÁCTICA === */
@media (max-width: 991px) {
    .ap-strip-row {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .ap-visual {
        padding: 40px 24px;
        min-height: 280px;
    }

    .ap-tech {
        padding: 40px 24px;
    }

    /* En móviles, las columnas colapsan. El título queda automáticamente sobre su grupo */
    .ap-columns-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ap-legend-header {
        font-size: 1rem;
    }
}

/* =========================================
   17. EVENTO INDIVIDUAL (single-evento.php)
   ========================================= */
.single-web-hero {
    background-image: linear-gradient(rgba(14, 61, 77, 0.96), rgba(14, 61, 77, 0.92)), url('https://dcabogadas.cl/wp-content/uploads/2026/02/hero-evento-img.webp');
    background-size: cover;
    background-position: center;
    padding: 220px 0 100px;
    color: var(--white);
    position: relative;
}

.webinar-title-main {
    font-size: 3.5rem;
    font-weight: 800;
    max-width: 900px;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--white);
}

.webinar-badge {
    display: inline-block;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 18px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 10px;
    text-decoration: none;
    transition: 0.3s;
}

.webinar-badge:hover {
    background: var(--white);
    color: var(--primary-deep);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* Layout Grid */
.container-wide {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.web-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 80px;
    margin-top: -80px;
    position: relative;
    z-index: 10;
    margin-bottom: 80px;
}

.left-column-stack {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* Contenido Principal */
.web-content-box {
    background: var(--white);
    padding: 60px;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-border);
}

.web-content-box h2 {
    color: var(--primary-deep);
    margin: 40px 0 20px;
    font-size: 1.8rem;
    font-weight: 800;
}

.web-content-box p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 20px;
}

.web-content-box ul {
    padding-left: 0;
    list-style: none;
    margin-bottom: 30px;
}

.web-content-box li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-light);
}

.web-content-box li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--secondary);
    border-right: 2px solid var(--secondary);
    transform: rotate(45deg);
}

.alert-box-info {
    background: #f8fafc;
    padding: 20px;
    border-radius: 6px;
    margin-top: 30px;
    border-left: 4px solid var(--primary-deep);
}

.alert-box-info p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-main);
}

/* Sidebar Sticky */
.web-sidebar {
    position: relative;
}

.sticky-card {
    position: sticky;
    top: 120px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(14, 61, 77, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    padding: 40px;
    border-radius: 9px;
}

.sidebar-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-deep);
    margin-bottom: 25px;
    line-height: 1.2;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--secondary);
}

.event-meta {
    margin-bottom: 30px;
}

.meta-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.meta-icon {
    color: var(--primary-deep);
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: -2px;
}

.meta-info h3 {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.meta-info span {
    font-size: 1.05rem;
    color: var(--primary-deep);
    font-weight: 600;
    display: block;
}

.map-link {
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: underline;
    display: block;
    margin-top: 5px;
}

.meta-note {
    font-size: 0.8rem;
    text-align: center;
    margin-top: 10px;
    color: var(--text-light);
}

/* Botones Sidebar */
.btn-register {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background: var(--secondary);
    color: var(--primary-deep) !important;
    font-weight: 800;
    padding: 16px;
    border-radius: 6px;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    background: var(--white);
    border: 1px solid var(--secondary);
}

.closed-tag {
    display: block;
    text-align: center;
    width: 100%;
    border: 1px solid var(--primary-deep);
    color: var(--primary-deep);
    opacity: 0.8;
    padding: 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    cursor: default;
}

.btn-request {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background: var(--primary-deep);
    color: var(--white) !important;
    font-weight: 700;
    padding: 14px;
    border-radius: 6px;
    transition: 0.3s;
    font-size: 1rem;
}

.btn-request:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.fallback-cta-wrap {
    text-align: center;
}

.fallback-cta-wrap p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

.btn-wsp-fallback {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: auto;
    min-width: 180px;
    background: var(--primary-deep);
    color: var(--white) !important;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 50px;
    transition: 0.3s;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(28, 66, 79, 0.2);
}

.btn-wsp-fallback i {
    font-size: 1.3rem;
    margin-right: 8px;
}

.btn-wsp-fallback:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(28, 117, 142, 0.3);
}

/* Formulario Contact Form 7 embebido */
.webinar-embedded-form {
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
    position: relative;
}

.webinar-embedded-form .wpcf7 {
    margin: 0;
    padding: 0;
}

.wpcf7-response-output {
    font-size: 0.8rem;
    padding: 10px !important;
    margin: 10px 0 0 !important;
    border-radius: 3px;
    text-align: center;
}

.dc-event-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dc-field-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 5px;
    letter-spacing: 0.05em;
}

.dc-event-form input[type="text"],
.dc-event-form input[type="email"],
.dc-event-form input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-border);
    border-radius: 6px;
    font-size: 0.95rem;
    color: var(--text-main);
    background: var(--bg-light);
    transition: 0.3s;
    box-sizing: border-box;
}

.dc-event-form input:focus {
    border-color: var(--primary);
    background: var(--white);
    outline: none;
    box-shadow: 0 0 0 3px rgba(28, 117, 142, 0.1);
}

.dc-submit-wrap input[type="submit"] {
    width: 100%;
    background: var(--secondary);
    color: var(--primary-deep);
    font-weight: 700;
    padding: 10px 15px;
    border: none;
    border-radius: 50px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 8px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-shadow: 0 4px 10px rgba(253, 227, 101, 0.3);
}

.dc-submit-wrap input[type="submit"]:hover {
    background: var(--white);
    color: var(--primary-deep);
    border: 1px solid var(--secondary);
    transform: translateY(-2px);
}

.wpcf7-spinner {
    margin: 0 !important;
    position: absolute;
}

/* FAQ & Relatoras */
.faq-section-wrapper,
.relator-section {
    border-top: 1px solid var(--gray-border);
    padding-top: 40px;
}

.section-header-styled {
    text-align: center;
    color: var(--primary-deep);
    margin-bottom: 40px;
    font-weight: 800;
    font-size: 1.6rem;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-tabs {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.faq-trigger {
    background: var(--white);
    border: 1px solid var(--gray-border);
    padding: 12px 25px;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 600;
    border-radius: 50px;
    transition: 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.faq-trigger:hover {
    background: var(--bg-light);
    color: var(--primary-deep);
    transform: translateY(-2px);
}

.faq-trigger.active {
    background: var(--primary-deep);
    color: var(--white);
    border-color: var(--primary-deep);
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(14, 61, 77, 0.2);
}

.faq-display-card {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: 9px;
    padding: 40px;
    min-height: 200px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.faq-content {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.faq-content.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease forwards;
}

.faq-content h3 {
    margin: 0 0 15px 0;
    color: var(--primary-deep);
    font-size: 1.2rem;
    font-weight: 800;
    border-bottom: 2px solid var(--secondary);
    display: inline-block;
    padding-bottom: 5px;
}

.faq-content p {
    margin: 15px 0 0 0;
    color: var(--text-main);
    line-height: 1.8;
    font-size: 1rem;
}

.relator-grid {
    display: grid;
    gap: 30px;
}

.relator-grid.single {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
}

.relator-grid.double {
    grid-template-columns: 1fr 1fr;
    max-width: 900px;
    margin: 0 auto;
}

.relator-card {
    border: 1px solid var(--gray-border);
    border-radius: 9px;
    padding: 40px;
    text-align: center;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: 0.3s;
}

.relator-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.relator-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary);
    padding: 3px;
    display: block;
    margin: 0 auto 20px;
}

.relator-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-deep);
    margin: 0 0 10px 0;
}

.relator-bio {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.relator-brand {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

@media (max-width: 900px) {
    .web-layout {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        margin-top: 0;
        gap: 40px;
    }

    .web-sidebar {
        order: -1;
        margin-top: -40px;
    }

    .sticky-card {
        padding: 30px;
        position: relative;
        top: 0;
    }

    .container-wide {
        padding: 0 25px !important;
    }

    .webinar-title-main {
        font-size: 2.2rem;
    }

    .web-content-box {
        padding: 30px;
    }

    .faq-tabs {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        width: 100%;
        -webkit-overflow-scrolling: touch;
    }

    .faq-trigger {
        flex-shrink: 0;
        font-size: 0.7rem;
        white-space: nowrap;
    }

    .faq-display-card {
        padding: 25px;
    }

    .relator-grid.double {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   18. SOBRE NOSOTRAS (page-nosotras.php)
   ========================================= */
.page-wrapper-about {
    background-color: var(--white);
    overflow: hidden;
}

.ap-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

.section-padding {
    padding: 100px 0;
}

.section-roi {
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
}

/* Header Stack & Phantom Text */
.header-stack {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 60px;
    z-index: 1;
}

.phantom-text {
    font-weight: 900;
    text-transform: uppercase;
    color: rgba(28, 66, 79, 0.04);
    letter-spacing: 4px;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    position: absolute;
    z-index: 0;
    font-size: 9rem;
    display: block;
}

.header-stack h2 {
    position: relative;
    z-index: 2;
    font-size: 2.8rem;
    margin: 0.4em 0 0 0;
    color: var(--primary-deep);
}

.header-stack p {
    position: relative;
    z-index: 2;
    margin-top: 20px;
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.stack-center .phantom-text {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.stack-left {
    text-align: left;
    align-items: flex-start;
}

.stack-left .phantom-text {
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
}

/* Manifiesto */
.manifesto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.manifesto-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.manifesto-img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Visual Cards (Socias) */
.team-section {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.visual-card {
    position: relative;
    display: block;
    height: 480px;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
    transform: translateZ(0);
    cursor: pointer;
}

.vc-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s ease;
    z-index: 0;
}

.vc-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    background: var(--white);
    padding: 30px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.vc-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
}

.vc-title {
    color: var(--primary-deep) !important;
    font-weight: 800;
    font-size: 1.3rem;
    margin: 0;
    line-height: 1.3;
    text-align: left;
    flex: 1;
    padding-right: 15px;
}

.vc-title span {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
    font-family: var(--font-main);
}

.vc-icon {
    color: var(--primary);
    font-size: 2rem;
    transition: 0.3s;
    margin: 0;
    flex-shrink: 0;
}

.vc-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    transition: opacity 0.4s ease;
}

@media (min-width: 992px) {
    .vc-content {
        transform: translateY(calc(100% - 90px));
    }

    .vc-desc {
        opacity: 0;
    }

    .visual-card:hover .vc-content {
        transform: translateY(0);
    }

    .visual-card:hover .vc-desc {
        opacity: 1;
        transition-delay: 0.1s;
    }

    .visual-card:hover .vc-bg {
        transform: scale(1.05);
        opacity: 0.6;
    }

    .visual-card:hover .vc-icon {
        color: var(--secondary);
    }
}

/* Cómo Operamos */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.step-card {
    padding: 0 20px;
    position: relative;
}

.step-number {
    font-family: var(--font-editorial);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--secondary);
    display: inline-block;
    padding-bottom: 5px;
}

.step-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--primary-deep);
}

.step-card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Calculadora ROI */
.roi-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    margin-top: 40px;
    align-items: flex-start;
}

.roi-group-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    margin: 25px 0 10px 0;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

.roi-group-label:first-child {
    margin-top: 0;
}

.roi-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.roi-item {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 14px 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.roi-item:hover {
    border-color: var(--primary);
    background: var(--bg-light);
}

.roi-item.selected {
    background: var(--bg-light);
    border-color: var(--primary);
    border-left: 3px solid var(--primary);
}

.roi-checkbox {
    width: 18px;
    height: 18px;
    border: 1px solid #cbd5e1;
    border-radius: 3px;
    margin-right: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    flex-shrink: 0;
    background: var(--white);
}

.roi-item.selected .roi-checkbox {
    background: var(--primary);
    border-color: var(--primary);
}

.roi-item.selected .roi-checkbox::after {
    content: '✓';
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
}

.roi-item-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding-right: 15px;
}

.roi-item-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-deep);
    line-height: 1.3;
}

.roi-item-desc {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 4px;
    line-height: 1.4;
}

.roi-item-price {
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-main);
    text-align: right;
    min-width: 50px;
}

/* Dashboard ROI */
.roi-dashboard {
    background: var(--bg-light);
    padding: 35px 40px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    position: sticky;
    top: 100px;
}

.roi-dashboard-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
}

.plan-selector {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 25px;
}

.plan-tab {
    width: 100%;
    text-align: left;
    padding: 12px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: 0.3s;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border-top: none;
    border-left: none;
    border-right: none;
}

.plan-tab:last-child {
    border-bottom: none;
}

.plan-tab:hover {
    background: #f8fafc;
    color: var(--primary-deep);
}

.plan-tab.active {
    background: var(--primary-deep);
    color: var(--white);
}

.plan-tab-price {
    font-family: var(--font-editorial);
    font-size: 1rem;
    font-weight: 700;
}

.plan-details {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    min-height: 70px;
}

.plan-details strong {
    color: var(--primary-deep);
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.plan-details ul {
    margin: 5px 0 0 0;
    padding-left: 20px;
}

.plan-details li {
    margin-bottom: 3px;
}

.roi-dash-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.roi-label {
    color: var(--text-main);
    font-weight: 500;
}

.roi-value-neutral {
    color: var(--text-light);
    font-weight: 700;
    font-size: 1rem;
}

.roi-value-highlight {
    color: var(--primary-deep);
    font-weight: 700;
    font-size: 1rem;
}

.roi-value-warning {
    font-weight: 700;
    font-size: 0.95rem;
}

.row-tasacion {
    color: var(--text-light);
    border-bottom: 1px dashed #cbd5e1;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.row-tasacion .roi-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.row-tasacion .roi-value {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 700;
}

.row-nocubierto {
    color: #e11d48;
    background: #fff1f2;
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid #fecdd3;
    display: none;
}

.row-nocubierto .roi-label {
    font-size: 0.85rem;
}

.total-row {
    background: var(--white);
    padding: 20px 25px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: all 0.3s;
}

.total-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.total-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-deep);
}

.total-monto {
    font-size: 1.6rem;
    font-weight: 800;
    color: #10b981;
}

.mensaje-consultivo {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-top: 10px;
    border-top: 1px solid #e2e8f0;
    padding-top: 10px;
    display: none;
}

/* Banner In-House */
.inhouse-banner {
    background-color: var(--primary-deep);
    background-image: linear-gradient(135deg, var(--primary-deep) 0%, #102a33 100%);
    padding: 70px 60px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    box-shadow: 0 20px 40px -10px rgba(28, 66, 79, 0.4);
}

.inhouse-banner-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0;
}

.btn-outline-white {
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    color: white !important;
    padding: 14px 32px !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
}

.btn-outline-white:hover {
    background: white !important;
    color: var(--primary-deep) !important;
}

/* Responsive Nosotras */
@media (max-width: 991px) {
    .section-padding {
        padding: 60px 0;
    }

    .header-stack {
        margin-bottom: 40px;
        text-align: center;
        align-items: center;
    }

    .phantom-text {
        display: none !important;
    }

    .header-stack h2 {
        font-size: 2rem;
        margin-top: 0;
    }

    .manifesto-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .team-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 500px;
        margin: 0 auto;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .inhouse-banner {
        flex-direction: column;
        text-align: center;
        padding: 50px 30px;
    }

    .visual-card {
        height: 540px;
    }

    .vc-bg {
        object-position: center center !important;
        transform: scale(1.15) translateY(-3%) !important;
    }

    .vc-content {
        transform: translateY(0) !important;
        background: rgba(255, 255, 255, 0.96);
        padding: 20px 18px;
    }

    .vc-header-row {
        margin-bottom: 10px;
    }

    .vc-desc {
        opacity: 1 !important;
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .vc-title {
        font-size: 1.15rem;
    }

    .vc-title span {
        font-size: 0.75rem;
        margin-top: 2px;
    }

    .vc-icon {
        font-size: 1.6rem;
    }

    .roi-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .roi-dashboard {
        position: relative;
        top: 0;
        padding: 25px 20px;
    }
}

/* =========================================
   19. PÁGINAS LEGALES (Términos & Privacidad)
   ========================================= */
.page-wrapper-legal {
    background-color: var(--bg-light);
    padding: 100px 0;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 60px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    text-align: center;
}

.legal-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: inline-block;
}

.legal-heading-main {
    color: var(--primary-deep);
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 2rem;
}

.legal-container p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 25px;
}

.legal-download-wrap {
    margin-top: 40px;
}

.legal-btn-download {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* Específico Privacidad */
.page-wrapper-privacidad {
    background-color: var(--bg-light);
    padding: 80px 0 100px;
}

.privacidad-container {
    max-width: 950px;
    margin: 0 auto;
}

.legal-update {
    display: inline-block;
    background: var(--border-color);
    color: var(--text-light);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 40px;
    text-align: center;
    width: 100%;
}

/* FAQ Estilos para Privacidad (Reutilizados del Single Evento pero ajustados) */
.faq-section-wrapper {
    margin-bottom: 70px;
}

.section-header-styled {
    text-align: left;
    color: var(--primary-deep);
    margin-bottom: 30px;
    font-weight: 800;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--secondary);
    display: inline-block;
    padding-bottom: 10px;
}

/* Listas Premium en Privacidad */
.faq-content ul {
    margin: 0 0 20px 0;
    padding-left: 0;
    color: var(--text-light);
    list-style: none;
}

.faq-content li {
    margin-bottom: 10px;
    line-height: 1.6;
    position: relative;
    padding-left: 22px;
    font-size: 1rem;
}

.faq-content li::before {
    content: ">";
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 900;
}

.faq-content strong {
    color: var(--text-main);
}

.faq-content h3 {
    margin: 0 0 15px 0;
    color: var(--primary-deep);
    font-size: 1.3rem;
    font-weight: 800;
    border-bottom: none;
}

.faq-content h4 {
    margin: 25px 0 10px 0;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 700;
}

@media (max-width: 900px) {
    .legal-container {
        padding: 40px 25px;
    }

    .privacidad-container {
        padding: 0 20px;
    }

    .faq-tabs {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        width: 100%;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .faq-tabs::-webkit-scrollbar {
        display: none;
    }

    .faq-display-card {
        padding: 30px 20px;
    }
}

/* =========================================
   20. PÁGINA DE GRACIAS POR EVENTO (page-gracias-evento.php)
   ========================================= */
.ty-hero {
    position: relative;
    background-color: var(--primary-deep);
    background-image: linear-gradient(rgba(28, 66, 79, 0.92), rgba(28, 66, 79, 0.96)), url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    padding: 160px 20px 180px;
    text-align: center;
    color: var(--white);
}

.ty-icon-check {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 2rem;
    color: #4ade80;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.ty-title {
    font-family: var(--font-editorial);
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 15px;
    line-height: 1.1;
    color: var(--white);
}

.ty-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.ty-subtitle strong {
    color: var(--secondary);
    font-weight: 600;
}

/* Tarjeta Resumen */
.summary-section {
    margin-top: -100px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
    margin-bottom: 100px;
}

.summary-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    display: grid;
    grid-template-columns: 1fr 1px 1fr 1px 1fr;
    align-items: center;
    padding: 40px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 0 20px;
}

.s-icon-box {
    width: 50px;
    height: 50px;
    background: #f0fdfa;
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.s-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 0;
}

.s-value {
    font-size: 1.1rem;
    color: var(--primary-deep);
    font-weight: 700;
    line-height: 1.3;
}

.s-divider {
    width: 1px;
    height: 60px;
    background: var(--gray-border);
}

/* Pasos Secuenciales */
.steps-container {
    max-width: 1000px;
    margin: 0 auto 120px;
    padding: 0 20px;
}

.steps-flex {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
}

.step-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 20px;
    border-top: 2px solid var(--gray-border);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: default;
    position: relative;
    min-height: 280px;
    box-sizing: border-box;
}

.step-item:hover {
    flex: 2.5;
    border-top-color: var(--secondary);
    background: linear-gradient(to bottom, var(--white), #f8fafc);
}

.step-num {
    font-size: 3rem;
    font-weight: 800;
    color: #cbd5e1;
    line-height: 1;
    margin-bottom: 15px;
    transition: 0.3s;
}

.step-item:hover .step-num {
    color: var(--primary);
    transform: scale(1.1);
    transform-origin: left;
}

.step-head {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
    white-space: nowrap;
}

.step-desc {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease 0.1s;
    margin: 0;
}

.step-item:hover .step-desc {
    opacity: 1;
    transform: translateY(0);
}

/* CTA Google Calendar */
.calendar-section {
    max-width: 900px;
    margin: 0 auto 120px;
    padding: 0 20px;
}

.calendar-cta-wide {
    position: relative;
    background-image: linear-gradient(rgba(28, 66, 79, 0.85), rgba(28, 66, 79, 0.95)), url('https://images.unsplash.com/photo-1506784983877-45594efa4cbe?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 80px 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 20px 50px -10px rgba(28, 66, 79, 0.4);
}

.calendar-cta-wide h3 {
    color: var(--white);
    font-size: 2rem;
    margin: 0 0 10px 0;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.calendar-cta-wide p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.btn-pill-white {
    background: var(--white);
    color: var(--primary-deep);
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.btn-pill-white:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    background: var(--secondary);
}

/* Matriz de Planes Corporativos */


@media (max-width: 900px) {
    .ty-hero {
        padding: 140px 20px;
    }

    .ty-title {
        font-size: 2.5rem;
    }

    .summary-card {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px;
        text-align: left;
    }

    .summary-item {
        flex-direction: row;
        text-align: left;
        padding: 0;
    }

    .s-divider {
        display: none;
    }

    .steps-flex {
        flex-direction: column;
        gap: 30px;
    }

    .step-item {
        border-top: none;
        border-left: 2px solid var(--gray-border);
        padding: 10px 20px;
        min-height: auto;
    }

    .step-item:hover {
        border-left-color: var(--secondary);
        flex: 1;
    }

    .step-desc {
        opacity: 1;
        transform: none;
        margin-top: 5px;
        display: block;
    }

    .plan-card.featured {
        transform: scale(1);
    }
}

/* =========================================
   21. PORTADA PRINCIPAL (front-page.php)
   ========================================= */
.home-layout-stream {
    background: var(--white);
    width: 100%;
    overflow-x: hidden;
}

/* Contexto de apilamiento para los contenedores globales en la Portada */
.home-layout-stream .container {
    position: relative;
    z-index: 2;
}

.section-pad {
    padding: 100px 0;
    position: relative;
}

.bg-light {
    background-color: var(--bg-light);
}

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

/* Botones & Links Específicos */
.btn-atlanta {
    padding: 14px 28px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: 1px solid transparent;
    line-height: 1;
}

.btn-solid {
    background: var(--secondary);
    color: var(--primary-deep);
    border-color: var(--secondary);
}

.btn-solid:hover {
    background: #fce888;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

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

.link-styled {
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
}

.link-styled::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0%;
    height: 2px;
    background-color: var(--secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.link-styled:hover {
    color: var(--primary-deep);
    gap: 12px;
}

.link-styled:hover::after {
    width: 100%;
}

/* Hero Principal */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: var(--primary-deep);
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 61, 77, 0.92), rgba(28, 66, 79, 0.85));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding-top: 60px;
}

.home-layout-stream h1.hero-title {
    font-weight: 800;
    color: var(--white);
    font-size: 4.8rem;
    line-height: 1.1;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 1, 0.3, 1) forwards 0.4s;
}

.hero-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-direction: row;
}

.hero-btn-1 {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 1, 0.3, 1) forwards 0.6s;
}

.hero-btn-2 {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 1, 0.3, 1) forwards 0.8s;
}

.scroll-indicator {
    position: absolute;
    bottom: 55px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 1.2s ease;
    animation: entranceFade 1.5s ease-out forwards 1s, subtleBounce 3s infinite ease-in-out 2.5s;
}

/* Intro & Marquee Carrusel */
.intro-section {
    background: var(--white);
    border-bottom: 1px solid var(--gray-border);
    overflow: hidden;
}

.intro-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: center;
    width: 100%;
}

.intro-text-wrapper {
    position: relative;
    min-width: 0;
}

.intro-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin: 20px 0 0 0;
}

.clients-wrapper {
    position: relative;
    width: 100%;
    min-width: 0;
}

.clients-label {
    display: block;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    text-align: center;
    margin-bottom: 30px;
    opacity: 0.9;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 60px;
    width: max-content;
    animation: scrollInfinite 40s linear infinite;
}

.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

.client-logo-item {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s ease;
}

.client-logo-item:hover {
    filter: grayscale(0) opacity(1);
    transform: scale(1.05);
}

/* Rejilla de servicios corporativos: 3 columnas nativas garantizadas en escritorio */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.visual-card {
    position: relative;
    display: block;
    height: 420px;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
    transform: translateZ(0);
    cursor: pointer;
}

.vc-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    z-index: 0;
}

.vc-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    background: var(--white);
    padding: 30px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.vc-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
}

h3.vc-title {
    color: var(--primary-deep) !important;
    font-weight: 800;
    font-size: 1.25rem;
    margin: 0;
    line-height: 1.2;
    text-align: left;
    flex: 1;
    padding-right: 15px;
}

.vc-icon {
    color: var(--primary);
    font-size: 2rem;
    transition: 0.3s;
    margin: 0;
    flex-shrink: 0;
}

.vc-desc {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    transition: opacity 0.4s ease;
}

@media (min-width: 992px) {
    .vc-content {
        transform: translateY(calc(100% - 90px));
    }

    .vc-desc {
        opacity: 0;
    }

    .visual-card:hover .vc-content {
        transform: translateY(0);
    }

    .visual-card:hover .vc-desc {
        opacity: 1;
        transition-delay: 0.1s;
    }

    .visual-card:hover .vc-bg {
        transform: scale(1.05);
        opacity: 0.6;
    }

    .visual-card:hover .vc-icon {
        color: var(--secondary);
    }
}

/* Proceso con Llenado Dinámico */
.process-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: flex-start;
    margin-top: 50px;
    position: relative;
}

.process-images-wrapper {
    display: block;
    position: sticky;
    top: 15vh;
    height: 70vh;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 0;
}

.p-img-static {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 3/4;
    object-position: center center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
    transition: transform 0.4s linear;
    will-change: transform;
}

.process-steps-col {
    position: relative;
    padding-top: 0;
    padding-bottom: 50px;
}

.process-step {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 40px;
    align-items: flex-start;
    position: relative;
    margin-bottom: 40px;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-indicator-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    height: 100%;
}

.step-line-container {
    position: absolute;
    top: 58px;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background-color: var(--border-color);
    z-index: 0;
    display: block;
}

.process-step:last-child .step-line-container {
    display: none;
}

.step-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary);
    height: 0%;
    transition: height 0.1s linear;
}

.step-number {
    font-weight: 900;
    font-size: 1.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    position: relative;
    transition: all 0.4s ease;
    color: #cbd5e1;
    background-color: transparent;
    border: 2px solid var(--border-color);
}

.process-step.active .step-number {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: scale(1.05);
}

.step-text {
    opacity: 0.3;
    transition: opacity 0.5s ease;
    padding-top: 5px;
}

.process-step.active .step-text {
    opacity: 1;
}

.step-text h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-deep);
}

.step-text p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.process-cta {
    text-align: center;
    margin-top: 60px;
    grid-column: 1 / -1;
}

/* Testimonios */
.t-tab {
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    cursor: pointer;
    color: var(--text-light);
    white-space: nowrap;
    margin: 0 5px 5px 0;
    background: transparent;
    font-weight: 600;
}

.t-tab.active {
    background: var(--primary-deep);
    color: var(--white);
    border-color: var(--primary-deep);
}

.t-card {
    display: none;
    text-align: center;
    max-width: 800px;
    margin: 30px auto 0;
    padding: 30px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: var(--radius);
}

.t-card.active {
    display: block;
    animation: fadeIn 0.5s;
}

/* FAQ Acordeón CSS Puro (Clase universal sin authority) */
.faq-section-dark {
    position: relative;
    width: 100%;
    padding: 100px 20px;
    overflow: hidden;
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
}

.faq-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.faq-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.faq-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(28, 66, 79, 0.9);
    backdrop-filter: blur(2px);
}

.faq-content-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.phantom-text.phantom-light {
    color: rgba(255, 255, 255, 0.05);
}

.faq-title {
    position: relative;
    z-index: 2;
    font-family: var(--font-main, 'Inter', sans-serif);
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 24px 0;
    color: var(--white) !important;
}

.faq-subtitle {
    position: relative;
    z-index: 2;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8) !important;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.highlight-text {
    color: var(--secondary);
    font-weight: 300;
}

.faq-accordion-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item:hover {
    border-bottom-color: rgba(255, 255, 255, 0.5);
    background-color: rgba(250, 250, 250, 0.06);
}

.faq-toggle {
    position: absolute;
    opacity: 0;
    z-index: -1;
    pointer-events: none;
}

.faq-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    cursor: pointer;
    width: 100%;
    user-select: none;
    padding-left: 20px;
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 500;
    scroll-margin-top: 120px; 
}


.faq-icon {
    font-size: 1.25rem;
    color: var(--secondary);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding-left: 20px;
    flex-shrink: 0;
}

.faq-drawer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: rgba(28, 66, 79, 0.9);
}

.faq-drawer-inner {
    overflow: hidden;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin-left: 20px;
}

.faq-drawer-inner p {
    padding: 0 0 30px 0;
    margin: 0;
    color: var(--white);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 90%;
}

.faq-toggle:checked+.faq-label {
    color: var(--white);
    background-color: rgba(28, 66, 79, 0.9);
}

.faq-toggle:checked+.faq-label .faq-icon {
    transform: rotate(45deg);
    color: var(--white);
}

.faq-toggle:checked~.faq-drawer {
    grid-template-rows: 1fr;
}

.faq-toggle:checked~.faq-drawer .faq-drawer-inner {
    opacity: 1;
    transform: translateY(0);
}

/* Bloque Blog Revista */
.blog-header-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.mag-list-simple {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--border-color);
}

.mag-row {
    display: grid;
    grid-template-columns: 150px 1fr 50px;
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s;
}

.mag-row:hover {
    transform: translateX(10px);
    background: #fafafa;
    padding-left: 20px;
}

.mag-date {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.mag-title {
    font-size: 1.8rem;
    color: var(--primary-deep);
    margin: 0;
    line-height: 1.3;
    font-family: var(--font-editorial);
}

.mag-arrow {
    display: block;
    color: var(--primary);
    font-size: 1.5rem;
    opacity: 0;
    transition: 0.3s;
}

.mag-row:hover .mag-arrow {
    opacity: 1;
}

/* Keyframes Globales */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes entranceFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes subtleBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

@keyframes scrollInfinite {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* =========================================
   RESPONSIVE HOME
   ========================================= */
@media (max-width: 991px) {
    .section-pad {
        padding: 60px 0;
    }

    .header-stack {
        margin-bottom: 30px;
        text-align: center;
    }

    .phantom-text {
        display: none !important;
    }

    .header-stack h2 {
        font-size: 2rem;
        margin-top: 0;
    }

    .home-layout-stream h1.hero-title {
        font-size: 2.3rem;
        margin-bottom: 60px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
    }

    .hero-content {
        padding-top: 0px;
    }

    .btn-atlanta {
        padding: 12px 20px !important;
        font-size: 0.8rem !important;
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }

    .scroll-indicator {
        bottom: 80px;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .clients-wrapper {
        margin-top: 20px;
    }

    /* En celulares la grilla cae fluidamente a 1 sola columna vertical */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .t-tab {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .vc-content {
        transform: translateY(0) !important;
        background: rgba(255, 255, 255, 0.96);
        padding: 30px;
    }

    .vc-desc {
        opacity: 1 !important;
        font-size: 0.95rem;
    }

    h3.vc-title {
        font-size: 1.15rem;
    }

    .vc-icon {
        font-size: 1.8rem;
    }

    .process-container {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin-top: 30px;
    }

    .process-images-wrapper {
        display: block;
        position: relative;
        top: auto;
        width: 100%;
        height: 250px;
        margin-bottom: 40px;
        order: -1;
    }

    .p-img-static {
        height: 100%;
        width: 100%;
        object-fit: cover;
        transform: none !important;
        box-shadow: none;
    }

    .process-step {
        display: grid;
        grid-template-columns: 50px 1fr;
        gap: 20px;
        align-items: flex-start;
        margin-bottom: 40px;
    }

    .step-line-container {
        bottom: -40px;
        top: 50px;
        left: 50%;
        transform: translateX(-50%);
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .faq-section-dark {
        padding: 80px 20px;
    }

    .faq-label {
        padding: 20px 0 20px 10px;
        font-size: 1.1rem;
        gap: 10px;
    }

    .faq-icon {
        padding-left: 10px;
        font-size: 1.1rem;
    }

    .faq-drawer-inner {
        margin-left: 10px;
    }

    .faq-drawer-inner p {
        padding: 0 10px 24px 0;
        font-size: 1rem;
        max-width: 100%;
        line-height: 1.6;
    }

    .blog-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .mag-row {
        grid-template-columns: 1fr;
        padding: 20px 0;
        gap: 5px;
    }

    .mag-title {
        font-size: 1.4rem;
    }

    .mag-arrow {
        display: none;
    }

    .mag-row:hover {
        transform: none;
        padding-left: 0;
    }
}

/* =========================================
   22. CATÁLOGO DE SERVICIOS MASTER (page-catalogo.php)
   ========================================= */

/* --- CONTENEDOR ESTRUCTURAL EN PORTADA --- */
.page-wrapper-catalog {
    color: var(--text-main);
    background: var(--bg-light);
    width: 100%;
}

.page-wrapper-catalog section,
.page-wrapper-catalog .service-category {
    scroll-margin-top: 140px;
    /* Ajustado para que el salto no quede oculto tras ambos menús */
}

/* --- MENÚ INTERNO STICKY (Quick Nav / Mini Nav) --- */
.quick-nav {
    background: var(--white);
    padding: 0;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    width: 100%;

    /* ACTIVACIÓN EN PARALELO */
    position: -webkit-sticky;
    position: sticky;
    top: 66px;
    /* Se acopla exactamente debajo de #site-header.scrolled (42px logo + 24px padding) */
    z-index: 990;
    /* Menor que el del header (2000) para permitir que los submenús caigan por encima */
}

/* Compensación cuando la barra de administración de WordPress está activa */
body.admin-bar .quick-nav {
    top: 98px;
    /* 66px de cabecera + 32px de la barra de WP */
}

.quick-nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    overflow-x: auto;
    white-space: nowrap;
}

/* Oculta la barra de desplazamiento horizontal en móviles para mantenerlo limpio */
.quick-nav-container::-webkit-scrollbar {
    display: none;
}

.quick-nav a {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 25px;
    position: relative;
    height: 60px;
    display: flex;
    align-items: center;
    opacity: 0.8;
}

.quick-nav a:hover,
.quick-nav a.active {
    color: var(--primary);
    opacity: 1;
}

/* Línea animada inferior sincronizada con tu color Amarillo secundario */
.quick-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25px;
    right: 25px;
    height: 3px;
    background: var(--secondary);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.quick-nav a:hover::after {
    transform: scaleX(1);
}

.nav-separator {
    color: #e5e7eb;
    font-weight: 300;
    font-size: 1.2rem;
}

/* --- INTERFAZ DEL DIAGNÓSTICO DE IA --- */
.ai-section {
    background: var(--white);
    padding: 70px 0;
    border-bottom: 1px solid #f0f0f0;
}

.ai-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ai-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.ai-icon-box {
    background: rgba(253, 227, 101, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-icon {
    font-size: 2rem;
    color: #d4b61e;
}

.ai-input-group {
    width: 100%;
}

.ai-input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    resize: vertical;
    min-height: 80px;
    transition: 0.3s;
    background-color: #f9fafb;
    font-size: 1rem;
}

.ai-input:focus {
    border-color: var(--primary);
    background-color: #fff;
    outline: none;
}

.ai-result {
    padding: 24px;
    background: #f0f9ff;
    border-left: 4px solid var(--primary);
    border-radius: 4px;
    display: none;
    font-size: 1rem;
    line-height: 1.7;
    animation: slideDown 0.3s ease-out;
    margin-top: 20px;
}

.ai-result.active {
    display: block;
}

.ai-result h4 {
    color: var(--primary-deep);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.ai-result strong {
    color: var(--primary);
}

/* --- REJILLA UNIVERSAL DE PLANES (Pricing Core) --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.plan-card {
    background: var(--white);
    border-radius: 8px;
    padding: 50px 35px;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.1);
    border-color: rgba(28, 117, 142, 0.4);
}

/* --- TARJETA DESTACADA PREMIUM (Identidad Visual Original Preservada) --- */
.plan-card.featured {
    background-color: var(--primary-deep);
    background-image: linear-gradient(135deg, var(--primary-deep) 0%, #102a33 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px -10px rgba(28, 66, 79, 0.4);
    color: var(--white);
    overflow: hidden;
    z-index: 2;
}

/* Patrón geométrico de cruces "++++" exclusivo para la tarjeta destacada */
.plan-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFFFFF' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
    -webkit-mask-image: linear-gradient(to bottom, black 20%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 20%, transparent 100%);
}

.plan-card.featured>* {
    position: relative;
    z-index: 1;
}

/* Inversión cromática interna en tarjeta destacada */
.plan-card.featured .plan-header h3,
.plan-card.featured .plan-subtitle {
    color: var(--white);
}

.plan-card.featured .plan-complexity {
    color: var(--secondary);
}

.plan-card.featured .features li {
    color: rgba(255, 255, 255, 0.85);
}

/* Elementos Comunes Internos */
.badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: var(--primary-deep);
    padding: 6px 18px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.plan-complexity {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

.plan-header h3 {
    font-size: 1.75rem;
    margin-bottom: 5px;
    color: var(--text-main);
}

.plan-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
}

.features li {
    margin-bottom: 14px;
    padding-left: 28px;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-light);
}

.features li::before {
    content: "✓";
    color: var(--secondary);
    position: absolute;
    left: 0;
    font-weight: 900;
}

.highlight-feature {
    color: var(--primary);
    font-weight: 700;
}

/* --- MATRIZ DESCRIPTIVA DE SOLUCIONES (Spot Services) --- */
.service-category {
    margin-bottom: 90px;
}

.cat-header {
    display: flex;
    align-items: center;
    margin-bottom: 35px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 25px;
}

.cat-icon {
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-right: 24px;
    box-shadow: 0 4px 10px rgba(28, 117, 142, 0.2);
}

.complexity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.complexity-col {
    background: var(--white);
    padding: 32px;
    border-radius: 8px;
    border: 1px solid var(--bg-light);
    transition: 0.3s;
}

.complexity-col:hover {
    border-color: var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.complexity-col h4 {
    margin-bottom: 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    display: inline-block;
}

.complexity-col.estandar h4 {
    border-color: var(--primary);
    color: var(--primary);
}

.complexity-col.complejo h4 {
    border-color: var(--secondary);
    color: #c4a613;
}

.complexity-col.alta h4 {
    border-color: #d93025;
    color: #d93025;
}

.complexity-col ul li {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
    list-style: none;
    position: relative;
    padding-left: 15px;
}

.complexity-col ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #d1d5db;
}

/* === RESPONSIVE CO-LOCALIZADO (Garantía de Fluidez) === */
@media (max-width: 991px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .plan-card.featured {
        transform: scale(1);
    }

    .ai-header {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 600px) {
    .quick-nav-container {
        justify-content: flex-start;
        padding-left: 10px;
    }

    .quick-nav a {
        font-size: 0.75rem;
        padding: 0 15px;
    }

    .plan-card .btn {
        width: 100%;
        padding: 12px 10px;
        font-size: 0.85rem;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* ==========================================================================
   23. LANDING DIAGNÓSTICO B2B (Distraction-Free + Welcome Screen)
   ========================================================================== */
body.page-diagnostico-standalone {
    background-color: #f6f8fc;
    font-family: var(--font-main);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Header Mínimo & Logo */
.quiz-header-minimal {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 30px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.quiz-header-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.quiz-logo-img {
    height: 38px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

.logo-text-brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-deep);
    letter-spacing: 0.05em;
}

/* Progress Header */
.quiz-top-progress {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 250px;
}

.progress-track {
    flex: 1;
    height: 8px;
    background: #edf2f7;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
}

.progress-counter {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-light);
    white-space: nowrap;
}

/* Layout Principal Centrado */
#quiz-main-layout {
    padding: 50px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
}

.quiz-container-wrapper {
    max-width: 780px;
    width: 100%;
    margin: 0 auto;
}

/* 1. Welcome Card */
.welcome-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 50px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #edf2f7;
}

.diag-badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 6px 14px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.welcome-title {
    font-size: 2.4rem;
    color: var(--primary-deep);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 18px;
}

.welcome-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 35px;
}

.welcome-features-grid {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.feature-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

/* 2. Question Card & Form */
.quiz-question-card,
.quiz-result-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 45px 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #edf2f7;
}

.q-category {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 12px;
}

.q-title {
    font-size: 1.8rem;
    color: var(--primary-deep);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

.q-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.5;
}

.quiz-form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: var(--text-light);
}

.quiz-text-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #f8fafc;
    outline: none;
    transition: 0.2s;
    font-family: inherit;
    color: var(--text-main);
}

.quiz-text-input:focus {
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(28, 117, 142, 0.1);
}

/* Options Stack (Radio Cards) */
.q-options-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.radio-card-opt {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 18px 22px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.radio-card-opt input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    transition: 0.2s;
}

.radio-card-opt:hover {
    background: #ffffff;
    border-color: var(--primary);
}

.radio-card-opt.selected {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(28, 117, 142, 0.12);
}

.radio-card-opt.selected .radio-custom {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: inset 0 0 0 4px #ffffff;
}

.radio-label-text {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.4;
}

.radio-label-text strong {
    color: var(--primary-deep);
}

/* Navigation Actions */
.quiz-nav-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.btn-quiz-primary {
    background: var(--primary);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(28, 117, 142, 0.3);
}

.btn-quiz-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-quiz-outline {
    background: transparent;
    border: 1px solid var(--gray-border);
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-quiz-outline:hover {
    background: #ffffff;
    color: var(--primary-deep);
    border-color: var(--primary-deep);
}

/* 3. Results Screen */
.result-badge-wrapper {
    text-align: center;
    margin-bottom: 15px;
}

.result-top-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.result-top-badge.risk-low {
    background: #dcfce7;
    color: #166534;
}

.result-top-badge.risk-medium {
    background: #fef3c7;
    color: #b45309;
}

.result-top-badge.risk-high {
    background: #fee2e2;
    color: #991b1b;
}

.result-headline {
    font-size: 2.2rem;
    color: var(--primary-deep);
    margin: 0 0 10px;
    text-align: center;
}

.result-score-banner {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 25px;
    text-align: center;
}

.result-score-banner strong {
    color: var(--primary);
    font-size: 1.5rem;
    margin-left: 6px;
}

.result-analysis-box {
    background: #f8fafc;
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    border-radius: 4px;
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 25px;
    line-height: 1.6;
}

.result-plan-recommendation {
    background: var(--primary-deep);
    color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.plan-tag {
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 6px;
}

.result-plan-recommendation h3 {
    color: #ffffff;
    font-size: 1.6rem;
    margin: 0 0 8px;
}

.result-plan-recommendation p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.plan-bullets-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-bullets-list li {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.result-actions-wrapper {
    text-align: center;
}

.btn-wsp-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #25d366;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
    transition: all 0.25s ease;
}

.btn-wsp-lg:hover {
    background: #20ba5a;
    transform: translateY(-2px);
}

.micro-disclaimer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 12px;
}

/* Responsive */
@media (max-width: 768px) {

    .welcome-card,
    .quiz-question-card,
    .quiz-result-card {
        padding: 25px 20px;
    }

    .welcome-title {
        font-size: 1.8rem;
    }

    .q-title {
        font-size: 1.4rem;
    }
}