*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --obsidian: #101011;
    --warm-white: #f7f3ee;
    --clay: #1564be;
    --sage: #2b7de9;
    --stone: #c9c0b4;
    --muted: #6b6259;
    --card-bg: #f0ebe4;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--warm-white);
    color: var(--obsidian);
    font-size: 16px;
    line-height: 1.6;
}

/* NAV */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 4rem;
    background: rgba(26, 23, 20, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(181, 112, 74, 0.2);
    transition: background 0.3s;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.12em;
    color: var(--warm-white);
    text-decoration: none;
}

.logo span {
    color: var(--clay);
}

.nav-links {
    display: flex;
    gap: 2.2rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--stone);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--clay);
}

/* HERO */
#inicio {
    height: 100vh;
    background:
        linear-gradient(to bottom, rgba(26, 23, 20, 0.55) 0%, rgba(26, 23, 20, 0.3) 50%, rgba(26, 23, 20, 0.7) 100%),
        url('https://res.cloudinary.com/dumwaw5hn/image/upload/v1781757367/entradaHotel_gig92b.webp?w=1800&q=80') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
}

.hero-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--clay);
    margin-bottom: 1.2rem;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 300;
    line-height: 1.05;
    color: var(--warm-white);
    margin-bottom: 1.5rem;
}

.hero-title em {
    font-style: italic;
    color: var(--clay);
}

.hero-sub {
    font-size: 1rem;
    font-weight: 300;
    color: var(--stone);
    max-width: 480px;
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-block;
    padding: 0.85rem 2.2rem;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--clay);
    color: var(--warm-white);
    transition: background 0.25s, color 0.25s;
}

.btn:hover {
    background: var(--clay);
}

/* SECTIONS */
section {
    padding: 6rem 4rem;
}

.section-label {
    font-size: 0.68rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--clay);
    margin-bottom: 0.8rem;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--obsidian);
    margin-bottom: 1.5rem;
}

.section-title em {
    font-style: italic;
    color: var(--clay);
}

/* NOSOTROS */
#nosotros {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    background: var(--obsidian);
    color: var(--warm-white);
    padding: 7rem 4rem;
}

#nosotros .section-title {
    color: var(--warm-white);
}

.nosotros-text p {
    font-weight: 300;
    color: var(--stone);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.nosotros-img {
    position: relative;
    height: 520px;
}

.nosotros-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nosotros-img::before {
    content: '';
    position: absolute;
    top: -16px;
    left: -16px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--clay);
    z-index: 0;
}

.nosotros-img img {
    position: relative;
    z-index: 1;
}

.stat-row {
    display: flex;
    gap: 2.5rem;
    margin-top: 2rem;
}

.stat {
    border-left: 2px solid var(--clay);
    padding-left: 1rem;
}

.stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--clay);
}

.stat-desc {
    font-size: 0.75rem;
    color: var(--stone);
    letter-spacing: 0.05em;
}

/* SERVICIOS */
#servicios {
    background: var(--warm-white);
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
}

.service-card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    text-align: left;
    border-bottom: 2px solid transparent;
    transition: border-color 0.25s;
}

.service-card:hover {
    border-color: var(--clay);
}

.service-icon {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    display: block;
}

.service-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: 0.6rem;
}

.service-card p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.7;
}

/* GALERIA */
#galeria {
    background: var(--obsidian);
}

#galeria .section-title {
    color: var(--warm-white);
}

#galeria .section-label {
    color: var(--clay);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 260px 260px;
    gap: 6px;
    margin-top: 3rem;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.85);
    transition: filter 0.3s;
}

.gallery-grid img:hover {
    filter: brightness(1);
}

.gallery-main {
    grid-row: 1 / 3;
}

/* HABITACIONES */
#habitaciones {
    background: var(--warm-white);
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    margin-top: 3rem;
}

.room-card {
    background: var(--card-bg);
    overflow: hidden;
}

.room-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.room-info {
    padding: 1.5rem;
}

.room-info h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 0.4rem;
}

.room-info p {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.room-price {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
}

.price-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 300;
    color: var(--clay);
}

.price-label {
    font-size: 0.75rem;
    color: var(--muted);
}

.room-features {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.feature-tag {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.6rem;
    border: 1px solid var(--stone);
    color: var(--muted);
    text-transform: uppercase;
}

.btn-room {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: 1px solid var(--obsidian);
    color: var(--obsidian);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.btn-room:hover {
    background: var(--obsidian);
    color: var(--warm-white);
}

/* CONTACTO */
#contacto {
    background: var(--obsidian);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

#contacto .section-title {
    color: var(--warm-white);
}

#contacto .section-label {
    color: var(--clay);
}

.contact-info p {
    font-size: 0.9rem;
    color: var(--stone);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--clay);
    margin-bottom: 0.2rem;
}

