/* ============================================
   ABOGADOPE.COM - Portal Legal Perú
   Premium Design System
   ============================================ */

/* ============================================
   1. VARIABLES CSS
   ============================================ */
:root {
    /* Colors - Deep Navy Palette */
    --color-primary: #0f1b2d;
    --color-primary-rgb: 15, 27, 45;
    --color-primary-dark: #0f1b2d;
    --color-primary-light: #2563eb;
    --color-primary-light-rgb: 37, 99, 235;

    /* Blue / Interactive Accent (trust, action) */
    --color-secondary: #2563eb;
    --color-secondary-rgb: 37, 99, 235;
    --color-secondary-dark: #1d4ed8;

    /* Rojo Peruano / Identity only (logo, thin lines, badges) */
    --color-peru: #C8102E;
    --color-peru-rgb: 200, 16, 46;

    /* Gold / Reserved for stars */
    --color-gold: #f59e0b;

    /* Neutrals */
    --color-white: #ffffff;
    --color-gray-50: #f8fafc;
    --color-gray-100: #f8fafc;
    --color-gray-200: #e2e8f0;
    --color-gray-300: #e2e8f0;
    --color-gray-400: #64748b;
    --color-gray-500: #64748b;
    --color-gray-600: #64748b;
    --color-gray-700: #1e293b;
    --color-gray-800: #1e293b;
    --color-gray-900: #0f1b2d;

    /* Semantic */
    --color-success: #059669;
    --color-danger: #dc2626;

    /* Gradients */
    --gradient-accent: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --gradient-peru: linear-gradient(135deg, #C8102E 0%, #C8102E 100%);
    --gradient-dark: linear-gradient(160deg, #0f1b2d 0%, #0f1b2d 100%);
    --gradient-hero: linear-gradient(160deg, #0f1b2d 0%, #0f1b2d 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    --gradient-card-border: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary-light) 100%);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

    /* Shadows - Layered for depth */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.03);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.06);
    --shadow-xl: 0 20px 40px -8px rgba(0,0,0,0.12), 0 10px 15px -5px rgba(0,0,0,0.06);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.2);
    --shadow-accent: 0 4px 20px rgba(37, 99, 235, 0.2);
    --shadow-glow: 0 0 30px rgba(37, 99, 235, 0.12);
    --shadow-red: 0 4px 20px rgba(200, 16, 46, 0.2);

    /* Border Radius - More generous */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;

    /* Transitions - Premium easing */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   2. RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.75;
    color: var(--color-gray-800);
    background-color: var(--color-gray-50);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
    overflow: hidden;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    opacity: 0.85;
}

ul, ol {
    list-style-position: inside;
}

/* ============================================
   3. TYPOGRAPHY - Premium
   ============================================ */
h1, h2 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; font-weight: 600; }
h5 { font-size: 1rem; font-weight: 600; }
h6 { font-size: 0.9rem; font-weight: 600; }

p {
    margin-bottom: 1.25rem;
    color: var(--color-gray-700);
}

/* ============================================
   4. CONTAINERS
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-sm {
    max-width: 800px;
}

.container-lg {
    max-width: 1400px;
}

/* ============================================
   5. HEADER - Glassmorphism
   ============================================ */
.header {
    background: rgba(var(--color-primary-rgb), 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(var(--color-secondary-rgb), 0.15);
    transition: var(--transition-slow);
}

.header.scrolled {
    background: rgba(var(--color-primary-rgb), 0.97);
    box-shadow: 0 4px 30px rgba(0,0,0,0.15), 0 0 20px rgba(var(--color-secondary-rgb), 0.08);
    border-bottom-color: rgba(var(--color-secondary-rgb), 0.25);
}

.header-top {
    background: rgba(0,0,0,0.25);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-gray-300);
}

.header-contact a {
    color: var(--color-gray-300);
    margin-right: 1.5rem;
}

.header-contact a:hover {
    color: var(--color-white);
}

.header-contact svg {
    width: 14px;
    height: 14px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.header-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-main {
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    gap: 0.5rem;
}

.logo svg {
    width: 34px;
    height: 34px;
}

.logo span {
    color: var(--color-peru);
    font-weight: 700;
}

.logo:hover {
    color: var(--color-white);
}

/* Country Selector */
.country-selector {
    position: relative;
}

.country-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-sm);
    color: var(--color-white);
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
}

.country-btn:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(var(--color-secondary-rgb), 0.4);
}

.country-btn .flag {
    font-size: 1.1rem;
    line-height: 1;
}

.country-btn .arrow {
    font-size: 0.6rem;
    transition: var(--transition);
}

.country-selector.open .country-btn .arrow {
    transform: rotate(180deg);
}

.country-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
    z-index: 200;
    overflow: hidden;
    border: 1px solid var(--color-gray-200);
}

.country-selector.open .country-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.country-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    color: var(--color-gray-700);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-primary);
}

.country-option:hover {
    background: var(--color-gray-100);
}

.country-option.active {
    background: rgba(var(--color-secondary-rgb), 0.1);
    color: var(--color-primary);
    font-weight: 600;
}

.country-option .flag {
    font-size: 1.2rem;
}

.country-option .badge-soon {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gray-400);
    background: var(--color-gray-100);
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
}

/* Navigation */
.nav {
    display: none;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.85rem;
    color: var(--color-white);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255,255,255,0.12);
    color: var(--color-white);
}

.nav-link-premium {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff !important;
    font-weight: 700;
    padding: 0.45rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
}
.nav-link-premium:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

/* Dropdown arrow */
.nav-link[aria-haspopup="true"]::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: var(--transition);
}

.nav-item:hover .nav-link[aria-haspopup="true"]::after {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.nav-item {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    min-width: 240px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
    border-top: 3px solid var(--color-secondary);
    padding: 0.5rem 0;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.15rem;
    color: var(--color-gray-700);
    font-size: 0.9rem;
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--color-gray-100);
    color: var(--color-primary);
    border-left-color: var(--color-secondary);
    padding-left: 1.35rem;
}

.dropdown-divider {
    display: block;
    height: 1px;
    background: var(--color-gray-200);
    margin: 0.3rem 1rem;
}
.dropdown-label {
    display: block;
    padding: 0.5rem 1.15rem 0.2rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-gray-400);
}

/* Menu Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--color-white);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}


/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Nav - Slide in from right */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: var(--color-primary-dark);
    z-index: 999;
    transform: translateX(100%);
    transition: var(--transition-slow);
    overflow-y: auto;
    padding: 4.5rem 0 2rem;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-list {
    list-style: none;
}

.mobile-nav-list a {
    display: block;
    padding: 0.7rem 1.5rem;
    color: var(--color-white);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.95rem;
    transition: var(--transition);
}

.mobile-nav-list a:hover {
    color: var(--color-white);
    background: rgba(255,255,255,0.1);
    padding-left: 2rem;
}

/* Section separators in mobile menu */
.mobile-nav-section {
    color: var(--color-secondary);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 1.25rem 1.5rem 0.4rem;
    border-bottom: none;
    pointer-events: none;
}

.mobile-nav-list li:first-child .mobile-nav-section {
    padding-top: 0.5rem;
}

/* ============================================
   6. HERO - Premium with Animated Orbs
   ============================================ */
