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

/* ==========================================================================
   1. CONFIGURACIÓN CORE (TAILWIND V4 & FUENTES)
   ========================================================================== */

@source "../../resources/**/*.blade.php";
@source "../../resources/**/*.js";
@source "../../resources/**/*.vue";

@theme {
    --font-sans: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
}


/* ==========================================================================
   2. VARIABLES GLOBALES (:ROOT)
   ========================================================================== */
:root {
    /* Paleta de Colores */
    --brand-red: #E21C21;
    --brand-blue: #0050FF;
    --brand-dark: #0f172a;
    --brand-gold: #D4AF37;

    /* Textos y Fondos */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-body: #f8fafc;

    /* Tipografías */
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-inter: 'Inter', sans-serif;
}


/* ==========================================================================
   3. UTILIDADES GLOBALES & ANIMACIONES
   ========================================================================== */
/* Ayudantes de Color */
.text-brand-blue {
    color: var(--brand-blue);
}

.text-brand-red {
    color: var(--brand-red);
}

.text-brand-dark {
    color: var(--brand-dark);
}

.text-brand-gold {
    color: var(--brand-gold);
}

.bg-brand-blue {
    background-color: var(--brand-blue);
}

.bg-brand-red {
    background-color: var(--brand-red);
}

.bg-brand-dark {
    background-color: var(--brand-dark);
}

.bg-brand-gold {
    background-color: var(--brand-gold);
}

/* Ayudantes de Fuente */
.font-serif {
    font-family: var(--font-serif);
}

.font-sans {
    font-family: var(--font-sans);
}

/* Scrollbars Invisibles */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.scroll-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

/* Animaciones Compartidas */
.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}


/* ==========================================================================
   4. MÓDULO: AUTENTICACIÓN (LOGIN)
   ========================================================================== */
.login-body {
    height: 100vh;
    overflow: hidden;
    background-color: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-inter);
}

.main-wrapper {
    display: flex;
    width: 100%;
    height: 100vh;
    background: white;
}

.hero-section {
    flex: 1.5;
    position: relative;
    background: url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.1));
    z-index: 1;
}

.top-brand {
    position: absolute;
    top: 50px;
    left: 60px;
    font-size: 32px;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 20;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.top-brand span {
    color: var(--brand-red);
}

.hero-content {
    position: relative;
    z-index: 10;
    border-left: 5px solid var(--brand-red);
    padding-left: 40px;
}

.hero-text h1 {
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 15px;
    color: white;
    text-transform: uppercase;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hero-text span {
    color: var(--brand-red);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    text-transform: none;
    display: inline-block;
    margin-top: 5px;
    background: rgba(255, 255, 255, 0.9);
    padding: 0 10px;
    transform: skewX(-10deg);
}

.hero-text p {
    font-size: 18px;
    color: white;
    max-width: 500px;
    line-height: 1.6;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    margin-top: 20px;
}

.form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    background-color: white;
    position: relative;
    padding-top: 40px;
}

.form-card {
    width: 100%;
    max-width: 400px;
    padding: 20px 40px;
    margin-top: auto;
    margin-bottom: auto;
}

.logo-container {
    width: 70px;
    height: 70px;
    background: var(--brand-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    box-shadow: 0 10px 20px rgba(226, 28, 33, 0.3);
}

.logo-container img {
    width: 35px;
    height: auto;
    filter: brightness(0) invert(1);
}

.brand-header {
    text-align: center;
    margin-bottom: 25px;
}

.brand-header h2 {
    font-size: 24px;
    color: var(--text-main);
    font-weight: 700;
}

.brand-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.login-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
}

.tab-btn {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.tab-btn.active {
    color: var(--theme-accent);
    border-bottom: 3px solid var(--theme-accent);
}

.input-block {
    margin-bottom: 15px;
}

.input-block label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.input-field {
    width: 100%;
    padding: 12px 15px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-main);
    transition: 0.3s;
}

.input-field:focus {
    outline: none;
    border-color: var(--brand-red);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(226, 28, 33, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--brand-red);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(226, 28, 33, 0.2);
}

.submit-btn:hover {
    background-color: #c4181c;
    transform: translateY(-2px);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #94a3b8;
    font-size: 12px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.divider span {
    padding: 0 10px;
}

.google-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #1e293b;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
}

.google-btn:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

.form-wrapper {
    display: none;
}

.form-wrapper.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.forgot-pass {
    color: var(--brand-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    display: block;
    text-align: right;
    margin-top: 5px;
}

@media (max-width: 900px) {
    .hero-section {
        display: none;
    }

    .form-section {
        width: 100%;
        padding: 0;
        background: white;
    }

    .form-card {
        padding: 20px;
        max-width: 100%;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .top-brand {
        display: block;
        color: var(--brand-red);
        top: 20px;
        left: 20px;
        font-size: 24px;
        z-index: 100;
        text-shadow: none;
    }
}


/* ==========================================================================
   5. MÓDULO: CLIENTE HOME (INICIO & CARTA)
   ========================================================================== */
.bg-hero-restaurant {
    background-image: url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?q=80&w=2500&auto=format&fit=crop');
}

.bg-gradient-brand {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-red) 100%);
}

.text-gradient {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Navbars */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
}

.nav-transparent {
    background: transparent;
    padding: 2rem 3rem;
}

.nav-scrolled .nav-link {
    color: var(--brand-dark);
}

.nav-transparent .nav-link {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Animaciones Específicas Home */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Ajustes Responsive */
@media (max-width: 768px) {
    .nav-transparent {
        padding: 1rem;
    }
}



/* ==========================================================================
   6. MÓDULO: MIS RESERVAS & HISTORIAL (CLIENTE)
   ========================================================================== */

/* Layout General */
.orders-wrapper {
    background-color: var(--bg-body);
    min-height: 100vh;
    padding-bottom: 5rem;
    /* pb-20 */
}

/* Tarjetas de Reserva */
.reservation-card {
    background-color: white;
    border-radius: 1rem;
    /* rounded-2xl */
    /* shadow-card: 0 0 0 1px rgba(226, 232, 240, 1), 0 4px 6px -1px rgba(0, 0, 0, 0.05) */
    box-shadow: 0 0 0 1px rgba(226, 232, 240, 1), 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.reservation-card:hover {
    /* shadow-float */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

/* Detalles Desplegables (Acordeón) */
.details-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    background-color: #f8fafc;
    /* bg-slate-50 */
    border-top: 1px solid #f1f5f9;
    /* border-slate-100 */
}

.details-content.open {
    max-height: 500px;
    /* Altura suficiente para el contenido */
    transition: max-height 0.4s ease-in-out;
}

/* Botones de Filtro (Tabs) */
.filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    /* text-sm */
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.2s;
}

.filter-btn:hover {
    background-color: #f8fafc;
}

.filter-btn[data-active="true"] {
    background-color: var(--brand-dark);
    /* bg-slate-900 */
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Modal QR */
#modalQR {
    transition: opacity 0.3s ease;
}

#modalQR.hidden {
    display: none;
    pointer-events: none;
}

#modalQR:not(.hidden) {
    display: flex;
    pointer-events: auto;
}

