/* ============================================================
   HOTEL CASA VALLE — Landing Page
   ============================================================ */

:root {
    --green-dark:  #1d3d2a;
    --green-mid:   #2d5a3d;
    --gold:        #b8933a;
    --gold-light:  #d4a84b;
    --cream:       #faf6f0;
    --beige:       #e8e0d5;
    --white:       #ffffff;
    --text-dark:   #2a2a2a;
    --text-mid:    #555555;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Raleway', sans-serif;
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.7;
}

img { display: block; max-width: 100%; }

/* ---- Container ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.4rem 2rem;
    transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
    background: rgba(29, 61, 42, 0.97);
    padding: 0.9rem 2rem;
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 56px;
    object-fit: contain;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--gold-light); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: heroZoom 22s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1.0); }
    to   { transform: scale(1.08); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(8, 22, 13, 0.60) 0%,
        rgba(8, 22, 13, 0.35) 55%,
        rgba(8, 22, 13, 0.72) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding: 2rem;
    max-width: 820px;
}

.hero-logo {
    height: 110px;
    margin: 0 auto 2.2rem;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.55));
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.1rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.02em;
}

.hero-content .subtitle {
    font-size: clamp(0.95rem, 2.2vw, 1.2rem);
    font-weight: 300;
    letter-spacing: 0.12em;
    margin-bottom: 2.8rem;
    opacity: 0.9;
}

.gold-line {
    width: 60px;
    height: 2px;
    background: var(--gold-light);
    margin: 0 auto 1.6rem;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 3rem;
    border: 2px solid var(--gold-light);
    color: var(--gold-light);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    transition: background 0.3s ease, color 0.3s ease;
}

.btn-primary:hover {
    background: var(--gold-light);
    color: var(--green-dark);
}

/* ============================================================
   INTRO
   ============================================================ */
.intro {
    padding: 7rem 0;
    background: var(--white);
}

.intro-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

/* ============================================================
   SHARED SECTION HEADER
   ============================================================ */
.section-header { text-align: center; margin-bottom: 4rem; }

.tagline {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.9rem;
}

.section-header h2,
.intro-inner h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    color: var(--green-dark);
    margin-bottom: 1.1rem;
    line-height: 1.25;
}

.section-header p,
.intro-inner p {
    color: var(--text-mid);
    font-size: 1.02rem;
    font-weight: 300;
    line-height: 1.85;
    max-width: 620px;
    margin: 0 auto;
}

.divider {
    width: 55px;
    height: 2px;
    background: var(--gold);
    margin: 1.4rem auto 0;
}

/* ============================================================
   ROOMS
   ============================================================ */
.rooms {
    padding: 7rem 0;
    background: var(--cream);
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.room-card {
    background: var(--white);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.room-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.14);
}

.room-image {
    position: relative;
    height: 270px;
    overflow: hidden;
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.room-card:hover .room-image img { transform: scale(1.06); }

.room-overlay {
    position: absolute;
    inset: 0;
    background: rgba(29, 61, 42, 0.62);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.room-card:hover .room-overlay { opacity: 1; }

.btn-reserve {
    display: inline-block;
    padding: 0.75rem 2.2rem;
    background: var(--gold);
    color: var(--white);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: background 0.3s;
}

.btn-reserve:hover { background: var(--gold-light); }

.room-info { padding: 1.8rem 2rem 2rem; }

.room-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    color: var(--green-dark);
    margin-bottom: 0.7rem;
}

.room-info p {
    color: var(--text-mid);
    font-size: 0.94rem;
    line-height: 1.75;
    margin-bottom: 1.3rem;
}

.room-features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.room-features li {
    background: var(--cream);
    border: 1px solid var(--beige);
    color: var(--green-mid);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.28rem 0.75rem;
    text-transform: uppercase;
}

/* ============================================================
   AMENITIES
   ============================================================ */
.amenities {
    padding: 7rem 0;
    background: var(--green-dark);
}

.amenities .section-header h2 { color: var(--white); }
.amenities .tagline             { color: var(--gold-light); }
.amenities .section-header p   { color: rgba(255, 255, 255, 0.68); }
.amenities .divider             { background: var(--gold-light); }

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
}

.amenity-card {
    position: relative;
    height: 370px;
    overflow: hidden;
    cursor: default;
}

.amenity-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.amenity-card:hover img { transform: scale(1.08); }

