/* ============================================================================
   EnglishMAX Online · iOS Design System
   Premium visual language inspired by iOS 18 / macOS Sequoia
   ============================================================================ */

:root {
    /* ========== PALETA DE MARCA ENGLISHMAX (extraída del logo) ========== */
    --brand-navy:        #17365D;   /* Azul marino profundo (borde del logo) */
    --brand-navy-dark:   #0F2447;   /* Azul noche (sombras) */
    --brand-navy-light:  #1E4B7E;   /* Azul marino claro */
    --brand-teal:        #4DD0E1;   /* Teal (burbuja izquierda) */
    --brand-teal-dark:   #26A3B5;   /* Teal oscuro */
    --brand-teal-soft:   #B3E8F0;   /* Teal suave para fondos */
    --brand-gold:        #F4D06F;   /* Dorado (burbuja derecha) */
    --brand-gold-dark:   #D4A845;   /* Dorado oscuro */
    --brand-gold-soft:   #FCF0CC;   /* Dorado suave */
    --brand-green:       #8ACD88;   /* Verde sage (acento del logo) */
    --brand-green-dark:  #5EAB5A;   /* Verde oscuro */
    --brand-green-soft:  #D7F0D5;   /* Verde suave */
    --brand-blue:        #4A90E2;   /* Azul del libro */
    --brand-blue-light:  #6BA5E9;   /* Azul claro */
    --brand-blue-soft:   #DCEBF9;   /* Azul suave */

    /* Gradientes de marca */
    --brand-gradient-primary: linear-gradient(135deg, #17365D 0%, #1E4B7E 50%, #4A90E2 100%);
    --brand-gradient-accent:  linear-gradient(135deg, #4DD0E1 0%, #8ACD88 50%, #F4D06F 100%);
    --brand-gradient-warm:    linear-gradient(135deg, #F4D06F 0%, #8ACD88 100%);
    --brand-gradient-cool:    linear-gradient(135deg, #4DD0E1 0%, #4A90E2 50%, #17365D 100%);
    --brand-gradient-vivid:   linear-gradient(135deg, #17365D, #1E4B7E, #4A90E2, #4DD0E1, #8ACD88, #F4D06F);

    /* Core palette iOS (ajustada para usar brand cuando aplique) */
    --ios-blue: #4A90E2;        /* Ahora el azul primario es el del libro */
    --ios-indigo: #17365D;      /* Índigo = navy brand */
    --ios-purple: #AF52DE;
    --ios-pink: #FF2D55;
    --ios-red: #FF3B30;
    --ios-orange: #F4D06F;      /* Naranja = dorado brand */
    --ios-yellow: #F4D06F;
    --ios-green: #8ACD88;       /* Verde = sage brand */
    --ios-mint: #4DD0E1;        /* Mint = teal brand */
    --ios-teal: #4DD0E1;
    --ios-cyan: #4DD0E1;
    --ios-brown: #A2845E;

    /* Grays */
    --gray-1: #8E8E93;
    --gray-2: #AEAEB2;
    --gray-3: #C7C7CC;
    --gray-4: #D1D1D6;
    --gray-5: #E5E5EA;
    --gray-6: #F2F2F7;

    /* Fondos */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F2F2F7;
    --bg-tertiary: #FFFFFF;
    --bg-grouped: #F2F2F7;

    /* Textos */
    --text-primary: #1C1C1E;
    --text-secondary: #3C3C43;
    --text-tertiary: #8E8E93;
    --text-quaternary: #C7C7CC;

    /* Separadores */
    --separator: rgba(60, 60, 67, 0.12);
    --separator-opaque: #C6C6C8;

    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 2px 6px rgba(0,0,0,.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,.06), 0 12px 32px rgba(0,0,0,.06);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.08), 0 20px 60px rgba(0,0,0,.08);
    --shadow-xl: 0 20px 80px rgba(0,0,0,.12);
    --shadow-glow: 0 0 40px rgba(0, 122, 255, 0.2);

    /* Bordes/radio */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Tipografía */
    --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
    --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
    --font-mono: "SF Mono", Menlo, Monaco, Consolas, monospace;

    /* Gradientes — ahora usan paleta de marca */
    --gradient-blue:    linear-gradient(135deg, #17365D 0%, #4A90E2 100%);
    --gradient-purple:  linear-gradient(135deg, #17365D 0%, #4DD0E1 100%);
    --gradient-sunset:  linear-gradient(135deg, #F4D06F 0%, #8ACD88 100%);
    --gradient-mint:    linear-gradient(135deg, #4DD0E1 0%, #4A90E2 100%);
    --gradient-gold:    linear-gradient(135deg, #F4D06F 0%, #D4A845 100%);
    --gradient-teal:    linear-gradient(135deg, #4DD0E1 0%, #26A3B5 100%);
    --gradient-green:   linear-gradient(135deg, #8ACD88 0%, #5EAB5A 100%);
    --gradient-hero:    linear-gradient(135deg, #17365D 0%, #4A90E2 40%, #4DD0E1 80%, #8ACD88 100%);

    /* Transiciones */
    --ease-ios: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 400ms;
}

/* ===========================================================================
   DARK MODE
   Applied via [data-theme="dark"] attribute on <html>.
   Pre-render script in Site.Master sets it before paint (avoids FOUC).
   =========================================================================== */
[data-theme="dark"] {
    /* Fondos */
    --bg-primary: #0A0A0F;
    --bg-secondary: #16161C;
    --bg-tertiary: #1C1C24;
    --bg-grouped: #000;
    --bg-elevated: #22222B;

    /* Grises en dark */
    --gray-1: #8E8E93;
    --gray-2: #636366;
    --gray-3: #48484A;
    --gray-4: #3A3A3C;
    --gray-5: #2C2C2E;
    --gray-6: #1C1C1E;

    /* Textos en dark */
    --text-primary: #F5F5F7;
    --text-secondary: rgba(235, 235, 245, 0.78);
    --text-tertiary: rgba(235, 235, 245, 0.55);
    --text-quaternary: rgba(235, 235, 245, 0.30);

    /* Separadores */
    --separator: rgba(84, 84, 88, 0.45);
    --separator-opaque: #38383A;

    /* Sombras más sutiles en dark */
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3), 0 2px 6px rgba(0,0,0,.2);
    --shadow-md: 0 4px 12px rgba(0,0,0,.35), 0 12px 32px rgba(0,0,0,.25);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.4), 0 20px 60px rgba(0,0,0,.3);
    --shadow-xl: 0 20px 80px rgba(0,0,0,.5);
    --shadow-glow: 0 0 40px rgba(0, 122, 255, 0.4);

    /* Colores iOS levemente brighter en dark */
    --ios-blue: #0A84FF;
    --ios-indigo: #5E5CE6;
    --ios-purple: #BF5AF2;
    --ios-pink: #FF375F;
    --ios-red: #FF453A;
    --ios-orange: #FF9F0A;
    --ios-yellow: #FFD60A;
    --ios-green: #32D74B;
    --ios-mint: #63E6E2;
    --ios-teal: #40C8E0;
    --ios-cyan: #64D2FF;
}

/* Transiciones globales de tema (solo color/bg, no layout) */
body, .ios-card, .ios-navbar, .ios-btn, .ios-input, .ios-select,
.ios-feature, .ios-pricing-card, .ios-testimonial, .ios-faq-item,
.dash-sidebar, .dash-main, .dash-sidebar-item {
    transition: background-color 300ms var(--ease-ios), color 300ms var(--ease-ios), border-color 300ms var(--ease-ios);
}

/* Auto dark según SO cuando NO hay preferencia explícita */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg-primary: #0A0A0F;
        --bg-secondary: #16161C;
        --bg-tertiary: #1C1C24;
        --bg-grouped: #000;
        --bg-elevated: #22222B;
        --gray-1: #8E8E93;
        --gray-2: #636366;
        --gray-3: #48484A;
        --gray-4: #3A3A3C;
        --gray-5: #2C2C2E;
        --gray-6: #1C1C1E;
        --text-primary: #F5F5F7;
        --text-secondary: rgba(235, 235, 245, 0.78);
        --text-tertiary: rgba(235, 235, 245, 0.55);
        --text-quaternary: rgba(235, 235, 245, 0.30);
        --separator: rgba(84, 84, 88, 0.45);
        --separator-opaque: #38383A;
        --shadow-sm: 0 1px 2px rgba(0,0,0,.3), 0 2px 6px rgba(0,0,0,.2);
        --shadow-md: 0 4px 12px rgba(0,0,0,.35), 0 12px 32px rgba(0,0,0,.25);
        --shadow-lg: 0 10px 40px rgba(0,0,0,.4), 0 20px 60px rgba(0,0,0,.3);
        --shadow-xl: 0 20px 80px rgba(0,0,0,.5);
        --ios-blue: #0A84FF;
        --ios-indigo: #5E5CE6;
        --ios-purple: #BF5AF2;
        --ios-pink: #FF375F;
        --ios-red: #FF453A;
        --ios-orange: #FF9F0A;
        --ios-yellow: #FFD60A;
        --ios-green: #32D74B;
        --ios-mint: #63E6E2;
        --ios-teal: #40C8E0;
        --ios-cyan: #64D2FF;
    }
}

/* ======================== RESET & BASE ======================== */

*, *::before, *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-text);
    font-size: 17px;
    line-height: 1.47;
    color: var(--text-primary);
    background: var(--bg-secondary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "kern", "liga", "calt";
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.5em;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.022em;
    line-height: 1.15;
    color: var(--text-primary);
}

h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; letter-spacing: -0.028em; }
h3 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; }
h4 { font-size: 20px; font-weight: 600; }
h5 { font-size: 17px; font-weight: 600; }
h6 { font-size: 15px; font-weight: 600; }

p { margin: 0 0 1em; color: var(--text-secondary); }
a { color: var(--ios-blue); text-decoration: none; transition: opacity var(--duration-fast); }
a:hover { opacity: 0.75; }

img, svg { max-width: 100%; display: block; }

/* ======================== LAYOUT ======================== */

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

.container-sm { max-width: 720px; }
.container-md { max-width: 960px; }
.container-lg { max-width: 1200px; }
.container-xl { max-width: 1400px; }

.section {
    padding: 80px 0;
}

.section-sm { padding: 40px 0; }
.section-lg { padding: 120px 0; }

@media (max-width: 768px) {
    .section { padding: 56px 0; }
    .section-lg { padding: 80px 0; }
}

/* ======================== CARDS ======================== */

.ios-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--separator);
    transition: transform var(--duration-normal) var(--ease-ios),
                box-shadow var(--duration-normal) var(--ease-ios);
}

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

.ios-card-glass {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.ios-card-elevated {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-xl);
    border: 0;
}

/* ======================== BUTTONS ======================== */

.ios-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-text);
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-ios);
    letter-spacing: -0.01em;
    white-space: nowrap;
    text-decoration: none;
    -webkit-appearance: none;
    user-select: none;
}

