/* =========================================================================
   HOSPEDAJE APPLE HOUSE — Hoja de estilos
   Paleta derivada del logotipo (manzana roja, hoja verde, letrero cálido):
   =========================================================================
   --cream        #F1E8D6  fondo principal (tono del letrero de madera)
   --charcoal     #1E1A16  texto / header (negro cálido del logo)
   --apple-red    #A72A3B  acento principal (manzana)
   --orchard-green#4B6B3F  acento secundario (hoja)
   --gold-glow    #CB9E4C  detalle cálido (luz del letrero retroiluminado)
   --stone        #8C877D  gris piedra (muro del letrero)
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Public+Sans:wght@400;500;600;700&display=swap');

:root {
  --cream: #F1E8D6;
  --cream-soft: #F8F3E7;
  --charcoal: #1E1A16;
  --apple-red: #A72A3B;
  --apple-red-dark: #7E1F2C;
  --orchard-green: #4B6B3F;
  --gold-glow: #CB9E4C;
  --stone: #8C877D;
  --stone-light: #DAD5C9;

  --font-display: 'Fraunces', serif;
  --font-body: 'Public Sans', sans-serif;

  --radius: 4px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 0.5em;
  font-weight: 600;
  color: var(--charcoal);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--apple-red);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--gold-glow);
  display: inline-block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }

@media (max-width: 700px) {
  section { padding: 64px 0; }
}

/* -------------------- Sello (elemento distintivo / firma) -------------------- */
/* Un pequeño "sello de huerto" inspirado en el ícono manzana+casa del logo.
   Se usa como marca decorativa al abrir cada sección, en vez de numeración. */
.sello {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--apple-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background: var(--cream-soft);
  position: relative;
}
.sello svg { width: 22px; height: 22px; }

/* -------------------- Header -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(30,26,22,0.92), rgba(30,26,22,0.85));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(203,158,76,0.25);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  color: var(--cream);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand .mark {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--apple-red);
  display: flex; align-items: center; justify-content: center;
}
.brand .mark svg { width: 16px; height: 16px; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--cream-soft);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold-glow);
  transition: width 0.25s ease;
}
.nav-links a:hover::after { width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.88rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--apple-red);
  color: var(--cream-soft);
}
.btn-primary:hover { background: var(--apple-red-dark); }

.btn-outline {
  background: transparent;
  border-color: rgba(241,232,214,0.4);
  color: var(--cream-soft);
}
.btn-outline:hover { border-color: var(--gold-glow); }

.btn-ghost-dark {
  background: transparent;
  border-color: var(--charcoal);
  color: var(--charcoal);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--charcoal);
    padding: 20px 24px;
    gap: 18px;
  }
}

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: var(--cream-soft);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,17,14,0.35) 0%, rgba(20,17,14,0.55) 55%, rgba(20,17,14,0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-content .eyebrow { color: var(--gold-glow); }
.hero-content .eyebrow::before { background: var(--gold-glow); }

.hero h1 {
  color: var(--cream-soft);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.03;
  margin: 0.3em 0 0.35em;
  max-width: 14ch;
}

.hero p.lead {
  max-width: 46ch;
  font-size: 1.05rem;
  color: rgba(241,232,214,0.86);
  margin-bottom: 2em;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  right: 24px; bottom: 28px;
  z-index: 2;
  writing-mode: vertical-rl;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(241,232,214,0.65);
  display: flex; align-items: center; gap: 10px;
}
.hero-scroll span.line { width: 1px; height: 44px; background: rgba(241,232,214,0.4); display: inline-block; }

@media (max-width: 700px) { .hero-scroll { display: none; } }

/* -------------------- Intro / bienvenida -------------------- */
.intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; gap: 32px; } }

.intro-head { display: flex; gap: 18px; align-items: flex-start; }
.intro h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.intro p { color: #45403A; max-width: 60ch; }

.stat-row {
  display: flex;
  gap: 32px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--apple-red);
}
.stat span { font-size: 0.8rem; color: var(--stone); text-transform: uppercase; letter-spacing: 0.06em; }

/* -------------------- Habitaciones -------------------- */
.section-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 48px;
}
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); }
.section-head p { color: #45403A; max-width: 56ch; margin: 0.4em 0 0; }

.section-band {
  background: var(--charcoal);
  color: var(--cream-soft);
}
.section-band .section-head h2 { color: var(--cream-soft); }
.section-band .section-head p { color: rgba(241,232,214,0.7); }
.section-band .sello { background: var(--charcoal); border-color: var(--gold-glow); }

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 960px) { .rooms-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .rooms-grid { grid-template-columns: 1fr; } }

.room-card {
  background: var(--cream-soft);
  color: var(--charcoal);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(140,135,125,0.25);
}