.amenity-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 2.5rem 2rem 1.8rem;
    background: linear-gradient(to top, rgba(8, 22, 13, 0.92) 0%, transparent 100%);
    color: var(--white);
}

.amenity-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.55rem;
    margin-bottom: 0.3rem;
}

.amenity-info p {
    font-size: 0.88rem;
    font-weight: 300;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.amenity-card:hover .amenity-info p {
    opacity: 0.88;
    transform: translateY(0);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
    padding: 7rem 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 3rem;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.info-item { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }

.info-icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--cream);
    border: 1px solid var(--beige);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.info-item h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: var(--green-dark);
    margin-bottom: 0.15rem;
}

.info-item p {
    color: var(--text-mid);
    font-size: 0.9rem;
    line-height: 1.6;
}
.info-item a {
    color: var(--green-mid);
    text-decoration: none;
}
.info-item a:hover { color: var(--gold); text-decoration: underline; }

.maps-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.maps-link:hover { border-bottom-color: var(--gold); }

.maps-embed {
    margin-top: 3rem;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--green-dark);
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    padding: 3rem 2rem;
}

.footer-logo {
    height: 65px;
    margin: 0 auto 1.4rem;
    object-fit: contain;
    opacity: 0.85;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.footer p { font-size: 0.82rem; letter-spacing: 0.05em; }

/* ============================================================
   HAMBURGER MENU
   ============================================================ */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1100;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   RESPONSIVE — Tablet (≤ 1024 px)
   ============================================================ */
@media (max-width: 1024px) {
    .container { padding: 0 1.5rem; }

    .rooms-grid     { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
    .amenities-grid { grid-template-columns: repeat(2, 1fr); }

    .hero-content h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
    .intro, .rooms, .amenities, .contact { padding: 5rem 0; }
}

/* ============================================================
   RESPONSIVE — Mobile (≤ 768 px)
   ============================================================ */
@media (max-width: 768px) {
    /* Navbar */
    .hamburger { display: flex; }

    /*
     * El menú cae DEBAJO del navbar (position:absolute relativo al navbar
     * position:fixed), así el botón hamburger nunca queda tapado.
     */
    .nav-links {
        display: none;
        position: absolute;   /* relativo al .navbar que es position:fixed */
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(29, 61, 42, 0.97);
        flex-direction: column;
        gap: 0;
        padding: 0;
        box-shadow: 0 8px 24px rgba(0,0,0,0.3);
        border-top: 1px solid rgba(255,255,255,0.12);
    }
    .nav-links.open { display: flex; }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .nav-links li:last-child { border-bottom: none; }
    .nav-links a {
        display: block;
        padding: 1rem 1.8rem;
        font-size: 0.9rem;
        letter-spacing: 0.1em;
        text-align: left;
    }

    /* Hero */
    .hero { min-height: 100svh; }
    .hero-logo  { height: 80px; }
    .hero-content h1 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
    .hero-content .subtitle { font-size: 0.9rem; letter-spacing: 0.06em; }
    .btn-primary { padding: 0.85rem 2rem; font-size: 0.75rem; }

    /* Intro */
    .intro, .rooms, .amenities, .contact { padding: 4rem 0; }
    .section-header { margin-bottom: 2.5rem; }

    /* Rooms */
    .rooms-grid  { grid-template-columns: 1fr; max-width: 100%; gap: 1.5rem; }
    .room-image  { height: 220px; }
    .room-info   { padding: 1.3rem 1.5rem 1.5rem; }

    /* Amenities */
    .amenities-grid { grid-template-columns: 1fr; gap: 1rem; }
    .amenity-card   { height: 260px; }
    .amenity-info p { opacity: 0.85; transform: none; }

    /* Contact */
    .contact-grid { grid-template-columns: 1fr; gap: 1.8rem; max-width: 360px; }

    /* Footer */
    .footer-logo { height: 50px; }
}

/* ============================================================
   RESPONSIVE — Small phone (≤ 480 px)
   ============================================================ */
@media (max-width: 480px) {
    .container { padding: 0 1rem; }

    .nav-logo img { height: 44px; }

    .hero-content { padding: 1rem; }
    .hero-logo    { height: 65px; margin-bottom: 1.4rem; }
    .gold-line    { margin-bottom: 1rem; }

    .room-image { height: 190px; }
    .room-features li { font-size: 0.68rem; }

    .amenity-card { height: 220px; }

    .intro-inner h2,
    .section-header h2 { font-size: 1.7rem; }

    .btn-primary { width: 100%; text-align: center; }
}
