/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #e8e8e8;
    background-color: #0a0a0a;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: 80px;
}

/* Header */
header {
    background: linear-gradient(180deg, #111111 0%, #0a0a0a 100%);
    text-align: center;
    padding: 40px 20px 50px;
    border-bottom: 2px solid #c41e3a;
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(196, 30, 58, 0.3);
}

/* Navegación por categorías */
.categoria-nav {
    background-color: #0a0a0a;
    border-bottom: 1px solid #1a1a1a;
    padding: 0;
    transition: all 0.3s ease;
    z-index: 100;
}

.categoria-nav.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid #c41e3a;
}

.nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    padding-left: 20px;
}

.nav-logo {
    max-width: 0;
    height: 0;
    opacity: 0;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.categoria-nav.sticky .nav-logo {
    max-width: 40px;
    height: 40px;
    opacity: 1;
    filter: brightness(1.1);
}

.categoria-nav-container {
    display: flex;
    gap: 8px;
    padding: 12px 20px 12px 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    flex: 1;
}

.categoria-nav-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.categoria-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #1a1a1a;
    color: #a0a0a0;
    text-decoration: none;
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    letter-spacing: 0.02em;
}

.categoria-pill:hover {
    background-color: #252525;
    color: #e8e8e8;
    border-color: #333333;
}

.categoria-pill.active {
    background-color: #c41e3a;
    color: #ffffff;
    border-color: #c41e3a;
    font-weight: 600;
}

.menu-intro {
    font-size: 0.938rem;
    color: #c41e3a;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #1a1a1a;
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    max-width: 140px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: brightness(1.1);
}

header h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.subtitulo {
    font-size: 0.875rem;
    color: #c41e3a;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.info-header {
    margin-top: 16px;
}

.ubicacion {
    font-size: 0.938rem;
    color: #a0a0a0;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}

.direccion {
    font-size: 0.813rem;
    color: #707070;
    font-weight: 300;
    letter-spacing: 0.01em;
}

/* Main content */
main {
    max-width: 680px;
    margin: 0 auto;
    padding: 20px;
}

section {
    margin-bottom: 56px;
    padding: 36px 0;
    border-bottom: 1px solid #1a1a1a;
}

section:last-of-type {
    border-bottom: none;
}

h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.75rem;
    font-weight: 400;
    color: #c41e3a;
    margin-bottom: 32px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 12px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #c41e3a;
}

h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.375rem;
    font-weight: 400;
    color: #c41e3a;
    margin-bottom: 6px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.categoria {
    margin-bottom: 44px;
}

.categoria:last-child {
    margin-bottom: 0;
}

