/* --- ARCHIVO: tellevohosting/assets/css/style.css --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* --- PALETA PREMIUM (Royal Indigo & Clean Slate) --- */
    --md-sys-color-primary: #2563EB; /* Royal Blue más vibrante y moderno */
    --md-sys-color-on-primary: #FFFFFF;
    --md-sys-color-primary-container: #EFF6FF; /* Fondo muy suave azul */
    --md-sys-color-on-primary-container: #1E3A8A; /* Texto azul oscuro */
    
    --md-sys-color-secondary: #64748B; /* Slate Grey elegante */
    --md-sys-color-on-secondary: #FFFFFF;
    --md-sys-color-secondary-container: #F1F5F9;
    --md-sys-color-on-secondary-container: #0F172A; /* Casi negro */
    
    --md-sys-color-tertiary: #0F172A; /* Dark Midnight para acentos fuertes */
    --md-sys-color-on-tertiary: #FFFFFF;

    /* Estados Semánticos */
    --md-sys-color-error: #EF4444;
    --md-sys-color-error-bg: #FEF2F2;
    --md-sys-color-success: #10B981;
    --md-sys-color-success-bg: #ECFDF5;
    --md-sys-color-warning: #F59E0B;
    --md-sys-color-warning-bg: #FFFBEB;

    /* Superficies */
    --md-sys-color-background: #F8FAFC; /* Un gris muy claro, no blanco puro, reduce fatiga visual */
    --md-sys-color-surface: #FFFFFF;
    --md-sys-color-surface-variant: #F1F5F9;
    --md-sys-color-on-surface: #0F172A;
    --md-sys-color-on-surface-variant: #64748B;
    --md-sys-color-outline: #E2E8F0;

    /* --- SOMBRAS PREMIUM (Soft & Colored) --- */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-primary: 0 10px 30px -10px rgba(37, 99, 235, 0.5); /* Glow azul */
    
    /* --- RADIUS --- */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* --- FUENTES --- */
    --font-family-base: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    background-color: var(--md-sys-color-background);
    color: var(--md-sys-color-on-surface);
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 110px; /* Espacio para navbar flotante */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- TIPOGRAFÍA (Escala fluida) --- */
h1, h2, h3, h4, h5, h6 {
    color: var(--md-sys-color-on-surface);
    font-weight: 800; /* Extra Bold para sensación premium */
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
p { margin-bottom: 1rem; color: var(--md-sys-color-on-surface-variant); font-size: 1rem; }
small { font-size: 0.875rem; color: var(--md-sys-color-on-surface-variant); }

/* --- UTILIDADES DE LAYOUT --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.main-wrapper {
    width: 100%;
    max-width: 600px; /* Ancho optimizado para UX móvil en desktop */
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 10;
}

/* --- COMPONENTES MATERIAL PREMIUM --- */

/* 1. APP BAR (Glassmorphism) */
.top-app-bar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--md-sys-color-on-surface);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.5);
    transition: all 0.3s ease;
}

.top-app-bar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

/* 2. CARDS (Clean & Elevated) */
.md-card {
    background-color: var(--md-sys-color-surface);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    border: 1px solid var(--md-sys-color-outline); /* Borde sutil */
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.md-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(37, 99, 235, 0.2);
}

.md-card.elevated {
    border: none;
    box-shadow: var(--shadow-lg);
}

.md-card.filled {
    background-color: var(--md-sys-color-surface-variant);
    border: none;
    box-shadow: none;
}

/* 3. BOTONES (Pill Shape & Gradients) */
.md-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-family: var(--font-family-base);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    letter-spacing: 0.01em;
    min-height: 56px; /* Touch target optimizado */
    position: relative;
    overflow: hidden;
}

.md-btn.filled {
    background: linear-gradient(135deg, var(--md-sys-color-primary) 0%, #1D4ED8 100%);
    color: var(--md-sys-color-on-primary);
    box-shadow: var(--shadow-primary);
}

.md-btn.filled:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -10px rgba(37, 99, 235, 0.6);
}

.md-btn.filled:active {
    transform: scale(0.97);
}

.md-btn.tonal {
    background-color: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-primary); /* Color primario para texto */
}

.md-btn.tonal:hover {
    background-color: #DBEAFE;
}

.md-btn.outlined {
    background-color: transparent;
    border: 2px solid var(--md-sys-color-outline);
    color: var(--md-sys-color-on-surface);
}

.md-btn.outlined:hover {
    border-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-primary);
    background-color: #F8FAFC;
}