.hero {
    background: var(--gradient-hero);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

/* Animated orbs */
.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--color-secondary-rgb), 0.12) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: float-slow 15s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--color-primary-light-rgb), 0.08) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    animation: float-slow 18s ease-in-out infinite reverse;
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--color-white);
}

.hero-subtitle {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-peru);
    margin-bottom: 1rem;
    padding: 0.3rem 1rem;
    border: 1px solid rgba(var(--color-peru-rgb), 0.3);
    border-radius: 50px;
    background: rgba(var(--color-peru-rgb), 0.08);
}

.hero h1 {
    color: var(--color-white);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: -0.01em;
}

.hero h1 span {
    color: var(--color-peru);
    position: relative;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: var(--gradient-peru);
    border-radius: 2px;
    animation: underline-shimmer 3s ease-in-out infinite;
}

@keyframes underline-shimmer {
    0%, 100% { opacity: 0.5; transform: scaleX(0.8); }
    50% { opacity: 1; transform: scaleX(1); }
}

.hero p {
    font-size: 1.05rem;
    color: #e2e8f0;
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* Hero CTAs */
.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--color-white);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.hero-cta:hover {
    background: rgba(255,255,255,0.14);
    border-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.hero-cta-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(var(--color-secondary-rgb), 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-cta-icon svg {
    width: 20px;
    height: 20px;
    color: var(--color-secondary);
}

.hero-cta-text {
    text-align: left;
}

.hero-cta-text strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
}

.hero-cta-text span {
    display: block;
    font-size: 0.75rem;
    color: #e2e8f0;
    line-height: 1.3;
}

/* Trust Bar */
.trust-bar {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-200);
    border-top: 2px solid var(--color-peru);
    padding: 14px 0;
    position: relative;
}

.trust-bar-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #475569;
    font-weight: 500;
}

.trust-item svg {
    width: 18px;
    height: 18px;
    color: var(--color-secondary);
    flex-shrink: 0;
}

.trust-item strong {
    color: var(--color-primary);
    font-weight: 700;
}

/* Trust Bar Responsive */
@media (max-width: 768px) {
    .trust-bar { padding: 12px 0; }
    .trust-bar-inner {
        gap: 0.6rem 1.2rem;
        justify-content: center;
    }
    .trust-item {
        font-size: 0.75rem;
        gap: 5px;
    }
    .trust-item svg {
        width: 15px;
        height: 15px;
    }
}

@media (max-width: 480px) {
    .trust-bar-inner {
        gap: 0.4rem 0.8rem;
    }
    .trust-item {
        font-size: 0.7rem;
        gap: 4px;
    }
    .trust-item svg {
        width: 13px;
        height: 13px;
    }
}

/* Popular / Most Consulted Grid */
.popular-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.popular-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--color-gray-800);
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid transparent;
}

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

.popular-rank {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    min-width: 28px;
}

.popular-name {
    flex: 1;
    font-size: 0.95rem;
}

.popular-arrow {
    opacity: 0;
    transition: var(--transition);
    font-size: 1.1rem;
}

.popular-card:hover .popular-arrow {
    opacity: 1;
}

