/**
 * UAF 2026 - Unified Stylesheet
 * Guia de Capacitacion AML/CFT para el Sector Asegurador
 *
 * This CSS file consolidates styles from all 10 HTML pages:
 * - index.html (main landing page)
 * - interactive.html (quiz/interactive learning)
 * - glosario.html (glossary and FAQ)
 * - casos-estudio.html (case studies)
 * - escenarios.html (due diligence scenarios)
 * - programas-talleres.html (training programs)
 * - buscar-guia.html (search/guide finder)
 * - analisis-comparativo.html (comparative analysis)
 * - impacto-sector-asegurador.html (insurance sector impact)
 * - simulaciones-rol.html (role-play simulations)
 */

/* ==========================================================================
   CSS VARIABLES - Core Design Tokens
   ========================================================================== */

:root {
    /* Primary Colors */
    --navy-deep: #0a1628;
    --navy: #152238;
    --navy-light: #1e3a5f;
    --teal: #0d9488;
    --teal-light: #14b8a6;
    --teal-pale: #ccfbf1;
    --gold: #d4a853;
    --gold-light: #f0d48a;

    /* Neutral Colors */
    --cream: #faf9f7;
    --white: #ffffff;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-600: #4b5563;
    --gray-800: #1f2937;

    /* Accent Colors (used across various pages) */
    --green: #10b981;
    --green-light: #d1fae5;
    --red: #ef4444;
    --red-light: #fee2e2;
    --orange: #f59e0b;
    --orange-light: #fef3c7;
    --purple: #7c3aed;
    --purple-light: #a78bfa;
    --pink: #ec4899;
    --pink-light: #f472b6;
    --blue: #3b82f6;
    --blue-light: #60a5fa;
    --blue-pale: #dbeafe;

    /* Typography */
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.05);
    --shadow-md: 0 4px 12px rgba(10, 22, 40, 0.08);
    --shadow-lg: 0 12px 40px rgba(10, 22, 40, 0.12);
    --shadow-xl: 0 24px 60px rgba(10, 22, 40, 0.16);
}

/* ==========================================================================
   CSS RESET & BASE STYLES
   ========================================================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-800);
    background: var(--cream);
    overflow-x: hidden;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--gold);
}

/* ==========================================================================
   REVEAL ANIMATIONS (index.html)
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ==========================================================================
   NAVIGATION - Common to all pages
   ========================================================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
}

/* Scrolled state (index.html) */
.nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
}

/* Default state for inner pages */
.nav-fixed {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo {
    height: 36px;
    width: auto;
}

.nav-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--navy);
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-link {
    color: var(--navy);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav.scrolled .nav-link {
    color: var(--navy);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--teal);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--teal);
}

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

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    transition: all 0.3s ease;
}

.nav-link-download {
    background: var(--teal);
    color: var(--white) !important;
    padding: 8px 16px;
    border-radius: 6px;
}

.nav-link-download::after {
    display: none;
}

.nav-link-download:hover {
    background: var(--teal-light);
}

/* Language Switcher */
.nav-language {
    display: flex;
    gap: 8px;
    margin-left: 16px;
}

.nav-language a {
    color: var(--navy);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.nav-language a:hover,
.nav-language a.active {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal);
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--navy);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 0;
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
}

.nav-dropdown-toggle:hover {
    color: var(--teal);
}

.nav-dropdown-toggle svg {
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1001;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--gray-800);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-dropdown-menu a:hover {
    background: var(--gray-100);
    color: var(--teal);
}

.nav-dropdown-menu a svg {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
}

.nav-dropdown-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 8px 0;
}

/* Mobile dropdown styles */
@media (max-width: 768px) {
    .nav-dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        padding: 0 0 0 16px;
        background: transparent;
        display: none;
    }

    .nav-dropdown.active .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .nav-dropdown-menu a {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   BUTTONS - Common to all pages
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--teal);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--teal-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-secondary-dark {
    background: var(--white);
    color: var(--navy);
    border: 2px solid var(--gray-200);
}

.btn-secondary-dark:hover {
    border-color: var(--teal);
    color: var(--teal);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   HERO SECTION - Common base with page variations
   ========================================================================== */

.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 50%, var(--navy-light) 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(13, 148, 136, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 168, 83, 0.1) 0%, transparent 40%);
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    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.03'%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");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 120px 0 80px;
}

/* Inner page hero - smaller */
.hero-inner {
    min-height: auto;
    padding: 140px 0 80px;
}

.hero-inner .hero-content {
    text-align: center;
    padding: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(13, 148, 136, 0.2);
    border: 1px solid rgba(13, 148, 136, 0.3);
    padding: 8px 16px;
    border-radius: 100px;
    color: var(--teal-light);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 32px;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--teal-light);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--white);
    margin-bottom: 24px;
    max-width: 800px;
}

.hero h1 span {
    color: var(--gold);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin-bottom: 40px;
    font-weight: 300;
}

/* Hero Navigation (index.html) */
.hero-nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 90px;
}

.hero-nav-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px);
}