.categoria-detalle {
    font-size: 0.813rem;
    color: #707070;
    margin-bottom: 20px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Horarios */
.info-content p {
    padding: 12px 0;
    font-size: 1.125rem;
    color: #e8e8e8;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Menú */
.items-list {
    margin-top: 20px;
}

.item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid #1a1a1a;
    transition: background-color 0.2s ease;
    gap: 16px;
}

.item:hover {
    background-color: rgba(196, 30, 58, 0.03);
}

.item:last-child {
    border-bottom: none;
}

.item-info {
    flex: 1;
    padding-right: 20px;
}

.item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.nombre {
    font-weight: 600;
    font-size: 1.063rem;
    color: #ffffff;
    display: block;
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

/* Etiquetas de producto (tags) */
.product-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 500;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.descripcion {
    font-size: 0.875rem;
    color: #909090;
    line-height: 1.55;
    font-weight: 300;
    margin: 0;
}

.precio {
    font-weight: 700;
    color: #c41e3a;
    font-size: 1.125rem;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

/* Controles de cantidad */
.cantidad-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #1a1a1a;
    border-radius: 24px;
    padding: 4px;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.cantidad-controls.active {
    opacity: 1;
}

.btn-cantidad {
    width: 28px;
    height: 28px;
    border: none;
    background-color: #252525;
    color: #e8e8e8;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
}

.btn-cantidad:hover {
    background-color: #c41e3a;
    color: #ffffff;
    transform: scale(1.1);
}

.btn-cantidad:active {
    transform: scale(0.95);
}

.cantidad-display {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
    color: #ffffff;
    font-size: 0.938rem;
}

/* Barra inferior de pedido */
.barra-pedido {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #111111;
    border-top: 2px solid #c41e3a;
    padding: 0;
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.barra-pedido.active {
    transform: translateY(0);
}

.btn-ver-pedido {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.btn-ver-pedido:hover {
    background-color: rgba(196, 30, 58, 0.1);
}

.btn-ver-pedido:active {
    background-color: rgba(196, 30, 58, 0.2);
}

.btn-ver-pedido svg {
    flex-shrink: 0;
    color: #c41e3a;
}

.texto-pedido {
    display: flex;
    align-items: center;
    gap: 6px;
}

.texto-principal {
    color: #ffffff;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.contador-items {
    color: #c41e3a;
    font-weight: 700;
}

/* Modal del carrito - Fullscreen real */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important; /* Dynamic viewport height para mobile */
    background-color: #0a0a0a;
    z-index: 9999;
    display: none;
    flex-direction: column;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    max-width: none !important;
    max-height: none !important;
    transform: none !important;
    box-sizing: border-box;
}

.modal-overlay.active {
    display: flex;
}

/* Bloquear scroll del body cuando modal está abierto */
body.modal-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

.modal-content {
    background-color: #0a0a0a;
    border: none !important;
    border-radius: 0 !important;
    max-width: none !important;
    max-height: none !important;
    width: 100% !important;
    height: 100% !important;
    display: flex;
    flex-direction: column;
    box-shadow: none !important;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
}

.modal-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    min-height: 0; /* Importante para que flex funcione con overflow */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.modal-scroll-area::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.modal-body {
    padding: 20px 0;
}

.modal-header {
    padding: 20px 20px;
    border-bottom: 1px solid #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0d0d0d;
    flex-shrink: 0;
    z-index: 10;
}

.modal-header h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: #c41e3a;
    margin: 0;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.modal-close {
    background: none;
    border: none;
    color: #a0a0a0;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #c41e3a;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.carrito-vacio {
    text-align: center;
    color: #707070;
    padding: 40px 20px;
    font-size: 1rem;
}

.pedido-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pedido-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #1a1a1a;
    margin: 0 -20px;
}

.pedido-item:last-child {
    border-bottom: none;
}

.pedido-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.pedido-cantidad {
    font-weight: 700;
    color: #c41e3a;
    font-size: 1rem;
    min-width: 32px;
    flex-shrink: 0;
}

.pedido-nombre {
    color: #e8e8e8;
    font-size: 0.938rem;
    word-break: break-word;
}

.pedido-precio {
    font-weight: 600;
    color: #ffffff;
    font-size: 1rem;
    flex-shrink: 0;
    min-width: 50px;
    text-align: right;
}

.pedido-btn-eliminar {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.pedido-btn-eliminar:hover {
    color: #e8e8e8;
}

.pedido-btn-eliminar svg {
    width: 20px;
    height: 20px;
}

/* Notas de productos */
.pedido-nota-wrapper {
    width: 100%;
    margin: 0 -20px;
    padding: 0 20px;
    border-top: 1px solid #1a1a1a;
}

.pedido-nota-display {
    padding: 12px 0;
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
    word-break: break-word;
}

.pedido-nota-display strong {
    color: #aaa;
    font-style: normal;
}

.pedido-btn-nota {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0;
    text-decoration: underline;
    transition: color 0.2s ease;
    font-family: inherit;
    display: inline-block;
    margin-top: 4px;
}

.pedido-btn-nota:hover {
    color: #e8e8e8;
}

.pedido-nota-form {
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pedido-nota-textarea {
    width: 100%;
    padding: 12px 16px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    color: #e8e8e8;
    font-family: inherit;
    font-size: 0.95rem;
    resize: none;
    min-height: 60px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.pedido-nota-textarea:focus {
    outline: none;
    border-color: #c41e3a;
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.15);
}

.pedido-nota-actions {
    display: flex;
    gap: 8px;
}

.pedido-nota-btn {
    padding: 8px 16px;
    border: 1px solid #333;
    border-radius: 6px;
    background: transparent;
    color: #bbb;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    flex: 1;
}

.pedido-nota-btn:hover {
    color: #e8e8e8;
    border-color: #444;
}

.pedido-nota-btn--guardar {
    background: #c41e3a;
    color: #fff;
    border-color: #c41e3a;
}

.pedido-nota-btn--guardar:hover {
    background: #a01a2e;
    border-color: #a01a2e;
    color: #fff;
}

/* Bloque de cierre del pedido */
.subtotal-linea {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #0d0d0d;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
}

.subtotal-linea span:first-child {
    font-size: 1rem;
    color: #888;
    font-weight: 500;
}

.subtotal-monto {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: #c41e3a;
    letter-spacing: 0.02em;
}

.envio-nota {
    font-size: 0.85rem;
    color: #555;
    text-align: center;
    padding: 14px 24px;
    background: #0a0a0a;
}

.cierre-pedido {
    padding: 20px;
    background: #0f0f0f;
    border-top: 1px solid #1a1a1a;
}

.cierre-header {
    margin-bottom: 20px;
}

.cierre-titulo {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.cierre-subtitulo {
    font-size: 0.8rem;
    color: #555;
    font-weight: 400;
}

.cierre-campo {
    margin-bottom: 18px;
}

.cierre-campo:last-child {
    margin-bottom: 0;
}

.cierre-campo label {
    display: block;
    font-size: 0.9rem;
    color: #bbb;
    margin-bottom: 8px;
    font-weight: 500;
}

.cierre-campo input[type="text"] {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 1rem;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cierre-campo input[type="text"]:focus {
    outline: none;
    border-color: #c41e3a;
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.15);
}

.cierre-campo input::placeholder {
    color: #444;
}

.cambio-input-wrapper {
    display: flex;
    align-items: center;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cambio-input-wrapper:focus-within {
    border-color: #c41e3a;
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.15);
}

.cambio-prefix {
    padding: 14px 0 14px 16px;
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

.cambio-input-wrapper input[type="number"] {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 16px 14px 8px;
    font-size: 1rem;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    outline: none;
}

.cambio-input-wrapper input[type="number"]::placeholder {
    color: #444;
}

/* Ocultar flechas del input number */
.cambio-input-wrapper input[type="number"]::-webkit-outer-spin-button,
.cambio-input-wrapper input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cambio-input-wrapper input[type="number"] {
    -moz-appearance: textfield;
}

.campo-auxiliar {
    display: block;
    font-size: 0.75rem;
    color: #444;
    margin-top: 6px;
}

.modal-footer {
    padding: 12px 20px 20px 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); /* Safe area para iOS */
    background: #0d0d0d;
    border-top: 1px solid #1a1a1a;
    flex-shrink: 0;
    z-index: 10;
}

.btn-enviar-whatsapp {
    width: 100%;
    background-color: #c41e3a;
    color: #ffffff;
    border: none;
    padding: 16px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(196, 30, 58, 0.3);
}

.btn-enviar-whatsapp:hover {
    background-color: #a01830;
    box-shadow: 0 6px 24px rgba(196, 30, 58, 0.5);
    transform: translateY(-2px);
}

.btn-enviar-whatsapp:active {
    background-color: #8a1428;
    transform: translateY(0);
}

/* Call to action */
.cta-container {
    text-align: center;
    margin: 56px 0 64px;
}

.btn-primary {
    background-color: #c41e3a;
    color: #ffffff;
    border: none;
    padding: 18px 56px;
    font-size: 1.063rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    width: 100%;
    max-width: 340px;
    box-shadow: 0 4px 16px rgba(196, 30, 58, 0.25);
}

.btn-primary:hover {
    background-color: #a01830;
    box-shadow: 0 6px 24px rgba(196, 30, 58, 0.35);
    transform: translateY(-2px);
}

.btn-primary:active {
    background-color: #8a1428;
    transform: translateY(0);
}

/* Footer */
footer {
    text-align: center;
    color: #505050;
    padding: 40px 20px;
    font-size: 0.813rem;
    border-top: 1px solid #1a1a1a;
    margin-top: 48px;
}

/* Ajustes responsive para imágenes en móvil */
@media (max-width: 767px) {
    .item-image {
        width: 70px;
        height: 70px;
    }
    
    .image-overlay {
        font-size: 8px;
        padding: 3px;
    }
    
    .close-modal {
        top: 10px;
        right: 10px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
    
    .modal-caption {
        font-size: 14px;
        padding: 12px;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 85%;
    }
}

/* Botón flotante de WhatsApp */
/* Responsive para pantallas más grandes */
@media (min-width: 768px) {
    .logo {
        max-width: 160px;
    }
    
    header {
        padding: 60px 20px 68px;
    }
    
    header h1 {
        font-size: 3.25rem;
    }
    
    .subtitulo {
        font-size: 0.938rem;
    }
    
    .ubicacion {
        font-size: 1rem;
    }
    
    .categoria-nav-container {
        padding: 16px 20px;
        gap: 12px;
    }
    
    .categoria-pill {
        padding: 12px 24px;
        font-size: 0.938rem;
    }
    
    main {
        padding: 48px 20px;
    }
    
    section {
        padding: 44px 0;
        margin-bottom: 64px;
    }
    
    h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .item {
        padding: 24px 0;
    }
    
    .nombre {
        font-size: 1.125rem;
    }
    
    .descripcion {
        font-size: 0.938rem;
    }
    
    .precio {
        font-size: 1.25rem;
    }
    
    .btn-primary {
        width: auto;
        min-width: 300px;
        padding: 20px 64px;
        font-size: 1.125rem;
    }
    
    /* Barra de pedido en desktop */
    .btn-ver-pedido {
        padding: 20px 32px;
        font-size: 1.063rem;
    }
    
    .modal-content {
        max-width: 600px;
    }
    
    .item-actions {
        flex-direction: row;
        gap: 16px;
    }
    
    .btn-cantidad {
        width: 32px;
        height: 32px;
    }
}

/* =============================================
   ESTILOS PARA IMÁGENES DE PRODUCTOS Y MODAL
   ============================================= */

/* Imagen del producto en la lista */
.item-image {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #1a1a1a;
    transition: all 0.3s ease;
}

.item-image:hover {
    border-color: #c41e3a;
    transform: scale(1.05);
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
    font-size: 9px;
    padding: 4px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 500;
}

.item-image:hover .image-overlay {
    opacity: 1;
}

/* Modal de imagen */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close-modal:hover,
.close-modal:focus {
    color: #c41e3a;
    background: rgba(196, 30, 58, 0.2);
}

.modal-caption {
    color: #ccc;
    text-align: center;
    padding: 16px;
    font-size: 18px;
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    font-weight: 500;
}