/* Popular color themes */
.popular-familia {
    background: #f8fafc;
    border-color: #e2e8f0;
}
.popular-familia:hover { border-color: #2563eb; }
.popular-familia .popular-rank { color: #2563eb; }

.popular-laboral {
    background: #f8fafc;
    border-color: #e2e8f0;
}
.popular-laboral:hover { border-color: #059669; }
.popular-laboral .popular-rank { color: #059669; }

.popular-tramites {
    background: #f8fafc;
    border-color: #e2e8f0;
}
.popular-tramites:hover { border-color: #2563eb; }
.popular-tramites .popular-rank { color: #2563eb; }

/* Category Filter Tabs */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.category-tab {
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid var(--color-gray-200);
    background: var(--color-white);
    color: var(--color-gray-600);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: var(--transition);
}

.category-tab:hover {
    border-color: var(--color-gray-400);
    color: var(--color-gray-800);
}

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

.tab-familia.active { background: #2563eb; border-color: #2563eb; }
.tab-laboral.active { background: #059669; border-color: #059669; }
.tab-tramites.active { background: #2563eb; border-color: #2563eb; }
.tab-derechos.active { background: #2563eb; border-color: #2563eb; }
.tab-herramientas.active { background: #2563eb; border-color: #2563eb; }

/* Category Card Color Accents */
.card-familia:hover::before { background: linear-gradient(135deg, #2563eb, #2563eb); }
.card-laboral:hover::before { background: linear-gradient(135deg, #059669, #059669); }
.card-tramites:hover::before { background: linear-gradient(135deg, #2563eb, #2563eb); }
.card-derechos:hover::before { background: linear-gradient(135deg, #2563eb, #2563eb); }
.card-herramientas:hover::before { background: linear-gradient(135deg, #2563eb, #2563eb); }

/* Card hidden state for filter */
.category-card.card-hidden {
    display: none;
}

/* Search Box - Glassmorphism */
.search-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    padding-right: 60px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    outline: none;
    transition: var(--transition);
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--color-white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.search-input::placeholder {
    color: #e2e8f0;
}

.search-input:focus {
    border-color: var(--color-secondary);
    background: rgba(255,255,255,0.12);
    box-shadow: var(--shadow-accent);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: var(--gradient-accent);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(var(--color-secondary-rgb), 0.3);
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 15px rgba(var(--color-secondary-rgb), 0.5);
}

.search-btn svg {
    width: 20px;
    height: 20px;
    color: var(--color-white);
}

/* Search Results */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
    margin-top: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 100;
}

.search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--color-gray-200);
    color: var(--color-gray-700);
    transition: var(--transition);
}

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

.search-result-item:hover {
    background: var(--color-gray-100);
}

.search-result-item svg {
    width: 24px;
    height: 24px;
    margin-right: 1rem;
    color: var(--color-primary);
}

.search-result-item span {
    font-weight: 500;
}

.search-no-results {
    padding: 1.5rem;
    text-align: center;
    color: var(--color-gray-600);
}

/* ============================================
   7. SECTIONS
   ============================================ */
.section {
    padding: 5rem 0;
}

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

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

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.section-header p {
    color: var(--color-gray-500);
    max-width: 560px;
    margin: 1rem auto 0;
    font-size: 0.95rem;
}

/* ============================================
   8. STATS / TRUST SECTION
   ============================================ */
.stats-section {
    background: var(--gradient-dark);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
}

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

.stat-item {
    text-align: center;
    position: relative;
    padding: 1rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

/* ============================================
   8b. TESTIMONIALS
   ============================================ */
.testimonials-section {
    background: var(--color-gray-100);
    padding: 4rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gray-200);
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--color-gray-700);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.testimonial-author strong {
    display: block;
    font-size: 0.9rem;
    color: var(--color-gray-800);
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--color-gray-500);
}

/* ============================================
   9. CATEGORY CARDS - Premium
   ============================================ */
.categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.category-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--color-gray-200);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Gold top border - animated on hover */
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Gold glow behind card */
.category-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(var(--color-secondary-rgb), 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition-slow);
    z-index: -1;
}

.category-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border-color: rgba(var(--color-secondary-rgb), 0.2);
}

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

.category-card:hover::after {
    opacity: 1;
}

.category-icon {
    width: 52px;
    height: 52px;
    background: var(--color-gray-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.card-familia:hover .category-icon { background: #2563eb; }
.card-familia:hover .category-icon svg { color: white; }

.card-laboral:hover .category-icon { background: #059669; }
.card-laboral:hover .category-icon svg { color: white; }

.card-tramites:hover .category-icon { background: #2563eb; }
.card-tramites:hover .category-icon svg { color: white; }

.card-derechos:hover .category-icon { background: #2563eb; }
.card-derechos:hover .category-icon svg { color: white; }

.card-herramientas:hover .category-icon { background: #2563eb; }
.card-herramientas:hover .category-icon svg { color: white; }

.category-icon svg {
    width: 26px;
    height: 26px;
    stroke-width: 1.5;
    color: var(--color-primary);
    transition: var(--transition);
}

.category-card:hover .category-icon svg {
    color: var(--color-white);
}

.category-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

.category-card p {
    color: var(--color-gray-500);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.category-link {
    display: inline-flex;
    align-items: center;
    color: var(--color-primary-light);
    font-weight: 600;
    font-size: 0.875rem;
}

.category-link svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.5;
    margin-left: 0.4rem;
    transition: var(--transition);
}

.category-link:hover {
    color: var(--color-secondary-dark);
}

.category-link:hover svg {
    transform: translateX(4px);
}

/* ============================================
   10. FEATURES GRID
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-gray-200);
    transition: var(--transition);
}

.feature-item:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(var(--color-secondary-rgb), 0.2);
    transform: translateY(-3px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-gray-100), var(--color-gray-50));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    background: var(--color-primary);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
    color: var(--color-secondary-dark);
    transition: var(--transition);
}

.feature-item:hover .feature-icon svg {
    color: var(--color-secondary);
}

.feature-item h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--color-gray-500);
    font-size: 0.85rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* ============================================
   11. CTA SECTION
   ============================================ */
.cta-section {
    background: var(--gradient-dark);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
}

.cta-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--color-secondary-rgb), 0.08) 0%, transparent 70%);
    top: -200px;
    right: -100px;
}

.cta-section h2 {
    color: var(--color-white);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.cta-section p {
    color: rgba(255,255,255,0.85);
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
    position: relative;
    z-index: 1;
    font-family: var(--font-primary);
}

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

.btn-primary:hover {
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

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

.btn-secondary:hover {
    background: var(--color-gray-100);
    color: var(--color-primary);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
}

.btn-outline:hover {
    background: var(--color-secondary);
    color: var(--color-white);
    box-shadow: var(--shadow-accent);
}

/* ============================================
   12. FOOTER
   ============================================ */
.footer {
    background: var(--color-primary-dark);
    color: #e2e8f0;
    padding: 4rem 0 0;
    margin-top: auto;
    position: relative;
}

.footer a {
    color: #e2e8f0;
}

.footer a:hover {
    color: #ffffff;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-peru), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #e2e8f0;
}

.footer h4 {
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-secondary);
}

.footer-links {
    list-style: none;
    columns: 1;
}

.footer-links li {
    margin-bottom: 0.5rem;
    break-inside: avoid;
}

.footer-links a {
    color: #e2e8f0;
    font-size: 0.85rem;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--color-white);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #e2e8f0;
}

.footer-contact svg {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    color: var(--color-secondary);
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: #e2e8f0;
}

.disclaimer {
    font-size: 0.8rem;
    color: #e2e8f0;
    max-width: 800px;
    margin: 1rem auto 0;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-md);
}

/* Footer Country Indicator */
.footer-country {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-top: 1px solid rgba(200,16,46,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(200,16,46,0.06);
    margin-bottom: 0.75rem;
}

.footer-country .flag {
    font-size: 1.1rem;
}

/* Footer Legal Links */
.footer-legal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 0;
}

.footer-legal a {
    color: #e2e8f0;
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--color-white);
}

.footer-legal span {
    color: #e2e8f0;
    font-size: 0.8rem;
}

/* ============================================
   13. CONTENT PAGES
   ============================================ */
.page-header {
    background: var(--gradient-dark);
    padding: 3.5rem 0;
    text-align: center;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--color-secondary-rgb), 0.08) 0%, transparent 70%);
    top: -200px;
    right: -100px;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
}

.page-header h1 {
    color: var(--color-white);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.page-header p {
    color: var(--color-gray-400);
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-gray-400);
    position: relative;
    z-index: 1;
}

.breadcrumb a {
    color: var(--color-gray-300);
}

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

.breadcrumb svg {
    width: 16px;
    height: 16px;
}

/* Article Content */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 0;
}

.main-content {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.main-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-gray-200);
}

.main-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.main-content h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    color: var(--color-primary-light);
}

.main-content ul,
.main-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.main-content li {
    margin-bottom: 0.5rem;
}

/* Info Boxes - Enhanced */
.info-box {
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    border: 1px solid transparent;
}

.info-box-primary {
    background: linear-gradient(135deg, #f8fafc 0%, #f8fafc 100%);
    border-left: 4px solid var(--color-primary-light);
    border-color: rgba(var(--color-primary-light-rgb), 0.1);
    border-left-color: var(--color-primary-light);
}

.info-box-warning {
    background: linear-gradient(135deg, #f8fafc 0%, #f8fafc 100%);
    border-left: 4px solid #dc2626;
    border-color: rgba(220, 38, 38, 0.1);
    border-left-color: #dc2626;
}

.info-box-success {
    background: linear-gradient(135deg, #f8fafc 0%, #f8fafc 100%);
    border-left: 4px solid var(--color-success);
    border-color: rgba(5, 150, 105, 0.1);
    border-left-color: var(--color-success);
}

.info-box-danger {
    background: linear-gradient(135deg, #f8fafc 0%, #f8fafc 100%);
    border-left: 4px solid var(--color-danger);
    border-color: rgba(220, 38, 38, 0.1);
    border-left-color: var(--color-danger);
}

.info-box h4 {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.info-box p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--color-gray-700);
}

.info-box svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.5;
}

/* Cost Tables - Premium */
.cost-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-gray-200);
}

.cost-table th,
.cost-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-gray-200);
}

.cost-table th {
    background: var(--gradient-dark);
    color: var(--color-white);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.cost-table tr:hover td {
    background: rgba(var(--color-secondary-rgb), 0.04);
}

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

.cost-table .price {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--color-success);
}

/* Steps / Timeline - Enhanced */
.steps {
    margin: 2rem 0;
}

.step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.step::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50px;
    bottom: -30px;
    width: 2px;
    background: linear-gradient(180deg, var(--color-secondary), var(--color-gray-300));
}

.step:last-child::before {
    display: none;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-dark);
    color: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    border: 2px solid var(--color-secondary);
}

.step-content h4 {
    margin-bottom: 0.35rem;
    color: var(--color-primary);
    font-size: 1rem;
}

.step-content p {
    color: var(--color-gray-500);
    margin: 0;
    font-size: 0.9rem;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-widget {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gray-200);
}

.sidebar-widget h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-secondary);
}

.sidebar-links {
    list-style: none;
}

.sidebar-links li {
    margin-bottom: 0.5rem;
}

.sidebar-links a {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    color: var(--color-gray-700);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.sidebar-links a:hover,
.sidebar-links a.active {
    background: var(--color-gray-100);
    color: var(--color-primary);
}

.sidebar-links svg {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    color: var(--color-secondary);
}

/* Ad placeholder */
.ad-space {
    background: var(--color-gray-200);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    color: var(--color-gray-500);
    font-size: 0.85rem;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* FAQ Accordion - Enhanced */
.faq-list {
    margin: 2rem 0;
}

.faq-item {
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active {
    border-color: rgba(var(--color-secondary-rgb), 0.4);
    box-shadow: 0 2px 12px rgba(var(--color-secondary-rgb), 0.1);
}

.faq-question {
    width: 100%;
    padding: 1.15rem 1.25rem;
    background: var(--color-white);
    border: none;
    text-align: left;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

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

.faq-item.active .faq-question {
    background: rgba(var(--color-secondary-rgb), 0.05);
}

.faq-question svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.5;
    flex-shrink: 0;
    transition: var(--transition);
    color: var(--color-secondary);
}

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

.faq-answer {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    padding: 0 1.25rem 1.25rem;
    max-height: 500px;
}

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

/* ============================================
   14. SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.revealed {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Stagger delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }
.stagger-7 { transition-delay: 0.7s; }
.stagger-8 { transition-delay: 0.8s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero::before,
    .hero::after {
        animation: none;
    }

    .hero h1 span::after {
        animation: none;
    }
}

/* ============================================
   15. RESPONSIVE
   ============================================ */
@media (min-width: 576px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .popular-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

@media (min-width: 768px) {
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2.15rem; }

    .hero {
        padding: 5.5rem 0;
    }

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

    .stat-number {
        font-size: 3rem;
    }

    .stats-grid {
        gap: 3rem;
    }

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

    .content-wrapper {
        grid-template-columns: 1fr 300px;
    }
}

@media (min-width: 992px) {
    .nav {
        display: block;
    }

    .menu-toggle {
        display: none;
    }

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

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }

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

    /* Vertical dividers between stats */
    .stat-item:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 20%;
        height: 60%;
        width: 1px;
        background: rgba(255,255,255,0.1);
    }

    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .popular-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 2fr 1.5fr 1.5fr 1fr;
    }

    .footer-links {
        columns: 1;
    }
}

@media (min-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }

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

/* ============================================
   16. UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }

.hidden { display: none; }
.visible { display: block; }

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: var(--color-white);
    border: 1px solid rgba(var(--color-secondary-rgb), 0.3);
    border-radius: var(--radius-md);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--color-secondary);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-accent);
}

.scroll-top svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 1.25rem 1.5rem;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-consent.active {
    transform: translateY(0);
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-consent-content p {
    flex: 1;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    min-width: 280px;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-consent-content a {
    color: var(--color-secondary);
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.65rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--color-secondary);
    color: var(--color-primary);
}

.cookie-btn-accept:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.cookie-btn-reject {
    background: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 575px) {
    .cookie-consent {
        padding: 1rem;
    }

    .cookie-consent-content {
        flex-direction: column;
        gap: 1rem;
    }

    .cookie-consent-content p {
        font-size: 0.85rem;
        min-width: auto;
    }

    .cookie-consent-actions {
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
        padding: 0.75rem 1rem;
    }
}

/* ============================================
   BOTÓN FLOTANTE COMPARTIR
   ============================================ */
.share-float {
    position: fixed;
    bottom: 96px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 0.5rem;
}

.share-float-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-accent);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: var(--transition);
    color: var(--color-white);
}

.share-float-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.share-float-toggle.active {
    transform: rotate(45deg);
}

.share-float-toggle svg {
    width: 24px;
    height: 24px;
}

.share-float-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.share-float-options.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.share-option {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.share-option:hover {
    transform: scale(1.15);
}

.share-whatsapp {
    background: #25D366;
}

.share-facebook {
    background: #1877F2;
}

.share-copy {
    background: var(--color-gray-700);
}

@media (max-width: 768px) {
    .share-float {
        bottom: 78px;
        right: 16px;
    }

    .share-float-toggle {
        width: 46px;
        height: 46px;
    }

    .share-option {
        width: 40px;
        height: 40px;
    }
}

/* ============================================
   CHATBOT WIDGET - Asistente Legal IA
   ============================================ */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
    transition: all 0.3s ease;
    position: relative;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 99, 235, 0.45);
}