/* Fondo Modal */
#qrBackdrop {
    transition: opacity 0.3s ease;
}

/* Contenido Modal */
#qrContent {
    transition: all 0.3s ease;
}

/* Animación de Escaneo QR */
@keyframes scan {
    0% {
        top: 0;
    }

    50% {
        top: 100%;
    }

    100% {
        top: 0;
    }
}

.animate-scan {
    animation: scan 2s infinite linear;
}

/* ==========================================================================
   7. MÓDULO: WIZARD DE RESERVAS (CREAR)
   ========================================================================== */

/* Fondo Inmersivo */
.reservation-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: linear-gradient(rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.4)), url('https://images.unsplash.com/photo-1569096651661-820d0de8b4ab?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: var(--font-sans);
}

/* Tarjeta Glassmorphism */
.glass-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    width: 100%;
    max-width: 750px;
    padding: 40px 50px;
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 10;
    overflow: hidden;
}

/* Decoración superior */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-red));
}

/* Línea de Progreso (Steps) */
.steps-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    padding: 0 10px;
}

.steps-track-bg {
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: #E2E8F0;
    z-index: 0;
}

.steps-track-fill {
    position: absolute;
    top: 20px;
    left: 40px;
    height: 3px;
    background: var(--brand-blue);
    z-index: 0;
    transition: width 0.4s ease;
    width: 0%;
}

.step {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 25%;
}

.step-circle {
    width: 40px;
    height: 40px;
    background: #FFFFFF;
    border: 2px solid #CBD5E1;
    border-radius: 50%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    color: #64748B;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step.active .step-circle {
    border-color: var(--brand-blue);
    color: #FFFFFF;
    background: var(--brand-blue);
    box-shadow: 0 0 0 5px rgba(0, 80, 255, 0.15);
    transform: scale(1.1);
}

.step.completed .step-circle {
    border-color: var(--brand-blue);
    background: var(--brand-blue);
    color: white;
}

.step p {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #64748B;
    margin-top: 8px;
    transition: color 0.3s;
}

.step.active p {
    color: var(--brand-blue);
}

/* Inputs Premium */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    width: 100%;
    padding: 16px 16px 16px 50px;
    background: #F8FAFC;
    border: 2px solid #E2E8F0;
    border-radius: 16px;
    font-size: 1rem;
    color: var(--text-main);
    outline: none;
    transition: 0.3s;
    font-weight: 600;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
    border-color: var(--brand-blue);
    background: #FFFFFF;
    box-shadow: 0 10px 25px -5px rgba(0, 80, 255, 0.1);
}

