/* =========================================================
   Hostal Feliza — estilos
   Paleta: pino del sur + ámbar cálido + crema
   ========================================================= */

:root {
    --green-900: #0f2b22;
    --green-800: #16332b;
    --green-700: #1f4d40;
    --green-600: #2f6b58;
    --amber: #d98e4f;
    --amber-dark: #c2703d;
    --cream: #f7f2ea;
    --cream-2: #efe7da;
    --ink: #25211c;
    --muted: #6f6658;
    --white: #ffffff;
    --line: rgba(37, 33, 28, .12);

    --radius: 16px;
    --radius-lg: 26px;
    --shadow: 0 18px 50px -28px rgba(15, 43, 34, .55);
    --shadow-sm: 0 8px 24px -16px rgba(15, 43, 34, .5);
    --container: 1160px;
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.12;
    margin: 0 0 .5em;
    letter-spacing: -.01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: .76rem;
    font-weight: 600;
    color: var(--amber);
    margin-bottom: .8rem;
}
.eyebrow--dark { color: var(--amber-dark); }

.muted { color: var(--muted); }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 999;
    background: var(--green-800); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: var(--font-body); font-weight: 600; font-size: .95rem;
    padding: .8rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
    cursor: pointer; text-decoration: none; transition: .22s ease;
    white-space: nowrap;
}
.btn-lg { padding: 1rem 2rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--amber); color: #2a1a0c; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--amber-dark); color: #fff; transform: translateY(-2px); }
.btn-light { background: var(--white); color: var(--green-800); }
.btn-light:hover { background: var(--cream-2); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(37,33,28,.06); }
.btn-outline { background: transparent; border-color: var(--green-700); color: var(--green-700); }
.btn-outline:hover { background: var(--green-700); color: #fff; }

/* ---------- Header / nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(247, 242, 234, .85);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--green-800); }
.brand-mark {
    display: grid; place-items: center; width: 40px; height: 40px;
    background: var(--green-800); color: var(--amber); border-radius: 12px;
}
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1; display: flex; flex-direction: column; }
.brand-name small { font-family: var(--font-body); font-weight: 500; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav-menu { display: flex; align-items: center; gap: .4rem; }
.nav-menu > a { padding: .5rem .85rem; text-decoration: none; font-weight: 500; border-radius: 999px; color: var(--ink); transition: .2s; }
.nav-menu > a:not(.btn):hover { color: var(--green-700); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--green-800); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(92vh, 760px); display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    background-color: var(--green-800);
    transform: scale(1.04); z-index: 0;
}
.hero-inner { position: relative; z-index: 1; padding: 6rem 0 5rem; max-width: 720px; }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero .eyebrow { color: #f3c99a; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(255,255,255,.92); max-width: 600px; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.4rem; }
.hero-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .7rem; padding: 0; margin: 0; }
.hero-chips li {
    font-size: .9rem; font-weight: 500; padding: .5rem 1rem; border-radius: 999px;
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(4px);
}
.hero-scroll {
    position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 1;
    width: 44px; height: 44px; display: grid; place-items: center; color: #fff;
    border: 1px solid rgba(255,255,255,.5); border-radius: 999px; text-decoration: none; font-size: 1.1rem;
    animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0);} 50% { transform: translateX(-50%) translateY(6px);} }

/* ---------- Secciones genéricas ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tint { background: var(--cream-2); }
.section--dark { background: var(--green-800); color: #fff; }
.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section-lead { color: var(--muted); font-size: 1.08rem; }
.section--dark .section-lead { color: rgba(255,255,255,.8); }

/* ---------- Bienvenida ---------- */
.welcome-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.welcome-text h2 { color: var(--green-800); }
.welcome-stats { display: flex; gap: 1.8rem; margin-top: 2rem; flex-wrap: wrap; }
.welcome-stats div { display: flex; flex-direction: column; }
.welcome-stats strong { font-family: var(--font-display); font-size: 1.8rem; color: var(--green-700); }
.welcome-stats span { font-size: .85rem; color: var(--muted); }
.welcome-media { position: relative; }
.welcome-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; background: var(--cream-2); }
.welcome-badge {
    position: absolute; bottom: -22px; left: -22px; background: var(--amber); color: #2a1a0c;
    padding: 1.1rem 1.3rem; border-radius: 18px; box-shadow: var(--shadow); text-align: center; line-height: 1.15;
}
.welcome-badge strong { font-family: var(--font-display); font-size: 1.1rem; }
.welcome-badge span { font-size: .8rem; }

