/* CONFIGURACIÓN GENERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #E8E4DF;
    color: #3f2500;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #3f2500;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #D2A679; /* Café y maní */
    margin: 10px auto 0 auto;
}

/* BARRA DE NAVEGACIÓN */
header {
    background-color: #e9e9e8;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 10%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo img {
    max-height: 70px;
    width: auto;
    display: block;
}

/* Logo as home button */
.logo a {
    display: inline-block;
    text-decoration: none;
}

.logo a:focus {
    outline: 2px solid #D2A679;
    outline-offset: 4px;
}

.logo a img {
    cursor: pointer;
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: #3f2500;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #d4af37;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #3f2500;
    font-size: 1.8rem;
    cursor: pointer;
}

.menu-toggle:focus {
    outline: 2px solid #D2A679;
    outline-offset: 4px;
}

.main-nav {
    display: block;
}

.main-nav.open {
    width: 260px;
}

.main-nav ul {
    display: flex;
    align-items: center;
}

/* SECCIÓN HERO (INICIO) */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('FOTO PORTADA/1.jpg') no-repeat center center/cover;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-principal {
    background-color: #D2A679;
    color: #3f2500;
    padding: 0.8rem 2rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s, transform 0.3s;
}

.btn-principal:hover {
    background-color: #A3754A;
    transform: scale(1.05);
}

/* SECCIÓN HABITACIONES */
.rooms-section {
    padding: 5rem 10%;
}

.room-category-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0 0.5rem 0;
}

.room-category-header span {
    font-weight: 700;
    color: #3f2500;
}

.room-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.room-category-button {
    background: #fff;
    border: 1px solid #A3754A;
    color: #3f2500;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.room-category-button:hover {
    background: #A3754A;
    color: #fff;
    border-color: #A3754A;
}

.room-category-button.active {
    background: #A3754A;
    color: #fff;
    border-color: #A3754A;
}

.category-heading {
    margin: 1rem 0 1.5rem 0;
    font-size: 1.4rem;
    color: #3f2500;
}

.no-rooms-message {
    padding: 2rem;
    background: #fff7e6;
    border: 1px solid #E5C291;
    border-radius: 8px;
    text-align: center;
    color: #5D4037;
}

.rooms-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.room-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.room-card:hover {
    transform: translateY(-5px);
}

.room-carousel {
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #000;
    aspect-ratio: 16 / 10;
    min-height: 220px;
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    padding: 0.5rem;
    background-color: #000;
}

.room-grid-item {
    overflow: hidden;
    border-radius: 8px;
    background-color: #111;
    aspect-ratio: 1 / 1;
}

.room-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.slide.active {
    display: block;
}

.room-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.8rem;
    height: 2.8rem;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    color: #3f2500;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    transition: background 0.2s ease;
}

.carousel-button:hover {
    background: #fff;
}

.carousel-button.prev {
    left: 0.75rem;
}

.carousel-button.next {
    right: 0.75rem;
}

.carousel-indicators {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
    border: 1px solid #A3754A;
    cursor: pointer;
}

.indicator.active {
    background: #A3754A;
}

.room-info {
    padding: 1.5rem;
}

.room-info h3 {
    margin-bottom: 0.5rem;
    color: #3f2500;
}

.room-info p {
    color: #3f2500;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.room-info .price {
    font-weight: bold;
    color: #A3754A;
    font-size: 1.2rem;
}

/* SECCIÓN SERVICIOS */
.services-section {
    background-color: #A3754A;
    color: #fff;
    padding: 5rem 10%;
}

.services-section h2 {
    color: #fff;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.service-box i {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

/* SECCIÓN RESERVAS */
.booking-section {
    padding: 5rem 10%;
    background-color: #f0f0f0;
}

.booking-container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.btn-submit {
    width: 100%;
    background-color: #A3754A;
    color: #ffffff;
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn-submit:hover {
    background-color: #A3754A;
    color: #3E2723;
}

.resultado-box {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #f5efe9;
    border-left: 5px solid #A3754A;
    border-radius: 4px;
}

.hidden {
    display: none;
}

/* PIE DE PÁGINA */
footer {
    background-color: #A3754A;
    color: #ffffff;
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    border-top: 1px solid #634B44;
}
footer i {
    color: #D2A679;
}

.whatsapp-button {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 3.8rem;
    height: 3.8rem;
    border-radius: 50%;
    background-color: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25);
    z-index: 1005;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35);
}

@media (max-width: 768px) {
    .whatsapp-button {
        right: 1rem;
        bottom: 1rem;
        width: 3.4rem;
        height: 3.4rem;
    }
}

@media (max-width: 1024px) {
    header {
        padding: 1.5rem 6%;
    }

    .hero {
        height: 80vh;
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .rooms-section,
    .services-section,
    .booking-section {
        padding: 4rem 6%;
    }
}

@media (max-width: 768px) {
    header {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        padding: 1.2rem 1.5rem;
    }

    .logo {
        position: relative;
        z-index: 1002;
    }

    .logo img {
        max-height: 56px;
        width: auto;
        display: block;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        position: relative;
        z-index: 1003;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        width: 0;
        height: 100vh;
        overflow: hidden;
        background: rgba(233,233,232,0.98);
        box-shadow: -4px 0 16px rgba(0,0,0,0.12);
        transition: transform 0.3s ease, width 0.3s ease;
        transform: translateX(100%);
        z-index: 1001;
    }

    .main-nav.open {
        width: 260px;
        transform: translateX(0);
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 1.5rem;
        gap: 1.5rem;
    }

    nav ul li {
        margin: 0;
    }

    .hero {
        height: auto;
        padding: 4rem 1.5rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
        max-width: 700px;
        margin: 0 auto 1.5rem auto;
    }

    .rooms-container {
        grid-template-columns: 1fr;
    }

    .services-container {
        grid-template-columns: 1fr;
    }

    .booking-container {
        max-width: 100%;
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    header {
        padding: 1rem 1.5rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .btn-principal {
        padding: 0.75rem 1.5rem;
    }

    .service-box i {
        font-size: 2.3rem;
    }

    .booking-section {
        padding: 3rem 1.5rem;
    }
}


