/* ============================================

   StreamLayers - Design System

   Minimalista | Elegante | Moderno

   ============================================ */



/* --- Variables CSS --- */

:root {

    --color-bg: #0a0a0f;

    --color-bg-alt: #111118;

    --color-bg-card: #16161e;

    --color-bg-hover: #1c1c26;

    --color-border: #2a2a3a;

    --color-border-light: rgba(99, 102, 241, 0.2);



    --color-primary: #6366f1;

    --color-primary-hover: #5558e6;

    --color-primary-glow: rgba(99, 102, 241, 0.15);

    --color-primary-subtle: rgba(99, 102, 241, 0.08);



    --color-accent-pink: #ec4899;

    --color-accent-cyan: #06b6d4;

    --color-accent-green: #10b981;

    --color-accent-amber: #f59e0b;



    --color-text: #f1f1f7;

    --color-text-secondary: #8b8ba3;

    --color-text-muted: #5c5c75;



    --color-error: #ef4444;

    --color-error-bg: rgba(239, 68, 68, 0.08);

    --color-success: #10b981;

    --color-success-bg: rgba(16, 185, 129, 0.08);



    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;



    --radius-sm: 6px;

    --radius-md: 10px;

    --radius-lg: 16px;

    --radius-xl: 24px;

    --radius-full: 9999px;



    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);

    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);

    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);

    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);



    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);

    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);

    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

}



/* --- Reset & Base --- */

*,

*::before,

*::after {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}



html {

    scroll-behavior: smooth;

    font-size: 16px;

}



body {

    font-family: var(--font-sans);

    background: var(--color-bg);

    color: var(--color-text);

    line-height: 1.6;

    min-height: 100vh;

    -webkit-font-smoothing: antialiased;

    -moz-osx-font-smoothing: grayscale;

}



a {

    color: var(--color-primary);

    text-decoration: none;

    transition: color var(--transition-fast);

}



a:hover {

    color: var(--color-primary-hover);

}



img {

    max-width: 100%;

    height: auto;

}



/* --- Typography --- */

h1,

h2,

h3,

h4,

h5,

h6 {

    font-weight: 600;

    line-height: 1.3;

    letter-spacing: -0.02em;

}



h1 {

    font-size: 2.5rem;

}



h2 {

    font-size: 1.875rem;

}



h3 {

    font-size: 1.5rem;

}



h4 {

    font-size: 1.25rem;

}



.text-gradient {

    background: linear-gradient(135deg, var(--color-primary), var(--color-accent-pink));

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    background-clip: text;

}



.text-muted {

    color: var(--color-text-secondary);

}



/* --- Buttons --- */

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 10px 24px;

    font-family: var(--font-sans);

    font-size: 0.9rem;

    font-weight: 500;

    border: none;

    border-radius: var(--radius-md);

    cursor: pointer;

    transition: all var(--transition-base);

    text-decoration: none;

    position: relative;

    overflow: hidden;

}



.btn:active {

    transform: scale(0.97);

}



.btn-primary {

    background: var(--color-primary);

    color: #fff;

    box-shadow: 0 2px 10px var(--color-primary-glow);

}



.btn-primary:hover {

    background: var(--color-primary-hover);

    box-shadow: 0 4px 20px var(--color-primary-glow);

    transform: translateY(-1px);

    color: #fff;

}



.btn-secondary {

    background: var(--color-bg-card);

    color: var(--color-text);

    border: 1px solid var(--color-border);

}



.btn-secondary:hover {

    background: var(--color-bg-hover);

    border-color: var(--color-primary);

    color: var(--color-text);

}



.btn-ghost {

    background: transparent;

    color: var(--color-text-secondary);

}



.btn-ghost:hover {

    background: var(--color-bg-card);

    color: var(--color-text);

}



.btn-danger {

    background: var(--color-error-bg);

    color: var(--color-error);

    border: 1px solid rgba(239, 68, 68, 0.2);

}



.btn-danger:hover {

    background: var(--color-error);

    color: #fff;

}



.btn-sm {

    padding: 6px 14px;

    font-size: 0.8rem;

}



.btn-lg {

    padding: 14px 32px;

    font-size: 1rem;

}



.btn-icon {

    width: 36px;

    height: 36px;

    padding: 0;

    border-radius: var(--radius-sm);

}



/* --- Forms --- */

.form-group {

    margin-bottom: 20px;

}



.form-label {

    display: block;

    font-size: 0.85rem;

    font-weight: 500;

    color: var(--color-text-secondary);

    margin-bottom: 6px;

}



.form-input {

    width: 100%;

    padding: 12px 16px;

    background: var(--color-bg);

    border: 1px solid var(--color-border);

    border-radius: var(--radius-md);

    color: var(--color-text);

    font-family: var(--font-sans);

    font-size: 0.9rem;

    transition: all var(--transition-fast);

    outline: none;

}



.form-input:focus {

    border-color: var(--color-primary);

    box-shadow: 0 0 0 3px var(--color-primary-glow);

}



.form-input::placeholder {

    color: var(--color-text-muted);

}



select.form-input {

    cursor: pointer;

    appearance: none;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238b8ba3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");

    background-repeat: no-repeat;

    background-position: right 12px center;

    background-size: 18px;

    padding-right: 40px;

}



textarea.form-input {

    resize: vertical;

    min-height: 80px;

}



.form-hint {

    font-size: 0.78rem;

    color: var(--color-text-muted);

    margin-top: 4px;

}



/* --- Cards --- */

.card {

    background: var(--color-bg-card);

    border: 1px solid var(--color-border);

    border-radius: var(--radius-lg);

    padding: 24px;

    transition: all var(--transition-base);

}



.card:hover {

    border-color: var(--color-border-light);

    box-shadow: var(--shadow-glow);

}



.card-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 16px;

}



.card-title {

    font-size: 1.1rem;

    font-weight: 600;

}



/* --- Badges --- */

.badge {

    display: inline-flex;

    align-items: center;

    padding: 3px 10px;

    font-size: 0.75rem;

    font-weight: 500;

    border-radius: var(--radius-full);

    text-transform: uppercase;

    letter-spacing: 0.5px;

}



.badge-primary {

    background: var(--color-primary-subtle);

    color: var(--color-primary);

    border: 1px solid rgba(99, 102, 241, 0.2);

}



.badge-success {

    background: var(--color-success-bg);

    color: var(--color-success);

    border: 1px solid rgba(16, 185, 129, 0.2);

}



.badge-amber {

    background: rgba(245, 158, 11, 0.08);

    color: var(--color-accent-amber);

    border: 1px solid rgba(245, 158, 11, 0.2);

}



/* --- Modals --- */

.modal-overlay {

    position: fixed;

    inset: 0;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 18px;

    background: rgba(0, 0, 0, 0.65);

    backdrop-filter: blur(2px);

    z-index: 10000;

}



.modal-overlay.open,

.modal-overlay.active {

    display: flex;

}



.modal-box {

    width: 100%;

    max-width: 680px;

    max-height: calc(100vh - 36px);

    overflow: auto;

    background: var(--color-bg-card);

    border: 1px solid var(--color-border);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-lg);

    padding: 18px;

}



@media (max-width: 480px) {

    .modal-box {

        padding: 14px;

    }

}



/* --- Alerts --- */

.alert {

    padding: 14px 18px;

    border-radius: var(--radius-md);

    font-size: 0.9rem;

    margin-bottom: 20px;

    display: flex;

    align-items: center;

    gap: 10px;

}



.alert-error {

    background: var(--color-error-bg);

    color: var(--color-error);

    border: 1px solid rgba(239, 68, 68, 0.15);

}



.alert-success {

    background: var(--color-success-bg);

    color: var(--color-success);

    border: 1px solid rgba(16, 185, 129, 0.15);

}



/* --- Animations --- */