.ios-btn:hover { transform: translateY(-1px); }
.ios-btn:active { transform: translateY(0) scale(0.98); }

.ios-btn-primary {
    background: var(--gradient-blue);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
}
.ios-btn-primary:hover {
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.4);
    color: #fff;
}

.ios-btn-secondary {
    background: var(--bg-primary);
    color: var(--ios-blue);
    border: 1.5px solid var(--separator);
}
.ios-btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--ios-blue);
}

.ios-btn-dark {
    background: #1C1C1E;
    color: #fff;
}
.ios-btn-dark:hover { background: #2C2C2E; color: #fff; }

.ios-btn-white {
    background: #fff;
    color: #1C1C1E;
    box-shadow: var(--shadow-sm);
}

.ios-btn-ghost {
    background: transparent;
    color: var(--ios-blue);
}
.ios-btn-ghost:hover { background: rgba(0,122,255,0.08); }

.ios-btn-lg { padding: 18px 36px; font-size: 17px; }
.ios-btn-sm { padding: 10px 18px; font-size: 14px; }
.ios-btn-xl { padding: 22px 48px; font-size: 18px; font-weight: 700; }

.ios-btn-block { width: 100%; }

/* ======================== FORMS ======================== */

.ios-input {
    width: 100%;
    padding: 16px 20px;
    font-family: var(--font-text);
    font-size: 16px;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1.5px solid var(--separator);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast);
    -webkit-appearance: none;
}