.hero-nav-icon {
    width: 40px;
    height: 40px;
    background: rgba(13, 148, 136, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-nav-icon svg {
    width: 22px;
    height: 22px;
    color: var(--teal-light);
}

.hero-nav-item span {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.hero-nav-item:hover .hero-nav-icon {
    background: var(--teal);
}

.hero-nav-item:hover .hero-nav-icon svg {
    color: var(--white);
}

.hero-nav-download {
    background: rgba(13, 148, 136, 0.3);
    border-color: var(--teal);
}

.hero-nav-download .hero-nav-icon {
    background: var(--teal);
}

.hero-nav-download .hero-nav-icon svg {
    color: var(--white);
}

.hero-nav-download:hover {
    background: var(--teal);
}

/* Grouped Hero Navigation */
.hero-nav-groups {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.hero-nav-group {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    overflow: hidden;
}

.hero-nav-group-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 400;
    color: var(--gold);
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    transition: color 0.2s ease;
}

.hero-nav-group-title:hover {
    color: #fff;
}

.hero-nav-group-title::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.hero-nav-group.expanded .hero-nav-group-title {
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-nav-group.expanded .hero-nav-group-title::after {
    transform: rotate(-135deg);
}

.hero-nav-group-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.hero-nav-group.expanded .hero-nav-group-items {
    max-height: 500px;
}

.hero-nav-group .hero-nav-item {
    flex-direction: row;
    justify-content: flex-start;
    padding: 10px 14px;
    min-width: auto;
    background: rgba(255, 255, 255, 0.03);
}

.hero-nav-group .hero-nav-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.hero-nav-group .hero-nav-icon svg {
    width: 18px;
    height: 18px;
}

.hero-nav-group .hero-nav-item span {
    font-size: 0.85rem;
    text-align: left;
}

@media (max-width: 768px) {
    .hero-nav-groups {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hero-nav-group {
        padding: 16px;
    }

    .hero-nav-group.expanded .hero-nav-group-items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .hero-nav-group .hero-nav-item {
        flex-direction: column;
        text-align: center;
        padding: 12px 8px;
    }

    .hero-nav-group .hero-nav-item span {
        text-align: center;
        font-size: 0.75rem;
    }
}

/* Hero Logos */
.hero-logos {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-logos-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.hero-logos-grid {
    display: flex;
    gap: 40px;
    align-items: center;
}

.partner-logo {
    height: 50px;
    background: var(--white);
    border-radius: 8px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.partner-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* ==========================================================================
   FOOTER - Common to all pages
   ========================================================================== */

.footer {
    background: var(--navy-deep);
    padding: 60px 0 40px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.footer-logos {
    display: flex;
    justify-content: center;
    gap: 24px;
    align-items: center;
    margin-bottom: 32px;
}

.footer-logo {
    height: 88px;
    width: auto;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-logo-circle {
    width: 88px;
    height: 88px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    transition: transform 0.3s ease;
}

.footer-logo-circle:hover {
    transform: scale(1.05);
}

.footer-logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Smaller footer logos for inner pages */
.footer-logos-sm .footer-logo {
    height: 60px;
}

.footer-logos-sm .footer-logo-circle {
    width: 60px;
    height: 60px;
    padding: 10px;
}

.footer-brand {
    max-width: 600px;
    margin: 0 auto 32px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--teal-light);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

.footer p {
    font-size: 0.9rem;
}

.footer a {
    color: var(--teal-light);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   INDEX.HTML - Stats Section
   ========================================================================== */

.stats {
    background: var(--white);
    padding: 60px 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    border-radius: 24px 24px 0 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-item {
    text-align: center;
    padding: 24px;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--navy);
    margin-bottom: 8px;
}

.stat-value span {
    color: var(--teal);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* ==========================================================================
   INDEX.HTML - Summary Section
   ========================================================================== */

.summary {
    padding: 100px 0;
    background: var(--white);
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.summary-content h2 {
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 24px;
}

.summary-content p {
    color: var(--gray-600);
    margin-bottom: 20px;
}

.summary-list {
    list-style: none;
    margin-top: 32px;
}

.summary-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-200);
}

.summary-list-icon {
    width: 24px;
    height: 24px;
    background: var(--teal-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.summary-list-icon svg {
    width: 14px;
    height: 14px;
    color: var(--teal);
}

.summary-visual {
    position: relative;
}

.summary-card {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-radius: 24px;
    padding: 48px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(212, 168, 83, 0.2) 0%, transparent 60%);
}

.summary-card-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 16px;
}

.summary-card h3 {
    font-size: 1.75rem;
    margin-bottom: 20px;
    position: relative;
}

.summary-card p {
    opacity: 0.8;
    position: relative;
}

/* ==========================================================================
   INDEX.HTML - Comparison Section
   ========================================================================== */

.comparison {
    padding: 100px 0;
    background: var(--gray-100);
}

.comparison-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.comparison-header h2 {
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 16px;
}

.comparison-header p {
    color: var(--gray-600);
}

.comparison-table {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-bottom: 1px solid var(--gray-200);
}

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

.comparison-row.header {
    background: var(--navy);
    color: var(--white);
}

.comparison-cell {
    padding: 20px 28px;
}

.comparison-row.header .comparison-cell {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-cell.aspect {
    font-weight: 600;
    color: var(--navy);
    background: var(--gray-100);
}

.comparison-cell.old {
    color: var(--gray-600);
}

.comparison-cell.new {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.05) 0%, rgba(13, 148, 136, 0.1) 100%);
}

.comparison-badge {
    display: inline-block;
    background: var(--teal);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 8px;
}

/* ==========================================================================
   INDEX.HTML - Impact Section
   ========================================================================== */

.impact {
    padding: 100px 0;
    background: var(--white);
}

.impact-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.impact-header h2 {
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 16px;
}

.impact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.impact-card {
    background: var(--gray-100);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.impact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--teal) 0%, var(--teal-light) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.impact-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

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

.impact-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.impact-card-icon {
    width: 44px;
    height: 44px;
    background: var(--teal-pale);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.impact-card-icon svg {
    width: 22px;
    height: 22px;
    color: var(--teal);
}

.impact-card h3 {
    font-size: 1.1rem;
    color: var(--navy);
    margin: 0;
}

.impact-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* ==========================================================================
   INDEX.HTML - Brokers Section
   ========================================================================== */

.brokers {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
    position: relative;
    overflow: hidden;
}

.brokers::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

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

.brokers-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.brokers-header h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 16px;
}

.brokers-header p {
    color: rgba(255, 255, 255, 0.7);
}

.brokers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.broker-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
    backdrop-filter: blur(10px);
}

.broker-card-number {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--gold);
    opacity: 0.3;
    margin-bottom: 16px;
}

.broker-card h3 {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 12px;
}

.broker-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* ==========================================================================
   INDEX.HTML - Alerts Section
   ========================================================================== */

.alerts {
    padding: 100px 0;
    background: var(--cream);
}

.alerts-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.alerts-header h2 {
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 16px;
}

.alerts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.alert-card {
    background: var(--white);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s ease;
}

.alert-card:hover {
    box-shadow: var(--shadow-md);
}

.alert-card.high {
    border-left: 4px solid #ef4444;
}

.alert-card.medium {
    border-left: 4px solid var(--gold);
}

.alert-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.alert-card.high .alert-icon {
    background: #fef2f2;
    color: #ef4444;
}

.alert-card.medium .alert-icon {
    background: #fffbeb;
    color: var(--gold);
}

.alert-card h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}

.alert-card p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* ==========================================================================
   INDEX.HTML - Analysis Documents Section
   ========================================================================== */

.analysis-docs {
    padding: 100px 0;
    background: var(--gray-100);
}

.analysis-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.analysis-header h2 {
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 16px;
}

.analysis-header p {
    color: var(--gray-600);
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.analysis-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

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

.analysis-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.analysis-card-icon {
    width: 48px;
    height: 48px;
    background: var(--teal-pale);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.analysis-card-icon svg {
    width: 24px;
    height: 24px;
    color: var(--teal);
}

.analysis-card h3 {
    font-size: 1.25rem;
    color: var(--navy);
    margin: 0;
}

.analysis-card p {
    color: var(--gray-600);
    margin-bottom: 28px;
    line-height: 1.8;
}

.analysis-card-actions {
    display: flex;
    gap: 12px;
}

/* ==========================================================================
   INDEX.HTML - PDF Section
   ========================================================================== */

.pdf-section {
    padding: 100px 0;
    background: var(--white);
}

.pdf-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

.pdf-header h2 {
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 16px;
}

.pdf-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.pdf-container {
    background: var(--gray-100);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
}

/* PDF.js Viewer Styles */
.pdfjs-viewer {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.pdfjs-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--navy);
    border-bottom: 1px solid var(--navy-light);
    flex-wrap: wrap;
    gap: 12px;
}

.pdfjs-toolbar-left,
.pdfjs-toolbar-center,
.pdfjs-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdfjs-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: var(--white);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.pdfjs-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.pdfjs-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pdfjs-page-info {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 80px;
    text-align: center;
}

.pdfjs-zoom-level {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    min-width: 50px;
    text-align: center;
}

.pdfjs-canvas-container {
    height: 700px;
    overflow: auto;
    background: var(--gray-400);
    display: flex;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.pdfjs-canvas-container canvas {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: white;
}

.pdfjs-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
}

.pdfjs-loading p {
    margin-top: 16px;
    font-size: 0.95rem;
}

.pdfjs-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--teal-light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.pdfjs-loading.hidden {
    display: none;
}

/* ==========================================================================
   INTERACTIVE.HTML - Quiz Styles
   ========================================================================== */

/* Mode Selection */
.mode-selection {
    padding: 60px 0;
    background: var(--white);
}

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

.mode-card {
    background: var(--gray-100);
    border-radius: 16px;
    padding: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    text-align: center;
}

.mode-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.mode-card.active {
    border-color: var(--teal);
    background: var(--white);
}

.mode-icon {
    width: 64px;
    height: 64px;
    background: var(--teal-pale);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.mode-icon svg {
    width: 32px;
    height: 32px;
    color: var(--teal);
}

.mode-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--navy);
    margin-bottom: 8px;
}

.mode-card p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.external-badge {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 10px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Quiz Section */
.quiz-section {
    padding: 40px 0 80px;
    display: none;
}

.quiz-section.active {
    display: block;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 32px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.progress-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--teal), var(--teal-light));
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Section Announcement */
.section-announcement {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    margin-bottom: 24px;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-announcement-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.section-announcement-icon.easy {
    background: rgba(16, 185, 129, 0.2);
}

.section-announcement-icon.medium {
    background: rgba(245, 158, 11, 0.2);
}

.section-announcement-icon.hard {
    background: rgba(239, 68, 68, 0.2);
}

.section-announcement-icon svg {
    width: 32px;
    height: 32px;
}

.section-announcement-icon.easy svg {
    color: var(--green);
}

.section-announcement-icon.medium svg {
    color: var(--orange);
}

.section-announcement-icon.hard svg {
    color: var(--red);
}

.section-announcement h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 8px;
}

.section-announcement p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* Question Card */
.question-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 24px;
}

.question-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.question-number {
    display: inline-block;
    background: var(--navy);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
}

.difficulty-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.difficulty-badge.easy {
    background: var(--green-light);
    color: var(--green);
}

.difficulty-badge.medium {
    background: var(--orange-light);
    color: var(--orange);
}

.difficulty-badge.hard {
    background: var(--red-light);
    color: var(--red);
}

.difficulty-badge svg {
    width: 14px;
    height: 14px;
}

.question-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 24px;
    line-height: 1.5;
}

.question-context {
    background: var(--gray-100);
    border-left: 4px solid var(--gold);
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
    color: var(--gray-600);
}

/* Options */
.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: var(--gray-100);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option:hover:not(.disabled) {
    background: var(--white);
    border-color: var(--teal);
}

.option.selected {
    background: var(--teal-pale);
    border-color: var(--teal);
}

.option.correct {
    background: var(--green-light);
    border-color: var(--green);
}

.option.incorrect {
    background: var(--red-light);
    border-color: var(--red);
}

.option.disabled {
    cursor: default;
}

.option-marker {
    width: 28px;
    height: 28px;
    border: 2px solid var(--gray-400);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--gray-600);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.option.selected .option-marker {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--white);
}

.option.correct .option-marker {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
}

.option.incorrect .option-marker {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.option-text {
    flex: 1;
    color: var(--gray-800);
}

/* Feedback */
.feedback {
    margin-top: 24px;
    padding: 20px 24px;
    border-radius: 12px;
    display: none;
}

.feedback.show {
    display: block;
}

.feedback.correct {
    background: var(--green-light);
    border-left: 4px solid var(--green);
}

.feedback.incorrect {
    background: var(--red-light);
    border-left: 4px solid var(--red);
}

.feedback-title {
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feedback.correct .feedback-title {
    color: var(--green);
}

.feedback.incorrect .feedback-title {
    color: var(--red);
}

.feedback-text {
    color: var(--gray-700);
    font-size: 0.95rem;
}

/* Quiz Navigation */
.quiz-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.quiz-nav .btn {
    flex: 1;
    justify-content: center;
    padding: 14px 24px;
}

/* Results */
.results-card {
    background: var(--white);
    border-radius: 20px;
    padding: 48px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.results-score {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    position: relative;
}

.results-score::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 8px solid var(--gray-200);
}

.results-score::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 8px solid transparent;
    border-top-color: var(--teal);
    transform: rotate(-90deg);
}

.results-score.excellent::after {
    border-color: var(--green);
    border-bottom-color: var(--green);
    border-left-color: var(--green);
}

.results-score.good::after {
    border-top-color: var(--teal);
    border-right-color: var(--teal);
}

.results-score.needs-work::after {
    border-top-color: var(--gold);
}

.score-number {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--navy);
}

.score-label {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.results-message {
    margin-bottom: 32px;
}

.results-message h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--navy);
    margin-bottom: 12px;
}

.results-message p {
    color: var(--gray-600);
}

.results-breakdown {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--gray-100);
    border-radius: 12px;
    flex-wrap: wrap;
}

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

.breakdown-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.breakdown-value.correct {
    color: var(--green);
}

.breakdown-value.incorrect {
    color: var(--red);
}

.breakdown-label {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.results-by-difficulty {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.difficulty-result {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.difficulty-result.easy {
    background: var(--green-light);
    color: var(--green);
}

.difficulty-result.medium {
    background: var(--orange-light);
    color: var(--orange);
}

.difficulty-result.hard {
    background: var(--red-light);
    color: var(--red);
}

.results-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ==========================================================================
   GLOSARIO.HTML - Glossary & FAQ Styles
   ========================================================================== */

/* Search Section */
.search-section {
    background: var(--white);
    padding: 60px 0;
    border-bottom: 1px solid var(--gray-200);
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 18px 24px 18px 56px;
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    font-size: 1.1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    background: var(--white);
}

.search-input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    color: var(--gray-400);
}

.search-results-count {
    text-align: center;
    margin-top: 16px;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.search-hint {
    text-align: center;
    margin-top: 12px;
    color: var(--gray-400);
    font-size: 0.85rem;
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-600);
}

.tab.active {
    border-color: var(--teal);
    background: var(--teal);
    color: var(--white);
}

.tab:hover:not(.active) {
    border-color: var(--teal);
    color: var(--teal);
}

/* Tab Content */
.content-section {
    padding: 60px 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Glossary */
.glossary-letter {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--navy);
    margin: 40px 0 16px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--gold);
    display: inline-block;
}

.glossary-letter:first-child {
    margin-top: 0;
}

.glossary-term {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.glossary-term:hover {
    box-shadow: var(--shadow-md);
    border-left-color: var(--teal);
}

.glossary-term h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.glossary-term .abbr {
    display: inline-block;
    background: var(--teal-pale);
    color: var(--teal);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 8px;
    text-transform: uppercase;
}

.glossary-term p {
    color: var(--gray-600);
    margin: 0;
}

.glossary-term .reference {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--gray-400);
}

.glossary-term.hidden {
    display: none;
}

.glossary-term mark {
    background: var(--gold-light);
    padding: 0 2px;
    border-radius: 2px;
}

/* FAQ */
.faq-category {
    margin-bottom: 48px;
}

.faq-category h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--teal);
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-item.hidden {
    display: none;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: var(--white);
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--gray-100);
}

