/* ==========================================================================
   AEPsiUNCAus - Expo Carreras 2026
   Sistema de Diseño Global & Tokens Visuales
   Inspirado en la paleta cromática multicolor del logo oficial de AEPsiUNCAus
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    /* Paleta Oficial del Logo AEPsiUNCAus */
    --logo-yellow: #f59e0b;
    --logo-amber: #fbbf24;
    --logo-orange: #f97316;
    --logo-red: #ef4444;
    --logo-magenta: #ec4899;
    --logo-purple: #8b5cf6;
    --logo-indigo: #6366f1;
    --logo-blue: #3b82f6;
    --logo-cyan: #06b6d4;
    --logo-teal: #14b8a6;
    --logo-emerald: #10b981;

    /* Gradientes Armónicos del Logo */
    --logo-gradient-text: linear-gradient(135deg, #fbbf24 0%, #f97316 25%, #ec4899 50%, #8b5cf6 75%, #38bdf8 100%);
    --logo-conic-glow: conic-gradient(from 180deg at 50% 50%, #f59e0b, #f97316, #ef4444, #ec4899, #8b5cf6, #3b82f6, #06b6d4, #10b981, #f59e0b);
    --logo-btn-gradient: linear-gradient(135deg, #10b981 0%, #06b6d4 35%, #8b5cf6 70%, #ec4899 100%);

    /* Tema Base Oscuro Cálido e Inmersivo */
    --bg-base: #060913;
    --bg-surface: #0f172a;
    --bg-surface-elevated: #1e293b;
    --bg-surface-glass: rgba(15, 23, 42, 0.8);
    --bg-surface-card: rgba(26, 35, 54, 0.85);

    /* Bordes & Glassmorphism */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.16);
    --border-highlight: rgba(236, 72, 153, 0.4);
    --glass-blur: blur(16px);

    /* Tipografía */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #0f172a;

    /* Acciones & Reacciones */
    --color-love: #10b981;       /* Me copa / Me interesa */
    --color-love-glow: rgba(16, 185, 129, 0.3);
    --color-maybe: #f59e0b;      /* Puede ser / Indiferente */
    --color-maybe-glow: rgba(245, 158, 11, 0.3);
    --color-pass: #ef4444;       /* Paso / No es lo mío */
    --color-pass-glow: rgba(239, 68, 68, 0.3);

    /* Badges */
    --badge-presencial-bg: rgba(16, 185, 129, 0.15);
    --badge-presencial-text: #34d399;
    --badge-presencial-border: rgba(52, 211, 153, 0.3);

    --badge-virtual-bg: rgba(59, 130, 246, 0.15);
    --badge-virtual-text: #60a5fa;
    --badge-virtual-border: rgba(96, 165, 250, 0.3);

    /* Sombras & Radios */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --shadow-subtle: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-card: 0 14px 36px rgba(0, 0, 0, 0.55);
    --shadow-glow: 0 0 40px rgba(236, 72, 153, 0.25);

    /* Transiciones */
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Resets & Base
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    min-height: 100%;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Malla de iluminación ambiental multicolor inspirada en el logo */
body {
    background-color: #060913;
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(245, 158, 11, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 90% 15%, rgba(236, 72, 153, 0.22) 0%, transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(139, 92, 246, 0.22) 0%, transparent 45%),
        radial-gradient(circle at 15% 85%, rgba(20, 184, 166, 0.2) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.96) 0%, #060913 100%);
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

h1, h2, h3, h4, h5, .brand-font {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   Layout Principal de la App (Mobile-First Centered Container)
   ========================================================================== */
.app-container {
    width: 100%;
    max-width: 520px;
    min-height: 100vh;
    padding: 16px 16px 32px 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Barra Superior / Header de Marca */
.brand-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-surface-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    margin-bottom: 18px;
    box-shadow: var(--shadow-subtle);
}

.brand-identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: #ffffff;
    padding: 2px;
    box-shadow: 
        0 0 0 2px rgba(255, 255, 255, 0.15),
        0 0 16px rgba(236, 72, 153, 0.4),
        0 0 25px rgba(59, 130, 246, 0.25);
    flex-shrink: 0;
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
    background: var(--logo-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.expo-pill {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.15), rgba(236, 72, 153, 0.15), rgba(59, 130, 246, 0.15));
    border: 1px solid rgba(236, 72, 153, 0.45);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    box-shadow: 0 0 14px rgba(236, 72, 153, 0.25);
}

/* ==========================================================================
   Pantallas de Estado (Intro, Test, Resultados)
   ========================================================================== */
.view-screen {
    display: none;
    flex-direction: column;
    width: 100%;
    animation: fadeIn 0.4s var(--ease-smooth) forwards;
}

.view-screen.active {
    display: flex;
}

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

/* ==========================================================================
   Pantalla de Bienvenida / Intro
   ========================================================================== */
.intro-card {
    background: linear-gradient(145deg, rgba(26, 35, 54, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.intro-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.intro-logo-large {
    width: 102px;
    height: 102px;
    border-radius: 50%;
    object-fit: cover;
    background: #ffffff;
    padding: 4px;
    position: relative;
    margin: 0 auto 20px auto;
    display: block;
    box-shadow: 
        0 0 0 3px rgba(255, 255, 255, 0.15),
        0 0 25px rgba(245, 158, 11, 0.5),
        0 0 45px rgba(236, 72, 153, 0.35);
    animation: rainbowPulseMobile 6s ease-in-out infinite;
}

@keyframes rainbowPulseMobile {
    0%, 100% {
        box-shadow: 0 0 25px rgba(245, 158, 11, 0.5), 0 0 45px rgba(236, 72, 153, 0.35);
        transform: scale(1);
    }
    33% {
        box-shadow: 0 0 25px rgba(236, 72, 153, 0.5), 0 0 45px rgba(139, 92, 246, 0.35);
        transform: scale(1.02);
    }
    66% {
        box-shadow: 0 0 25px rgba(20, 184, 166, 0.5), 0 0 45px rgba(59, 130, 246, 0.35);
        transform: scale(1);
    }
}

.intro-title {
    font-size: 1.95rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.intro-title span {
    background: var(--logo-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro-desc {
    color: #cbd5e1;
    font-size: 0.96rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Cajas de características con colores del logo */
.intro-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.highlight-box {
    background: rgba(15, 23, 42, 0.7);
    border-radius: var(--radius-md);
    padding: 14px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease;
}

.highlight-box:nth-child(1) {
    border-color: rgba(6, 182, 212, 0.35);
}

.highlight-box:nth-child(2) {
    border-color: rgba(236, 72, 153, 0.35);
}

.highlight-box:nth-child(3) {
    border-color: rgba(245, 158, 11, 0.35);
}

.highlight-icon {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.highlight-text {
    font-size: 0.74rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.3;
}

/* ==========================================================================
   Botones Globales & Controles
   ========================================================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: var(--logo-btn-gradient);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.45);
    filter: brightness(1.08);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-medium);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

/* ==========================================================================
   Footer Institucional
   ========================================================================== */
.app-footer {
    margin-top: auto;
    padding-top: 24px;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
}

.footer-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-links {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 18px;
}

.footer-link {
    color: var(--logo-cyan);
    font-size: 0.78rem;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ==========================================================================
   Ajustes Responsivos Generales para Pantallas Móviles Compactas
   ========================================================================== */
@media (max-width: 480px), (max-height: 660px) {
    .app-container {
        padding: 10px 12px 20px 12px;
    }

    .brand-header {
        padding: 8px 12px;
        margin-bottom: 12px;
    }

    .brand-logo-img {
        width: 36px;
        height: 36px;
    }

    .brand-title {
        font-size: 1rem;
    }

    .brand-subtitle {
        font-size: 0.68rem;
    }

    .expo-pill {
        padding: 3px 8px;
        font-size: 0.68rem;
    }

    .intro-card {
        padding: 22px 16px;
    }

    .intro-logo-glow {
        width: 80px;
        height: 80px;
        margin-bottom: 14px;
    }

    .intro-logo-img {
        width: 70px;
        height: 70px;
    }

    .intro-title {
        font-size: 1.45rem;
        margin-bottom: 8px;
    }

    .intro-desc {
        font-size: 0.88rem;
        line-height: 1.5;
        margin-bottom: 18px;
    }

    .btn-primary {
        padding: 12px 18px;
        font-size: 0.95rem;
    }
}

