/* ==========================================================================
   CSS ESTILOS PRINCIPALES - E/S VEITIA (TEMA CLARO PREMIUM)
   ========================================================================== */

/* Importar tipografía premium de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* Variables de diseño - Tema Claro */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: rgba(255, 255, 255, 0.9);
    --primary: #d21420; /* Rojo PDV */
    --primary-hover: #e51d2a;
    --primary-glow: rgba(210, 20, 32, 0.15);
    --success: #059669; /* Verde esmeralda para estado abierto (contraste claro) */
    --success-glow: rgba(5, 150, 105, 0.15);
    --warning: #d97706; /* Amarillo oscuro para cierre próximo */
    --error: #dc2626; /* Rojo oscuro para cerrado */
    --error-glow: rgba(220, 38, 38, 0.15);
    --text-primary: #0f172a; /* Slate 900 */
    --text-secondary: #334155; /* Slate 700 */
    --text-muted: #64748b; /* Slate 500 */
    --border: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(210, 20, 32, 0.25);
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* Reset y estilos globales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Contenedor principal y espaciado de secciones */
section {
    padding: 100px 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 2;
}

/* ==========================================================================
   HEADER & NAVBAR (GLASSMORPHISM)
   ========================================================================== */
header {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1200px;
    height: 70px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
    z-index: 2000;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

header.scrolled {
    top: 0;
    width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    height: 38px;
    width: auto;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.logo:hover .logo-img {
    transform: scale(1.08) rotate(-3deg);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.logo-text span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
    transition: var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

/* Menú móvil (oculto en escritorio) */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

/* ==========================================================================
   SECCIÓN 1: INICIO (HOME)
   ========================================================================== */
#home {
    background: radial-gradient(circle at top right, rgba(210, 20, 32, 0.05), transparent 45%),
                radial-gradient(circle at bottom left, #f8f9fa, #ffffff);
    overflow: hidden;
    padding-top: 140px;
}

.home-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 64px;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-badge {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(210, 20, 32, 0.07);
    border: 1px solid rgba(210, 20, 32, 0.2);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.hero-title span {
    color: var(--primary);
}

.hero-slogan {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 480px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    border: 1px solid var(--primary);
    box-shadow: 0 10px 25px -5px var(--primary-glow);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: 0.75s;
    pointer-events: none;
}

.btn-primary:hover::before {
    left: 150%;
    transition: 0.75s;
}

.btn-primary:hover {
    background: #b00f19;
    border-color: #b00f19;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(210, 20, 32, 0.35);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid var(--border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--text-muted);
    transform: translateY(-3px);
}

/* Slider / Galería */
.hero-slider-wrapper {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.8s ease-in-out, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9) contrast(1.1) saturate(1.05); /* Procesa las imágenes para nitidez e iluminación */
}

/* Gradiente protector en imágenes para que el texto blanco sea legible */
.slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0) 100%);
    pointer-events: none;
}

.slide-caption {
    position: absolute;
    bottom: 32px;
    left: 32px;
    right: 32px;
    z-index: 3;
    color: #ffffff; /* Texto claro en la parte inferior sobre el gradiente oscuro */
}

.slide-caption h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    color: #ffffff;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease-in-out 0.2s, transform 0.5s ease-in-out 0.2s;
}

.slide-caption p {
    font-size: 0.95rem;
    color: #f1f5f9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease-in-out 0.4s, transform 0.5s ease-in-out 0.4s;
}

.slide.active .slide-caption h3,
.slide.active .slide-caption p {
    opacity: 1;
    transform: translateY(0);
}

/* Controles del Slider */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.slider-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.slider-btn:hover svg {
    stroke: #ffffff;
}

.slider-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--text-primary);
    stroke-width: 2.5;
    transition: var(--transition-fast);
}

.slider-btn-prev {
    left: 20px;
}

.slider-btn-next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 24px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.dot.active {
    background: var(--primary);
    width: 36px;
    box-shadow: 0 0 8px var(--primary-glow);
}

/* ==========================================================================
   SECCIÓN DE TÍTULO DE SECCIONES (UTILIDAD)
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-tag {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

/* ==========================================================================
   SECCIÓN 2: UBICACIÓN
   ========================================================================== */
#location {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.location-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: stretch;
}

.map-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 12px;
    overflow: hidden;
    height: 480px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
    transition: var(--transition-smooth);
}

.map-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px rgba(210, 20, 32, 0.08);
}

.map-container {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    /* Sin filtro invertido para un estilo de mapa claro y legible natural */
}

.info-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
    transition: var(--transition-smooth);
}

.info-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px rgba(210, 20, 32, 0.08);
}

.info-group {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(210, 20, 32, 0.06);
    border: 1px solid rgba(210, 20, 32, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(210, 20, 32, 0.02);
}

.info-icon-wrapper svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.info-detail h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.info-detail p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   SECCIÓN 3: HORARIO
   ========================================================================== */
#schedule {
    background: radial-gradient(circle at top left, rgba(210, 20, 32, 0.03), transparent 45%),
                var(--bg-secondary);
}

.schedule-card-wrapper {
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}