.ios-input:focus {
    outline: none;
    border-color: var(--ios-blue);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12);
}

.ios-input::placeholder { color: var(--text-tertiary); }

.ios-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.ios-form-group { margin-bottom: 20px; }

.ios-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238E8E93' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

/* ======================== BADGES & PILLS ======================== */

.ios-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
    line-height: 1;
}

.ios-badge-blue { background: rgba(0,122,255,.12); color: var(--ios-blue); }
.ios-badge-green { background: rgba(52,199,89,.12); color: var(--ios-green); }
.ios-badge-orange { background: rgba(255,149,0,.12); color: var(--ios-orange); }
.ios-badge-red { background: rgba(255,59,48,.12); color: var(--ios-red); }
.ios-badge-purple { background: rgba(175,82,222,.12); color: var(--ios-purple); }
.ios-badge-gray { background: var(--gray-6); color: var(--text-secondary); }

/* ======================== NAVBAR ======================== */

/* ===== NAVBAR estilo sescolar_utcgg con colores de marca EnglishMAX ===== */
.ios-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    /* Gradiente SÓLIDO con paleta del logo: navy profundo → blue → teal → navy */
    background: linear-gradient(270deg,
        #0F2447,  /* navy profundo */
        #17365D,  /* navy */
        #1E4B7E,  /* navy claro */
        #4A90E2,  /* blue del libro */
        #26A3B5,  /* teal oscuro */
        #4DD0E1,  /* teal del logo */
        #26A3B5,  /* teal oscuro */
        #4A90E2,  /* blue */
        #1E4B7E,  /* navy claro */
        #17365D,  /* navy */
        #0F2447   /* navy profundo */
    );
    background-size: 400% 100%;
    animation: navGradient 10s ease infinite;
    border-bottom: 1px solid rgba(77,208,225,0.2);
    box-shadow:
        0 4px 30px rgba(23,54,93,0.5),
        inset 0 -1px 0 rgba(77,208,225,0.15);
    /* NO backdrop-filter (ya NO es transparente) */
}

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