.md-btn.text {
    background: transparent;
    color: var(--md-sys-color-primary);
    padding: 0.5rem 1rem;
    min-height: auto;
    box-shadow: none;
}

.md-btn.full-width {
    width: 100%;
}

/* 4. INPUTS (Clean Modern) */
.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.md-input {
    width: 100%;
    padding: 1.1rem 1.1rem 1.1rem 3.2rem;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    background-color: #F1F5F9; /* Surface variant */
    color: var(--md-sys-color-on-surface);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.md-input:focus {
    background-color: #FFFFFF;
    border-color: var(--md-sys-color-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}

.input-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--md-sys-color-secondary);
    font-size: 1.2rem;
    pointer-events: none;
    transition: color 0.2s;
}

.md-input:focus + .input-icon {
    color: var(--md-sys-color-primary);
}

.input-label {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--md-sys-color-on-surface);
    font-weight: 700;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

/* 5. NAVIGATION BAR (Floating & Glass) */
.md-bottom-nav {
    position: fixed;
    bottom: 20px; /* Flotante */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-full);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.75rem 1rem;
    z-index: 9000;
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.1);
}

.nav-dest {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--md-sys-color-secondary);
    flex: 1;
    position: relative;
    transition: color 0.3s;
}

.nav-icon-container {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 1.4rem;
}

.nav-dest.active .nav-icon-container {
    background-color: var(--md-sys-color-primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 15px -3px rgba(37, 99, 235, 0.4);
}

.nav-label {
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: 4px;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s;
    position: absolute;
    bottom: -18px;
}

.nav-dest.active .nav-label {
    opacity: 1;
    transform: translateY(0);
    color: var(--md-sys-color-primary);
}

/* Badge Nav */
.nav-badge {
    position: absolute;
    top: 2px;
    right: 25%;
    background-color: var(--md-sys-color-error);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    height: 18px;
    min-width: 18px;
    padding: 0 5px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 6. MODALS (Sheet Elegante) */
.md-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6); /* Color pizarra oscuro */
    z-index: 5000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(8px);
}

.md-modal-overlay.active {
    display: flex;
    opacity: 1;
    align-items: flex-end; /* Mobile bottom */
}

@media (min-width: 768px) {
    .md-modal-overlay.active {
        align-items: center;
        justify-content: center;
    }
}

.md-sheet {
    background-color: var(--md-sys-color-surface);
    width: 100%;
    max-width: 550px;
    border-radius: 32px 32px 0 0;
    padding: 2.5rem 2rem;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1); /* Curva suave */
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

/* Manija de arrastre visual */
.md-sheet::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background-color: var(--md-sys-color-outline);
    border-radius: 4px;
}

@media (min-width: 768px) {
    .md-sheet {
        border-radius: 32px;
        transform: translateY(40px) scale(0.95);
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    }
}

.md-modal-overlay.active .md-sheet {
    transform: translateY(0) scale(1);
}

/* 7. ELEMENTOS DE LISTA (Avatar & Detalles) */
.md-list-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem;
    background-color: var(--md-sys-color-surface);
    color: var(--md-sys-color-on-surface);
    text-decoration: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
    border: 1px solid transparent;
}

.md-list-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--md-sys-color-outline);
}

.md-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--md-sys-color-surface-variant);
    border: 3px solid white;
    box-shadow: var(--shadow-sm);
}

.md-list-content {
    flex: 1;
    min-width: 0;
}

.md-list-title {
    font-weight: 800;
    font-size: 1rem;
    color: var(--md-sys-color-on-surface);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.md-list-subtitle {
    font-size: 0.85rem;
    color: var(--md-sys-color-on-surface-variant);
    font-weight: 500;
}

/* 8. BADGES DE ESTADO */
.status-badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-success { background: var(--md-sys-color-success-bg); color: var(--md-sys-color-success); border: 1px solid #BBF7D0; }
.status-warning { background: var(--md-sys-color-warning-bg); color: #B45309; border: 1px solid #FDE68A; }
.status-error { background: var(--md-sys-color-error-bg); color: var(--md-sys-color-error); border: 1px solid #FECACA; }
.status-info { background: #EFF6FF; color: var(--md-sys-color-primary); border: 1px solid #BFDBFE; }

/* 9. UTILIDADES DE TEXTO GRANDE (Accesibilidad) */
@media (min-resolution: 2dppx) {
    body { -webkit-font-smoothing: antialiased; }
}

/* Animaciones de entrada */
.fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}