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

:target {
    padding-top: 280px;
}

/* 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;
}


/* Estilo para carrusel */
.room-carrusel {
    position: relative;
    width: 60%;
    height: 450px; 
    max-width: 600px;
    overflow: hidden; 
    margin: 0 auto;
    display: block;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background-color: #f5f5f5;
}

.carrusel-imagenes {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease-in-out;
}

.room-img {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
    box-sizing: border-box; 
    position: relative; 
    display: block;
}

.room-img img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}

.carrusel-navprev-btn,
.carrusel-navnext-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    color: #444;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.5em;
    z-index: 100;
    border-radius: 10px;
    transition: background-color 0.3s ease;
    pointer-events: auto;
}

.carrusel-navprev-btn:hover,
.carrusel-navnext-btn:hover {
    background-color: rgba(255, 255, 255, 0.95);
    transform: translateY(-50%) scale(1.05); 
}

.carrusel-navprev-btn {
    left: 15px;
}

.carrusel-navnext-btn {
    right: 15px;
}

/* Estilos para la estructura de la página */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #f0f2f5;
    padding-top: 20px;
}

.habitacion-principal {
    width: 100%;
    height: 100%;
    justify-content: center;
    box-sizing: border-box;
    margin-top: 100px;
}

.carrusel-y-detalles {
    display: flex;
    gap: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 0 20px;
    width: calc(100% - 40px);
    max-width: 1400px;
    box-sizing: border-box;
    position: relative;
    align-items: stretch;
}

.room-details {
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
}

.room-carrusel, .room-details {
    min-height: 100%;
}

.room-details h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #333;
    text-align: left;
    border-bottom: 2px solid #8A4A3C;
    padding-bottom: 5px;
}

.room-details p {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 1rem;
    text-align: justify;
}

.reserva-btn {
    margin-top: 0;
    margin-bottom: 0.5rem;
    display: block;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding: 12px 0;
    background-color: #8A4A3C;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.reserva-btn:hover {
    background-color: #a85c47;
}

.amenidades-link {
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    margin: 20px 0;
}

.amenities-box {
    background-color: #ffe08a;
    padding: 0.5rem 0.8rem;
    font-size: 1rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.amenities-grid h3 {
    font-size: 0.8rem; 
    margin: 0.4rem 0 0.2rem 0; 
}

.amenities-box ul {
    margin-top: 0.5rem;
    padding-left: 1rem;
}

.amenities-box ul li {
    font-size: 0.75rem;
    margin-bottom: 0.15rem; 
    line-height: 1.3; 
}

/* Responsividad para móviles */
@media (max-width: 768px) {
    .carrusel-y-detalles {
        flex-direction: column;
        margin: 0 10px;
        width: calc(100% - 20px);
        padding: 20px;
    }
    .room-carrusel,
    .room-details {
        width: 100%;
    }
    .room-carrusel {
        height: 350px;
    }
    .amenities-box {
        max-width: none; 
        margin: 1rem 0;
    }
    .carrusel-y-detalles {
        padding: 20px;
    }
}

/* 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;
    }
}