/* Brillo teal que cruza la navbar */
.ios-navbar::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(77,208,225,0.18) 40%,
        rgba(138,205,136,0.12) 50%,
        rgba(244,208,111,0.08) 60%,
        transparent 100%);
    animation: navShimmer 7s ease-in-out infinite;
    pointer-events: none;
    mix-blend-mode: overlay;
}
@keyframes navShimmer {
    0%, 100% { transform: translateX(-120%); }
    50%      { transform: translateX(120%); }
}

/* Capa de partículas sutiles */
.ios-navbar::after {
    content: ''; position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(77,208,225,0.08) 1px, transparent 2px),
        radial-gradient(circle at 45% 50%, rgba(138,205,136,0.06) 1px, transparent 2px),
        radial-gradient(circle at 75% 50%, rgba(244,208,111,0.08) 1px, transparent 2px);
    background-size: 120px 40px, 180px 40px, 150px 40px;
    opacity: 0.5;
    pointer-events: none;
}

.ios-navbar.scrolled {
    box-shadow:
        0 8px 40px rgba(15,36,71,0.6),
        inset 0 -1px 0 rgba(77,208,225,0.25);
    border-bottom-color: rgba(77,208,225,0.3);
}

.ios-navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.ios-navbar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.ios-navbar-brand:hover { color: #fff; opacity: 1; }

.ios-navbar-logo {
    width: 36px;
    height: 36px;
    background: var(--gradient-blue);
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    box-shadow: 0 2px 8px rgba(0,122,255,.3);
}

.ios-navbar-logo-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: transparent;
    filter: drop-shadow(0 4px 16px rgba(0,122,255,0.5)) drop-shadow(0 0 20px rgba(96,165,250,0.3));
    transition: transform var(--duration-fast);
}
.ios-navbar-brand:hover .ios-navbar-logo-img { transform: scale(1.05) rotate(-4deg); }

.ios-navbar-brand-text {
    color: #fff;
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.ios-navbar-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ios-navbar-menu a {
    padding: 9px 16px;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255,255,255,0.82);
    border-radius: 999px;
    transition: all var(--duration-fast);
    text-decoration: none;
    position: relative;
}

.ios-navbar-menu a:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.ios-navbar-menu a.active {
    background: rgba(255,255,255,0.18);
    color: #fff;
}

.ios-navbar-actions { display: flex; align-items: center; gap: 10px; }

/* Navbar en modo claro - el nav siempre es azul animado */
/* Sobrescribir botones del nav para contraste */
.ios-navbar-actions .ios-btn-ghost {
    color: rgba(255,255,255,0.9);
    background: transparent;
}
.ios-navbar-actions .ios-btn-ghost:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.ios-navbar-actions .ios-btn-primary {
    background: linear-gradient(135deg, #4DD0E1, #8ACD88);
    color: #0F2447;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(77,208,225,0.4);
    border: none;
}
.ios-navbar-actions .ios-btn-primary:hover {
    background: linear-gradient(135deg, #8ACD88, #F4D06F);
    color: #0F2447;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138,205,136,0.5);
}

/* Theme toggle visible sobre azul */
.ios-navbar .theme-toggle {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
}
.ios-navbar .theme-toggle:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.3);
}

/* User chip sobre fondo azul */
.ios-navbar .user-chip {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}
.ios-navbar .user-chip:hover {
    background: rgba(255,255,255,0.22);
    color: #fff;
}