@keyframes fadeIn {

    from {

        opacity: 0;

        transform: translateY(10px);

    }



    to {

        opacity: 1;

        transform: translateY(0);

    }

}



@keyframes fadeInUp {

    from {

        opacity: 0;

        transform: translateY(20px);

    }



    to {

        opacity: 1;

        transform: translateY(0);

    }

}



@keyframes fadeInScale {

    from {

        opacity: 0;

        transform: scale(0.95);

    }



    to {

        opacity: 1;

        transform: scale(1);

    }

}



@keyframes shimmer {

    0% {

        background-position: -200% 0;

    }



    100% {

        background-position: 200% 0;

    }

}



@keyframes pulse {



    0%,

    100% {

        opacity: 1;

    }



    50% {

        opacity: 0.5;

    }

}



.animate-fade-in {

    animation: fadeIn 0.5s ease-out;

}



.animate-fade-in-up {

    animation: fadeInUp 0.6s ease-out;

}



.animate-fade-in-scale {

    animation: fadeInScale 0.4s ease-out;

}



/* --- Layout --- */

.container {

    max-width: 1200px;

    margin: 0 auto;

    padding: 0 24px;

}



/* --- Navbar --- */

.navbar {

    position: fixed;

    top: 0;

    left: 0;

    right: 0;

    z-index: 100;

    background: rgba(10, 10, 15, 0.8);

    backdrop-filter: blur(20px);

    -webkit-backdrop-filter: blur(20px);

    border-bottom: 1px solid rgba(42, 42, 58, 0.5);

}



.navbar-inner {

    display: flex;

    align-items: center;

    justify-content: space-between;

    height: 64px;

    max-width: 1200px;

    margin: 0 auto;

    padding: 0 24px;

}



.navbar-brand {

    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 1.25rem;

    font-weight: 700;

    color: var(--color-text);

    text-decoration: none;

}



.navbar-brand:hover {

    color: var(--color-text);

}



.navbar-brand .logo-icon {

    width: 32px;

    height: 32px;

    background: linear-gradient(135deg, var(--color-primary), var(--color-accent-pink));

    border-radius: var(--radius-sm);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 0.9rem;

    font-weight: 700;

    color: #fff;

}



.logo-img {

    width: 32px;

    height: 32px;

    object-fit: contain;

    border-radius: var(--radius-sm);

}



.navbar-links {

    display: flex;

    align-items: center;

    gap: 8px;

}



.navbar-user {

    display: flex;

    align-items: center;

    gap: 12px;

}



/* Desktop: mostrar links en el navbar */

.navbar-user-desktop {

    display: flex;

    align-items: center;

    gap: 8px;

}



/* Zona derecha del navbar: badge + hamburguesa + avatar */

.navbar-right {

    display: flex;

    align-items: center;

    gap: 8px;

    margin-left: 8px;

}



.nav-user-menu-desktop {

    display: inline-flex;

    align-items: center;

    gap: 6px;

}



.nav-plan-badge {

    font-size: 0.7rem;

    padding: 2px 8px;

    border-radius: var(--radius-full);

    background: var(--color-primary-subtle);

    color: var(--color-primary);

    border: 1px solid rgba(99, 102, 241, 0.15);

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.05em;

}



/* Avatar wrapper para posicionar el dropdown */

.navbar-avatar-wrapper {

    position: relative;

}



.navbar-avatar {

    width: 32px;

    height: 32px;

    border-radius: var(--radius-full);

    background: var(--color-primary);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 0.85rem;

    font-weight: 600;

    color: #fff;

    cursor: pointer;

}



/* Dropdown tipo torta */

.navbar-dropdown {

    position: absolute;

    top: calc(100% + 8px);

    right: 0;

    width: 240px;

    background: var(--color-bg-card);

    border: 1px solid var(--color-border);

    border-radius: var(--radius-lg);

    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

    opacity: 0;

    visibility: hidden;

    transform: translateY(-8px);

    transition: all var(--transition-base);

    z-index: 200;

    overflow: hidden;

}



.navbar-dropdown.open {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);

}



.dropdown-user-info {

    padding: 16px 16px 12px;

    border-bottom: 1px solid var(--color-border);

}



.dropdown-user-info strong {

    display: block;

    font-size: 0.9rem;

    color: var(--color-text);

}



.dropdown-user-info small {

    display: block;

    font-size: 0.78rem;

    color: var(--color-text-muted);

    margin-top: 2px;

}



.dropdown-plan {

    display: inline-block;

    margin-top: 6px;

    font-size: 0.65rem;

    padding: 2px 8px;

    border-radius: var(--radius-full);

    background: var(--color-primary-subtle);

    color: var(--color-primary);

    border: 1px solid rgba(99, 102, 241, 0.15);

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.05em;

}



.dropdown-link {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 10px 16px;

    font-size: 0.85rem;

    color: var(--color-text-secondary);

    text-decoration: none;

    transition: all var(--transition-fast);

}



.dropdown-link:hover {

    background: var(--color-bg-hover);

    color: var(--color-text);

}



.dropdown-link-danger {

    color: var(--color-error);

}



.dropdown-link-danger:hover {

    background: rgba(239, 68, 68, 0.08);

    color: var(--color-error);

}



.dropdown-divider {

    height: 1px;

    background: var(--color-border);

    margin: 4px 0;

}



.dropdown-lang {

    padding: 8px 16px 12px;

}



.dropdown-lang-select {

    width: 100%;

    padding: 8px 12px;

    background: var(--color-bg);

    border: 1px solid var(--color-border);

    border-radius: var(--radius-md);

    color: var(--color-text);

    font-family: var(--font-sans);

    font-size: 0.8rem;

    cursor: pointer;

    outline: none;

}



/* Responsive navbar */

/* Guest (no logueado): en desktop se muestran los links, en móvil se ocultan y sale hamburguesa */

.navbar-guest-links {

    display: flex;

    align-items: center;

    gap: 8px;

}



.navbar-guest-mobile {

    display: none;

    position: relative;

}



@media (max-width: 900px) {

    .navbar-user-desktop {

        display: none;

    }



    .nav-plan-badge-desktop {

        display: none;

    }



    .nav-user-menu-desktop {

        display: none;

    }



    .sidebar-toggle-btn {

        display: inline-flex !important;

    }



    .navbar .language-selector {

        display: none;

    }



    .navbar-guest-links {

        display: none;

    }



    .navbar-guest-mobile {

        display: flex;

        align-items: center;

    }

}



@media (min-width: 901px) {

    .sidebar-toggle-btn {

        display: none !important;

    }



    .navbar-guest-mobile {

        display: none !important;

    }

}





/* --- Hero Section --- */

.hero {

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 120px 24px 80px;

    position: relative;

    overflow: hidden;

}



.hero-bg {

    position: absolute;

    inset: 0;

    pointer-events: none;

}



.hero-video-wrapper {

    position: absolute;

    inset: 0;

    overflow: hidden;

    pointer-events: none;

}



.hero-bg-video {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    object-fit: cover;

    pointer-events: none;

}



/* Relación de aspecto forzada para cubrir todo el hero */

.hero-video-wrapper iframe {

    position: absolute;

    top: 50%;

    left: 50%;

    width: 177.78vh;

    /* 16/9 * 100 */

    min-width: 100%;

    height: 56.25vw;

    /* 9/16 * 100 */

    min-height: 100%;

    transform: translate(-50%, -50%);

}



.hero-bg::after {

    content: '';

    position: absolute;

    inset: 0;

    background:

        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99, 102, 241, 0.15), transparent),

        radial-gradient(ellipse 60% 50% at 80% 100%, rgba(236, 72, 153, 0.1), transparent),

        radial-gradient(ellipse 50% 40% at 20% 70%, rgba(6, 182, 212, 0.08), transparent);

    pointer-events: none;

}