.faq-question svg {
    width: 24px;
    height: 24px;
    color: var(--teal);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

.faq-answer-inner {
    padding: 0 24px 24px;
    color: var(--gray-600);
}

.faq-answer-inner p {
    margin-bottom: 12px;
}

.faq-answer-inner p:last-child {
    margin-bottom: 0;
}

.faq-answer-inner ul {
    padding-left: 20px;
    margin: 12px 0;
}

.faq-answer-inner li {
    margin-bottom: 8px;
}

/* No results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-400);
}

.no-results svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-results p {
    font-size: 1.1rem;
}

/* ==========================================================================
   CASOS-ESTUDIO.HTML - Case Study Styles
   ========================================================================== */

/* Case Navigation */
.case-nav {
    background: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 64px;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.case-nav-inner {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.case-nav-btn {
    flex-shrink: 0;
    padding: 12px 24px;
    background: var(--gray-100);
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s ease;
}

.case-nav-btn:hover {
    background: var(--teal-pale);
    color: var(--teal);
}

.case-nav-btn.active {
    background: var(--purple);
    color: var(--white);
    border-color: var(--purple);
}

/* Main Content */
.main-content {
    padding: 60px 0;
}

/* Case Study Card */
.case-study {
    display: none;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.case-study.active {
    display: block;
}

.case-header {
    background: linear-gradient(135deg, var(--purple) 0%, #5b21b6 100%);
    padding: 40px;
    color: var(--white);
}

.case-number {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.case-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 12px;
}

.case-header p {
    opacity: 0.9;
    font-size: 1.05rem;
}

.case-body {
    padding: 40px;
}

/* Section Tabs */
.section-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-200);
}

.section-tab {
    padding: 10px 18px;
    background: var(--gray-100);
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s ease;
}

.section-tab:hover {
    background: var(--teal-pale);
    color: var(--teal);
}

.section-tab.active {
    background: var(--teal);
    color: var(--white);
}

/* Section Content */
.section-content {
    display: none;
}

.section-content.active {
    display: block;
}

.section-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--teal);
}

.section-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin: 28px 0 16px;
}