.chat-toggle svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.chat-toggle .chat-close-icon {
    display: none;
}

.chat-toggle.active .chat-open-icon {
    display: none;
}

.chat-toggle.active .chat-close-icon {
    display: block;
    width: 24px;
    height: 24px;
    stroke: #0f1b2d;
}

.chat-toggle-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #dc2626;
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: chatPulse 2s ease-in-out infinite;
}

@keyframes chatPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.chat-window {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 380px;
    max-height: 520px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: chatSlideUp 0.3s ease;
}

.chat-window.active {
    display: flex;
}

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

.chat-header {
    background: linear-gradient(135deg, #0f1b2d 0%, #1e293b 100%);
    color: white;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header-close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: rgba(255,255,255,0.6);
    width: 28px; height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.chat-header-close:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

.chat-header-close svg {
    width: 16px; height: 16px;
    stroke-width: 2.5;
}

.chat-status-dot {
    display: inline-block;
    width: 6px; height: 6px;
    background: #059669;
    border-radius: 50%;
    margin-right: 4px;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.chat-toggle-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #2563eb;
    animation: togglePulse 2.5s ease-out infinite;
    pointer-events: none;
}

.chat-toggle.active .chat-toggle-pulse { display: none; }

@keyframes togglePulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.4); opacity: 0; }
}

.chat-header-icon {
    width: 36px;
    height: 36px;
    background: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-header-icon svg {
    width: 20px;
    height: 20px;
    fill: #0f1b2d;
}

.chat-header-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: white;
}

.chat-header-info p {
    font-size: 11px;
    margin: 2px 0 0;
    opacity: 0.8;
    color: rgba(255,255,255,0.8);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    color: #1e293b;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 340px;
    min-height: 200px;
    background: #f8fafc;
}

.chat-message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    word-wrap: break-word;
}

.chat-message.bot {
    background: white;
    color: #1e293b;
    align-self: flex-start;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 4px;
}

.chat-message.user {
    background: #0f1b2d;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-message.bot a {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 500;
}

.chat-message.bot a:hover {
    color: #1d4ed8;
}

.chat-message.bot strong {
    font-weight: 600;
}

.chat-message.bot ul,
.chat-message.bot ol {
    margin: 6px 0;
    padding-left: 18px;
}

.chat-message.bot li {
    margin-bottom: 4px;
}

.chat-message.bot em {
    font-size: 11px;
    opacity: 0.8;
}

.chat-typing {
    display: flex;
    gap: 4px;
    padding: 10px 14px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    max-width: 70px;
}

.chat-typing span {
    width: 7px;
    height: 7px;
    background: #64748b;
    border-radius: 50%;
    animation: chatTyping 1.4s ease-in-out infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes chatTyping {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

.chat-input-area {
    padding: 12px 16px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 8px;
    background: white;
}

.chat-input {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 10px 16px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
    background: #f8fafc;
}

.chat-input:focus {
    border-color: #2563eb;
    background: white;
}

.chat-input::placeholder {
    color: #64748b;
}

.chat-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2563eb;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.chat-send:hover {
    background: #1d4ed8;
    transform: scale(1.05);
}

.chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.chat-send svg {
    width: 18px;
    height: 18px;
    fill: #0f1b2d;
}

.chat-disclaimer {
    padding: 6px 16px 10px;
    font-size: 10px;
    color: #64748b;
    text-align: center;
    background: white;
}

/* Suggestion Chips */
.chat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 16px 12px;
}

.chat-chip {
    background: linear-gradient(135deg, #f8fafc 0%, #f8fafc 100%);
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 7px 14px;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1.3;
}

.chat-chip:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.2);
}