/* ---------- Habitaciones ---------- */
.rooms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.room-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.room-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.room-img { position: relative; aspect-ratio: 16/10; background: var(--cream-2); overflow: hidden; }
.room-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.room-card:hover .room-img img { transform: scale(1.05); }
.tag {
    position: absolute; top: 14px; left: 14px; background: var(--green-800); color: #fff;
    font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    padding: .35rem .8rem; border-radius: 999px;
}
.tag--amber { background: var(--amber); color: #2a1a0c; }
.room-body { padding: 1.6rem 1.7rem 1.8rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.room-body h3 { color: var(--green-800); font-size: 1.45rem; }
.features { list-style: none; padding: 0; margin: .6rem 0 1.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .8rem; }
.features li { position: relative; padding-left: 1.5rem; font-size: .92rem; color: var(--ink); }
.features li::before { content: "✓"; position: absolute; left: 0; color: var(--amber-dark); font-weight: 700; }
.room-body .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Servicios ---------- */
.amenities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.amenity { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; transition: .25s; }
.amenity:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: transparent; }
.amenity-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--cream-2); color: var(--green-700); margin-bottom: 1rem; }
.amenity-icon svg { width: 26px; height: 26px; }
.amenity h3 { color: var(--green-800); font-size: 1.18rem; margin-bottom: .3rem; }
.amenity p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Ubicación ---------- */
.ubic-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.ubic-text h2 { color: var(--green-800); }
.ubic-list { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: .8rem; }
.ubic-list li { display: flex; align-items: center; gap: .8rem; font-weight: 500; }
.ubic-list span { font-size: 1.2rem; }
.ubic-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; background: var(--cream-2); }
.ubic-map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 1rem; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--cream-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery .g1, .gallery .g2 { grid-column: span 2; grid-row: span 2; }  /* fotos destacadas */

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-intro h2 { color: #fff; }
.contact-intro p { color: rgba(255,255,255,.82); }
.contact-info { list-style: none; padding: 0; margin: 1.6rem 0; display: grid; gap: .8rem; }
.contact-info li { display: flex; align-items: center; gap: .7rem; }
.contact-info a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }
.contact-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }

/* Contacto centrado (sin formulario) */
.contact-cta { max-width: 700px; margin: 0 auto; text-align: center; }
.contact-cta h2 { color: #fff; }
.contact-lead { color: rgba(255,255,255,.82); font-size: 1.1rem; margin-bottom: 2.2rem; }
.contact-cta .contact-actions { justify-content: center; margin-top: 0; margin-bottom: 2.2rem; }
.contact-info--center { justify-content: center; margin: 0 auto 1.2rem; }
.contact-info--center li { justify-content: center; color: rgba(255,255,255,.9); }
.contact-socials { display: flex; gap: .8rem; justify-content: center; align-items: center; color: rgba(255,255,255,.5); }
.contact-socials a { color: var(--amber); text-decoration: none; font-weight: 600; }
.contact-socials a:hover { text-decoration: underline; }

.contact-form-wrap { background: var(--cream); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.4rem); box-shadow: var(--shadow); }
.contact-form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field--narrow { max-width: 100%; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.contact-form input, .contact-form textarea {
    width: 100%; font-family: var(--font-body); font-size: .98rem; color: var(--ink);
    padding: .8rem .95rem; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(47,107,88,.12);
}
.contact-form textarea { resize: vertical; }
.field .err { color: #b3261e; font-size: .8rem; }
.form-note { font-size: .8rem; color: var(--muted); margin: 0; text-align: center; }

.alert { padding: .85rem 1.1rem; border-radius: 12px; font-size: .92rem; font-weight: 500; margin-bottom: 1rem; }
.alert--success { background: #e3f2e8; color: #1f5132; border: 1px solid #b8ddc4; }
.alert--error { background: #fbe6e4; color: #8f231b; border: 1px solid #f0bdb8; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: rgba(255,255,255,.8); padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand--footer { color: #fff; margin-bottom: .8rem; }
.brand--footer .brand-mark { background: var(--green-700); }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1rem; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-list a { color: rgba(255,255,255,.8); text-decoration: none; }
.footer-list a:hover { color: var(--amber); }
.socials { display: flex; gap: 1rem; margin-top: 1rem; }
.socials a { color: var(--amber); text-decoration: none; font-weight: 600; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-top: 1.5rem; font-size: .85rem; color: rgba(255,255,255,.55); }

/* ---------- WhatsApp flotante ---------- */
.whatsapp-fab {
    position: fixed; right: 20px; bottom: 20px; z-index: 90;
    display: inline-flex; align-items: center; gap: .55rem;
    background: #25d366; color: #fff; text-decoration: none; font-weight: 600;
    padding: .8rem 1.1rem; border-radius: 999px; box-shadow: 0 12px 30px -10px rgba(37,211,102,.7);
    transition: transform .2s, box-shadow .2s;
}
.whatsapp-fab:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -10px rgba(37,211,102,.85); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
        background: var(--cream); padding: 1rem 1.25rem 1.5rem; gap: .25rem;
        border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
        transform: translateY(-120%); transition: transform .3s ease; max-height: calc(100vh - 72px); overflow:auto;
    }
    .nav-menu.open { transform: translateY(0); }
    .nav-menu > a { padding: .85rem 1rem; }
    .nav-menu .btn { margin-top: .4rem; }

    .welcome-grid, .ubic-grid, .contact-grid { grid-template-columns: 1fr; }
    .welcome-media { order: -1; max-width: 460px; margin-inline: auto; }
    .welcome-badge { left: 8px; }
    .rooms { grid-template-columns: 1fr; }
    .amenities { grid-template-columns: 1fr 1fr; }
    .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
    .gallery .g1, .gallery .g2 { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 540px) {
    .amenities { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .welcome-stats { gap: 1.2rem; }
    .whatsapp-fab span { display: none; }
    .whatsapp-fab { padding: .9rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-inner { padding-top: 4.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