.hero-bg-overlay {

    position: absolute;

    inset: 0;

    background: rgba(10, 10, 15, 0.7);

    pointer-events: none;

}



.hero-content {

    position: relative;

    z-index: 1;

    max-width: 720px;

}



.hero-badge {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 6px 16px;

    background: var(--color-primary-subtle);

    border: 1px solid rgba(99, 102, 241, 0.2);

    border-radius: var(--radius-full);

    font-size: 0.85rem;

    color: var(--color-primary);

    margin-bottom: 24px;

}



.hero h1 {

    font-size: 3.5rem;

    font-weight: 700;

    line-height: 1.15;

    margin-bottom: 20px;

    letter-spacing: -0.03em;

}



.hero p {

    font-size: 1.15rem;

    color: var(--color-text-secondary);

    max-width: 560px;

    margin: 0 auto 36px;

    line-height: 1.7;

}



.hero-actions {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    flex-wrap: wrap;

}



.hero-features {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;

    max-width: 900px;

    margin: 60px auto 0;

}



.hero-feature {

    padding: 20px;

    background: var(--color-bg-card);

    border: 1px solid var(--color-border);

    border-radius: var(--radius-lg);

    text-align: left;

    transition: all var(--transition-base);

}



.hero-feature:hover {

    border-color: var(--color-border-light);

    transform: translateY(-2px);

}



.hero-feature-icon {

    width: 40px;

    height: 40px;

    border-radius: var(--radius-md);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 1.2rem;

    margin-bottom: 12px;

}



.hero-feature h3 {

    font-size: 0.95rem;

    margin-bottom: 6px;

}



.hero-feature p {

    font-size: 0.85rem;

    margin: 0;

    max-width: 100%;

}



/* --- Dashboard Layout --- */

.dashboard {

    display: flex;

    min-height: 100vh;

    padding-top: 64px;

    position: relative;

}



.dashboard-sidebar {

    width: 260px;

    background: var(--color-bg-alt);

    border-right: 1px solid var(--color-border);

    padding: 24px 16px;

    position: fixed;

    top: 64px;

    left: 0;

    bottom: 0;

    overflow-y: auto;

    z-index: 50;

    transition: transform var(--transition-base);

}



/* Sidebar overlay para móvil */

.sidebar-overlay {

    display: none;

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.5);

    backdrop-filter: blur(2px);

    z-index: 49;

    opacity: 0;

    transition: opacity var(--transition-base);

}



.sidebar-overlay.open {

    opacity: 1;

}



/* Botón hamburguesa */

.sidebar-toggle-btn {

    display: none !important;

}



.hamburger-icon {

    font-size: 1.3rem;

    line-height: 1;

}



.dashboard-main {

    flex: 1;

    margin-left: 260px;

    padding: 32px;

    min-width: 0;

    overflow-y: auto;

}



.sidebar-section {

    margin-bottom: 24px;

}



.sidebar-label {

    font-size: 0.7rem;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 1px;

    color: var(--color-text-muted);

    margin-bottom: 8px;

    padding: 0 12px;

}



.sidebar-link {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 10px 12px;

    color: var(--color-text-secondary);

    font-size: 0.9rem;

    border-radius: var(--radius-md);

    transition: all var(--transition-fast);

    text-decoration: none;

}



.sidebar-link:hover {

    background: var(--color-bg-card);

    color: var(--color-text);

}



.sidebar-link.active {

    background: var(--color-primary-subtle);

    color: var(--color-primary);

    border: 1px solid rgba(99, 102, 241, 0.15);

}



/* --- Overlay Grid --- */

.overlay-grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));

    gap: 20px;

}



.overlay-card {

    background: var(--color-bg-card);

    border: 1px solid var(--color-border);

    border-radius: var(--radius-lg);

    padding: 20px;

    transition: all var(--transition-base);

    position: relative;

    overflow: hidden;

}



.overlay-card::before {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    height: 3px;

    background: linear-gradient(90deg, var(--color-primary), var(--color-accent-pink));

    opacity: 0;

    transition: opacity var(--transition-base);

}



.overlay-card:hover::before {

    opacity: 1;

}



.overlay-card:hover {

    border-color: var(--color-border-light);

    transform: translateY(-2px);

    box-shadow: var(--shadow-glow);

}



.overlay-card-top {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    margin-bottom: 12px;

}



.overlay-card-icon {

    width: 44px;

    height: 44px;

    border-radius: var(--radius-md);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 1.3rem;

}



.overlay-card-icon.lower_third {

    background: rgba(99, 102, 241, 0.1);

    color: var(--color-primary);

}



.overlay-card-icon.scorebug {

    background: rgba(236, 72, 153, 0.1);

    color: var(--color-accent-pink);

}



.overlay-card-icon.countdown {

    background: rgba(6, 182, 212, 0.1);

    color: var(--color-accent-cyan);

}



.overlay-card-icon.newsticker {

    background: rgba(16, 185, 129, 0.1);

    color: var(--color-accent-green);

}



.overlay-card-icon.scorebug_moderno {

    background: rgba(6, 182, 212, 0.1);

    color: var(--color-accent-cyan);

}



.overlay-card-icon.fullscreen_countdown {

    background: rgba(99, 102, 241, 0.1);

    color: var(--color-primary);

}



.overlay-card-icon.webcam_border {

    background: rgba(245, 158, 11, 0.1);

    color: var(--color-accent-amber);

}



.overlay-card-name {

    font-size: 1.05rem;

    font-weight: 600;

    margin-bottom: 4px;

}



.overlay-card-type {

    font-size: 0.8rem;

    color: var(--color-text-muted);

    text-transform: capitalize;

}



.overlay-card-actions {

    display: flex;

    gap: 8px;

    margin-top: 16px;

    padding-top: 16px;

    border-top: 1px solid var(--color-border);

}



/* --- Overlay Card with Background Image --- */

.overlay-card {

    position: relative;

}



.overlay-card-bg {

    position: absolute;

    inset: 0;

    border-radius: var(--radius-lg);

    overflow: hidden;

    z-index: 0;

}



.overlay-card-bg img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    opacity: 0.55;

    transition: opacity var(--transition-slow);

}



.overlay-card:hover .overlay-card-bg img {

    opacity: 0.85;

}



.overlay-card-bg::after {

    content: '';

    position: absolute;

    inset: 0;

    background: linear-gradient(180deg,

            rgba(10, 10, 15, 0.65) 0%,

            rgba(10, 10, 15, 0.25) 40%,

            rgba(10, 10, 15, 0.4) 70%,

            rgba(10, 10, 15, 0.7) 100%);

    transition: opacity var(--transition-slow);

}



.overlay-card:hover .overlay-card-bg::after {

    opacity: 0.6;

}



.overlay-card>*:not(.overlay-card-bg) {

    position: relative;

    z-index: 1;

}



/* ---- Preview con overlay conceptual ---- */

.overlay-card-preview {

    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    background: #000;

    border-radius: var(--radius-md);

    overflow: hidden;

    margin-bottom: 16px;

    border: 1px solid var(--color-border);

}



.overlay-card-preview-bg {

    position: absolute;

    inset: 0;

}



.overlay-card-preview-bg img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    opacity: 0.6;

    transition: opacity var(--transition-slow);

}



.overlay-card:hover .overlay-card-preview-bg img {

    opacity: 0.85;

}



.overlay-card-preview-bg::after {

    content: '';

    position: absolute;

    inset: 0;

    background: linear-gradient(180deg,

            rgba(0, 0, 0, 0.25) 0%,

            rgba(0, 0, 0, 0.05) 40%,

            rgba(0, 0, 0, 0.2) 100%);

    transition: opacity var(--transition-slow);

}



.overlay-card:hover .overlay-card-preview-bg::after {

    opacity: 0.5;

}



.overlay-card-preview-content {

    position: relative;

    z-index: 1;

    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 16px;

}



