/* 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: var(--blanco);
    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: var(--blanco);
    font-size: clamp(1rem, 3vw, 2rem);
    font-weight: 500;
    margin-top: 8px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.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;
}