.section-content h4:first-of-type {
    margin-top: 0;
}

.section-content p {
    margin-bottom: 16px;
    color: var(--gray-600);
}

.section-content ul, .section-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.section-content li {
    margin-bottom: 10px;
    color: var(--gray-600);
}

.section-content li strong {
    color: var(--navy);
}

/* Narrative Box */
.narrative-box {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 100%);
    border-left: 4px solid var(--purple);
    padding: 24px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 32px;
}

.narrative-box p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-800);
    margin-bottom: 16px;
}

.narrative-box p:last-child {
    margin-bottom: 0;
}

/* Info Cards Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 24px 0;
}

.info-card {
    background: var(--gray-100);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--teal);
}

.info-card.warning {
    border-left-color: var(--orange);
    background: #fffbeb;
}

.info-card.danger {
    border-left-color: var(--red);
    background: #fef2f2;
}

.info-card.success {
    border-left-color: var(--green);
    background: #ecfdf5;
}

.info-card.pink {
    border-left-color: var(--pink);
    background: #fdf2f8;
}

.info-card h5 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-card ul {
    margin: 0;
    padding-left: 18px;
}

.info-card li {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

/* Analysis Table */
.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.95rem;
}

.analysis-table th,
.analysis-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.analysis-table th {
    background: var(--navy);
    color: var(--white);
    font-weight: 600;
}