.input-wrapper .input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    z-index: 10;
    width: 20px;
    height: 20px;
    transition: color 0.3s;
}

.input-wrapper input:focus~.input-icon,
.input-wrapper select:focus~.input-icon,
.input-wrapper textarea:focus~.input-icon {
    color: var(--brand-blue);
}

.input-wrapper .icon-textarea {
    top: 22px !important;
    transform: none !important;
}

.input-wrapper textarea {
    padding-top: 16px;
    min-height: 120px;
    resize: none;
}

/* Selección de Zonas (Imágenes) */
.mesas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.mesa-option {
    background: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.mesa-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.mesa-option.selected {
    border-color: var(--brand-blue);
}

.mesa-img-wrapper {
    height: 120px;
    overflow: hidden;
    position: relative;
}

.mesa-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.mesa-option:hover img {
    transform: scale(1.1);
}

.mesa-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.mesa-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: var(--brand-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mesa-option.selected .mesa-check {
    opacity: 1;
    transform: scale(1);
}

.mesa-info {
    padding: 16px;
    text-align: center;
}

.mesa-info h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
    font-family: var(--font-serif);
}

.mesa-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
}

.mesa-info .price {
    margin-top: 12px;
    color: var(--brand-blue);
    font-weight: 700;
    font-size: 0.9rem;
    background-color: #EFF6FF;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 9999px;
}

/* Ticket Resumen */
.ticket-summary {
    background: #FFFFFF;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    position: relative;
}

.ticket-header {
    background: #F8FAFC;
    padding: 20px;
    border-bottom: 2px dashed #E2E8F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticket-body {
    padding: 24px;
}

.ticket-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.ticket-row.total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #F1F5F9;
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--text-main);
}

/* Borde dentado (Ticket) */
.ticket-summary::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 20px;
    background: #FFFFFF;
    --mask: radial-gradient(circle 10px at 50% 100%, #0000 98%, #000) 50% calc(100% + 10px)/20px 100% repeat-x;
    -webkit-mask: var(--mask);
    mask: var(--mask);
    border-bottom: 1px solid #E2E8F0;
    z-index: 1;
}

/* Botones Wizard */
.btn-res {
    padding: 16px 32px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-prev {
    background: #F1F5F9;
    color: #64748B;
    font-weight: 600;
}

.btn-prev:hover {
    background: #E2E8F0;
    color: #334155;
}

.btn-next {
    background: linear-gradient(135deg, var(--brand-blue) 0%, #003BB3 100%);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(0, 80, 255, 0.3);
}

.btn-next:hover {
    box-shadow: 0 15px 25px -5px rgba(0, 80, 255, 0.4);
    transform: translateY(-2px);
}

.btn-confirm {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.3);
}

.btn-confirm:hover {
    box-shadow: 0 15px 25px -5px rgba(16, 185, 129, 0.4);
}

/* Pasos del Formulario */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

/* Responsive Específico */
@media (max-width: 640px) {
    .glass-card {
        padding: 30px 24px;
    }

    .step p {
        display: none;
    }

    .steps-track-bg,
    .steps-track-fill {
        top: 20px;
        left: 20px;
        right: 20px;
    }

    .mesas-grid {
        grid-template-columns: 1fr;
    }

    .mesa-img-wrapper {
        height: 140px;
    }
}

/* ==========================================================================
   8. MODAL DE CONFIRMACIÓN (FIX)
   ========================================================================== */

/* Fondo oscuro que cubre toda la pantalla */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    /* Color oscuro semitransparente */
    backdrop-filter: blur(8px);
    /* Efecto borroso de fondo */
    z-index: 9999;
    /* Por encima de todo */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    /* No clickeable cuando está oculto */
    transition: all 0.3s ease;
}

/* Estado ABIERTO (se activa con JS) */
.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* Contenido del Modal (Tarjeta blanca) */
.modal-content {
    background: #FFFFFF;
    width: 90%;
    max-width: 450px;
    padding: 40px;
    border-radius: 32px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

/* Animación de entrada de la tarjeta */
.modal-overlay.open .modal-content {
    transform: scale(1) translateY(0);
}

s

/* Ajustes para el icono y texto dentro del modal */
.modal-content h3 {
    color: #0F172A;
    /* Slate 900 */
}

/* Estilos del Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    /* Fondo oscuro */
    backdrop-filter: blur(5px);
    z-index: 9999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    /* Evita clicks cuando está oculto */
    transition: all 0.3s ease;
}

/* Clase para mostrar el modal */
.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #FFFFFF;
    width: 90%;
    max-width: 450px;
    padding: 40px;
    border-radius: 32px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Animación de entrada */
.modal-overlay.open .modal-content {
    transform: scale(1) translateY(0);
}