/* Botón de cerrar sesión — rojo elegante */
.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, rgba(220, 38, 58, 0.18), rgba(180, 20, 40, 0.12));
    border: 1px solid rgba(255, 99, 120, 0.3);
    border-radius: 999px;
    text-decoration: none;
    transition: all 250ms var(--ease-ios);
    letter-spacing: -0.005em;
    white-space: nowrap;
}
.btn-logout i {
    font-size: 16px;
    color: #FF6B7D;
    transition: transform 250ms;
}
.btn-logout:hover {
    background: linear-gradient(135deg, #DC2626, #B91C1C);
    border-color: rgba(255, 99, 120, 0.6);
    color: #fff;
    box-shadow: 0 4px 14px rgba(220, 38, 58, 0.35);
    transform: translateY(-1px);
}
.btn-logout:hover i {
    color: #fff;
    transform: translateX(2px);
}

@media (max-width: 640px) {
    .btn-logout span { display: none; }
    .btn-logout { padding: 9px 11px; }
}

@media (max-width: 900px) {
    .ios-navbar-menu { display: none; }
}

/* ======================== HERO ======================== */

.ios-hero {
    position: relative;
    padding: 140px 0 80px;
    overflow: hidden;
    background: radial-gradient(ellipse at top, rgba(88,86,214,.08), transparent 60%),
                radial-gradient(ellipse at bottom right, rgba(0,122,255,.08), transparent 50%),
                #fff;
}

.ios-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
    animation: orbFloat 20s ease-in-out infinite;
}

.ios-hero-orb-1 { width: 500px; height: 500px; background: #007AFF; top: -100px; left: -100px; }
.ios-hero-orb-2 { width: 400px; height: 400px; background: #FF2D55; top: 20%; right: -100px; animation-delay: -5s; }
.ios-hero-orb-3 { width: 350px; height: 350px; background: #AF52DE; bottom: -100px; left: 30%; animation-delay: -10s; }

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

.ios-hero-content { position: relative; z-index: 1; text-align: center; }

.ios-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ios-blue);
    background: rgba(0,122,255,.08);
    border: 1px solid rgba(0,122,255,.15);
    border-radius: var(--radius-full);
}

.ios-hero-title {
    font-size: clamp(44px, 7vw, 88px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin: 0 0 24px;
    background: linear-gradient(180deg, #1C1C1E 0%, #48484A 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ios-hero-title-gradient {
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 50%, #FF2D55 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ios-hero-subtitle {
    font-size: clamp(18px, 2.2vw, 24px);
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 40px;
    line-height: 1.5;
}

.ios-hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ======================== FEATURE GRID ======================== */

.ios-grid {
    display: grid;
    gap: 24px;
}

.ios-grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.ios-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ios-grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.ios-feature {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all var(--duration-normal) var(--ease-ios);
    border: 1px solid var(--separator);
}

.ios-feature:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0,122,255,.25);
}

.ios-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    font-size: 28px;
    margin-bottom: 20px;
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.ios-feature h4 { font-size: 20px; margin-bottom: 12px; }
.ios-feature p { color: var(--text-secondary); font-size: 15px; line-height: 1.6; margin: 0; }

/* ======================== PRICING CARDS ======================== */

.ios-pricing-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 1200px;
    margin: 0 auto;
}

.ios-pricing-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    border: 2px solid var(--separator);
    position: relative;
    transition: all var(--duration-normal) var(--ease-ios);
    display: flex;
    flex-direction: column;
}

.ios-pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.ios-pricing-card.featured {
    border-color: var(--ios-blue);
    background: linear-gradient(180deg, rgba(0,122,255,.04), transparent 40%), var(--bg-primary);
    box-shadow: 0 20px 60px rgba(0,122,255,.15);
    transform: scale(1.03);
}

.ios-pricing-ribbon {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background: var(--gradient-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0,122,255,.35);
}

.ios-pricing-name { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.ios-pricing-desc { color: var(--text-tertiary); font-size: 14px; margin-bottom: 24px; min-height: 40px; }

.ios-pricing-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
}

.ios-pricing-currency { font-size: 22px; font-weight: 500; color: var(--text-tertiary); }
.ios-pricing-amount { font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--text-primary); }
.ios-pricing-period { color: var(--text-tertiary); font-size: 15px; margin-bottom: 24px; }

.ios-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    flex: 1;
}

.ios-pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 15px;
    color: var(--text-secondary);
}

.ios-pricing-features li::before {
    content: '';
    flex-shrink: 0;
    margin-top: 2px;
    width: 20px;
    height: 20px;
    background: var(--ios-green);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-size: contain;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
}

.ios-pricing-features li.disabled { color: var(--text-quaternary); }
.ios-pricing-features li.disabled::before { background: var(--gray-4); }

/* ======================== TESTIMONIAL ======================== */

.ios-testimonial {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    border: 1px solid var(--separator);
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-normal);
}

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

.ios-testimonial-stars { color: var(--ios-orange); margin-bottom: 16px; letter-spacing: 2px; font-size: 18px; }
.ios-testimonial-quote { font-size: 16px; line-height: 1.6; color: var(--text-primary); margin-bottom: 20px; }