/* ---- Overlay conceptual: Lower Third ---- */

.overlay-concept-lt {

    position: absolute;

    bottom: 4px;

    left: 4px;

    right: 74%;

    display: flex;

    align-items: stretch;

    gap: 0;

}



.overlay-concept-lt-bar {

    width: 2px;

    background: rgba(99, 102, 241, 0.9);

    border-radius: 1px 0 0 1px;

}



.overlay-concept-lt-body {

    flex: 1;

    background: rgba(15, 15, 19, 0.85);

    backdrop-filter: blur(4px);

    padding: 2px 5px;

    border-radius: 0 3px 3px 0;

    border: 1px solid rgba(255, 255, 255, 0.06);

    border-left: none;

}



.overlay-concept-lt-title {

    height: 3px;

    width: 65%;

    background: rgba(255, 255, 255, 0.85);

    border-radius: 1px;

    margin-bottom: 1px;

}



.overlay-concept-lt-sub {

    height: 2px;

    width: 40%;

    background: rgba(139, 139, 163, 0.7);

    border-radius: 1px;

}



.overlay-concept-lt-accent {

    width: 12px;

    height: 1px;

    background: rgba(99, 102, 241, 0.9);

    border-radius: 1px;

    margin-top: 2px;

}



/* ---- Overlay conceptual: Scorebug ---- */

.overlay-concept-sb {

    position: absolute;

    top: 16px;

    left: 50%;

    transform: translateX(-50%);

    display: flex;

    align-items: center;

    background: rgba(15, 15, 19, 0.88);

    backdrop-filter: blur(4px);

    border-radius: 10px;

    padding: 8px 0;

    border: 1px solid rgba(255, 255, 255, 0.06);

    overflow: hidden;

}



.overlay-concept-sb-team {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 0 16px;

}



.overlay-concept-sb-logo {

    width: 24px;

    height: 24px;

    border-radius: 50%;

    background: rgba(99, 102, 241, 0.3);

    border: 2px solid rgba(99, 102, 241, 0.6);

}



.overlay-concept-sb-name {

    height: 8px;

    width: 50px;

    background: rgba(255, 255, 255, 0.7);

    border-radius: 2px;

}



.overlay-concept-sb-score {

    font-size: 24px;

    font-weight: 800;

    color: rgba(255, 255, 255, 0.9);

    line-height: 1;

    min-width: 24px;

    text-align: center;

}



.overlay-concept-sb-divider {

    width: 1px;

    height: 30px;

    background: rgba(255, 255, 255, 0.1);

}



.overlay-concept-sb-info {

    padding: 0 16px;

    text-align: center;

}



.overlay-concept-sb-time {

    height: 8px;

    width: 36px;

    background: rgba(255, 255, 255, 0.7);

    border-radius: 2px;

    margin-bottom: 4px;

}



.overlay-concept-sb-period {

    height: 6px;

    width: 20px;

    background: rgba(255, 255, 255, 0.4);

    border-radius: 2px;

    margin: 0 auto;

}



.overlay-concept-sb-bottom {

    position: absolute;

    bottom: 0;

    left: 0;

    right: 0;

    height: 3px;

    background: linear-gradient(90deg, rgba(99, 102, 241, 0.8), rgba(236, 72, 153, 0.8));

}



/* ---- Overlay conceptual: Countdown ---- */

.overlay-concept-cd {

    position: absolute;

    bottom: 24px;

    left: 50%;

    transform: translateX(-50%);

    text-align: center;

    background: rgba(15, 15, 19, 0.85);

    backdrop-filter: blur(4px);

    padding: 14px 32px;

    border-radius: 12px;

    border: 1px solid rgba(255, 255, 255, 0.06);

    min-width: 180px;

}



.overlay-concept-cd-title {

    height: 7px;

    width: 80px;

    background: rgba(6, 182, 212, 0.7);

    border-radius: 2px;

    margin: 0 auto 10px;

}



.overlay-concept-cd-time {

    font-size: 32px;

    font-weight: 800;

    color: rgba(255, 255, 255, 0.9);

    letter-spacing: 0.04em;

    line-height: 1;

    margin-bottom: 10px;

}



.overlay-concept-cd-bar {

    width: 100%;

    height: 5px;

    background: rgba(6, 182, 212, 0.2);

    border-radius: 3px;

    overflow: hidden;

}



.overlay-concept-cd-bar-fill {

    width: 65%;

    height: 100%;

    background: rgba(6, 182, 212, 0.9);

    border-radius: 3px;

}



/* ---- Overlay conceptual: News Ticker ---- */

.overlay-concept-nt {

    position: absolute;

    bottom: 0;

    left: 0;

    right: 0;

    display: flex;

    align-items: center;

    height: 36px;

    background: rgba(15, 15, 19, 0.88);

    backdrop-filter: blur(4px);

    border-top: 1px solid rgba(255, 255, 255, 0.06);

    overflow: hidden;

}



.overlay-concept-nt-header {

    flex-shrink: 0;

    padding: 0 14px;

    height: 100%;

    display: flex;

    align-items: center;

    background: rgba(16, 185, 129, 0.8);

    font-size: 9px;

    font-weight: 700;

    color: rgba(255, 255, 255, 0.95);

    letter-spacing: 0.12em;

    text-transform: uppercase;

}



.overlay-concept-nt-track {

    flex: 1;

    display: flex;

    align-items: center;

    gap: 20px;

    padding: 0 16px;

    overflow: hidden;

}



.overlay-concept-nt-item {

    display: flex;

    align-items: center;

    gap: 8px;

    flex-shrink: 0;

}



.overlay-concept-nt-badge {

    padding: 2px 8px;

    border-radius: 3px;

    font-size: 7px;

    font-weight: 700;

    text-transform: uppercase;

    background: rgba(239, 68, 68, 0.9);

    color: #fff;

}



.overlay-concept-nt-text {

    height: 7px;

    width: 80px;

    background: rgba(255, 255, 255, 0.6);

    border-radius: 2px;

}



.overlay-concept-nt-dot {

    width: 4px;

    height: 4px;

    border-radius: 50%;

    background: rgba(99, 102, 241, 0.6);

    flex-shrink: 0;

}



/* ---- Overlay conceptual: Ruleta / Sorteo ---- */

.overlay-concept-rf {

    position: absolute;

    bottom: 16px;

    left: 50%;

    transform: translateX(-50%);

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 10px;

}



.overlay-concept-rf-wheel {

    position: relative;

    width: 110px;

    height: 110px;

    border-radius: 50%;

    overflow: hidden;

    box-shadow: 0 0 20px rgba(99, 102, 241, 0.25);

}



.overlay-concept-rf-segment {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    clip-path: polygon(50% 50%, 50% 0%, 100% 0%, 100% 38%);

    transform-origin: center center;

}



.overlay-concept-rf-center {

    position: absolute;

    top: 50%;

    left: 50%;

    width: 20px;

    height: 20px;

    background: rgba(15, 15, 19, 0.9);

    border: 2px solid rgba(255, 255, 255, 0.2);

    border-radius: 50%;

    transform: translate(-50%, -50%);

    z-index: 2;

}



.overlay-concept-rf-pointer {

    position: absolute;

    top: -8px;

    left: 50%;

    transform: translateX(-50%);

    font-size: 12px;

    color: #fff;

    z-index: 3;

    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));

}



.overlay-concept-rf-label {

    font-size: 10px;

    font-weight: 700;

    color: rgba(255, 255, 255, 0.7);

    text-transform: uppercase;

    letter-spacing: 0.12em;

    text-align: center;

}



/* --- Create page type cards with preview --- */

.type-card {

    background: var(--color-bg-card);

    border: 1px solid var(--color-border);

    border-radius: var(--radius-lg);

    overflow: hidden;

    transition: all var(--transition-base);

    cursor: default;

    position: relative;

}



