/* ------------------------------------*/
/*------   excursiones-listado   ------*/
/*------------------------------------ */
.seccion-excursiones {
    width: 90%;
    margin: 0 auto;
}
.seccion-excursiones .titulo-categoria {
    text-align: center;
    margin: 40px 0 20px 0;
    font-family: sans-serif;
    text-transform: uppercase;
}
.seccion-excursiones .contenedor-fichas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centra las fichas si hay 1 o 2 */
    gap: 30px; /* Espacio entre fichas */
    width: 100%; /* Ocupa el 100% de su padre (que es el 90% de la web) */
}
.seccion-excursiones .ficha-excursion {
    padding:2px;
    padding-top:10px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding:10px 10px 10px 10px;

    flex: 0 1 calc(33.333% - 20px); 
    min-width: 280px; /* Para que en móviles no se vean minúsculas */
}
.seccion-excursiones .ficha-excursion .imagen {
    border-radius:12px;
    overflow: hidden;
}
.seccion-excursiones .ficha-excursion img {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    object-fit: cover;
    transition: transform .2s;
    opacity: .8;
}
.seccion-excursiones .ficha-excursion .imagen img:hover {
    transform: scale(1.3);
    opacity: 1;
}
.seccion-excursiones .ficha-excursion:hover img:after {
    top: 0;
    opacity: 1;
    visibility: visible;
}
@media (max-width: 992px) {
    /* 2 por fila */
    .seccion-excursiones .ficha-excursion {
        flex: 0 1 calc(50% - 20px);
    }
}
@media (max-width: 600px) {
    /* 1 por fila al 100% */
    .seccion-excursiones .ficha-excursion {
        flex: 0 1 100%;
    }
}
.seccion-excursiones .ficha-excursion .contenido {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.seccion-excursiones .ficha-excursion .contenido h3 {
    height: 50px;
}
.seccion-excursiones .descripcion-corta {
    margin-bottom: 20px;
}
.seccion-excursiones .boton-ver {
    margin-top: auto;
    align-self: center;

    border-radius:8px;
    font-family: 'Montserrat', Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 600;
    background: rgba(255,93,0,1);
    color:#fff;
    border:1px solid #ff5d00;
    text-align:center;

    width: 100%;
    padding-top: 12px;
    padding-bottom: 12px;
    color: #fff;
}
.seccion-excursiones .boton-ver:hover{
    background: rgba(255,93,0,1);
    color:#fff;
    text-shadow: 0 2px 4px rgba(0,0,0,.975);
}

/* ------------------------------------*/
/*--------  excursion-detalle  --------*/
/*------------------------------------ */
/* titulos */
.info-reserva h1 {
    margin-top:15px;
    font-weight: 700;
    line-height: 1.1;
}
.info-reserva h4 {
    margin-top:15px;
    font-weight: 700;
    font-style: italic;
    line-height: 1.3;
    text-transform: lowercase;
}

.detalle-container i {
    background: #FF5D00;
    color:#fff;
    padding:2px;
    font-weight: 500;
    border-radius:8px;
}

/* imagenes */
.galeria {
    max-width: 670px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.imagen-principal img {
    width: 100%;
    height: 400px;
    object-fit: cover; /* Evita que la imagen se deforme */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.miniaturas {
    display: flex;
    flex-wrap: wrap; /* Si hay muchas, saltan de línea */
    gap: 10px;
    justify-content: center;
}
.miniaturas img {
    width: 90px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, border 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.miniaturas img:hover {
    transform: scale(1.05);
    border: 2px solid #FF6D19;
}

/* descripcion corta y botones */
.detalle-container {
    width: 90%;
    margin: 0 auto;
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas: fotos e info reserva */
    gap: 40px;
}
@media (max-width: 768px) {
    .detalle-container { grid-template-columns: 1fr; }
}
@media (max-width: 1200px) {
    .descripcion-corta {
        margin: 20px 0;
        min-height:55px;
    }
    .contenedor-botones {
        margin: -5px 0;
        height:85px;
    }
}
.descripcion-corta {
    align-items: center; /* Centra verticalmente ambos elementos */
    justify-content: space-between; /* Separa el precio a la izquierda y el botón a la derecha */
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    min-height:255px;
}
.contenedor-botones {
    display: flex;
    align-items: stretch; /* Obliga a los hijos a tener la misma altura */
    justify-content: center;
    gap: 15px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin: -5px 0;
    height:85px;
}
.contenedor-botones .precio-base {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra el texto "Desde" y el número verticalmente */
    width: 100%;
    background-color: #45A072;
    color: #fff;
    border-radius: 8px;
    /* padding: 10px 20px; */
    padding:10px;
    margin: 0;
    text-align: center;
    transition: background-color 0.3s;
}
.contenedor-botones .precio-base span {
    font-weight: 500;
    font-size: 1.8rem;
    display: block;
    line-height: 1.2;
}
.contenedor-botones .precio-base:hover {
    background-color: #232323;
}
.contenedor-botones .boton-comprar {
    display: flex;
    align-items: center; /* Centra el texto "COMPRAR" verticalmente */
    justify-content: center; /* Centra el texto horizontalmente */
    padding: 0 40px; /* Quitamos padding vertical para que mande el contenedor */
    background: rgba(255,93,0,1);
    color:#fff;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 2.2rem;
    border-radius: 8px;
    transition: opacity 0.3s;
    transition: background 0.3s ease;
    text-transform: uppercase;
}
.contenedor-botones .boton-comprar:hover {
    background: rgba(255,93,0,1);
    color:#fff;
    text-shadow: 0 2px 4px rgba(0,0,0,.975);
    opacity: 0.9;
}
.detalle-container .boton-volver {
    display: flex;
    align-items: center; /* Centra el texto "COMPRAR" verticalmente */
    justify-content: center; /* Centra el texto horizontalmente */
    padding: 0 40px; /* Quitamos padding vertical para que mande el contenedor */
    background: rgba(35,35,35,1);
    color:#fff;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.8rem;
    border-radius: 8px;
    transition: opacity 0.3s;
    transition: background 0.3s ease;
    text-transform: uppercase;
}

.footer-excursion {
    grid-column: 1 / -1;
    border-top: 1px solid #eee;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-top: -25px;

    /* --- ESTO CENTRA EL BOTÓN --- */
    display: flex;
    justify-content: center; 
    align-items: center;
}
/* Selector corregido: el enlace es el que envuelve al div */
.footer-excursion a {
    text-decoration: none; /* Quita el subrayado del enlace */
    display: inline-block; /* Permite que el ancho lo defina el contenido */
}
.boton-volver {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(35,35,35,1);
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.8rem;
    text-transform: uppercase;
    transition: background 0.3s ease, opacity 0.3s;
    /* Evita que el texto se rompa en varias líneas */
    white-space: nowrap; 
}
.footer-excursion a:hover .boton-volver {
    background-color: rgba(35,35,35,0.8);
    opacity: 0.9;
}

@media (max-width: 480px) {
    .descripcion-corta {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

.descripcion-extensa {
    grid-column: 1 / -1;
    border-top: 1px solid #eee;
    padding-top: 20px;

    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin: 0;
    margin-top:-25px;
}
.descripcion-extensa i {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .contenedor-botones .precio-base span {
        font-weight: 500;
        font-size: 1.5rem;
        display: block;
        line-height: 1.2;
    }
    .detalle-container { 
        display: block;
        max-width: 100vw;
        padding: 10px;
        box-sizing: border-box;
    }
    .galeria {
        max-width: 100%;
    }
    .imagen-principal img {
        height: auto;
        max-height: 300px;
        width: 100%;
    }
    .miniaturas img {
        width: 70px;
        height: 60px;
    }
}