.ios-testimonial-user { display: flex; align-items: center; gap: 12px; }
.ios-testimonial-avatar {
    width: 44px; height: 44px;
    background: var(--gradient-blue);
    border-radius: 50%;
    display: grid; place-items: center;
    color: #fff; font-weight: 700; font-size: 16px;
}
.ios-testimonial-name { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.ios-testimonial-role { font-size: 13px; color: var(--text-tertiary); }

/* ======================== FAQ ACCORDION ======================== */

.ios-faq-item {
    border-bottom: 1px solid var(--separator);
    transition: background var(--duration-fast);
}

.ios-faq-item:hover { background: var(--bg-secondary); }

.ios-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    user-select: none;
}

.ios-faq-icon {
    width: 24px;
    height: 24px;
    color: var(--ios-blue);
    transition: transform var(--duration-normal) var(--ease-ios);
}

.ios-faq-item.open .ios-faq-icon { transform: rotate(45deg); }

.ios-faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    color: var(--text-secondary);
    transition: all var(--duration-normal) var(--ease-ios);
}

.ios-faq-item.open .ios-faq-answer {
    max-height: 500px;
    padding-bottom: 24px;
}

/* ======================== FOOTER ======================== */

.ios-footer {
    background: #1C1C1E;
    color: #AEAEB2;
    padding: 80px 0 30px;
}

.ios-footer h5 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.ios-footer a { color: #AEAEB2; display: block; padding: 6px 0; font-size: 15px; }
.ios-footer a:hover { color: #fff; }

.ios-footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .ios-footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

.ios-footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--gray-1);
}

/* ======================== DASHBOARD ======================== */

.dash-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.dash-sidebar {
    background: var(--bg-primary);
    border-right: 1px solid var(--separator);
    padding: 24px 16px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.dash-main { padding: 32px; background: var(--bg-secondary); }

.dash-sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    margin: 2px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast);
}

.dash-sidebar-item:hover { background: var(--bg-secondary); color: var(--text-primary); }

.dash-sidebar-item.active {
    background: var(--gradient-blue);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,122,255,.3);
}

.dash-sidebar-icon { font-size: 20px; width: 24px; text-align: center; }

@media (max-width: 900px) {
    .dash-layout { grid-template-columns: 1fr; }
    .dash-sidebar {
        position: fixed;
        left: -280px;
        z-index: 100;
        box-shadow: var(--shadow-xl);
        transition: left var(--duration-normal);
    }
    .dash-sidebar.open { left: 0; }
}

/* ======================== ANIMATIONS ======================== */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.animate-fadeInUp { animation: fadeInUp 0.6s var(--ease-ios) both; }
.animate-fadeIn { animation: fadeIn 0.6s var(--ease-ios) both; }
.animate-scaleIn { animation: scaleIn 0.5s var(--ease-spring) both; }

.animate-delay-100 { animation-delay: 100ms; }
.animate-delay-200 { animation-delay: 200ms; }
.animate-delay-300 { animation-delay: 300ms; }
.animate-delay-400 { animation-delay: 400ms; }
.animate-delay-500 { animation-delay: 500ms; }

/* ======================== UTILS ======================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-gradient {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-muted { color: var(--text-tertiary); }
.text-lg { font-size: 19px; }
.text-sm { font-size: 14px; }
.text-xs { font-size: 12px; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.mt-6 { margin-top: 64px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }
.mb-6 { margin-bottom: 64px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 32px; }

.hidden { display: none; }
@media (min-width: 768px) { .md-hidden { display: none; } }
@media (max-width: 767px) { .md-only { display: none; } }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-3); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-2); background-clip: padding-box; border: 2px solid transparent; }

/* Selection */
::selection { background: rgba(0,122,255,.25); color: var(--text-primary); }

/* ===========================================================================
   DARK MODE OVERRIDES — Componentes con colores hardcoded
   =========================================================================== */

/* La navbar siempre es azul gradiente en ambos temas, sin override */

[data-theme="dark"] .ios-card-glass {
    background: rgba(28, 28, 36, 0.72);
    border: 1px solid rgba(84, 84, 88, 0.3);
}

[data-theme="dark"] .ios-btn-secondary {
    background: var(--bg-tertiary);
    border-color: var(--separator-opaque);
    color: var(--ios-blue);
}
[data-theme="dark"] .ios-btn-secondary:hover {
    background: var(--bg-elevated);
    border-color: var(--ios-blue);
}

