* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Header */
.header {
    background: rgba(30, 30, 30, 0.55);
    color: #fff;
    padding: 0;
    position: fixed;
    top: 0;
    width: 100%;
    min-height: 70px;
    box-shadow: 0 2px 8px #223;
    backdrop-filter: blur(6px);
    transition: background 0.3s;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    position: relative;
}

.header.scrolled {
    background: rgba(30, 30, 30, 0.75);
}

.icono {
    height: 50px;
    width: auto;
    z-index: 2;
    transition: height 0.3s;
    margin-right: 24px;
}

.menu-alt {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    color: #fff;
    text-shadow: 0 2px 8px #000;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 10px 15px;
    transition: all 0.3s ease;
    border-radius: 5px;
    position: relative;
}

.main-nav a:hover,
.main-nav a:focus {
    color: #aa8c65;
}

.main-nav li {
    margin: 0;
    padding: 0;
}

.header h1 {
    text-align: center;
    font-size: 2.2rem;
    font-family: 'Georgia', serif;
    font-weight: bold;
    margin: 0;
    padding: 8px 0 16px 0;
    letter-spacing: 1px;
}

/* BANNER */
.banner-inicio, #inicio {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.banner-img {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(0.7);
    margin: 0;
    padding: 0;
}

.banner-contenido {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.banner-contenido h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
    text-shadow: 0 2px 8px #000;
}

.banner-contenido p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 8px #000;
}

.banner-btn {
    display: inline-block;
    background: #ffd700;
    color: #222;
    padding: 0.8em 2em;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 2px 8px #2224;
}
.banner-btn:hover {
    background: #fff;
    color: #222;
}

/* Carrusel de servicios */
.carrusel-servicios {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    height: 400px;
    position: relative;
    overflow: hidden;
    padding: 0 20px;
}

.carrusel-imagenes {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: visible;
}

#servicios {
    display: flex;
    justify-content: center;
    min-height: 100vh;
    flex-direction: column;
    background: #b6a691;
    padding: 40px 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

#servicios h1 {
    margin-top: 40px;
    text-align: center;
    margin-bottom: 30px; 
    font-size: 2.2rem;
}

.intro-servicios {
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #333;
    text-align: justify;
    padding: 0 20px;
}

.servicio {
    display: flex;
    filter: blur(4px) grayscale(60%);
    transform: scale(0.8);
    transition: 
        opacity 0.4s,
        filter 0.4s,
        transform 0.4s;
    position: absolute;
    left: 50%;
    top: 50%;
    pointer-events: none;
    z-index: 1;
    box-shadow: 0 2px 26px #233;
    width: 70%;
    max-width: 600px;
    height: 320px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    transform: translate(-50%, -50%) scale(0.8);
    border-radius: 16px;
    overflow: hidden;
}

.servicio img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.servicio p {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 20px;
    font-size: 1.3rem;
    color: white;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
    text-align: center;
    border-radius: 0 0 16px 16px;
    pointer-events: none;
    font-weight: 500;
}

.servicio.activo {
    opacity: 1;
    filter: none;
    transform: translate(-50%, -50%) scale(1);
    z-index: 2;
    pointer-events: auto;
}

.servicio.anterior {
    opacity: 0.6;
    filter: blur(3px) grayscale(60%);
    left: 20%;
    z-index: 1;
    transform: translate(-50%, -50%) scale(0.85);
}

.servicio.siguiente {
    opacity: 0.6;
    filter: blur(3px) grayscale(60%);
    left: 80%;
    z-index: 1;
    transform: translate(-50%, -50%) scale(0.85);
}

.carrusel-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    border-radius: 50%;
    position: relative;
    width: 50px;
    height: 50px;
    transition: all 0.3s ease;
    z-index: 10;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    flex-shrink: 0;
}
.carrusel-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* SECCIÓN HABITACIONES */
#habitaciones {
    display: flex;
    justify-content: center;
    min-height: 600px;
    flex-direction: column;
    background-color: #ddc8aa; 
    padding: 40px 0;
    position: relative;
    z-index: 1;
}

#habitaciones h1 {
    text-align: center;
    margin-top: 40px; 
    margin-bottom: 30px; 
    font-size: 2.2rem;
}

.intro-habitaciones {
    max-width: 800px;
    margin: 0 auto 50px auto;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #333;
    text-align: justify;
    padding: 0 20px;
}