.schedule-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 56px 48px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.schedule-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 25px 45px rgba(210, 20, 32, 0.08);
}

/* Efecto de luz de fondo para horario */
.schedule-card::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    background: var(--primary);
    filter: blur(80px);
    opacity: 0.08;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.schedule-card:hover::before {
    opacity: 0.15;
    width: 200px;
}

.schedule-icon-header {
    width: 80px;
    height: 80px;
    background: rgba(210, 20, 32, 0.04);
    border: 1px solid rgba(210, 20, 32, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    color: var(--primary);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.02);
}

.schedule-icon-header svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.schedule-time-box {
    margin-bottom: 32px;
}

.schedule-days {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.schedule-hours {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(210, 20, 32, 0.1);
}

/* Indicador de estado en vivo */
.live-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.live-status.open {
    background: rgba(5, 150, 105, 0.08);
    color: var(--success);
    border: 1px solid rgba(5, 150, 105, 0.2);
    box-shadow: 0 0 15px var(--success-glow);
}

.live-status.closed {
    background: rgba(220, 38, 38, 0.08);
    color: var(--error);
    border: 1px solid rgba(220, 38, 38, 0.2);
    box-shadow: 0 0 15px var(--error-glow);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: relative;
}

.live-status.open .status-dot {
    background-color: var(--success);
}

.live-status.closed .status-dot {
    background-color: var(--error);
}

/* Animación de pulso para el estado abierto */
.live-status.open .status-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--success);
    animation: status-pulse 1.8s infinite ease-in-out;
}

@keyframes status-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background: #0f172a; /* Fondo oscuro elegante en el footer para contraste final */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 24px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}

.logo-img-footer {
    height: 28px;
    width: auto;
    border-radius: 3px;
    transition: var(--transition-smooth);
}

.footer-logo:hover .logo-img-footer {
    transform: scale(1.08) rotate(-3deg);
}

.footer-copy {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* ==========================================================================
   RESPONSIVIDAD Y ADAPTACIONES PARA MÓVILES
   ========================================================================== */

@media (max-width: 1024px) {
    .home-content {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-text {
        align-items: center;
    }

    .hero-slogan {
        max-width: 600px;
    }

    .hero-slider-wrapper {
        height: 400px;
    }

    .location-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .map-card {
        height: 380px;
    }

    .info-card {
        padding: 32px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 16px;
    }

    header {
        padding: 0 20px;
    }

    .nav-menu {
        position: fixed;
        top: 100px;
        left: 24px;
        right: 24px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--border);
        border-radius: 24px;
        padding: 32px;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: var(--transition-smooth);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .mobile-toggle {
        display: flex;
    }

    /* Animación del botón hamburguesa */
    .mobile-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .schedule-card {
        padding: 40px 24px;
    }

    .schedule-hours {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-slider-wrapper {
        height: 300px;
    }

    .slide-caption {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }

    .slide-caption h3 {
        font-size: 1.2rem;
    }

    .slide-caption p {
        font-size: 0.85rem;
    }

    .slider-btn {
        width: 36px;
        height: 36px;
    }

    .slider-btn-prev {
        left: 10px;
    }

    .slider-btn-next {
        right: 10px;
    }
}

/* ==========================================================================
   ANIMACIONES DE ENTRADA AL HACER SCROLL (SCROLL ANIMATIONS)
   ========================================================================== */
.animate-on-scroll {
    opacity: 0;
    will-change: transform, opacity;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Efectos de dirección */
.animate-on-scroll.fade-in-up {
    transform: translateY(40px);
}

.animate-on-scroll.fade-in-left {
    transform: translateX(-50px);
}

.animate-on-scroll.fade-in-right {
    transform: translateX(50px);
}

.animate-on-scroll.scale-up {
    transform: scale(0.94);
}

/* Estado visible tras intersectar el viewport */
.animate-on-scroll.visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Retrasos secuenciales (delays) */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }

/* Cambiar el color del marcador (pin) de Leaflet de azul a rojo */
.leaflet-marker-icon {
    filter: hue-rotate(135deg) saturate(1.4) brightness(0.9);
}

/* ==========================================================================
   AVISO LEGAL Y POLÍTICA DE PRIVACIDAD (MODAL)
   ========================================================================== */
.footer-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition-fast);
    margin-top: 4px;
    border-bottom: 1px solid transparent;
}

.footer-link:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 0.4s ease;
}

.modal-wrapper {
    position: relative;
    z-index: 10000;
    width: 100%;
    max-width: 650px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.modal-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95) translateY(15px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 85vh;
}

.modal.open .modal-card {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
}

.modal-header h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--primary);
    background: rgba(210, 20, 32, 0.05);
}

.modal-body {
    padding: 32px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    scrollbar-width: thin;
    scrollbar-color: var(--text-muted) transparent;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background-color: var(--text-muted);
    border-radius: 10px;
}

.modal-section h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    border-left: 3px solid var(--primary);
    padding-left: 10px;
}

.modal-section p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: justify;
}

.modal-footer {
    padding: 20px 32px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    background: var(--bg-secondary);
}