.chat-chip:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Chat header right side (cancel + close) */
.chat-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Doc cancel button in chat header */
.doc-cancel-btn {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

.doc-cancel-btn:hover {
    background: rgba(239, 68, 68, 0.35);
    color: white;
}

/* Doc chip in chat */
.chat-chip.doc-chip {
    background: linear-gradient(135deg, #f8fafc 0%, #f8fafc 100%);
    border-color: #2563eb;
    color: #1e293b;
}

.chat-chip.doc-chip:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-color: #1d4ed8;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

/* Chip group label */
.chip-group-label {
    width: 100%;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    padding: 4px 0 2px;
    margin-top: 4px;
}

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

/* Doc confirm card inside chat */
.doc-confirm-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    margin: 4px 0;
}

.doc-confirm-card h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary, #0f1b2d);
    margin: 0 0 10px;
}

.doc-field {
    font-size: 12px;
    padding: 3px 0;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
    line-height: 1.5;
}

.doc-field:last-of-type {
    border-bottom: none;
}

.doc-field strong {
    color: #1e293b;
}

.doc-confirm-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.doc-btn-confirm {
    flex: 1;
    padding: 10px 16px;
    background: linear-gradient(135deg, #059669 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

.doc-btn-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.doc-btn-edit {
    flex: 1;
    padding: 10px 16px;
    background: white;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

.doc-btn-edit:hover {
    background: #f8fafc;
    border-color: #64748b;
}

/* Doc download card */
.doc-download-card {
    text-align: center;
    padding: 12px;
    color: #1e293b;
}

.doc-download-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #059669 0%, #059669 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 8px;
}

.doc-download-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--color-primary, #0f1b2d) 0%, #1e293b 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 6px;
}

.doc-download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Doc share card (WhatsApp) */
.doc-share-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    margin-top: 6px;
}

.doc-share-card p {
    font-size: 12px;
    color: #059669;
    margin: 0 0 8px;
}

.whatsapp-share-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #25D366;
    color: white;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    transition: all 0.2s;
}