.analysis-table tr:hover {
    background: var(--gray-100);
}

/* Quadrant Chart */
.quadrant-container {
    margin: 24px 0;
}

.quadrant-chart {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 2px;
    background: var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
}

.quadrant {
    padding: 20px;
    background: var(--white);
}

.quadrant h5 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.quadrant.high-priority-high-impact,
.quadrant.q1 {
    background: #fef2f2;
}

.quadrant.high-priority-high-impact h5,
.quadrant.q1 h5 {
    color: var(--red);
}

.quadrant.high-priority-low-impact,
.quadrant.q2 {
    background: #fffbeb;
}

.quadrant.high-priority-low-impact h5,
.quadrant.q2 h5 {
    color: var(--orange);
}

.quadrant.low-priority-high-impact,
.quadrant.q3 {
    background: #ecfdf5;
}

.quadrant.low-priority-high-impact h5,
.quadrant.q3 h5 {
    color: var(--green);
}

.quadrant.low-priority-low-impact,
.quadrant.q4 {
    background: var(--gray-100);
}

.quadrant.low-priority-low-impact h5,
.quadrant.q4 h5 {
    color: var(--gray-600);
}

.quadrant ul {
    margin: 0;
    padding-left: 16px;
    font-size: 0.9rem;
}

.quadrant li {
    margin-bottom: 6px;
}

.quadrant-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--gray-600);
    font-weight: 600;
}

/* Question Box */
.question-box {
    background: linear-gradient(135deg, var(--teal-pale) 0%, var(--white) 100%);
    border: 2px solid var(--teal);
    padding: 24px;
    border-radius: 12px;
    margin: 24px 0;
}

.question-box h5 {
    color: var(--teal);
    font-size: 1rem;
    margin-bottom: 16px;
}

.question-box ol {
    margin: 0;
    padding-left: 20px;
}

.question-box li {
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--navy);
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, var(--purple) 0%, #5b21b6 100%);
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    color: var(--white);
    margin: 40px 0;
}

.cta-box h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--white);
}

.cta-box p {
    margin-bottom: 20px;
    opacity: 0.9;
    color: var(--white);
}