.type-card:hover {

    border-color: var(--color-border-light);

    transform: translateY(-2px);

    box-shadow: var(--shadow-glow);

}



.type-card-preview {

    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    background: #000;

    overflow: hidden;

}



.type-card-preview img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    opacity: 0.6;

    transition: opacity var(--transition-slow);

}



.type-card:hover .type-card-preview img {

    opacity: 0.85;

}



.type-card-preview::after {

    content: '';

    position: absolute;

    inset: 0;

    background: linear-gradient(180deg,

            rgba(0, 0, 0, 0.3) 0%,

            rgba(0, 0, 0, 0.05) 40%,

            rgba(0, 0, 0, 0.3) 100%);

    transition: opacity var(--transition-slow);

}



.type-card:hover .type-card-preview::after {

    opacity: 0.5;

}



.type-card-preview-content {

    position: absolute;

    inset: 0;

    z-index: 1;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 20px;

}



.type-card-preview-content .overlay-card-icon {

    width: 52px;

    height: 52px;

    font-size: 1.5rem;

    background: rgba(0, 0, 0, 0.6);

    backdrop-filter: blur(4px);

    border: 1px solid rgba(255, 255, 255, 0.08);

}



.type-card-preview-content h4 {

    font-size: 1.05rem;

    font-weight: 600;

    color: #fff;

    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);

}



.type-card-body {

    padding: 16px 20px 20px;

}



.type-card-body p {

    font-size: 0.85rem;

    color: var(--color-text-secondary);

    line-height: 1.6;

}



/* --- Page Header --- */

.page-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 32px;

}



.page-header h1 {

    font-size: 1.75rem;

}



.page-header p {

    color: var(--color-text-secondary);

    font-size: 0.95rem;

    margin-top: 4px;

}



/* --- Auth Pages --- */

.auth-page {

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 24px;

    position: relative;

}



.auth-bg {

    position: absolute;

    inset: 0;

    background:

        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(99, 102, 241, 0.06), transparent),

        radial-gradient(ellipse 50% 40% at 80% 100%, rgba(236, 72, 153, 0.04), transparent);

    pointer-events: none;

}



.auth-bg--video {

    background: none;

    overflow: hidden;

}



.auth-bg--video::after {

    content: '';

    position: absolute;

    inset: 0;

    pointer-events: none;

    z-index: 1;

    background:

        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99, 102, 241, 0.12), transparent),

        radial-gradient(ellipse 60% 50% at 80% 100%, rgba(236, 72, 153, 0.08), transparent);

}



.auth-container {

    position: relative;

    z-index: 1;

    width: 100%;

    max-width: 440px;

}



.auth-header {

    text-align: center;

    margin-bottom: 32px;

}



.auth-header .logo-icon {

    width: 48px;

    height: 48px;

    margin: 0 auto 16px;

}



.auth-header h1 {

    font-size: 1.5rem;

    margin-bottom: 8px;

}



.auth-card {

    background: var(--color-bg-card);

    border: 1px solid var(--color-border);

    border-radius: var(--radius-xl);

    padding: 32px;

    animation: fadeInUp 0.5s ease-out;

}



.auth-divider {

    display: flex;

    align-items: center;

    gap: 16px;

    margin: 24px 0;

    color: var(--color-text-muted);

    font-size: 0.85rem;

}



.auth-divider::before,

.auth-divider::after {

    content: '';

    flex: 1;

    height: 1px;

    background: var(--color-border);

}



.auth-footer {

    text-align: center;

    margin-top: 24px;

    font-size: 0.9rem;

    color: var(--color-text-secondary);

}



.btn-google {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    width: 100%;

    padding: 12px 20px;

    border: 1px solid var(--color-border);

    border-radius: var(--radius-md);

    background: var(--color-bg-card);

    color: var(--color-text);

    font-size: 0.95rem;

    font-weight: 600;

    text-decoration: none;

    cursor: pointer;

    transition: all var(--transition-fast);

    margin-bottom: 4px;

}



.btn-google:hover {

    border-color: var(--color-border-light);

    background: var(--color-bg-alt);

    box-shadow: var(--shadow-sm);

}



/* --- Empty State --- */

.empty-state {

    text-align: center;

    padding: 60px 24px;

}



.empty-state-icon {

    width: 72px;

    height: 72px;

    margin: 0 auto 20px;

    background: var(--color-bg-card);

    border: 1px solid var(--color-border);

    border-radius: var(--radius-lg);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 2rem;

}



.empty-state h3 {

    font-size: 1.25rem;

    margin-bottom: 8px;

}



.empty-state p {

    color: var(--color-text-secondary);

    max-width: 400px;

    margin: 0 auto 24px;

}



/* --- Overlay Control Page --- */

.control-layout {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 24px;

}



/* Pantallas reducidas: preview arriba, controles abajo */

@media (max-width: 1400px) {

    .control-layout {

        grid-template-columns: 1fr;

        gap: 20px;

    }



    .control-preview {

        max-height: 55vh;

    }

}



.control-preview iframe {

    border: none;

    display: block;

    transform-origin: top left;

}



.control-preview {

    background: #000;

    border-radius: var(--radius-lg);

    aspect-ratio: 16 / 9;

    position: relative;

    overflow: hidden;

    border: 1px solid var(--color-border);

}



.control-panel {

    background: var(--color-bg-card);

    border: 1px solid var(--color-border);

    border-radius: var(--radius-lg);

    padding: 24px;

    overflow-y: auto;

    max-height: 80vh;

}



.control-panel h2 {

    font-size: 1.1rem;

    margin-bottom: 20px;

}



/* En pantallas < 1080p, el panel de controles debe tener altura máxima ajustable */

@media (max-width: 1400px) {

    .control-panel {

        max-height: 50vh;

    }

}



@media (max-width: 768px) {

    .control-panel {

        max-height: 60vh;

        padding: 16px;

    }

}



.control-group {

    margin-bottom: 16px;

}



.control-label {

    display: block;

    font-size: 0.82rem;

    font-weight: 500;

    color: var(--color-text-secondary);

    margin-bottom: 6px;

}



.control-row {

    display: flex;

    gap: 12px;

    margin-bottom: 16px;

}



.control-row .form-group {

    flex: 1;

    margin-bottom: 0;

}



.control-color {

    width: 40px;

    height: 40px;

    padding: 2px;

    border: 1px solid var(--color-border);

    border-radius: var(--radius-sm);

    background: var(--color-bg);

    cursor: pointer;

}



.control-color::-webkit-color-swatch-wrapper {

    padding: 0;

}



.control-color::-webkit-color-swatch {

    border: none;

    border-radius: 4px;

}



.control-actions {

    display: flex;

    gap: 8px;

    flex-wrap: wrap;

    margin-top: 24px;

    padding-top: 20px;

    border-top: 1px solid var(--color-border);

}



/* --- URL Display --- */

.url-display {

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 10px 14px;

    background: var(--color-bg);

    border: 1px solid var(--color-border);

    border-radius: var(--radius-md);

    font-family: var(--font-mono);

    font-size: 0.82rem;

    color: var(--color-text-secondary);

    margin-bottom: 16px;

    word-break: break-all;

}



.url-display .url-copy {

    flex-shrink: 0;

    cursor: pointer;

    color: var(--color-primary);

    transition: color var(--transition-fast);

}



.url-display .url-copy:hover {

    color: var(--color-primary-hover);

}



/* --- Footer --- */

.footer {

    text-align: center;

    padding: 24px;

    color: var(--color-text-muted);

    font-size: 0.85rem;

    border-top: 1px solid var(--color-border);

}



/* --- Scrollbar --- */

::-webkit-scrollbar {

    width: 6px;

    height: 6px;

}



::-webkit-scrollbar-track {

    background: transparent;

}