[data-theme="dark"] .ios-btn-dark {
    background: #F5F5F7; color: #1C1C1E;
}
[data-theme="dark"] .ios-btn-dark:hover { background: #fff; color: #000; }

[data-theme="dark"] .ios-badge-blue { background: rgba(10,132,255,.2); color: var(--ios-blue); }
[data-theme="dark"] .ios-badge-green { background: rgba(50,215,75,.2); color: var(--ios-green); }
[data-theme="dark"] .ios-badge-orange { background: rgba(255,159,10,.2); color: var(--ios-orange); }
[data-theme="dark"] .ios-badge-red { background: rgba(255,69,58,.2); color: var(--ios-red); }
[data-theme="dark"] .ios-badge-purple { background: rgba(191,90,242,.2); color: var(--ios-purple); }
[data-theme="dark"] .ios-badge-gray { background: var(--bg-elevated); color: var(--text-secondary); }

[data-theme="dark"] .ios-feature:hover {
    border-color: rgba(10, 132, 255, .4);
    box-shadow: 0 20px 50px rgba(0,0,0,.4);
}

[data-theme="dark"] .ios-pricing-card.featured {
    background: linear-gradient(180deg, rgba(10,132,255,.08), transparent 40%), var(--bg-tertiary);
    border-color: var(--ios-blue);
    box-shadow: 0 20px 60px rgba(10,132,255,.15);
}

[data-theme="dark"] .ios-faq-item:hover { background: var(--bg-tertiary); }

[data-theme="dark"] .ios-hero {
    background: radial-gradient(ellipse at top, rgba(88,86,214,.15), transparent 60%),
                radial-gradient(ellipse at bottom right, rgba(10,132,255,.12), transparent 50%),
                var(--bg-primary);
}

[data-theme="dark"] .ios-hero-title {
    background: linear-gradient(180deg, #F5F5F7 0%, #AEAEB2 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

[data-theme="dark"] .ios-hero-eyebrow {
    background: rgba(10,132,255,.15);
    border-color: rgba(10,132,255,.3);
}

/* Scrollbar dark */
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: var(--gray-4); }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: var(--gray-3); }
[data-theme="dark"] ::selection { background: rgba(10,132,255,.4); }

/* ============================================================================
   LOGIN MODAL — overlay con animaciones enter/exit
   ============================================================================ */
.login-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 300ms var(--ease-ios), visibility 300ms;
}
.login-modal.open {
    visibility: visible;
    opacity: 1;
}

.login-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 20, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

.login-modal-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: var(--bg-primary);
    border: 1px solid var(--separator);
    border-radius: 22px;
    padding: 36px 32px 28px;
    box-shadow:
        0 30px 80px rgba(0,0,0,0.4),
        0 0 0 1px rgba(77,208,225,0.1);
    text-align: center;
    transform: translateY(24px) scale(0.95);
    opacity: 0;
    transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 300ms ease-out;
}
.login-modal.open .login-modal-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

[data-theme="dark"] .login-modal-card {
    background: linear-gradient(145deg, rgba(28,38,62,0.98), rgba(18,26,46,0.98));
    border-color: rgba(77,208,225,0.2);
    box-shadow:
        0 30px 80px rgba(0,0,0,0.7),
        0 0 0 1px rgba(77,208,225,0.15),
        0 0 60px rgba(77,208,225,0.1);
}

/* Botón X de cierre */
.login-modal-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 32px; height: 32px;
    border: 0;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: grid; place-items: center;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 18px;
    transition: all 200ms;
    z-index: 2;
}
.login-modal-close:hover {
    background: rgba(255,99,120,0.15);
    color: #FF6B7D;
    transform: rotate(90deg);
}

/* Logo */
.login-modal-logo {
    width: 120px; height: 120px;
    margin: 0 auto 20px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 10px 28px rgba(74,144,226,0.35));
    animation: loginLogoIn 600ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes loginLogoIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.85); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
[data-theme="dark"] .login-modal-logo {
    filter: drop-shadow(0 12px 32px rgba(77,208,225,0.5));
}

/* Título */
.login-modal-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0 0 6px;
}

.login-modal-subtitle {
    font-size: 13.5px;
    color: var(--text-tertiary);
    margin: 0 0 24px;
}

/* Error */
.login-modal-error {
    background: linear-gradient(135deg, rgba(255,99,120,0.1), rgba(220,38,58,0.06));
    color: #FF6B7D;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 16px;
    border: 1px solid rgba(255,99,120,0.25);
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    animation: shakeError 0.4s;
}
@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-6px); }
    75%      { transform: translateX(6px); }
}

