* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    overflow-x: hidden;
}

header {
    background-color: #A34135;
    padding: 1.5rem;
    display: flex;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

#btn-menu {
    display: none;
}


/* --- BURGER --- */
.burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.375rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    border: 0.18rem solid white;
    cursor: pointer;
}

.line {
    height: 0.18rem;
    width: 1.56rem;
    background-color: white;
    transition: all 0.4s ease;
    transform-origin: center;
}

#btn-menu:checked ~ .burger .line1 { transform: translateY(0.56rem) rotate(45deg); }
#btn-menu:checked ~ .burger .line2 { opacity: 0; transform: scale(0); }
#btn-menu:checked ~ .burger .line3 { transform: translateY(-0.56rem) rotate(-45deg); }

/* --- MENU MÓVIL --- */
.menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #75251F;
}

#btn-menu:checked ~ .menu {
    display: flex;
    justify-content: center;
}

.menu ul {
    list-style: none;
    text-align: center;
}

.menu li { margin: 2rem 0; }

.menu a {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.8rem;
    transition: 0.3s;
}

.menu a:hover{
    font-weight: 700;
}

/* --- CONTENIDO PRINCIPAL --- */
main {
    margin-top: 6.5rem;
}

.contacto-ubicacion {
    padding: 1rem; /* Espacio por los lados en móvil */
}

.contenedor-grid {
    display: grid;
    grid-template-columns: 100%;
    gap: 2rem;
}

.info-reservas h1 {
    color: #A34135;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    text-transform: uppercase;
    margin-top: 1rem;
    font-weight: 800;
}

.direccion {
    margin-bottom: 1.5rem;
    color: #555;
    font-style: italic;
    line-height: 1.5;
}

.bloque-dato {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 0.06rem solid #eee;
}

.numero, .email {
    font-size: 1.3rem;
    font-weight: 800;
    color: #75251F;
    word-break: break-all; /* Evita que el mail rompa el diseño en móviles pequeños */
}

/* --- MAPA --- */
.mapa {
    width: 100%;
    height: 20rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.25rem 0.6rem rgba(0,0,0,0.1);
}

.mapa iframe {
    width: 100%;
    height: 100%;
    border: none;
}

footer {
    background-color: #75251F;
    color: white;
    padding: 3rem 0 1.5rem 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    padding: 0 1.5rem;
    max-width: 75rem;
    margin: 0 auto;
}

.footer-bloque h4 {
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    border-bottom: 0.125rem solid #A34135;
    display: inline-block;
    padding-bottom: 0.3rem;
    color: white;
}

.footer-bloque p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    opacity: 0.9;
    color: white;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding: 1.5rem 1rem 0 1rem;
    border-top: 0.06rem solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    opacity: 0.7;
}

header img{
    height: 3.5rem;
}

