/*******************************************************
 * 1. RESET Y TIPOGRAFÍA BASE
 *******************************************************/

/* Elimina márgenes y paddings por defecto y establece el modelo de caja */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Pila de fuentes sans-serif moderna y accesible */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    line-height: 1.6;
    /* Mejora la legibilidad del texto */
    color: #333;
    /* Color de texto oscuro por defecto */
}

/* * 2. ESTILOS DE ELEMENTOS BASE 
 * (Body, Main, Footer Layout)
 *******************************************************/

/* Cuerpo de la página: Define el fondo, y asegura que el footer siempre esté abajo */
body {
    margin: 0;
    /* Asegura que no haya margen externo */
    padding: 0;
    /* Asegura que no haya relleno interno */
    box-sizing: border-box;
    /* Muy recomendado para cálculos de ancho */
    /* ... el resto de tus estilos globales ... */
}

main {
    flex: 1 0 auto;
    /* Asegura que el contenido principal ocupe el espacio restante */
}

/* Clase general para centrar texto */
.centro {
    text-align: center;
}

/* Clases de títulos (Establecemos la base, se refinará en components.css) */
h1,
h2,
h3 {
    margin-top: 20px;
    margin-bottom: 15px;
}

/* Párrafos: establece la alineación por defecto */
p {
    text-align: left;
    margin-bottom: 10px;
    font-size: 1.1em;
    /* Un poco más grande para mejor lectura */
}

/* Contenedor general del contenido (limitación de ancho) */
.container-all {
    width: 100%;
    max-width: 1000px;
    /* Ancho máximo para el contenido principal */
    margin: 0 auto;
    /* Centra el contenedor en la pantalla */
    padding: 20px;
    background: white;
    /* El contenido central tiene fondo blanco */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    /* Sombra suave para separarlo del fondo */
}

/* AJUSTE DE LA TARJETA (EFECTO VIDEO) */
.card-poeta-3d {
    width: 300px;
    /* Ancho fijo para todas */
    height: 400px;
    /* Alto fijo para todas */
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    /* El reflejo hacia abajo del video */
    -webkit-box-reflect: below 1px linear-gradient(transparent, transparent, rgba(0, 0, 0, 0.2));
}

/* ESTO ES CLAVE: Hace que tus fotos de distinto tamaño se adapten sin deformarse */
.card-poeta-3d img {
    width: 100%;
    height: 85%;
    /* Deja un espacio abajo para el nombre */
    object-fit: cover;
    /* Corta la imagen para que llene el espacio */
    object-position: center;
    /* Centra el recorte */
}

.card-poeta-3d .info {
    height: 15%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.card-poeta-3d h5 {
    font-size: 1.1rem;
    margin: 0;
    color: #333;
    text-align: center;
}

/*PARA EL BOTON DEL LISTADO DEL MOVIL*/
/* ESTILO DEL BOTÓN PRINCIPAL */
.btn-mapa-queque {
    background-color: #2e7d32 !important;
    /* Color verde jardín */
    color: white !important;
    padding: 16px 30px !important;
    border: none !important;
    border-radius: 50px !important;
    /* Bordes redondeados */
    font-size: 1.1rem !important;
    font-weight: bold !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    transition: 0.3s !important;
    display: inline-block !important;
    text-transform: uppercase !important;
}

.btn-mapa-queque:hover {
    background-color: #1b5e20 !important;
    transform: scale(1.05) !important;
    /* Efecto de agrandado al pasar el mouse */
}

/*RELACIONADO AL MODAL DEL MAPA  DE LOS 27 POETAS*/
/* VENTANA OSCURA DE FONDO */
.map-window {
    display: none;
    /* Empieza oculta */
    position: fixed;
    z-index: 10000 !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85) !important;
    align-items: center !important;
    justify-content: center !important;
}

/* CAJA BLANCA CENTRAL */
.modal-content {
    background: #ffffff !important;
    width: 90% !important;
    max-width: 500px !important;
    padding: 25px !important;
    border-radius: 15px !important;
    position: relative !important;
    text-align: center !important;
}

/* BOTÓN DE CIERRE (X) */
.close-btn {
    position: absolute !important;
    top: 10px !important;
    right: 20px !important;
    font-size: 30px !important;
    font-weight: bold !important;
    color: #333 !important;
    cursor: pointer !important;
}

.titulo-movil {
    color: #2e7d32 !important;
    margin-top: 0 !important;
}

/*CORRECCIONES DE BIBLIOGRAFIA Y FOOTER*/
/* REFUERZO PARA LA BIBLIOGRAFÍA Y DATOS */
#datos.container.section.hover-card {
    background: #ffffff !important;
    margin: 30px auto !important;
    padding: 40px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    max-width: 900px !important;
    width: 90% !important;
    box-sizing: border-box !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

/* Ajuste para que el texto de la biografía no se pegue a los bordes en móvil */
@media (max-width: 768px) {
    #datos.container.section.hover-card {
        padding: 25px 20px !important;
        width: 95% !important;
    }
}

/*BORDE AZUL DE DATOS DEL JARDIN*/
/* RECUPERAR EL EFECTO HOVER AZUL */
#datos.container.section.hover-card {
    transition: all 0.3s ease-in-out !important;
    border-bottom: 3px solid transparent !important;
    /* Base invisible */
}

#datos.container.section.hover-card:hover {
    transform: translateY(-5px) !important;
    /* Se eleva un poquito */
    box-shadow: 0 10px 20px rgba(0, 64, 128, 0.2) !important;
    /* Sombra azulada */
    border-bottom: 3px solid #004080 !important;
    /* Línea azul de WebOeba */
}

/*PARA OCULTAR EL MAPA DE LAS LUCECITAS */
/* 1. OCULTAR EL BOTÓN VERDE CUANDO ESTAMOS EN PC */
@media (min-width: 769px) {
    .btn-mapa-queque {
        display: none !important;
    }
}

/* 2. OCULTAR EL MAPA DE LAS LUCECITAS CUANDO ESTAMOS EN EL MÓVIL */
@media (max-width: 768px) {

    /* Buscá el ID o Clase de tu mapa de lucecitas. 
       Si se llama 'mapa-interactivo', sería así: */
    #mapa-interactivo,
    .contenedor-luces {
        display: none !important;
    }
}

/* ====================================================== */
/* CONTROL DE VISIBILIDAD: MAPA PC VS BOTÓN MÓVIL         */
/* ====================================================== */

/* 1. VISTA PC (Pantallas grandes) */
@media (min-width: 769px) {

    /* Escondemos el botón verde del modal porque ya tenemos el mapa de luces */
    .btn-mapa-queque {
        display: none !important;
    }

    /* Aseguramos que el mapa de luces se vea bien */
    .seccion-mapa-interactivo {
        display: block !important;
    }
}

/* 2. VISTA MÓVIL (Celulares) */
@media (max-width: 768px) {

    /* APAGAMOS LAS LUCES: Escondemos el mapa interactivo que rompe el ancho */
    .seccion-mapa-interactivo {
        display: none !important;
    }

    /* MOSTRAMOS EL BOTÓN: Aparece el botón verde para abrir el modal */
    .btn-mapa-queque {
        display: inline-block !important;
    }

    /* Ajuste extra para que el contenedor del botón no deje huecos raros */
    .container.section.center-align {
        margin-top: 10px !important;
        margin-bottom: 10px !important;
    }
}