::-webkit-scrollbar-thumb {

    background: var(--color-border);

    border-radius: 3px;

}



::-webkit-scrollbar-thumb:hover {

    background: var(--color-text-muted);

}



/* --- Responsive --- */

@media (max-width: 768px) {

    .hero h1 {

        font-size: 2.2rem;

    }



    .hero-features {

        grid-template-columns: 1fr;

    }



    .sidebar-toggle-btn {

        display: inline-flex !important;

    }



    .dashboard-sidebar {

        display: block;

        transform: translateX(-100%);

        z-index: 50;

        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);

    }



    .dashboard-sidebar.open {

        transform: translateX(0);

    }



    .sidebar-overlay {

        display: block;

        pointer-events: none;

    }



    .sidebar-overlay.open {

        display: block;

        pointer-events: all;

    }



    .dashboard-main {

        margin-left: 0;

        padding: 20px 16px;

    }



    .control-layout {

        grid-template-columns: 1fr;

    }



    .overlay-grid {

        grid-template-columns: 1fr;

    }



    .page-header {

        flex-direction: column;

        align-items: flex-start;

        gap: 12px;

    }



    .hero-actions {

        flex-direction: column;

        width: 100%;

    }



    .hero-actions .btn {

        width: 100%;

    }

}



/* --- Skeleton Loading --- */

.skeleton {

    background: linear-gradient(90deg, var(--color-bg-card) 25%, var(--color-bg-hover) 50%, var(--color-bg-card) 75%);

    background-size: 200% 100%;

    animation: shimmer 1.5s infinite;

    border-radius: var(--radius-md);

}



/* --- Toast Notification --- */

.toast {

    position: fixed;

    bottom: 24px;

    right: 24px;

    z-index: 200;

    padding: 14px 20px;

    background: var(--color-bg-card);

    border: 1px solid var(--color-border);

    border-radius: var(--radius-md);

    box-shadow: var(--shadow-lg);

    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 0.9rem;

    transform: translateY(100px);

    opacity: 0;

    transition: all var(--transition-base);

}



.toast.show {

    transform: translateY(0);

    opacity: 1;

}



.toast-success {

    border-color: rgba(16, 185, 129, 0.3);

}



.toast-error {

    border-color: rgba(239, 68, 68, 0.3);

}



/* --- Toggle Switch --- */

.toggle {

    position: relative;

    display: inline-block;

    width: 44px;

    height: 24px;

}



.toggle input {

    opacity: 0;

    width: 0;

    height: 0;

}



.toggle-slider {

    position: absolute;

    cursor: pointer;

    inset: 0;

    background: var(--color-bg-hover);

    border: 1px solid var(--color-border);

    border-radius: var(--radius-full);

    transition: all var(--transition-fast);

}



.toggle-slider::before {

    content: '';

    position: absolute;

    width: 18px;

    height: 18px;

    left: 2px;

    bottom: 2px;

    background: var(--color-text-secondary);

    border-radius: 50%;

    transition: all var(--transition-fast);

}



.toggle input:checked+.toggle-slider {

    background: var(--color-primary);

    border-color: var(--color-primary);

}



.toggle input:checked+.toggle-slider::before {

    transform: translateX(20px);

    background: #fff;

}



/* --- News Ticker Control Styles --- */

.ticker-item-card {

    background: var(--color-bg);

    border: 1px solid var(--color-border);

    border-radius: var(--radius-md);

    padding: 10px 12px;

    transition: all var(--transition-fast);

}



.ticker-item-card:hover {

    border-color: var(--color-border-light);

}



.ticker-item-header {

    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 8px;

}



.ticker-item-drag {

    color: var(--color-text-muted);

    cursor: grab;

    font-size: 1rem;

    letter-spacing: -2px;

    user-select: none;

}



.ticker-item-type {

    flex: 1;

    padding: 4px 8px;

    background: var(--color-bg-card);

    border: 1px solid var(--color-border);

    border-radius: var(--radius-sm);

    color: var(--color-text);

    font-family: var(--font-sans);

    font-size: 0.78rem;

    cursor: pointer;

}



.ticker-item-text {

    font-size: 0.85rem;

    line-height: 1.5;

}



.ticker-item-source {

    font-size: 0.8rem;

    opacity: 0.8;

}



/* Scrollbar para lista de items */

#items-list::-webkit-scrollbar {

    width: 4px;

}



#items-list::-webkit-scrollbar-track {

    background: transparent;

}



#items-list::-webkit-scrollbar-thumb {

    background: var(--color-border);

    border-radius: 2px;

}



#items-list::-webkit-scrollbar-thumb:hover {

    background: var(--color-text-muted);

}



/* ============================================

   TÓMBOLA / RAFFLE - Animaciones

   ============================================ */

.roller-anim {

    animation: raffleRoll 0.1s ease-in-out infinite;

}



@keyframes raffleRoll {



    0%,

    100% {

        transform: translateY(0);

    }



    50% {

        transform: translateY(-3px);

    }

}



.winner-anim {

    animation: raffleWinner 0.6s cubic-bezier(0.16, 1, 0.3, 1);

}



@keyframes raffleWinner {

    0% {

        transform: scale(1.5);

        opacity: 0;

    }



    100% {

        transform: scale(1);

        opacity: 1;

    }

}



.alert-warning {

    color: var(--color-text-secondary);

    font-size: 0.85rem;

}



/* ============================================

   VIDEO DE FONDO - DASHBOARD

   ============================================ */

.dashboard-bg-video {

    position: fixed;

    inset: 0;

    z-index: 0;

    pointer-events: none;

    overflow: hidden;

}



.dashboard-bg-video-wrapper {

    position: absolute;

    inset: 0;

    overflow: hidden;

}



.dashboard-bg-video-wrapper iframe {

    position: absolute;

    top: 50%;

    left: 50%;

    width: 177.78vh;

    min-width: 100%;

    height: 56.25vw;

    min-height: 100%;

    transform: translate(-50%, -50%);

    pointer-events: none;

}



.dashboard-bg-overlay {

    position: absolute;

    inset: 0;

    background:

        linear-gradient(180deg, rgba(10, 10, 15, 0.82) 0%, rgba(10, 10, 15, 0.65) 40%, rgba(10, 10, 15, 0.88) 100%),

        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(99, 102, 241, 0.08), transparent 60%);

    pointer-events: none;

}



/* Asegurar que el dashboard esté sobre el video */

.dashboard {

    position: relative;

    z-index: 1;

}



/* ============================================

   OVERLAYS INFORMATIVOS - PREVIEWS CONCEPTUALES

   ============================================ */



/* ---- Reloj Digital ---- */

.overlay-concept-ck-time {

    font-size: 32px;

    font-weight: 800;

    color: rgba(255, 255, 255, 0.9);

    letter-spacing: 0.04em;

    line-height: 1;

    margin-bottom: 6px;

}



.overlay-concept-ck-date {

    font-size: 11px;

    font-weight: 500;

    color: rgba(255, 255, 255, 0.5);

    letter-spacing: 0.03em;

}



/* ---- Aviso / Mensaje ---- */

.overlay-concept-ntc-badge {

    font-size: 9px;

    font-weight: 700;

    color: #6366f1;

    text-transform: uppercase;

    letter-spacing: 0.08em;

    margin-bottom: 6px;

}



.overlay-concept-ntc-title {

    font-size: 16px;

    font-weight: 700;

    color: rgba(255, 255, 255, 0.9);

    margin-bottom: 4px;

}



.overlay-concept-ntc-msg {

    font-size: 11px;

    font-weight: 400;

    color: rgba(255, 255, 255, 0.6);

}



/* ---- Horario / Agenda ---- */