.cta-btn {
    display: inline-block;
    background: var(--white);
    color: var(--purple);
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* References */
.references {
    background: var(--gray-100);
    padding: 24px;
    border-radius: 12px;
    margin-top: 32px;
}

.references h5 {
    font-size: 1rem;
    color: var(--navy);
    margin-bottom: 16px;
}

.references ul {
    margin: 0;
    padding-left: 20px;
}

.references li {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.references a {
    color: var(--teal);
    text-decoration: none;
}

.references a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   ESCENARIOS.HTML - DD Scenarios Styles
   ========================================================================== */

/* Disclaimer Banner */
.disclaimer-banner {
    background: #fef3cd;
    border-bottom: 2px solid var(--gold);
    padding: 16px 0;
}

.disclaimer-banner p {
    margin: 0;
    color: #856404;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* Category Navigation */
.cat-nav {
    background: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 64px;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.cat-nav-inner {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.cat-nav-btn {
    flex-shrink: 0;
    padding: 12px 20px;
    background: var(--gray-100);
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s ease;
}

.cat-nav-btn:hover {
    background: var(--blue-pale);
    color: var(--blue);
}

.cat-nav-btn.active {
    background: var(--blue);
    color: var(--white);
}

/* Category Section */
.category {
    display: none;
}

.category.active {
    display: block;
}

.category-header {
    background: linear-gradient(135deg, var(--blue) 0%, #1d4ed8 100%);
    padding: 32px;
    border-radius: 16px 16px 0 0;
    color: var(--white);
}

.category-header.posibles { background: linear-gradient(135deg, var(--teal) 0%, #0f766e 100%); }
.category-header.estresados { background: linear-gradient(135deg, var(--orange) 0%, #d97706 100%); }
.category-header.extremos { background: linear-gradient(135deg, var(--red) 0%, #dc2626 100%); }
.category-header.imposibles { background: linear-gradient(135deg, var(--purple) 0%, #6d28d9 100%); }
.category-header.fantasticos { background: linear-gradient(135deg, var(--pink) 0%, #db2777 100%); }

.category-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.category-header h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.category-header p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.category-body {
    background: var(--white);
    border-radius: 0 0 16px 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Scenario Card */
.scenario-card {
    padding: 32px;
    border-bottom: 1px solid var(--gray-200);
}

.scenario-card:last-child {
    border-bottom: none;
}

.scenario-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--blue);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.scenario-card.posibles .scenario-number { background: var(--teal); }
.scenario-card.estresados .scenario-number { background: var(--orange); }
.scenario-card.extremos .scenario-number { background: var(--red); }
.scenario-card.imposibles .scenario-number { background: var(--purple); }
.scenario-card.fantasticos .scenario-number { background: var(--pink); }

.scenario-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--navy);
    margin-bottom: 12px;
}

.scenario-description {
    color: var(--gray-600);
    margin-bottom: 20px;
    padding: 16px;
    background: var(--gray-100);
    border-radius: 8px;
    border-left: 4px solid var(--blue);
}

.scenario-card.posibles .scenario-description { border-left-color: var(--teal); }
.scenario-card.estresados .scenario-description { border-left-color: var(--orange); }
.scenario-card.extremos .scenario-description { border-left-color: var(--red); }
.scenario-card.imposibles .scenario-description { border-left-color: var(--purple); }
.scenario-card.fantasticos .scenario-description { border-left-color: var(--pink); }

.scenario-section {
    margin-bottom: 20px;
}

.scenario-section:last-child {
    margin-bottom: 0;
}

.scenario-section h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.scenario-section h4::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--blue);
    border-radius: 50%;
}

.scenario-card.posibles .scenario-section h4::before { background: var(--teal); }
.scenario-card.estresados .scenario-section h4::before { background: var(--orange); }
.scenario-card.extremos .scenario-section h4::before { background: var(--red); }
.scenario-card.imposibles .scenario-section h4::before { background: var(--purple); }
.scenario-card.fantasticos .scenario-section h4::before { background: var(--pink); }

.scenario-section p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* Reflection Box */
.reflection-box {
    background: linear-gradient(135deg, var(--blue-pale) 0%, var(--white) 100%);
    border: 2px solid var(--blue);
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.scenario-card.posibles .reflection-box { border-color: var(--teal); background: linear-gradient(135deg, var(--teal-pale) 0%, var(--white) 100%); }
.scenario-card.estresados .reflection-box { border-color: var(--orange); background: linear-gradient(135deg, #fef3c7 0%, var(--white) 100%); }
.scenario-card.extremos .reflection-box { border-color: var(--red); background: linear-gradient(135deg, #fee2e2 0%, var(--white) 100%); }
.scenario-card.imposibles .reflection-box { border-color: var(--purple); background: linear-gradient(135deg, #ede9fe 0%, var(--white) 100%); }
.scenario-card.fantasticos .reflection-box { border-color: var(--pink); background: linear-gradient(135deg, #fce7f3 0%, var(--white) 100%); }

.reflection-box h5 {
    color: var(--blue);
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.scenario-card.posibles .reflection-box h5 { color: var(--teal); }
.scenario-card.estresados .reflection-box h5 { color: var(--orange); }
.scenario-card.extremos .reflection-box h5 { color: var(--red); }
.scenario-card.imposibles .reflection-box h5 { color: var(--purple); }
.scenario-card.fantasticos .reflection-box h5 { color: var(--pink); }

.reflection-box ol {
    margin: 0;
    padding-left: 20px;
}

.reflection-box li {
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--navy);
    font-size: 0.9rem;
}

/* Campus CTA */
.campus-cta {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    color: var(--white);
    margin: 40px 0;
}

.campus-cta h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.campus-cta p {
    opacity: 0.9;
    margin-bottom: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.campus-btn {
    display: inline-block;
    background: var(--gold);
    color: var(--navy);
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.campus-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 168, 83, 0.4);
}

/* ==========================================================================
   PROGRAMAS-TALLERES.HTML - Training Programs Styles
   ========================================================================== */

/* Programs Section */
.programs {
    padding: 80px 0;
    background: var(--white);
}

.programs-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.programs-intro h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 16px;
}

.programs-intro p {
    color: var(--gray-600);
}

.program-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.program-tab {
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-600);
}

.program-tab.active {
    border-color: var(--teal);
    background: var(--teal);
    color: var(--white);
}

.program-tab:hover:not(.active) {
    border-color: var(--teal);
    color: var(--teal);
}

.program-content {
    display: none;
}

.program-content.active {
    display: block;
}

.program-card {
    background: var(--gray-100);
    border-radius: 24px;
    padding: 48px;
    margin-bottom: 48px;
}

.program-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 24px;
}

.program-title h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--navy);
    margin-bottom: 8px;
}

.program-title .subtitle {
    color: var(--gray-600);
}

.program-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.program-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-600);
}

.program-meta-item svg {
    width: 20px;
    height: 20px;
    color: var(--teal);
}

.program-meta-item strong {
    color: var(--navy);
}

.module {
    background: var(--white);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 16px;
}

.module-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.module-number {
    width: 40px;
    height: 40px;
    background: var(--teal);
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.module-info h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}

.module-info .duration {
    font-size: 0.85rem;
    color: var(--teal);
    font-weight: 500;
}

.module-topics {
    padding-left: 56px;
}

.module-topics ul {
    list-style: none;
    padding: 0;
}

.module-topics li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--gray-600);
}

.module-topics li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
}

.audience-box {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-radius: 16px;
    padding: 32px;
    color: var(--white);
    margin-top: 32px;
}

.audience-box h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--gold);
    margin-bottom: 16px;
}

.audience-box ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.audience-box li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.audience-box li svg {
    width: 20px;
    height: 20px;
    color: var(--teal-light);
    flex-shrink: 0;
}

/* Check mark for comparison tables */
.check {
    color: var(--teal);
    font-weight: 600;
}

/* ==========================================================================
   BUSCAR-GUIA.HTML - Search/Guide Finder Styles
   ========================================================================== */

/* Search Input Wrapper */
.search-input-wrapper {
    position: relative;
    display: flex;
    gap: 12px;
}

.search-btn {
    padding: 16px 28px;
    font-size: 1rem;
}

.search-tips {
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--gray-600);
    text-align: center;
}

.search-tips code {
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
}

/* Results */
.results-section {
    padding: 0 0 80px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.results-count {
    font-size: 1.1rem;
    color: var(--navy);
}

.results-count strong {
    color: var(--teal);
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.result-card {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--teal);
    transition: all 0.3s ease;
}

.result-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(4px);
}

.result-section {
    display: inline-block;
    background: var(--teal-pale);
    color: var(--teal);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.result-text {
    color: var(--gray-800);
    line-height: 1.8;
    font-size: 0.95rem;
}

.result-text mark {
    background: var(--gold-light);
    color: var(--navy);
    padding: 1px 4px;
    border-radius: 3px;
}

.result-page {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* Loading */
.loading {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--teal);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading p {
    color: var(--gray-600);
}

/* No Results */
.no-results-icon {
    width: 64px;
    height: 64px;
    color: var(--gray-400);
    margin-bottom: 20px;
}

.no-results h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 12px;
}

/* Table of Contents */
.toc-section {
    padding: 40px 0 80px;
}

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

.toc-header h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--navy);
    margin-bottom: 12px;
}

.toc-header p {
    color: var(--gray-600);
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.toc-item {
    background: var(--gray-100);
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.toc-item:hover {
    background: var(--white);
    border-color: var(--teal);
    box-shadow: var(--shadow-md);
}

.toc-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--teal);
    margin-bottom: 8px;
}

.toc-title {
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}

.toc-desc {
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.pagination button {
    padding: 10px 16px;
    border: 2px solid var(--gray-200);
    background: var(--white);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button:hover:not(:disabled) {
    border-color: var(--teal);
    color: var(--teal);
}

.pagination button.active {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--white);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================================================
   ANALISIS-COMPARATIVO.HTML & IMPACTO-SECTOR-ASEGURADOR.HTML - Article Styles
   ========================================================================== */

/* Content Section */
.content {
    background: var(--white);
    padding: 60px 0 100px;
}

.article {
    max-width: 800px;
    margin: 0 auto;
}

/* Article Typography */
.article h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--navy);
    margin: 60px 0 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--teal);
}

.article h2:first-child {
    margin-top: 0;
}

.article h2.gold-border {
    border-bottom-color: var(--gold);
}

.article h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--navy);
    margin: 40px 0 16px;
}

.article h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    margin: 32px 0 12px;
}

.article p {
    color: var(--gray-600);
    margin-bottom: 20px;
}

.article strong {
    color: var(--navy);
    font-weight: 600;
}

.article ul, .article ol {
    margin: 20px 0;
    padding-left: 24px;
    color: var(--gray-600);
}

.article li {
    margin-bottom: 12px;
}

.article li strong {
    color: var(--teal);
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin: 32px 0;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.article table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.article th {
    background: var(--navy);
    color: var(--white);
    font-weight: 600;
    text-align: left;
    padding: 16px 20px;
    font-size: 0.9rem;
}

.article td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-600);
}

.article tr:last-child td {
    border-bottom: none;
}

.article tr:nth-child(even) {
    background: var(--gray-100);
}

/* Blockquotes */
.article blockquote {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.05) 0%, rgba(13, 148, 136, 0.1) 100%);
    border-left: 4px solid var(--teal);
    padding: 24px 28px;
    margin: 32px 0;
    border-radius: 0 12px 12px 0;
}