.room-media {
  height: 190px;
  position: relative;
  background: linear-gradient(135deg, var(--stone-light), var(--stone));
  display: flex; align-items: center; justify-content: center;
  color: rgba(30,26,22,0.45);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  padding: 12px;
}

.room-price-tag {
  position: absolute;
  bottom: -18px; left: 20px;
  background: var(--apple-red);
  color: var(--cream-soft);
  border-radius: 50%;
  width: 64px; height: 64px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
  font-family: var(--font-display);
}
.room-price-tag b { font-size: 1rem; line-height: 1; }
.room-price-tag small { font-size: 0.55rem; letter-spacing: 0.04em; opacity: 0.85; }

.room-body { padding: 32px 20px 24px; flex: 1; display: flex; flex-direction: column; }
.room-body h3 { font-size: 1.2rem; margin-bottom: 4px; }
.room-meta { font-size: 0.78rem; color: var(--stone); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
.room-body p.desc { font-size: 0.92rem; color: #45403A; flex: 1; }

.room-features {
  list-style: none;
  margin: 14px 0 20px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.room-features li {
  font-size: 0.74rem;
  background: var(--cream);
  border: 1px solid var(--stone-light);
  border-radius: 20px;
  padding: 4px 11px;
  color: #45403A;
}

.room-body .btn { width: 100%; justify-content: center; }

/* -------------------- Servicios / amenidades -------------------- */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .amenities-grid { grid-template-columns: repeat(2, 1fr); } }

.amenity {
  padding: 22px 18px;
  border: 1px solid var(--stone-light);
  border-radius: var(--radius);
  background: var(--cream-soft);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.amenity .icon {
  width: 34px; height: 34px; flex: none;
  color: var(--orchard-green);
}
.amenity h4 { font-size: 0.95rem; margin-bottom: 2px; }
.amenity p { font-size: 0.82rem; color: var(--stone); margin: 0; }

/* -------------------- Galería -------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 190px;
  gap: 14px;
}
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item.tall { grid-row: span 2; }

.gallery-placeholder {
  width: 100%; height: 100%;
  border: 1.5px dashed var(--stone);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--stone);
  background: var(--stone-light);
  font-size: 0.78rem;
  text-align: center;
  padding: 12px;
}
.gallery-placeholder svg { width: 26px; height: 26px; opacity: 0.7; }

/* -------------------- Ubicación -------------------- */
.location-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}
@media (max-width: 860px) { .location-wrap { grid-template-columns: 1fr; } }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 6px solid var(--cream-soft);
  box-shadow: 0 10px 30px rgba(30,26,22,0.12);
  min-height: 320px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

.location-info h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); }
.location-list { list-style: none; padding: 0; margin: 24px 0; }
.location-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--stone-light);
}
.location-list .icon { width: 20px; height: 20px; color: var(--apple-red); flex: none; margin-top: 2px; }
.location-list b { display: block; font-size: 0.92rem; }
.location-list span { font-size: 0.84rem; color: var(--stone); }

/* -------------------- Contacto / footer -------------------- */
.footer {
  background: var(--charcoal);
  color: var(--cream-soft);
  position: relative;
  border-top: 6px solid var(--stone);
}
.footer::before {
  /* franja tipo "muro de piedra" en referencia al letrero original */
  content: "";
  position: absolute;
  top: -6px; left: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(90deg, var(--stone) 0 18px, var(--stone-light) 18px 20px);
  opacity: 0.6;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding: 72px 0 32px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

.footer h3 { color: var(--cream-soft); font-size: 1.3rem; }
.footer p { color: rgba(241,232,214,0.7); font-size: 0.9rem; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-glow);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.9rem; color: rgba(241,232,214,0.85); }
.footer-col a:hover { color: var(--gold-glow); }

.footer-bottom {
  border-top: 1px solid rgba(241,232,214,0.12);
  padding: 20px 0 32px;
  font-size: 0.78rem;
  color: rgba(241,232,214,0.5);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* -------------------- WhatsApp flotante -------------------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  background: var(--orchard-green);
  color: #fff;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* -------------------- Modal de reservación (placeholder paso 2) -------------------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(20,17,14,0.55);
  display: none;
  align-items: center; justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--cream-soft);
  border-radius: var(--radius);
  max-width: 420px;
  width: 100%;
  padding: 32px;
  text-align: center;
}
.modal-box .sello { margin: 0 auto 16px; }
.modal-box h3 { margin-bottom: 10px; }
.modal-box p { color: #45403A; font-size: 0.92rem; margin-bottom: 22px; }
.modal-close { margin-top: 14px; background: none; border: none; color: var(--stone); font-size: 0.85rem; cursor: pointer; }