.overlay-concept-sh {

    position: absolute;

    bottom: 16px;

    left: 50%;

    transform: translateX(-50%);

    text-align: center;

    background: rgba(15, 15, 19, 0.85);

    backdrop-filter: blur(4px);

    padding: 14px 20px;

    border-radius: 12px;

    border: 1px solid rgba(255, 255, 255, 0.06);

    min-width: 160px;

}



.overlay-concept-sh-title {

    font-size: 10px;

    font-weight: 700;

    color: rgba(255, 255, 255, 0.5);

    text-transform: uppercase;

    letter-spacing: 0.12em;

    margin-bottom: 10px;

}



.overlay-concept-sh-item {

    display: flex;

    justify-content: center;

    gap: 12px;

    font-size: 11px;

    color: rgba(255, 255, 255, 0.7);

    padding: 3px 0;

    border-bottom: 1px solid rgba(255, 255, 255, 0.05);

}



.overlay-concept-sh-item:last-child {

    border-bottom: none;

}



.overlay-concept-sh-item span:first-child {

    font-weight: 700;

    color: rgba(255, 255, 255, 0.9);

    min-width: 40px;

    text-align: right;

}



/* ---- Menú del Día ---- */

.overlay-concept-mn {

    position: absolute;

    bottom: 16px;

    left: 50%;

    transform: translateX(-50%);

    text-align: center;

    background: rgba(15, 15, 19, 0.85);

    backdrop-filter: blur(4px);

    padding: 14px 20px;

    border-radius: 12px;

    border: 1px solid rgba(255, 255, 255, 0.06);

    min-width: 160px;

}



.overlay-concept-mn-title {

    font-size: 10px;

    font-weight: 700;

    color: rgba(255, 255, 255, 0.5);

    text-transform: uppercase;

    letter-spacing: 0.12em;

    margin-bottom: 8px;

}



.overlay-concept-mn-time {

    font-size: 10px;

    font-weight: 700;

    color: #10b981;

    text-transform: uppercase;

    letter-spacing: 0.05em;

    margin-top: 6px;

}



.overlay-concept-mn-time:first-of-type {

    margin-top: 0;

}



.overlay-concept-mn-dishes {

    font-size: 10px;

    color: rgba(255, 255, 255, 0.6);

    margin-top: 2px;

}



/* ---- Cumpleaños ---- */

.overlay-concept-bd {

    position: absolute;

    bottom: 16px;

    left: 50%;

    transform: translateX(-50%);

    text-align: center;

    background: rgba(15, 15, 19, 0.85);

    backdrop-filter: blur(4px);

    padding: 14px 20px;

    border-radius: 12px;

    border: 1px solid rgba(255, 255, 255, 0.06);

    min-width: 140px;

}



.overlay-concept-bd-icon {

    font-size: 24px;

    margin-bottom: 6px;

}



.overlay-concept-bd-title {

    font-size: 10px;

    font-weight: 700;

    color: #ec4899;

    text-transform: uppercase;

    letter-spacing: 0.12em;

    margin-bottom: 6px;

}



.overlay-concept-bd-name {

    font-size: 13px;

    font-weight: 700;

    color: rgba(255, 255, 255, 0.9);

}



/* ============================================

   UX POLISH — Capa visual premium

   ============================================ */



body::before {

    content: '';

    position: fixed;

    inset: 0;

    pointer-events: none;

    z-index: 0;

    background:

        radial-gradient(ellipse 55% 45% at 12% 8%, rgba(99, 102, 241, 0.09), transparent 55%),

        radial-gradient(ellipse 45% 40% at 88% 15%, rgba(236, 72, 153, 0.06), transparent 50%),

        radial-gradient(ellipse 50% 35% at 70% 92%, rgba(6, 182, 212, 0.05), transparent 55%);

}



.navbar {

    transition: background var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);

}



.navbar.scrolled {

    background: rgba(10, 10, 15, 0.92);

    border-bottom-color: rgba(99, 102, 241, 0.15);

    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);

}



.navbar-brand .logo-img {

    transition: transform var(--transition-base), filter var(--transition-base);

}



.navbar-brand:hover .logo-img {

    transform: scale(1.06) rotate(-3deg);

    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.45));

}



.btn-primary {

    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);

    border: 1px solid rgba(255, 255, 255, 0.08);

}



.btn-primary::after {

    content: '';

    position: absolute;

    inset: 0;

    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);

    transform: translateX(-120%);

    transition: transform 0.55s ease;

}



.btn-primary:hover::after {

    transform: translateX(120%);

}



.dashboard-sidebar {

    background: rgba(17, 17, 24, 0.85);

    backdrop-filter: blur(16px);

    -webkit-backdrop-filter: blur(16px);

}



.sidebar-link {

    position: relative;

    overflow: hidden;

}



.sidebar-link::before {

    content: '';

    position: absolute;

    left: 0;

    top: 50%;

    transform: translateY(-50%);

    width: 3px;

    height: 0;

    background: linear-gradient(180deg, var(--color-primary), var(--color-accent-pink));

    border-radius: 0 3px 3px 0;

    transition: height var(--transition-base);

}



.sidebar-link:hover::before,

.sidebar-link.active::before {

    height: 60%;

}



.sidebar-link.active {

    background: linear-gradient(90deg, rgba(99, 102, 241, 0.14), rgba(99, 102, 241, 0.04));

    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.12);

}



.page-header {

    padding-bottom: 20px;

    border-bottom: 1px solid rgba(42, 42, 58, 0.6);

    position: relative;

}



.page-header::after {

    content: '';

    position: absolute;

    left: 0;

    bottom: -1px;

    width: 72px;

    height: 2px;

    background: linear-gradient(90deg, var(--color-primary), var(--color-accent-pink));

    border-radius: 2px;

}



.page-header h1 {

    font-weight: 800;

    letter-spacing: -0.03em;

}



.dashboard-stats {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));

    gap: 14px;

    margin-bottom: 24px;

}



.stat-card {

    padding: 16px 18px;

    background: rgba(22, 22, 30, 0.72);

    backdrop-filter: blur(12px);

    border: 1px solid rgba(42, 42, 58, 0.85);

    border-radius: var(--radius-lg);

    transition: all var(--transition-base);

    position: relative;

    overflow: hidden;

}



.stat-card::before {

    content: '';

    position: absolute;

    inset: 0;

    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), transparent 60%);

    opacity: 0;

    transition: opacity var(--transition-base);

}



.stat-card:hover {

    transform: translateY(-2px);

    border-color: rgba(99, 102, 241, 0.25);

    box-shadow: var(--shadow-glow);

}



.stat-card:hover::before {

    opacity: 1;

}



.stat-card-icon {

    width: 36px;

    height: 36px;

    border-radius: var(--radius-md);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 1.1rem;

    margin-bottom: 10px;

}



.stat-card-value {

    font-size: 1.65rem;

    font-weight: 800;

    letter-spacing: -0.03em;

    line-height: 1;

    margin-bottom: 4px;

}



.stat-card-label {

    font-size: 0.78rem;

    color: var(--color-text-muted);

    font-weight: 500;

}



.filter-toolbar {

    display: flex;

    flex-wrap: wrap;

    align-items: flex-end;

    gap: 16px;

    margin-bottom: 20px;

    padding: 16px 18px;

    background: rgba(22, 22, 30, 0.65);

    backdrop-filter: blur(10px);

    border: 1px solid var(--color-border);

    border-radius: var(--radius-lg);

}



.filter-toolbar-group {

    flex: 1;

    min-width: 200px;

}



.filter-toolbar-label {

    font-size: 0.7rem;

    color: var(--color-text-muted);

    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    margin-bottom: 8px;

}



.filter-pills {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

}



.filter-pill {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 7px 14px;

    border-radius: var(--radius-full);

    border: 1px solid var(--color-border);

    background: var(--color-bg);

    color: var(--color-text-secondary);

    font-size: 0.82rem;

    font-weight: 500;

    text-decoration: none;

    transition: all var(--transition-fast);

    white-space: nowrap;

}



