/** Hero con parallax **/
.parallax-hero {
    margin-top: -75px;
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    transform: translateZ(-1px) scale(1.5);
    will-change: transform;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(143, 26, 26, 0.7), rgba(26, 26, 26, 0.9));
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 20px;
    animation: fadeInUp 1.5s ease-out;
}

.parallax-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 576px) {
    .parallax-content h1 {
        font-size: 2rem;
        font-weight: 600;
    }
}

/** Información práctica sobre los lugraes turísticos **/
/* INFORMACIÓN PRÁCTICA */
.info-section {
    padding: 100px 0;
    /* background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%); */
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.info-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
}

.info-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.info-card-icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.info-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.info-card .schedule-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-card .schedule-item:last-child {
    border-bottom: none;
}

.schedule-day {
    font-weight: 600;
    color: var(--dark);
}

.schedule-time {
    color: #666;
}

.info-card .admission {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.info-card .admission:last-child {
    border-bottom: none;
}

.admission-title {
    font-weight: 600;
    color: var(--dark);
}

.admission-value {
    text-align: justify;
    color: #666;
}

/** Sección de la historia de cada lugar turístico **/

/* Estilos mínimos para la paginación de historia */
.history-card {
    background: #eceef0ba;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 6px 18px rgba(20, 20, 40, 0.06);
    max-width: 900px;
    margin: 0 auto;
}

.history-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    margin-top: 0.75rem;
}

.history-controls button {
    min-width: 44px;
    min-height: 36px;
}

.history-meta {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    text-align: center;
}

.history-text {
    line-height: 1.9;
    text-align: justify;
    color: #222;
    font-family: "Times New Roman", Times, serif;
    font-size: 1.1rem;
}

.history-page-select {
    /* 1. Eliminar estilo por defecto del navegador (importante) */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    /* 2. Tamaño y Espaciado */
    padding: 10px 40px 10px 15px;
    /* Más padding a la derecha para la flecha */
    font-size: 0.95rem;
    border-radius: 8px;

    /* 3. Colores y Bordes */
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    /* Gris suave */
    color: #51373b;
    /* Gris oscuro para texto */
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;

    /* 4. Flecha Personalizada (SVG en base64) */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;

    /* Sombra suave */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Estado Hover (al pasar el mouse) */
.history-page-select:hover {
    border-color: #9ca3af;
}

/* Estado Focus (al hacer clic) */
.history-page-select:focus {
    border-color: #8e0225;
    box-shadow: 0 0 0 4px rgba(241, 99, 111, 0.1);
    /* Anillo de luz */
}

/* Responsive */
@media (max-width: 576px) {
    .history-card {
        padding: 1rem;
    }

    .history-text {
        font-size: 1rem;
    }

    .schedule-day,
    .schedule-time,
    .admission-title {
        font-size: small;
    }

    .admission-value {
        font-size: 14px;
    }
}

/** Seccion de contenido de imagenes **/
/* Masonry layout usando columnas */
.masonry {
    column-gap: 1.5rem;
    /* columnas responsive */
    column-count: 1;
}

@media (min-width: 576px) {
    .masonry {
        column-count: 2;
    }
}

@media (min-width: 900px) {
    .masonry {
        column-count: 3;
    }
}

/* Cada item evita partirse en columnas */
.masonry-item {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin-bottom: 1.5rem;
    transition: transform .25s ease, box-shadow .25s ease;
}

/* Card visual */
.place-card {
    background: #fff;
    border-radius: .5rem;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
    cursor: pointer;
    transform-origin: center;
}

/* Hover / focus effect */
.place-card:hover,
.place-card:focus {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}

/* Imagen / video responsive dentro del card */
.place-card img,
.place-card video {
    width: 100%;
    height: auto;
    display: block;
}

/* Overlay informativo (oculto por defecto) */
.place-overlay {
    position: relative;
}

.place-overlay .overlay-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.45) 40%, rgba(0, 0, 0, 0.7) 100%);
    color: #fff;
    transform: translateY(15%);
    opacity: 0;
    transition: opacity .25s ease, transform .25s ease;
}

.place-card:hover .overlay-content,
.place-card:focus .overlay-content {
    opacity: 1;
    transform: translateY(0);
}

/* Title and description inside overlay */
.place-card h5 {
    margin-bottom: .25rem;
    font-size: 1rem;
    font-weight: 600;
}

.place-card p {
    margin: 0;
    font-size: .875rem;
    color: rgba(255, 255, 255, .9);
}

/* Play button circle for video thumbnails */
.play-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #8e0225;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
    transition: transform .18s ease;
}

.place-card:hover .play-circle {
    transform: translate(-50%, -50%) scale(1.08);
}

/* Small spacing for card body text */
.place-card .card-body {
    padding: 0.9rem;
}

/* Modal media max height */
#galleryModal .modal-dialog {
    max-width: 900px;
}

#galleryModal .modal-body img,
#galleryModal .modal-body video {
    width: 100%;
    height: auto;
    max-height: 75vh;
    object-fit: contain;
}