.detail-value {
    font-size: 0.92rem;
    color: var(--stone);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    background: rgba(247, 243, 238, 0.07);
    border: 1px solid rgba(201, 192, 180, 0.25);
    padding: 0.9rem 1.1rem;
    color: var(--warm-white);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
    resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--clay);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--muted);
}

.contact-form textarea {
    height: 130px;
}

.btn-send {
    padding: 0.9rem;
    background: var(--clay);
    color: var(--warm-white);
    border: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-send:hover {
    opacity: 0.88;
}

/* REDES */
#redes {
    background: var(--warm-white);
    text-align: center;
    padding: 4rem 4rem;
}

.social-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--muted);
    transition: color 0.2s;
}

.social-link:hover {
    color: var(--clay);
}

.social-icon {
    width: 48px;
    height: 48px;
    border: 1px solid var(--stone);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: border-color 0.2s, background 0.2s;
}

.social-link:hover .social-icon {
    border-color: var(--clay);
    background: rgba(181, 112, 74, 0.08);
}

.social-label {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* FOOTER */
footer {
    background: var(--obsidian);
    padding: 2.5rem 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(181, 112, 74, 0.15);
}

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--warm-white);
    letter-spacing: 0.1em;
}

.footer-logo span {
    color: var(--clay);
}

footer p {
    font-size: 0.75rem;
    color: var(--muted);
}

.footer-nav {
    display: flex;
    gap: 1.8rem;
    list-style: none;
}

.footer-nav a {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--clay);
}

/* DIVIDER */
.divider {
    width: 40px;
    height: 1px;
    background: var(--clay);
    margin: 1rem 0 1.5rem;
}

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    background: none;
    border: 1px solid rgba(201, 192, 180, 0.25);
    padding: 8px;
    z-index: 300;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--warm-white);
    transition: transform 0.35s, opacity 0.25s;
    transform-origin: center;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/*OVERLAY*/
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-overlay.open {
    display: block;
    opacity: 1;
}

/* DRAWER */
.nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: var(--obsidian);
    border-left: 1px solid rgba(181, 112, 74, 0.2);
    z-index: 250;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.nav-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.3rem 1.5rem;
    border-bottom: 1px solid rgba(181, 112, 74, 0.15);
}

.drawer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--warm-white);
    text-decoration: none;
}

.drawer-logo span {
    color: var(--clay);
}

.drawer-close {
    background: none;
    border: 1px solid rgba(201, 192, 180, 0.25);
    color: var(--stone);
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, color 0.2s;
    line-height: 1;
}

.drawer-close:hover {
    border-color: var(--clay);
    color: var(--clay);
}

.drawer-links {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 1rem 0;
    flex: 1;
}

.drawer-links li a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.8rem;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--stone);
    text-decoration: none;
    border-bottom: 1px solid rgba(201, 192, 180, 0.07);
    transition: color 0.2s, background 0.2s, padding-left 0.2s;
}

.drawer-links li a:hover {
    color: var(--clay);
    background: rgba(181, 112, 74, 0.06);
    padding-left: 2.2rem;
}

.drawer-links li a .nav-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.7rem;
    color: var(--clay);
    opacity: 0.7;
    min-width: 18px;
}

.drawer-footer {
    padding: 1.5rem 1.8rem;
    border-top: 1px solid rgba(181, 112, 74, 0.15);
}

.drawer-footer p {
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.05em;
    line-height: 1.6;
}

.drawer-footer a {
    color: var(--clay);
    text-decoration: none;
    font-size: 0.78rem;
    display: block;
    margin-top: 0.4rem;
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(26, 23, 20, 0.97);
        backdrop-filter: blur(10px);
        align-items: center;
        justify-content: center;
        z-index: 150;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 1.2rem 0;
        font-size: 1.1rem;
        letter-spacing: 0.25em;
        border-bottom: 1px solid rgba(201, 192, 180, 0.1);
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    section {
        padding: 4rem 1.5rem;
    }

    #nosotros,
    #contacto {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 4rem 1.5rem;
    }

    .services-grid,
    .rooms-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .gallery-main {
        grid-row: auto;
    }

    footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nosotros-img {
        height: 320px;
    }
}

/*Estilo del botón de WhatsApp*/
#wa-btn {
    position: fixed;
    bottom: 1.8rem;
    right: 1.8rem;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: #25d366;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.3rem 0.75rem 1rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: transform 0.2s, box-shadow 0.2s, padding 0.3s;
    overflow: hidden;
    max-width: 260px;
}

#wa-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

#wa-btn svg {
    flex-shrink: 0;
}

#wa-label {
    white-space: nowrap;
    transition: max-width 0.4s ease, opacity 0.3s ease;
    max-width: 200px;
    opacity: 1;
}

/* En movil mostrar solo el icono */
@media (max-width: 600px) {
    #wa-btn {
        padding: 0.85rem;
        border-radius: 50%;
    }

    #wa-label {
        max-width: 0;
        opacity: 0;
        display: none;
    }
}