.filter-pill:hover {

    border-color: rgba(99, 102, 241, 0.35);

    color: var(--color-text);

    background: var(--color-bg-hover);

}



.filter-pill.active {

    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(124, 58, 237, 0.15));

    border-color: rgba(99, 102, 241, 0.45);

    color: #fff;

    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.2);

}



.filter-sort-select {

    max-width: 220px;

}



.styled-select {

    appearance: none;

    padding: 10px 36px 10px 14px;

    background: var(--color-bg);

    border: 1px solid var(--color-border);

    border-radius: var(--radius-md);

    color: var(--color-text);

    font-family: var(--font-sans);

    font-size: 0.85rem;

    cursor: pointer;

    width: 100%;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238b8ba3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");

    background-repeat: no-repeat;

    background-position: right 10px center;

    background-size: 16px;

    transition: all var(--transition-fast);

}



.styled-select:focus {

    border-color: var(--color-primary);

    box-shadow: 0 0 0 3px var(--color-primary-glow);

    outline: none;

}



.alert-dismissible {

    position: relative;

    padding-right: 44px;

}



.alert-dismiss {

    position: absolute;

    top: 50%;

    right: 12px;

    transform: translateY(-50%);

    width: 28px;

    height: 28px;

    border: none;

    border-radius: var(--radius-sm);

    background: rgba(255, 255, 255, 0.05);

    color: var(--color-text-muted);

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 1rem;

    transition: all var(--transition-fast);

}



.alert-dismiss:hover {

    background: rgba(255, 255, 255, 0.1);

    color: var(--color-text);

}



.overlay-card {

    backdrop-filter: blur(4px);

}



.overlay-card-preview {

    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);

}



.overlay-card-actions .btn-primary {

    flex: 1;

    justify-content: center;

    font-weight: 600;

}



.overlay-grid .overlay-card {

    animation: fadeInUp 0.5s ease-out both;

}



.overlay-grid .overlay-card:nth-child(1) { animation-delay: 0.03s; }

.overlay-grid .overlay-card:nth-child(2) { animation-delay: 0.06s; }

.overlay-grid .overlay-card:nth-child(3) { animation-delay: 0.09s; }

.overlay-grid .overlay-card:nth-child(4) { animation-delay: 0.12s; }

.overlay-grid .overlay-card:nth-child(5) { animation-delay: 0.15s; }

.overlay-grid .overlay-card:nth-child(6) { animation-delay: 0.18s; }



.empty-state {

    padding: 72px 32px;

    background: rgba(22, 22, 30, 0.5);

    border: 1px dashed rgba(99, 102, 241, 0.25);

    border-radius: var(--radius-xl);

    position: relative;

    overflow: hidden;

}



.empty-state::before {

    content: '';

    position: absolute;

    inset: -50%;

    background: conic-gradient(from 180deg, transparent, rgba(99, 102, 241, 0.06), transparent 30%);

    animation: spinSlow 12s linear infinite;

}



@keyframes spinSlow {

    to { transform: rotate(360deg); }

}



.empty-state-icon {

    position: relative;

    z-index: 1;

    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.1));

    border-color: rgba(99, 102, 241, 0.2);

    box-shadow: 0 0 40px rgba(99, 102, 241, 0.15);

}



.empty-state > * {

    position: relative;

    z-index: 1;

}



.auth-page {

    overflow: hidden;

}



.auth-bg {

    background:

        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(99, 102, 241, 0.12), transparent 55%),

        radial-gradient(ellipse 60% 50% at 85% 90%, rgba(236, 72, 153, 0.08), transparent 50%),

        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(6, 182, 212, 0.04), transparent 60%);

}



.auth-bg::after {

    content: '';

    position: absolute;

    inset: 0;

    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236366f1' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");

    opacity: 0.6;

}



.auth-card {

    background: rgba(22, 22, 30, 0.88);

    backdrop-filter: blur(20px);

    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(99, 102, 241, 0.08);

}



.form-input:focus {

    transform: translateY(-1px);

}



.control-panel {

    background: rgba(22, 22, 30, 0.88);

    backdrop-filter: blur(12px);

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);

}



.control-preview {

    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.12), 0 12px 40px rgba(0, 0, 0, 0.5);

}



.sl-mode-toggle {

    background: rgba(10, 10, 15, 0.6);

    border-color: rgba(99, 102, 241, 0.2);

}



.sl-mode-btn.active {

    background: linear-gradient(135deg, #6366f1, #7c3aed);

}



.faq-accordion {

    display: flex;

    flex-direction: column;

    gap: 10px;

}



.faq-item {

    background: rgba(22, 22, 30, 0.72);

    border: 1px solid var(--color-border);

    border-radius: var(--radius-md);

    overflow: hidden;

    transition: border-color var(--transition-base), box-shadow var(--transition-base);

}



.faq-item.open {

    border-color: rgba(99, 102, 241, 0.3);

    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.08);

}



.faq-question {

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    padding: 16px 20px;

    background: transparent;

    border: none;

    color: var(--color-text);

    font-family: var(--font-sans);

    font-size: 0.92rem;

    font-weight: 600;

    text-align: left;

    cursor: pointer;

    transition: background var(--transition-fast);

}



.faq-question:hover {

    background: rgba(99, 102, 241, 0.05);

}



.faq-icon {

    flex-shrink: 0;

    width: 24px;

    height: 24px;

    border-radius: var(--radius-sm);

    background: var(--color-primary-subtle);

    color: var(--color-primary);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 1.1rem;

    transition: transform var(--transition-base);

}



.faq-item.open .faq-icon {

    transform: rotate(45deg);

}



.faq-answer {

    max-height: 0;

    overflow: hidden;

    transition: max-height 0.35s ease, padding 0.35s ease;

}



.faq-item.open .faq-answer {

    max-height: 200px;

}



.faq-answer-inner {

    padding: 0 20px 16px;

    font-size: 0.86rem;

    color: var(--color-text-muted);

    line-height: 1.65;

}



.reveal-on-scroll {

    opacity: 0;

    transform: translateY(24px);

    transition: opacity 0.6s ease, transform 0.6s ease;

}



.reveal-on-scroll.revealed {

    opacity: 1;

    transform: translateY(0);

}



.toast {

    backdrop-filter: blur(12px);

    border-radius: var(--radius-lg);

}



.toast.show {

    animation: toastPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);

}



@keyframes toastPop {

    0% {

        opacity: 0;

        transform: translateY(20px) scale(0.95);

    }

    100% {

        opacity: 1;

        transform: translateY(0) scale(1);

    }

}



.modal-overlay.active .modal-box,

.modal-overlay.open .modal-box {

    animation: modalIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);

}



@keyframes modalIn {

    from {

        opacity: 0;

        transform: scale(0.94) translateY(12px);

    }

    to {

        opacity: 1;

        transform: scale(1) translateY(0);

    }

}



.hero-feature,

.how-step,

.school-benefit-card,

.compat-card {

    backdrop-filter: blur(8px);

}



@media (max-width: 768px) {

    .dashboard-stats {

        grid-template-columns: repeat(2, 1fr);

    }



    .filter-toolbar {

        padding: 14px;

    }



    .filter-pills {

        flex-wrap: nowrap;

        overflow-x: auto;

        padding-bottom: 4px;

        -webkit-overflow-scrolling: touch;

        scrollbar-width: none;

    }



    .filter-pills::-webkit-scrollbar {

        display: none;

    }

}



@media (prefers-reduced-motion: reduce) {

    .overlay-grid .overlay-card,

    .reveal-on-scroll,

    .empty-state::before,

    .toast.show,

    .modal-overlay.active .modal-box {

        animation: none;

        transition: none;

    }



    .reveal-on-scroll {

        opacity: 1;

        transform: none;

    }

}