.article blockquote.gold {
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.05) 0%, rgba(212, 168, 83, 0.15) 100%);
    border-left-color: var(--gold);
}

.article blockquote p {
    color: var(--navy);
    font-style: italic;
    margin-bottom: 0;
}

.article blockquote strong {
    color: var(--teal);
}

.article blockquote.gold strong {
    color: var(--gold);
}

/* Code/Diagram blocks */
.diagram {
    background: var(--navy-deep);
    color: var(--teal-light);
    padding: 32px;
    border-radius: 12px;
    margin: 32px 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre;
}

/* Highlight boxes */
.highlight-box {
    background: var(--gold-light);
    border-left: 4px solid var(--gold);
    padding: 20px 24px;
    margin: 32px 0;
    border-radius: 0 12px 12px 0;
}

.highlight-box.teal {
    background: var(--teal-pale);
    border-left-color: var(--teal);
}

.highlight-box.warning {
    background: var(--red-light);
    border-left-color: var(--red);
}

.highlight-box p {
    color: var(--navy);
    margin-bottom: 0;
}

/* Badge */
.badge {
    display: inline-block;
    background: var(--teal);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 8px;
    vertical-align: middle;
}

.badge.updated {
    background: var(--gold);
}

.badge.expanded {
    background: var(--navy-light);
}

/* Alert indicators */
.alert-indicator {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.alert-indicator.high {
    background: var(--red-light);
    color: var(--red);
}

.alert-indicator.medium {
    background: #fffbeb;
    color: var(--gold);
}

/* Horizontal rule */
.article hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, var(--teal), var(--gold), var(--teal));
    margin: 60px 0;
    border-radius: 2px;
}

/* Footer note */
.footer-note {
    margin-top: 60px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
    font-style: italic;
    color: var(--gray-400);
    text-align: center;
}

/* Print actions */
.print-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--gray-200);
}

/* Section highlight */
.section-highlight {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    padding: 40px;
    border-radius: 16px;
    margin: 40px 0;
}

.section-highlight h3 {
    color: var(--gold);
    margin-top: 0;
}

.section-highlight p {
    color: rgba(255, 255, 255, 0.9);
}

.section-highlight ul {
    color: rgba(255, 255, 255, 0.9);
}

.section-highlight strong {
    color: var(--white);
}

/* ==========================================================================
   SIMULACIONES-ROL.HTML - Role-Play Simulation Styles
   ========================================================================== */

