/*
 Theme Name: Astra Child
 Theme URI: https://cesarcanoarteaga.com
 Description: Tema hijo de Astra
 Author: Luis Eduardo Muñoz G.
 Author URI: https://cesarcanoarteaga.com
 Template: astra
 Version: 1.0.0
 Text Domain: astra-child
*/

/* Importa los estilos del tema padre */
@import url("../astra/style.css");

/* Aquí puedes agregar tus estilos personalizados */
/* ===============================
   Estilos para el popup del producto
   =============================== */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-content {
    position: relative;
    background: transparent; /* Sin fondo para que resalte la imagen */
    padding: 0;
    border-radius: 12px;
    box-shadow: none;
    max-width: 90%;
    max-height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.25s ease-in-out;
}

/* Imagen principal del popup */
.popup-content img {
    max-width: 100%;
    height: 100vh; /* 👈 ocupa el 80% de la altura del viewport */
    object-fit: contain; /* mantiene proporciones */
    border-radius: 12px;
    display: block;
    background: #fff;
}

/* Botón de cerrar (X) */
.close-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
    transition: color 0.2s ease-in-out;
}

.close-popup:hover {
    color: #ff4b4b;
}

/* Botón de abrir */
.open-popup {
    background-color: #fff;
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 2px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s ease-in-out;
    font-size: 15px;
}

.open-popup:hover {
    background-color: #333;
}

/* Animación suave */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* 📱 Responsivo */
@media (max-width: 768px) {
    .popup-content img {
        height: auto;
        max-height: 100vh; /* ocupa un poco más en móviles */
        width: 95%;
        object-fit: contain;
    }

    .close-popup {
        top: 10px;
        right: 10px;
        font-size: 26px;
    }
}

@media (max-width: 921px) {
    h1, .entry-content :where(h1) {
        font-size: 30px;
    }
}