.whatsapp-share-btn:hover {
    background: #128C7E;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* ============================================
   EDITABLE DOCUMENT FORM
   ============================================ */
.doc-edit-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f8fafc 100%);
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0;
    margin: 4px 0;
    overflow: hidden;
}
.doc-edit-wrapper { max-width: 100% !important; }
.doc-edit-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #0f1b2d 0%, #1e293b 100%);
    color: white;
}
.doc-edit-icon {
    width: 32px; height: 32px;
    background: rgba(37,99,235,0.1);
    border: 1px solid rgba(37,99,235,0.2);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; color: #2563eb;
}
.doc-edit-header h4 { font-size: 13px; font-weight: 700; margin: 0; color: white; }
.doc-edit-subtitle { font-size: 11px; color: rgba(255,255,255,0.6); margin: 2px 0 0; }
.doc-edit-fields {
    padding: 10px 14px;
    max-height: 280px;
    overflow-y: auto;
}
.doc-edit-fields::-webkit-scrollbar { width: 4px; }
.doc-edit-fields::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 4px; }
.doc-edit-field { margin-bottom: 8px; }
.doc-edit-label {
    display: block; font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em;
    color: #64748b; margin-bottom: 3px;
}
.doc-edit-input {
    width: 100%; padding: 7px 10px;
    border: 1px solid #e2e8f0; border-radius: 6px;
    font-size: 12px; font-family: 'Inter', sans-serif;
    color: #1e293b; background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.doc-edit-input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37,99,235,0.12); }
.doc-edit-input::placeholder { color: #64748b; font-size: 11px; }
.doc-edit-textarea { min-height: 52px; max-height: 100px; resize: vertical; line-height: 1.5; }
.doc-edit-actions { padding: 10px 14px; border-top: 1px solid #e2e8f0; background: rgba(255,255,255,0.7); }
.doc-btn-generate {
    width: 100%; padding: 11px 16px;
    background: linear-gradient(135deg, #059669 0%, #059669 100%);
    color: white; border: none; border-radius: 8px;
    font-size: 13px; font-weight: 700; font-family: 'Inter', sans-serif;
    cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.doc-btn-generate:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(5,150,105,0.35); }
.doc-btn-generate:disabled { opacity: 0.7; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-spinner {
    display: inline-block; width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,0.3); border-top-color: white;
    border-radius: 50%; animation: btnSpin 0.6s linear infinite;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }

/* ============================================
   GENERATING ANIMATION
   ============================================ */
.doc-generating-card { text-align: center; padding: 20px 14px; color: #1e293b; }
.doc-generating-spinner {
    width: 36px; height: 36px;
    border: 3px solid #e2e8f0; border-top-color: #2563eb;
    border-radius: 50%; margin: 0 auto 12px;
    animation: btnSpin 0.8s linear infinite;
}
.doc-generating-text { font-size: 13px; font-weight: 600; color: #1e293b; margin: 0 0 12px; }
.doc-generating-steps { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 0 20px; }
.gen-step { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #64748b; transition: color 0.3s; }
.gen-step.active { color: #059669; font-weight: 600; }
.gen-step-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #e2e8f0; transition: background 0.3s, transform 0.3s; flex-shrink: 0;
}
.gen-step.active .gen-step-dot { background: #059669; transform: scale(1.2); }

/* ============================================
   PREMIUM SUCCESS CARD
   ============================================ */
.doc-result-wrapper { max-width: 100% !important; }
.doc-success-card { border-radius: 12px; overflow: hidden; border: 1px solid #e2e8f0; background: white; color: #1e293b; }
.doc-success-header {
    background: linear-gradient(135deg, #059669 0%, #059669 100%);
    color: white; padding: 16px; text-align: center;
}
.doc-success-check {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.2); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 8px; animation: checkPop 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes checkPop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.doc-success-header h4 { font-size: 14px; font-weight: 700; margin: 0 0 2px; color: white; }
.doc-success-header p { font-size: 11px; margin: 0; opacity: 0.85; color: rgba(255,255,255,0.85); }
.doc-action-group { padding: 14px; color: #1e293b; }
.doc-action-label {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; color: #64748b; margin-bottom: 6px;
}
.doc-action-btn {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 8px;
    background: white; cursor: pointer; transition: all 0.2s;
    text-align: left; font-family: 'Inter', sans-serif;
}
.doc-action-btn:hover { border-color: #2563eb; background: #f8fafc; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.doc-action-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.doc-action-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, #0f1b2d 0%, #1e293b 100%);
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; color: #2563eb;
}
.doc-action-text { display: flex; flex-direction: column; }
.doc-action-text strong { font-size: 13px; font-weight: 600; color: #1e293b; }
.doc-action-text small { font-size: 10px; color: #64748b; margin-top: 1px; }

/* Email input */
.doc-email-group { margin-top: 4px; }
.doc-email-input-wrap { display: flex; gap: 6px; }
.doc-email-input {
    flex: 1; padding: 9px 12px;
    border: 1px solid #e2e8f0; border-radius: 8px;
    font-size: 12px; font-family: 'Inter', sans-serif; color: #1e293b;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.doc-email-input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37,99,235,0.12); }
.doc-email-input::placeholder { color: #64748b; }
.doc-email-input:disabled { background: #f8fafc; color: #64748b; }
.doc-email-send-btn {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, #0f1b2d 0%, #1e293b 100%);
    border: none; border-radius: 8px; color: #2563eb;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all 0.2s;
}
.doc-email-send-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.doc-email-send-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.doc-email-status { font-size: 11px; margin-top: 4px; min-height: 16px; display: flex; align-items: center; gap: 4px; }
.doc-email-status.error { color: #dc2626; }
.doc-email-status.sending { color: #dc2626; }
.doc-email-status.success { color: #059669; font-weight: 600; }

/* Premium WhatsApp share */
.doc-premium-share { padding: 0 14px 14px; }
.doc-share-divider { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.doc-share-divider::before, .doc-share-divider::after { content: ''; flex: 1; height: 1px; background: #e2e8f0; }
.doc-share-divider span { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: #64748b; white-space: nowrap; }
.doc-whatsapp-premium {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 10px 12px; background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 10px; color: white; text-decoration: none;
    transition: all 0.2s; box-sizing: border-box;
}
.doc-whatsapp-premium:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,211,102,0.35); color: white; }
.wa-icon {
    width: 36px; height: 36px; background: rgba(255,255,255,0.2);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.doc-whatsapp-premium span:last-child { display: flex; flex-direction: column; }
.doc-whatsapp-premium strong { font-size: 13px; font-weight: 700; }
.doc-whatsapp-premium small { font-size: 10px; opacity: 0.85; margin-top: 1px; }

/* Support / Contribucion en overlay */
.doc-support-section {
    margin-top: 4px;
}

.doc-support-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.doc-support-text {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 12px;
}

.doc-support-text strong {
    color: #0f1b2d;
}

.doc-support-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.doc-support-btn {
    flex: 1;
    padding: 10px 8px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    background: white;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.doc-support-btn:hover {
    border-color: #2563eb;
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.doc-support-btn.featured {
    border-color: #2563eb;
    background: linear-gradient(135deg, #2563eb 0%, #2563eb 100%);
}

.doc-support-btn.featured .doc-support-amount {
    color: white;
}

.doc-support-btn.featured:hover {
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.doc-support-amount {
    font-size: 15px;
    font-weight: 700;
    color: #0f1b2d;
    font-family: 'Inter', sans-serif;
}

.doc-support-note {
    font-size: 11px;
    color: #64748b;
    margin: 10px 0 0;
}

/* Doc selector card in chat */
.doc-selector-card h4 {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--color-primary, #0f1b2d);
}

.doc-selector-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.doc-selector-btn {
    padding: 8px 10px;
    background: linear-gradient(135deg, #f8fafc 0%, #f8fafc 100%);
    border: 1px solid #2563eb;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s;
}

.doc-selector-btn:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

@media (max-width: 768px) {
    .chat-widget {
        bottom: 16px;
        right: 16px;
    }

    .chat-toggle {
        width: 52px;
        height: 52px;
    }

    .chat-window {
        width: calc(100vw - 32px);
        max-height: 70vh;
        right: -8px;
        bottom: 64px;
    }

    .chat-messages {
        max-height: 50vh;
    }
}

/* ============================================
   DOC SHOWCASE SECTION
   ============================================ */
.doc-showcase {
    padding: 4rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #f8fafc 40%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.doc-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--color-peru, #C8102E) 50%, transparent 100%);
    opacity: 0.3;
}

.doc-showcase .section-header {
    margin-bottom: 2.5rem;
}

/* Document Carousel */
.doc-carousel-wrapper {
    position: relative;
    padding: 0 3rem;
}

.doc-carousel-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 0.5rem 0 1rem;
}

.doc-carousel-track::-webkit-scrollbar {
    display: none;
}

.doc-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s;
    color: #0f1b2d;
}

.doc-carousel-arrow:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
}

.doc-carousel-arrow.prev { left: 0; }
.doc-carousel-arrow.next { right: 0; }

.doc-carousel-arrow svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}

.doc-carousel-arrow:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

/* Dots indicator */
.doc-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.25rem;
}

.doc-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e2e8f0;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.doc-carousel-dot.active {
    background: #2563eb;
    width: 24px;
    border-radius: 4px;
}

/* Product Card */
.doc-product-card {
    background: white;
    border-radius: 16px;
    padding: 2rem 1.5rem 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 280px;
    max-width: 320px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.doc-product-card.coming-soon {
    opacity: 0.7;
    border-style: dashed;
}

.doc-product-card.coming-soon .doc-product-cta {
    background: #64748b;
    cursor: default;
    pointer-events: none;
}

.doc-product-badge.coming {
    background: #dc2626;
}

.doc-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.12);
    border-color: #2563eb;
}

/* Badge (Gratis / Popular) */
.doc-product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #059669;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.doc-product-badge.popular {
    background: linear-gradient(135deg, #2563eb, #2563eb);
}

/* Icon */
.doc-product-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f1b2d;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.doc-product-icon svg {
    width: 28px;
    height: 28px;
}

.doc-product-card:hover .doc-product-icon {
    background: #2563eb;
    color: white;
}

/* Title */
.doc-product-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f1b2d;
    margin-bottom: 0.4rem;
    font-family: 'Inter', sans-serif;
}

/* Description */
.doc-product-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Meta tags */
.doc-product-meta {
    display: flex;
    gap: 0.4rem;
    margin: 0.75rem 0 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.doc-product-meta span {
    font-size: 11px;
    padding: 3px 8px;
    background: #f8fafc;
    border-radius: 4px;
    color: #64748b;
    font-weight: 500;
}

/* CTA Button */
.doc-product-cta {
    width: 100%;
    padding: 12px;
    background: var(--gradient-accent);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: auto;
}

.doc-product-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.doc-product-cta svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
}

/* ============================================
   SUPPORT / CONTRIBUCION VOLUNTARIA
   ============================================ */
.support-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.support-block {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.support-content h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f1b2d;
    margin-bottom: 0.75rem;
    font-family: 'Inter', sans-serif;
}

.support-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.support-uses {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.support-uses li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #1e293b;
    font-weight: 500;
}

.support-uses li svg {
    flex-shrink: 0;
    color: #2563eb;
}

.support-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.support-amounts {
    display: flex;
    gap: 10px;
    width: 100%;
}

.support-amount-btn {
    flex: 1;
    padding: 16px 8px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: white;
    text-decoration: none;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f1b2d;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    cursor: pointer;
}

.support-amount-btn:hover {
    border-color: #2563eb;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    color: #2563eb;
}

.support-amount-btn.featured {
    border-color: #2563eb;
    background: linear-gradient(135deg, #2563eb 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}

.support-amount-btn.featured:hover {
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.35);
    transform: translateY(-2px);
}

.support-custom-btn {
    width: 100%;
    padding: 12px;
    text-align: center;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    transition: all 0.3s;
    color: #2563eb;
    background: #f8fafc;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.support-custom-btn:hover {
    background: #f8fafc;
    color: #1d4ed8;
}

.support-custom-btn svg {
    stroke: currentColor;
}

.support-secure {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
}

.support-secure svg {
    color: #059669;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .support-block {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }

    .support-content h2 {
        font-size: 1.3rem;
    }

    .support-section {
        padding: 3rem 0;
    }
}

/* ============================================
   ACTIVITY TICKER
   ============================================ */
.activity-ticker {
    position: fixed;
    bottom: 30px;
    left: 24px;
    transform: translateY(20px);
    background: rgba(15, 27, 45, 0.92);
    backdrop-filter: blur(10px);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9998;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    max-width: calc(100vw - 140px);
    overflow: hidden;
}

.activity-ticker.visible {
    opacity: 1;
    transform: translateY(0);
}

.ticker-dot {
    width: 8px;
    height: 8px;
    background: #059669;
    border-radius: 50%;
    flex-shrink: 0;
    animation: statusPulse 2s ease-in-out infinite;
}

.ticker-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   RESPONSIVE - Doc Products & Ticker
   ============================================ */
@media (max-width: 900px) {
    .doc-carousel-wrapper {
        padding: 0 2.5rem;
    }

    .doc-product-card {
        min-width: 260px;
    }
}

@media (max-width: 640px) {
    .doc-carousel-wrapper {
        padding: 0 2rem;
    }

    .doc-product-card {
        min-width: 250px;
        padding: 1.5rem 1.25rem 1.25rem;
    }

    .doc-carousel-arrow {
        width: 36px;
        height: 36px;
    }

    .doc-carousel-arrow svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 768px) {
    .doc-showcase {
        padding: 3rem 0;
    }

    .activity-ticker {
        bottom: 20px;
        padding: 8px 14px;
        font-size: 12px;
        left: 16px;
        right: auto;
        transform: translateY(20px);
        border-radius: 50px;
        max-width: calc(100vw - 100px);
    }

    .activity-ticker.visible {
        transform: translateY(0);
    }

    .doc-selector-grid {
        grid-template-columns: 1fr;
    }
    .doc-edit-fields {
        max-height: 220px;
    }
    .doc-edit-input,
    .doc-email-input {
        font-size: 16px;
    }
}

/* ============================================
   DOCUMENT OVERLAY - FULLSCREEN
   ============================================ */
.doc-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: overlayFadeIn 0.3s ease;
    padding: 20px;
}
@keyframes overlayFadeIn { from { opacity: 0; } to { opacity: 1; } }

.doc-overlay-container {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    animation: overlaySlideUp 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes overlaySlideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.doc-overlay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: linear-gradient(135deg, #0f1b2d 0%, #1e293b 100%);
    color: white;
    flex-shrink: 0;
}
.doc-overlay-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.doc-overlay-logo {
    width: 36px; height: 36px;
    background: #2563eb;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.doc-overlay-logo svg { width: 20px; height: 20px; fill: white; }
.doc-overlay-brand h3 { font-size: 16px; font-weight: 700; margin: 0; color: white; }
.doc-overlay-brand p { font-size: 11px; margin: 2px 0 0; color: rgba(255,255,255,0.6); }
.doc-overlay-close {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.1);
    border: none; border-radius: 10px;
    color: rgba(255,255,255,0.7);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s; flex-shrink: 0;
}
.doc-overlay-close:hover { background: rgba(255,255,255,0.2); color: white; }

/* Document usage counter badge */
.doc-overlay-counter {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.85);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Document limit paywall */
.doc-limit-card {
    text-align: center;
    padding: 2rem 1rem;
}

.doc-limit-icon {
    color: #2563eb;
    margin-bottom: 1rem;
}

.doc-limit-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f1b2d;
    margin-bottom: 0.5rem;
}

.doc-limit-card > p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.doc-limit-amounts {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.doc-limit-btn {
    flex: 1;
    max-width: 100px;
    padding: 14px 8px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    background: white;
    text-decoration: none;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f1b2d;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}

.doc-limit-btn:hover {
    border-color: #2563eb;
    background: #f8fafc;
    color: #2563eb;
    transform: translateY(-2px);
}

.doc-limit-btn.featured {
    border-color: #2563eb;
    background: linear-gradient(135deg, #2563eb 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}

.doc-limit-note {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 1rem;
}

.doc-limit-continue {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #0f1b2d 0%, #1e293b 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0.75rem;
}

.doc-limit-continue:hover {
    box-shadow: 0 4px 16px rgba(15, 27, 45, 0.3);
    transform: translateY(-1px);
}

.doc-limit-secure {
    font-size: 11px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0;
}

.doc-limit-secure svg {
    color: #059669;
}

.doc-overlay-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    color: #1e293b;
}
.doc-overlay-body::-webkit-scrollbar { width: 6px; }
.doc-overlay-body::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 6px; }

.doc-overlay-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 20px;
}

.doc-overlay-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.doc-overlay-field { display: flex; flex-direction: column; }
.doc-overlay-field.full { grid-column: 1 / -1; }
.doc-overlay-label {
    font-size: 12px; font-weight: 600;
    color: #1e293b; margin-bottom: 5px;
}
.doc-overlay-input {
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.doc-overlay-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.10);
    background: white;
}
.doc-overlay-input::placeholder { color: #64748b; }
.doc-overlay-textarea {
    min-height: 80px;
    max-height: 160px;
    resize: vertical;
    line-height: 1.6;
}

.doc-overlay-footer {
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    flex-shrink: 0;
}
.doc-overlay-generate {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #059669 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.doc-overlay-generate:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(5,150,105,0.35); }
.doc-overlay-generate:disabled { opacity: 0.7; cursor: not-allowed; transform: none; box-shadow: none; }

/* Result inside overlay */
.doc-overlay-result { max-width: 480px; margin: 0 auto; }

/* Mobile overlay */
@media (max-width: 640px) {
    .doc-overlay { padding: 0; }
    .doc-overlay-container {
        max-width: 100%;
        max-height: 100%;
        height: 100%;
        border-radius: 0;
    }
    .doc-overlay-header { padding: 14px 16px; }
    .doc-overlay-body { padding: 16px; }
    .doc-overlay-form { grid-template-columns: 1fr; }
    .doc-overlay-field.full { grid-column: 1; }
    .doc-overlay-input { font-size: 16px; }
    .doc-overlay-footer { padding: 12px 16px; }
}

/* ===========================
   BLOG STYLES
   =========================== */

/* Blog Hero */
.blog-hero {
    background: var(--gradient-primary);
    padding: 3rem 0 2rem;
    text-align: center;
    color: white;
}
.blog-hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.blog-hero p {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Listing */
.blog-listing {
    padding: 3rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Blog Card */
.blog-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.blog-card-date {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}
.blog-card h3 {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}
.blog-card h3 a {
    color: var(--color-primary);
    text-decoration: none;
}
.blog-card h3 a:hover {
    color: var(--color-secondary);
    opacity: 1;
}
.blog-card p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1rem;
}
.blog-read-more {
    color: #2563eb;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.blog-read-more:hover {
    opacity: 1;
    gap: 8px;
}

/* Blog Empty State */
.blog-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: #64748b;
}
.blog-empty svg {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    color: #e2e8f0;
}
.blog-empty h3 {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

/* Blog Article Page */
.blog-article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}
.blog-article {
    max-width: 720px;
}
.blog-article-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}
.blog-category {
    background: #f8fafc;
    color: #2563eb;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}
.blog-article h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.3;
    margin-bottom: 1rem;
}
.blog-excerpt {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}
.blog-content {
    line-height: 1.8;
    font-size: 1.05rem;
    color: #1e293b;
}
.blog-content h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 2rem 0 0.75rem;
}
.blog-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 1.5rem 0 0.5rem;
}
.blog-content p {
    margin-bottom: 1rem;
}
.blog-content ul, .blog-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}
.blog-content li {
    margin-bottom: 0.5rem;
}
.blog-source {
    margin-top: 2rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #64748b;
}
.blog-source a {
    color: #2563eb;
    font-weight: 500;
}
.blog-cta {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 12px;
    text-align: center;
}
.blog-cta p {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.blog-cta a {
    display: inline-block;
    background: white;
    color: var(--color-primary);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s;
}
.blog-cta a:hover {
    transform: translateY(-2px);
    opacity: 1;
}

/* Blog Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}
.blog-sidebar-section {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}
.blog-sidebar-section h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.blog-sidebar-item {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8fafc;
    text-decoration: none;
    color: #1e293b;
    font-size: 0.9rem;
    line-height: 1.4;
}
.blog-sidebar-item:last-child {
    border-bottom: none;
}
.blog-sidebar-item:hover {
    color: #2563eb;
    opacity: 1;
}
.blog-sidebar-item .sidebar-date {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 2px;
}
.blog-sidebar-cta {
    background: var(--gradient-primary);
    color: white;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}
.blog-sidebar-cta p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}
.blog-sidebar-cta a {
    display: inline-block;
    background: white;
    color: var(--color-primary);
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
}

/* Blog Breadcrumbs */
.blog-breadcrumbs {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1.5rem 0;
    font-size: 0.85rem;
    color: #64748b;
}
.blog-breadcrumbs a {
    color: #64748b;
    text-decoration: none;
}
.blog-breadcrumbs a:hover {
    color: #2563eb;
    opacity: 1;
}
.blog-breadcrumbs span {
    margin: 0 0.5rem;
}

/* Blog Responsive */
@media (max-width: 900px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .blog-article-layout {
        grid-template-columns: 1fr;
    }
    .blog-sidebar {
        position: static;
    }
}
@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .blog-hero h1 {
        font-size: 1.6rem;
    }
    .blog-article h1 {
        font-size: 1.5rem;
    }
    .blog-article-layout {
        padding: 1rem 1rem 2rem;
    }
}

/* ============================================
   ELECCIONES 2026 SECTION
   ============================================ */
.elections-section {
    background: linear-gradient(135deg, #0f1b2d 0%, #1e293b 50%, #0f1b2d 100%);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}
.elections-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #C8102E 0%, #C8102E 33%, #ffffff 33%, #ffffff 66%, #C8102E 66%, #C8102E 100%);
}
.elections-header {
    text-align: center;
    margin-bottom: 2rem;
}
.elections-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(200, 16, 46, 0.15);
    color: #dc2626;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    border: 1px solid rgba(200, 16, 46, 0.3);
}
.elections-badge svg {
    width: 14px;
    height: 14px;
}
.elections-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
}
.elections-header h2 span {
    color: #C8102E;
}
.elections-header p {
    color: #64748b;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Countdown */
.elections-countdown {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.countdown-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    min-width: 80px;
}
.countdown-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.countdown-label {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.3rem;
}

/* Elections Grid */
.elections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
.election-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}
.election-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(200, 16, 46, 0.3);
    transform: translateY(-2px);
}
.election-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(200, 16, 46, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
}
.election-card-icon svg {
    width: 24px;
    height: 24px;
    color: #dc2626;
}
.election-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.25rem;
}
.election-card p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
}

/* Elections Info */
.elections-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
.election-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 1rem;
}
.election-info-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: rgba(37, 99, 235, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.election-info-icon svg {
    width: 18px;
    height: 18px;
    color: #2563eb;
}
.election-info-item strong {
    color: #ffffff;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 2px;
}
.election-info-item span {
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Elections CTA */
.elections-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.elections-cta a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-elections-primary {
    background: #C8102E;
    color: #ffffff;
}
.btn-elections-primary:hover {
    background: #C8102E;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(200, 16, 46, 0.4);
}
.btn-elections-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-elections-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

/* Elections Responsive */
@media (max-width: 768px) {
    .elections-section {
        padding: 2rem 0;
    }
    .elections-header h2 {
        font-size: 1.5rem;
    }
    .elections-countdown {
        gap: 0.5rem;
    }
    .countdown-item {
        min-width: 65px;
        padding: 0.75rem;
    }
    .countdown-number {
        font-size: 1.6rem;
    }
    .elections-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .elections-info {
        grid-template-columns: 1fr;
    }
    .elections-cta {
        flex-direction: column;
        align-items: center;
    }
    .elections-cta a {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* ============================================
   BIBLIOTECA - Shared Styles
   ============================================ */
.nav-link[href*="biblioteca"] {
    position: relative;
}
.badge-new {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb, #2563eb);
    color: #fff;
    font-size: 0.55rem;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

/* ============================================
   AUTH - Google Sign-In
   ============================================ */
.auth-area {
    display: flex;
    align-items: center;
    margin-left: 0.5rem;
    position: relative;
}

.google-login-btn {
    display: block;
}

/* Login link (logged out) */
.login-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
    white-space: nowrap;
    background: rgba(255,255,255,0.1);
}
.login-link:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.7);
    color: #fff;
}

/* Mobile login link */
.mobile-login-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.mobile-login-link:hover {
    background: rgba(255,255,255,0.15);
}

/* User menu (logged in) */
.user-menu {
    display: none;
    align-items: center;
    position: relative;
}

.user-avatar-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    border-radius: 50%;
    transition: box-shadow 0.2s;
}

.user-avatar-btn:hover {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.3);
}

.user-initials {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--color-secondary);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    border: 2px solid rgba(255,255,255,0.3);
}

/* User dropdown */
.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    min-width: 220px;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown.active {
    display: block;
}

.user-dd-header {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.user-dd-name {
    display: block;
    font-weight: 700;
    color: #0f1b2d;
    font-size: 0.9rem;
}

.user-dd-email {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 2px;
}

.user-dd-sub {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
}

.user-dd-sub-inactive {
    background: #e2e8f0;
    color: #64748b;
}

.user-dd-divider {
    height: 1px;
    background: #e2e8f0;
}

.user-dd-item {
    display: block;
    padding: 0.65rem 1rem;
    color: #1e293b;
    font-size: 0.85rem;
    transition: background 0.15s;
}

.user-dd-item:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.user-dd-logout {
    color: #dc2626;
}

.user-dd-logout:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* Mobile auth section */
.mobile-auth-section {
    padding: 1rem 1.5rem !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-google-login {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
}

.mobile-user-info {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem 0;
}

.mobile-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.3);
}

.mobile-user-details {
    flex: 1;
}

.mobile-user-name {
    display: block;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}

.mobile-user-email {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
}

.mobile-logout-btn {
    padding: 0.35rem 0.75rem;
    background: rgba(220, 38, 38, 0.15);
    color: #fca5a5;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    transition: background 0.15s;
}

.mobile-logout-btn:hover {
    background: rgba(220, 38, 38, 0.3);
    color: #fca5a5;
}
