/* modal.css - Neon Noir Edition */

.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Más oscuro */
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-card {
    background: #0a0a0a; /* Fondo casi negro */
    width: 90%; max-width: 400px;
    border-radius: 20px; overflow: hidden; position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
    border: 1px solid #333; /* Borde sutil */
    transform: translateY(100px) scale(0.9); opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.active .modal-card { transform: translateY(0) scale(1); opacity: 1; }

.modal-image-wrapper {
    width: 100%; height: 250px; position: relative;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}
.modal-image-wrapper img { width: 100%; height: 100%; object-fit: cover; }

.btn-close-modal {
    position: absolute; top: 15px; right: 15px;
    background: rgba(0, 0, 0, 0.6); color: white;
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(4px);
    z-index: 10; transition: transform 0.2s;
}
.btn-close-modal:active { transform: scale(0.9); }
/* Reseteo básico para botones que antes eran divs */
button.btn-close-modal,
button.essence-btn,
button.close-btn-float {
    background: transparent;
    border: none;
    padding: 0;
    font: inherit;
    outline: inherit;
    cursor: pointer;
}

/* Para mejorar la accesibilidad visual del foco (navegación por teclado) */
button:focus-visible {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 2px;
}
.modal-body-content { padding: 0 25px 25px 25px; margin-top: -40px; position: relative; z-index: 5; }

/* Tipografía Neón para el título del modal */
.modal-title-elegant {
    font-family: 'Yellowtail', cursive;
    font-size: 2.5rem;
    color: var(--neon-magenta);
    margin-bottom: 5px; line-height: 1.1;
    text-shadow: 0 0 10px rgba(189, 0, 255, 0.3);
}

.modal-price-tag {
    font-size: 1.4rem; font-weight: 800;
    color: var(--neon-green); /* Precio en Verde Lima */
    margin-bottom: 15px; display: block;
    font-family: 'Montserrat', sans-serif;
}

.modal-description { color: #ccc; font-size: 0.95rem; line-height: 1.6; margin-bottom: 20px; }

/* Caja de Curiosidad IA - Estilo Tech */
.ia-badge {
    background: #0f0f0f;
    border: 1px dashed var(--neon-cyan);
    padding: 15px; border-radius: 12px; margin-bottom: 20px;
}
.ia-title { 
    font-size: 0.75rem; color: var(--neon-cyan); 
    font-weight: bold; letter-spacing: 2px; text-transform: uppercase; 
    display: block; margin-bottom: 5px; 
}
.ia-text { font-size: 0.9rem; color: #eee; font-style: italic; font-family: 'Montserrat', sans-serif; }

/* Botones Principales - ROJO VIDA */
.btn-modal-action, .btn-big-action {
    width: 100%; padding: 16px;
    background: var(--neon-red);
    color: white; border: none; border-radius: 12px;
    font-weight: 800; font-size: 0.95rem; cursor: pointer;
    transition: 0.3s; text-transform: uppercase; letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.3);
}
.btn-modal-action:active, .btn-big-action:active { transform: scale(0.98); }

/* Inputs dentro de modales */
.input-stylish {
    width: 100%; padding: 12px; background: #111;
    border: 1px solid #333; color: white;
    border-radius: 8px; font-size: 1rem; outline: none; transition: 0.3s;
    font-family: 'Montserrat', sans-serif;
}
.input-stylish:focus { border-color: var(--neon-cyan); }