.habitaciones {
    text-align: center;
    padding: 0 20px 40px 20px;
    background-color: transparent;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 0 auto;
    max-width: 1200px;
}

.grid button {
  width: 100%;
  background: #8A4A3C;
  color: rgb(241, 228, 202);
  border: none;
  padding: 10px;
  border-radius: none;
  border-top: 10px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background 0.3s ease;
}

.grid p {
    transform: translateY(-40px);
}

.grid button:hover {
    background: #58362c;
}

.habitacion {
    position: relative;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px #2223; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.habitacion:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.habitacion a {
    text-decoration: none;
    display: block;
    color: #fff;
}

.habitacion img {
    width: 100%;
    height: 300px;
    object-fit: cover; 
    display: block;
}

.habitacion p {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 10px;
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
    font-weight: 500;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(0deg, #0007 60%, transparent 100%);
}

/* FOOTER */
.footer {
    background-color: #8A4A3C; 
    color: #ffffff;
    padding: 1rem 0.5rem;
    width: auto;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}
.footer-marcas {
    text-align: center;
    margin-bottom: 1rem;
    justify-content: center;
    align-items: center;
}

 .footer-marcas img {
    height: 80px;
    width: auto;
    margin: 0;
    z-index: 2;
}

.footer-rrss {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.social-rrss-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 1rem;
    align-items: center;
}

.legal-info p {
    margin: 0 0 0.5rem 0; 
    text-align: center;
}

.social-rrss-links a {
    color: #ffffff;
    font-size: 2rem;
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-rrss-links a:hover {
    color: #e0e0e0;
    transform: scale(1.2);
}

.legal-info {
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
}

.legal-info a {
    color: #ffffff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.legal-info a:hover {
    color: #e0e0e0;
}

/* Menú desplegable */
#menu_bar {
    display: none;
}

.menu-alt {
    display: none;
    cursor: pointer;
    padding: 10px;
    color: #fff;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .menu-alt {
        display: block;
    }
    .header-container {
        justify-content: space-between;
    }
    .main-nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(95, 95, 95, 0.7);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }
    #menu_bar:checked ~ .header .main-nav {
        transform: translateX(0);
    }
}

@media (min-width: 769px) {
    .header-container {
        justify-content: center;
    }
    .menu-alt {
        display: none;
    }
    .main-nav {
        margin-left: auto;
        transform: none;
        background: none;
        box-shadow: none;
        backdrop-filter: none;
    }
    .main-nav ul {
        flex-direction: row;
        gap: 30px;
        padding: 0;
        align-items: center;
    }
    .main-nav a {
        padding: 10px 15px;
        text-align: center;
        border-radius: 5px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    #servicios,
    #habitaciones {
        min-height: auto;
        padding: 30px 15px;
    }
    
    #servicios h1,
    #habitaciones h1 {
        font-size: 1.8rem;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .intro-servicios,
    .intro-habitaciones {
        font-size: 1rem;
        padding: 0 15px;
        margin-bottom: 30px;
        text-align: left;
    }
    
    /* Carrusel móvil */
    .carrusel-servicios {
        height: 300px;
        padding: 0 50px;
    }
    
    .servicio {
        width: 90%;
        height: 250px;
    }
    
    .servicio p {
        font-size: 1.1rem;
        padding: 12px;
    }
    
    .servicio.anterior,
    .servicio.siguiente {
        display: none; /* Ocultar servicios laterales en móvil */
    }
    
    .carrusel-btn {
        font-size: 1.5rem;
        width: 45px;
        height: 45px;
    }
    
    .carrusel-btn.prev {
        left: 5px;
    }
    
    .carrusel-btn.next {
        right: 5px;
    }
    
    /* Grid habitaciones móvil - SOLO RESPONSIVIDAD BÁSICA */
    .grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 0 auto;
        padding: 0 15px;
    }
    
    .habitacion img {
        height: 250px;
    }
}

/* Mobile pequeño */
@media (max-width: 480px) {
    .intro-servicios,
    .intro-habitaciones {
        font-size: 0.95rem;
        text-align: left;
    }
    
    .carrusel-servicios {
        height: 250px;
        padding: 0 40px;
    }
    
    .servicio {
        height: 200px;
    }
    
    .servicio p {
        font-size: 1rem;
        padding: 10px;
    }
    
    .habitacion img {
        height: 220px;
    }
    
    .habitacion p {
        font-size: 1.1rem;
    }
}