/* Fields */
.login-modal-field {
    text-align: left;
    margin-bottom: 14px;
}
.login-modal-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.login-modal-field label i { color: var(--ios-blue); font-size: 14px; }
[data-theme="dark"] .login-modal-field label i { color: #4DD0E1; }

.login-modal-field input {
    width: 100%;
    padding: 12px 16px;
    font-size: 14.5px;
    background: var(--bg-primary);
    border: 1.5px solid var(--separator);
    border-radius: 11px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 200ms;
    -webkit-appearance: none;
}
.login-modal-field input:focus {
    outline: none;
    border-color: var(--ios-blue);
    box-shadow: 0 0 0 4px rgba(74,144,226,0.12);
}
[data-theme="dark"] .login-modal-field input {
    background: rgba(15,21,40,0.6);
    border-color: rgba(77,208,225,0.15);
    color: #F5F8FF;
}
[data-theme="dark"] .login-modal-field input:focus {
    border-color: #4DD0E1;
    background: rgba(15,21,40,0.9);
    box-shadow: 0 0 0 4px rgba(77,208,225,0.15);
}

.login-modal-forgot {
    text-align: right;
    margin-bottom: 18px;
    font-size: 12.5px;
}
.login-modal-forgot a {
    color: var(--ios-blue);
    font-weight: 600;
    text-decoration: none;
}
[data-theme="dark"] .login-modal-forgot a { color: #4DD0E1; }
.login-modal-forgot a:hover { opacity: 0.8; }

/* Botón Iniciar sesión */
.login-modal-btn {
    width: 100%;
    padding: 13px;
    font-size: 14.5px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #17365D 0%, #4A90E2 50%, #4DD0E1 100%);
    background-size: 200% 100%;
    background-position: 0% 50%;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-position 400ms, transform 200ms, box-shadow 300ms;
    box-shadow: 0 6px 20px rgba(74,144,226,0.3);
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    letter-spacing: 0.01em;
}
.login-modal-btn:hover {
    background-position: 100% 50%;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(77,208,225,0.4);
}
.login-modal-btn:active { transform: translateY(0); }
.login-modal-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.login-modal-btn.loading .btn-text::after {
    content: '...';
    animation: loadingDots 1s infinite;
}
@keyframes loadingDots {
    0%, 33%  { content: '.'; }
    34%, 66% { content: '..'; }
    67%, 100% { content: '...'; }
}

.login-modal-footer {
    margin-top: 18px;
    font-size: 13px;
    color: var(--text-tertiary);
}
.login-modal-footer a {
    color: var(--ios-blue);
    font-weight: 700;
    text-decoration: none;
}
[data-theme="dark"] .login-modal-footer a { color: #4DD0E1; }

/* ===== REGISTER MODAL (extiende el login modal) ===== */
.register-modal-card {
    max-width: 520px !important;
    padding: 32px 32px 24px !important;
}

.register-modal-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 480px) {
    .register-modal-row { grid-template-columns: 1fr; gap: 0; }
}

.reg-select {
    width: 100%;
    padding: 12px 16px;
    padding-right: 40px;
    font-size: 14.5px;
    background-color: var(--bg-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238E8E93' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    border: 1.5px solid var(--separator);
    border-radius: 11px;
    color: var(--text-primary);
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: all 200ms;
}
.reg-select:focus {
    outline: none;
    border-color: var(--ios-blue);
    box-shadow: 0 0 0 4px rgba(74,144,226,0.12);
}

[data-theme="dark"] .reg-select {
    background-color: #1A1F33;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234DD0E1' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    border-color: rgba(77,208,225,0.2);
    color: #F5F8FF;
}
[data-theme="dark"] .reg-select option {
    background-color: #1A1F33;
    color: #F5F8FF;
}
[data-theme="dark"] .reg-select:focus {
    background-color: #1E2441;
    border-color: #4DD0E1;
    box-shadow: 0 0 0 4px rgba(77,208,225,0.15);
}

/* Asterisco obligatorio en modal */
.login-modal .req {
    color: #FF6B7D;
    font-weight: 800;
    margin-left: 2px;
    font-size: 14px;
}

/* Body sin scroll cuando modal abierto */
body.login-modal-open { overflow: hidden; }

/* Theme toggle button styles */
.theme-toggle {
    position: relative;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 0;
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    display: grid; place-items: center;
    font-size: 18px;
    transition: all var(--duration-fast);
    overflow: hidden;
}
.theme-toggle:hover { background: var(--gray-5); transform: scale(1.05); }
.theme-toggle .icon-sun, .theme-toggle .icon-moon {
    position: absolute;
    transition: all 400ms var(--ease-spring);
}
.theme-toggle .icon-sun { opacity: 1; transform: translateY(0) rotate(0); }
.theme-toggle .icon-moon { opacity: 0; transform: translateY(20px) rotate(-30deg); }
[data-theme="dark"] .theme-toggle .icon-sun { opacity: 0; transform: translateY(-20px) rotate(30deg); }
[data-theme="dark"] .theme-toggle .icon-moon { opacity: 1; transform: translateY(0) rotate(0); }
