/* Preloader */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--blanco);
    display: grid;
    place-items: center;
    z-index: 2000;
}

.spinner {
    width: 42px;
    height: 42px;
    border: 4px solid var(--gris-200);
    border-top-color: var(--azul-fuerte);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Cards contenedor */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

/* Galería grid */
.grid-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    /* ocupa todo el viewport */
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.35));
}


.hero-title {
    color: #ffffff;
    /* blanco puro */
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    color: #ffffff;
    /* blanco puro */
    font-size: clamp(1rem, 3vw, 2rem);
    font-weight: 500;
    margin-top: 8px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
/* Botones de navegación */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    border: none;
    padding: 12px;
    cursor: pointer;
    font-size: 2rem;
    z-index: 2;
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}

/* Indicadores (puntos) */
.slider-indicators {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 2;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: #ffffff;
}

.justificado {
    text-align: justify;
}

/* ======================================================= */
/* 🗺️ ESTILOS AÑADIDOS AL FINAL DE components.css PARA EL MODAL */
/* ======================================================= */

.map-window {
    display: none;
    /* 1. Inicia oculto */

    /* 💥 PROPIEDADES CRÍTICAS PARA QUE CUBRA LA PANTALLA 💥 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    z-index: 10000;
    /* Alto para estar encima de todo */
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    /* Fondo semi-transparente */

    /* Para centrar el contenido (modal-content) */
    justify-content: center;
    align-items: center;
}

.map-window.is-open {
    display: flex !important;
    /* Lo fuerza a mostrarse y centrarse */
}

/* Estilos del contenido interno del modal */
.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    max-width: 650px;
    margin: 15px;
    position: relative;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}