.inicio{
height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../img/inicio-02.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.inicio h1 {
    font-size: 3.5rem; 
    text-transform: uppercase;
    font-weight:800; }

.btn-rojo {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #A34135;
    color: white;
    text-decoration: none;
    border-radius: 0.3rem;
    margin-top: 1.5rem;
    font-weight: 700;
}

.galeria {
    padding: 5rem 1.5rem;
    max-width: 75rem;
    margin: 0 auto;
}

.contenedor-galeria {
    display: grid;
    grid-template-columns: 100%;
    gap: 3rem;
    align-items: center;
    width: 100%; /* Asegura que no use vw */
    max-width: 75rem;
    margin: 0 auto;
            padding-bottom: 2rem;
        margin-bottom: 2rem;
        border-bottom: 2px solid #dadada;
}

.galeria-texto h2 {
    color: #A34135;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    position: relative;
}
.galeria-texto p {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}
.btn-saber-mas {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border: 0.125rem solid #A34135;
    color: #A34135;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-saber-mas:hover {
    background-color: #A34135;
    color: white;
}

/* --- CARRUSEL DINÁMICO --- */
.galeria-carrusel , .galeria-carrusel-2 {
    width: 100%;
    height: 22rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1.2rem 2.5rem rgba(0,0,0,0.1);
}

.carrusel-track {
    display: flex;
    width: 600%;
    height: 100%;
    animation: rueda-continua 15s infinite;
}
.carrusel-track img {
    width: 16.666%;
    height: 100%;
    object-fit: cover;
}

@keyframes rueda-continua {
    0%, 15% { transform: translateX(0); }
    18%, 33% { transform: translateX(-16.666%); }
    36%, 51% { transform: translateX(-33.333%); }
    54%, 69% { transform: translateX(-50%); }
    72%, 87% { transform: translateX(-66.666%); }
    90%, 99.99% { transform: translateX(-83.333%); }
    100% { transform: translateX(0); }
}

/* --- TARIFAS: DISEÑO BASE (MÓVIL) --- */
.tarifas-contenedor {
    padding: 7rem 1rem;
    max-width: 100%;
    margin: 0 auto;
}

.tabla-clasica {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* Obligatorio para que no desborde en móvil */
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-top: 1rem;
}

.tabla-clasica th {
    background-color: #75251F;
    color: white;
    padding: 10px 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.tabla-clasica td {
    padding: 12px 4px;
    border-bottom: 1px solid #eee;
    text-align: center;
    font-size: 0.85rem;
    word-wrap: break-word;
}

.tabla-clasica td:first-child {
    text-align: left;
    padding-left: 8px;
    width: 35%; /* Más espacio para el nombre de la temporada */
    background-color: #fdfaf9;
}

.precio {
    font-weight: 800;
    color: #333;
    font-size: 1rem;
}

.vacio {
    color: #ccc;
}

.notas-tarifas {
    margin-top: 2rem;
    padding: 1.2rem;
    background-color: #fdf2f1;
    border-radius: 5px;
    font-size: 0.9rem;
}

.iva-nota {
    display: block;
    margin-top: 10px;
    font-style: italic;
    color: #888;
    font-size: 0.8rem;
}

.tarifas-contenedor h1{
    text-align: center;
    text-transform: uppercase;
    color: #A34135;
    font-weight: 800;
}
.tarifas-contenedor p{
    text-align: center;
}


/* --- SERVICIOS COMUNES --- */
.servicios-generales {
    padding: 6rem 1rem 2.5rem;
    text-align: center;
        border-bottom: 2px solid #eee;
    }

.comunes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columnas en móvil */
    gap: 0.8rem;
    margin-top: 2rem;
}

.item-comun {
    background: white;
    padding: 0.7rem;
    font-size: 0.85rem;
    border: 1px solid #eee;
    border-radius: 4px;
    text-align: left;
}

/* --- SECCIÓN HABITACIÓN --- */
.seccion-habitacion {
    padding: 3rem 1rem;
    border-bottom: 1px solid #eee;
}

.habitacion-texto h2 {
    color: #A34135;
    margin-bottom: 1rem;
}

.mosaico-habitacion {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 3 fotos por fila en móvil */
    gap: 1rem;
    margin: 1.5rem 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 2.5rem;

}

.mosaico-habitacion img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 3px;
    cursor: pointer;
}
.btn-reserva-principal {
    display: inline-block;
    background-color: #B24C3D; /* Tu rojo teja */
    color: white;
    padding: 1.2rem 2.5rem;
    margin-top: 2rem;
    text-decoration: none;
    font-weight: 800;
    border-radius: 50px; /* Bordes redondeados estilo moderno */
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-reserva-principal:hover {
    background-color: #75251F;
    transform: scale(1.05);
}

/* --- NUEVO VISOR CON SWIPE (LIGHTBOX) --- */
.visor-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.swiper-visor {
    width: 100%;
    height: 100%;
}

.swiper-visor .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-visor img {
    max-width: 90%;
    max-height: 80%;
    border: 2px solid white;
    object-fit: contain;
}

.cerrar-visor {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 2100;
}

/* Flechas solo para PC en el visor */
.swiper-button-next, .swiper-button-prev {
    color: white !important;
}

.btn-directo {
    display: block;
    background: #75251F;
    color: white;
    text-align: center;
    padding: 1rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
}

.servicios-generales h1{
       color: #A34135;
       text-transform: uppercase;
       font-weight: 800;

}

.pagina-legal {
    padding: 8rem 1.5rem 4rem; /* Espacio para el header fijo */
    max-width: 800px;
    margin: 0 auto;
}

.contenedor-legal h1 {
    color: #75251F;
    margin-bottom: 2rem;
    font-weight: 800;
    text-transform: uppercase;
}

.contenedor-legal h2 {
    color: #A34135;
    margin-top: 2.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.contenedor-legal p {
    line-height: 1.8;
    color: #444;
    margin-bottom: 1rem;
}

.introduccion {
    font-style: italic;
    color: #777;
}

.footer-bottom a {
    color: #dadada;
}

/* --- SECCIÓN TURISMO REFORZADA --- */
.seccion-turismo {
    padding: 5rem 1.5rem;
    max-width: 75rem;
    margin: 0 auto;
}

.contenedor-turismo {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 8rem; /* Más espacio entre los 3 bloques principales */
}

.texto-turismo h2 {
    color: #A34135;
    font-size: 2.2rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.texto-turismo p {
    line-height: 1.8;
    color: #444;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

/* Rejilla de fotos 2x2 */
.mosaico-turismo {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.mosaico-turismo img {
    width: 100%;
    aspect-ratio: 1 / 1; /* Fotos cuadradas para que la rejilla sea perfecta */
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.mosaico-turismo img:hover {
    transform: scale(1.02);
}


/* --- PÁGINA OPINIONES --- */

.inicio-plano {
    height: 25vh; /* Un poco más corta que la de habitaciones al no tener foto */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1.5rem;
    color: white;
}

.inicio-plano h1 {
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #A34135;
}

.inicio-plano p {
    font-size: 1.1rem;
    color: black;
}
.seccion-opiniones {
    padding: 2rem;
    max-width: 75rem;
    margin: 0 auto;
}

.contenedor-opiniones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tarjeta-opinion {
    background: #fdf2f1; /* Un tono rosado muy suave como el que usas */
    padding: 2rem;
    border-radius: 10px;
    border-left: 5px solid #A34135;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.estrellas {
    color: #f1c40f; /* Color oro para las estrellas */
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.tarjeta-opinion p {
    font-style: italic;
    color: #444;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.autor {
    font-weight: 800;
    color: #75251F;
    display: block;
    text-align: right;
}

.cta-opiniones {
    text-align: center;
    margin-top: 5rem;
    padding: 3rem;
    background: white;
    border: 2px dashed #A34135;
    border-radius: 10px;
}
.galeria-contacto {
    width: 100%;
    padding: 1.5rem;
    box-sizing: border-box;
}

.mosaico-grid {
    display: grid;
    grid-template-columns: 1fr; /* Una sola columna en móvil */
    gap: 15px; /* Espacio entre las fotos */
}

.mosaico-grid img {
    width: 100%;
    height: 250px; /* Altura fija para uniformidad */
    object-fit: cover; /* Evita que se deformen */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}


/* -----------------------------
---------------------------------
---------------- PC -------------
---------------------------------
------------------------------- */

@media (min-width: 48rem) {
    header { padding: 1.5rem 5rem; }

    .burger { display: none; }

    .menu {
        display: block;
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
    }

    .menu ul { display: flex; gap: 2rem; }
    .menu li { margin: 0; }
    .menu a { font-size: 1rem; }

    .contacto-ubicacion {
        padding: 5rem;
        max-width: 80rem;
        margin: 0 auto;
    }

    .contenedor-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .mapa { height: 30rem; }
    .footer-container {
        grid-template-columns: repeat(3, 1fr);
        text-align: left;
    }
.contenedor-galeria {
        grid-template-columns: 1fr 1fr; /* Cambiado de 50% 50% para evitar el desborde */
        gap: 5rem;
        padding-bottom: 2rem;
        margin-bottom: 2rem;
        border-bottom: 2px solid #dadada;
        width: 100%;
    }

    /* --- NUEVO: Invertir orden en la segunda sección --- */
    /* Seleccionamos la segunda sección de galería en el HTML */
    .galeria .contenedor-galeria:nth-of-type(2) .galeria-carrusel {
        grid-column: 1; /* Imagen a la izquierda */
        grid-row: 1;
    }

    .galeria .contenedor-galeria:nth-of-type(2) .galeria-texto {
        grid-column: 2; /* Texto a la derecha */
        grid-row: 1;
    }
    .galeria-carrusel {
        height: 32rem;
    }

    .galeria-texto {
        padding-right: 2rem;
    }

header img{
    height: 5rem;
}
.tarifas-contenedor {
        padding: 10rem 2rem;
        max-width: 900px; /* Centramos y limitamos el ancho en PC */
    }

    .tabla-clasica {
        table-layout: auto; /* Devolvemos el control natural del ancho */
    }

    .tabla-clasica th {
        padding: 20px;
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .tabla-clasica td {
        padding: 20px;
        font-size: 1.05rem;
    }

    .tabla-clasica td:first-child {
        padding-left: 25px;
        width: auto; /* Quitamos el límite del 35% */
    }

    .precio {
        font-size: 1.4rem;
    }

    .notes-tarifas {
        margin-top: 3rem;
        padding: 2rem;
        font-size: 1rem;
    }


    .seccion-habitacion {
        max-width: 1000px;
        margin: 0 auto;
        padding: 1rem;

    }

    .mosaico-habitacion {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .mosaico-habitacion img {
        height: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        transition: transform 0.3s;
    }

    .mosaico-habitacion img:hover {
        transform: scale(1.05);
        cursor: pointer;
    }
.pagina-legal {
        padding-top: 10rem;
    }
 .contenedor-turismo {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 6rem;
    }

    /* Solo el segundo bloque (Ocio) se invierte */
    .invertido-turismo {
        direction: rtl;
    }

    .invertido-turismo .texto-turismo, 
    .invertido-turismo .mosaico-turismo {
        direction: ltr;
    }
.galeria-contacto {
        max-width: 1200px;
        margin: 3rem auto;
        padding: 0 1.5rem;
    }

    .mosaico-grid {
        grid-template-columns: repeat(4, 1fr); /* Tres columnas iguales */
    }

    .mosaico-grid img {
        height: 300px; /* Un poco más de altura en pantallas grandes */
        transition: transform 0.3s ease;
    }

    .mosaico-grid img:hover {
        transform: translateY(-5px);
    }


    
}