/* --- MODAL ESTILO TARJETA (GALERÍA PÚBLICA) --- */
.modal-card-zoom {
  display: none; /* Se activa con JS */
    position: fixed;
    z-index: 10000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Fondo más oscuro para resaltar la obra */
  /*  backdrop-filter: blur(5px);*/
    display: flex; 
    align-items: center;
    justify-content: center;
    padding: 15px; /* Margen de seguridad para que no toque los bordes de la pantalla */
}

.modal-card-content {
    background-color: #fff;
    width: 95%;           /* Ocupa casi todo el ancho en pantallas pequeñas */
    max-width: 1000px;    /* ¡AQUÍ LO ENSANCHAMOS! Antes estaba en 1000px o menos */
    height: 90vh;         /* Aprovechamos mejor el alto de la pantalla */
    border-radius: 15px;
    display: flex;        /* Columna imagen | Columna texto */
    flex-direction: row;
    overflow: hidden;
    position: relative;   /* Necesario para posicionar la X */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Contenedor de Imagen (Izquierda) */
.modal-zoom-left {
    flex: 1.4;             /* Dale un poco más de peso a la imagen si quieres que luzca más */
    background-color: #000;
    display: flex;
    align-items: flex-start; /* IMPORTANTE: Alinea la imagen al borde superior */
    justify-content: center;
    overflow: hidden;      /* Corta cualquier exceso */
}
.modal-zoom-left img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* La imagen se ajusta sin cortarse y sin verse pequeña */
}

/* La imagen propiamente dicha */
#img-zoom {
    width: 100%;
    height: 100%;          /* Fuerza a la imagen a medir lo mismo que la columna de texto */
    object-fit: cover;     /* ESTA ES LA CLAVE: Hace que la imagen llene el espacio sin deformarse */
    display: block;
}
/* Columna de texto a la derecha */
.modal-zoom-right {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: #fff;
}

/* Estilos de los detalles */
.description-container h3 {
    font-size: 1.1rem;
    margin-top: 25px;
    margin-bottom: 5px;
    color: #333;
}

.price-container {
    margin-top: 20px;
  /*  border-top: 1px solid #a6a4a4;*/
    margin-bottom: 35px;
    
}

.artist-label { color: #888; font-style: italic; margin-bottom: 5px; }
.price-label {
 font-weight: bold;
 margin-right: 5px;
 
 }

#precio-zoom {
    font-size: 1rem;
    font-weight: bold;
    color: #d32f2f;
    
}
.divider {
    border: 0;
    border-top: 1px solid #b3adad;
    margin: 10px 0 15px 0; /* Aumentamos el margen de abajo (25px) */
}
.modal-zoom-right h2 {
    margin-top: 0;
    font-size: 2rem;
    margin-bottom: 25px;
    color: #212121;
    text-align: center;
}

.artist-name {
    color: #888;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.tech-tag {
    display: inline-block;
    background: #eee;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.specs-list {
    margin-bottom: 30px;
}

.specs-list p {
    margin: 8px 0;
    font-size: 0.95rem;
    color: #444;
}

.specs-list strong { color: #000; }
/* El bloque de técnica, año y medidas */
.specs-container {
    margin-top: 0px; /* Espacio extra respecto a la línea */
}

.specs-container p {
    margin: 1px 0; /* Separación entre cada dato técnico */
    font-size: 0.95rem;
    color: #444;
}
.price-display {
    font-size: 1.5rem;
    font-weight: bold;
    color: #d32f2f;
    margin-bottom: 25px;
}

/* Botón de WhatsApp al fondo */
.btn-wa-modal {
 background: #25d366;
    color: white;
    text-align: center;
    padding: 5px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    font-size: 0.9rem;  
}

.btn-wa-modal:hover { background-color: #128c7e; }

/* Cerrar Modal */
.close-card-zoom {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 25px;
    height: 25px;
    background-color: #fff; /* Fondo blanco circular para que siempre se vea */
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    z-index: 10100; /* Por encima de cualquier imagen o texto */
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.close-card-zoom:hover {
    transform: scale(1.1);
    color: #d32f2f;
}
/* --- ADAPTACIÓN PARA MÓVILES --- */
@media (max-width: 768px) {
    .modal-card-content {
        flex-direction: column; /* Cambia de lado a lado a arriba y abajo */
        height: 95vh; /* Casi toda la pantalla */
        width: 95%;
        max-height: 95vh;
        overflow-y: auto; /* Permite hacer scroll si el texto es largo */
    }

   .modal-zoom-left {
        width: 100%;
        height: 40vh;       /* La imagen ocupa el 40% superior */
        min-height: 250px;
    }

    .modal-zoom-right {
        width: 100%;
        padding: 25px;      /* Espacio cómodo para leer */
    }

    .close-card-zoom {
        top: 10px;
        right: 10px;
        width: 25px;
        height: 25px;
        font-size: 22px;
    }

.btn-wa-modal {
 
    font-size: 0.8rem;  
}

}