/* Simulation Navigation */
.sim-nav {
    background: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 64px;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.sim-nav-inner {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.sim-nav-btn {
    flex-shrink: 0;
    padding: 12px 20px;
    background: var(--gray-100);
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sim-nav-btn:hover {
    background: #fce7f3;
    color: var(--pink);
}

.sim-nav-btn.active {
    background: var(--pink);
    color: var(--white);
}

/* Simulation Card */
.simulation {
    display: none;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.simulation.active {
    display: block;
}

.sim-header {
    background: linear-gradient(135deg, var(--pink) 0%, #db2777 100%);
    padding: 40px;
    color: var(--white);
}

.sim-number {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.sim-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 12px;
}

.sim-body {
    padding: 40px;
}

/* Section Tabs for Simulations (pink variant) */
.section-tabs-pink .section-tab:hover {
    background: #fce7f3;
    color: var(--pink);
}

.section-tabs-pink .section-tab.active {
    background: var(--pink);
    color: var(--white);
}

.section-content-pink h3 {
    border-bottom-color: var(--pink);
}

/* Scenario Box */
.scenario-box {
    background: linear-gradient(135deg, #fdf2f8 0%, var(--white) 100%);
    border-left: 4px solid var(--pink);
    padding: 24px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 32px;
}

.scenario-box p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-800);
}

/* Role Cards */
.role-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.role-card {
    background: var(--gray-100);
    padding: 24px;
    border-radius: 12px;
    border-top: 4px solid var(--pink);
}

.role-card h5 {
    font-size: 1rem;
    color: var(--navy);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.role-card h5::before {
    content: '';
    width: 32px;
    height: 32px;
    background: var(--pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.role-card p {
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.role-card ul {
    margin: 0;
    padding-left: 18px;
    font-size: 0.9rem;
}

/* Activity Box */
.activity-box {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    border: 2px solid var(--pink);
    padding: 24px;
    border-radius: 12px;
    margin: 24px 0;
}

.activity-box h5 {
    color: var(--pink);
    font-size: 1rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.activity-box ol, .activity-box ul {
    margin: 0;
    padding-left: 20px;
}

.activity-box li {
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--navy);
}

/* CTA Box (pink variant) */
.cta-box-pink {
    background: linear-gradient(135deg, var(--pink) 0%, #db2777 100%);
}

.cta-box-pink .cta-btn {
    color: var(--pink);
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */

@media (max-width: 1024px) {
    .comparison-table {
        overflow-x: auto;
    }

    .comparison-row {
        min-width: 700px;
    }

    .impact-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .mode-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        box-shadow: var(--shadow-md);
    }

    .nav-links.active {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-nav {
        gap: 8px;
    }

    .hero-nav-item {
        padding: 12px 14px;
        min-width: 75px;
    }

    .hero-nav-icon {
        width: 36px;
        height: 36px;
    }

    .hero-nav-icon svg {
        width: 18px;
        height: 18px;
    }

    .hero-nav-item span {
        font-size: 0.7rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .impact-cards {
        grid-template-columns: 1fr;
    }

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

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

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

    .footer-nav {
        flex-direction: column;
        gap: 16px;
    }

    .pdf-viewer {
        height: 500px;
    }

    .pdfjs-toolbar {
        justify-content: center;
    }

    .pdfjs-toolbar-center {
        order: -1;
        width: 100%;
        justify-content: center;
    }

    .pdfjs-canvas-container {
        height: 500px;
    }

    /* Quiz responsive */
    .mode-grid {
        grid-template-columns: 1fr;
    }

    .question-card, .results-card {
        padding: 28px;
    }

    .results-breakdown {
        flex-direction: column;
        gap: 16px;
    }

    .results-actions {
        flex-direction: column;
    }

    .quiz-nav {
        flex-direction: column;
    }

    .results-by-difficulty {
        flex-direction: column;
        align-items: center;
    }

    /* Glossary responsive */
    .tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .tab {
        text-align: center;
    }

    /* Info grid responsive */
    .info-grid {
        grid-template-columns: 1fr;
    }

    /* Case study responsive */
    .case-header {
        padding: 24px;
    }

    .case-header h2 {
        font-size: 1.5rem;
    }

    .case-body {
        padding: 24px;
    }

    .section-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 12px;
    }

    .section-tab {
        flex-shrink: 0;
    }

    /* Programs responsive */
    .program-tabs {
        flex-direction: column;
    }

    .program-card {
        padding: 28px;
    }

    .module-topics {
        padding-left: 0;
        margin-top: 16px;
    }

    .comparison-row {
        grid-template-columns: 1fr;
    }

    .comparison-cell:not(.feature) {
        padding: 12px 24px;
    }

    /* Search responsive */
    .search-input-wrapper {
        flex-direction: column;
    }

    .search-btn {
        width: 100%;
        justify-content: center;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }

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

    /* Article responsive */
    .nav-actions {
        display: none;
    }

    .article h2 {
        font-size: 1.5rem;
    }

    .article h3 {
        font-size: 1.25rem;
    }

    .print-actions {
        flex-direction: column;
    }

    .section-highlight {
        padding: 28px;
    }

    /* Simulation responsive */
    .sim-header {
        padding: 24px;
    }

    .sim-header h2 {
        font-size: 1.5rem;
    }

    .sim-body {
        padding: 24px;
    }

    /* Scenario responsive */
    .category-header {
        padding: 24px;
    }

    .category-header h2 {
        font-size: 1.5rem;
    }

    .scenario-card {
        padding: 24px;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .nav, .case-nav, .cat-nav, .sim-nav, .section-tabs, .print-actions, .footer {
        display: none;
    }

    .case-study, .category, .simulation {
        display: block !important;
        page-break-after: always;
    }

    .section-content {
        display: block !important;
    }

    .hero {
        padding: 40px 0;
        background: var(--white);
        color: var(--navy);
        min-height: auto;
    }

    .hero h1, .hero-subtitle {
        color: var(--navy);
    }

    .content {
        padding: 20px 0;
    }

    .section-highlight {
        background: var(--gray-100);
        color: var(--navy);
    }

    .section-highlight h3 {
        color: var(--navy);
    }

    .section-highlight p, .section-highlight ul {
        color: var(--gray-600);
    }
}
