/* Hostal La Gloria — sistema visual editorial/orgánico
   Paleta extraída del logo real del cliente (no inventada). */

:root {
  --bordo: #b23437;
  --bordo-dark: #7c2226;
  --bordo-light: #d8746f;
  --verde: #238566;
  --verde-dark: #185c46;
  --verde-light: #5aab8c;
  --dorado: #c9a15a;
  --crema: #f8f2e6;
  --crema-deep: #efe1c7;
  --crema-deeper: #e6d3ab;
  --carbon: #2a231c;
  --carbon-soft: #55493c;
  --blanco: #fffdf8;
  --whatsapp: #25d366;

  --font-display: "Piazzolla", "Georgia", serif;
  --font-body: "Hanken Grotesk", "Segoe UI", sans-serif;

  --container: 1220px;
  --radius-blob-1: 62% 38% 57% 43% / 41% 47% 53% 59%;
  --radius-blob-2: 38% 62% 43% 57% / 57% 41% 59% 43%;
  --radius-blob-3: 51% 49% 34% 66% / 60% 44% 56% 40%;
  --shadow-soft: 0 30px 60px -25px rgba(42, 35, 28, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.no-js .reveal { opacity: 1 !important; transform: none !important; }

body {
  margin: 0;
  color: var(--carbon);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  /* Fondo ÚNICO de todo el sitio: beige con acentos de verde y marrón.
     `fixed` hace que el degradé sea el mismo en cualquier punto del scroll,
     así ningún bloque se distingue de otro. */
  background-color: var(--crema);
  background-image:
    radial-gradient(1150px 720px at 88% -8%, rgba(35, 133, 102, 0.26), transparent 62%),
    radial-gradient(900px 620px at 4% 14%, rgba(201, 161, 90, 0.30), transparent 64%),
    radial-gradient(1000px 780px at 12% 104%, rgba(124, 34, 38, 0.16), transparent 60%),
    radial-gradient(860px 640px at 98% 78%, rgba(35, 133, 102, 0.20), transparent 62%),
    linear-gradient(158deg, var(--crema-deep) 0%, var(--crema) 46%, var(--crema-deep) 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* Capa ambiental que deriva muy lento por encima del degradé (la magia de fondo). */
body::before {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(420px circle at 22% 30%, rgba(90, 171, 140, 0.30), transparent 62%),
    radial-gradient(360px circle at 78% 62%, rgba(201, 161, 90, 0.26), transparent 62%),
    radial-gradient(300px circle at 58% 12%, rgba(178, 52, 55, 0.14), transparent 62%);
  filter: blur(46px);
  animation: ambient-drift 34s ease-in-out infinite;
}
@keyframes ambient-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33%      { transform: translate3d(2.5%, -2%, 0) scale(1.06); }
  66%      { transform: translate3d(-2%, 2.5%, 0) scale(1.03); }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 0.5em; color: var(--bordo-dark); line-height: 1.12; font-weight: 600; }
p { margin: 0 0 1em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

/* ---------- palabra-acento con subrayado a pincel ---------- */
.acento {
  position: relative;
  color: var(--bordo);
  font-style: italic;
  white-space: nowrap;
}
.acento::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -0.05em;
  height: 0.34em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M2 16 C 60 4, 120 22, 180 10 S 260 4, 298 14' stroke='%23c9a15a' stroke-width='7' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 0% 100%;
  transition: background-size 1s var(--ease);
  z-index: -1;
}
.acento.in-view::after,
.reveal.in-view .acento::after { background-size: 100% 100%; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s, color 0.3s;
  position: relative;
}
.btn-primary { background: var(--bordo); color: var(--blanco); box-shadow: 0 14px 30px -12px rgba(178, 52, 55, 0.55); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -14px rgba(178, 52, 55, 0.65); }
.btn-ghost { background: transparent; border-color: var(--bordo-dark); color: var(--bordo-dark); }
.btn-ghost:hover { background: var(--bordo-dark); color: var(--blanco); transform: translateY(-3px); }
.btn-whatsapp { background: var(--whatsapp); color: #063a22; box-shadow: 0 14px 30px -12px rgba(37, 211, 102, 0.55); }
.btn-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -14px rgba(37, 211, 102, 0.65); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* magnetic hover pointer effect target */
.btn { will-change: transform; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(248, 242, 230, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(178, 52, 55, 0.12);
  transition: box-shadow 0.4s;
}
.site-header.scrolled { box-shadow: 0 12px 30px -20px rgba(42, 35, 28, 0.4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 28px; max-width: var(--container); margin: 0 auto; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 54px; width: auto; }
.brand-text { font-family: var(--font-display); font-size: 1.02rem; color: var(--verde-dark); line-height: 1.15; }
.brand-text strong { display: block; color: var(--bordo-dark); font-size: 1.28rem; }
.nav-links { display: flex; align-items: center; gap: 30px; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em; }
.nav-links a { position: relative; padding: 6px 0; color: var(--carbon-soft); transition: color 0.25s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--bordo);
  transition: right 0.35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--bordo-dark); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 11px 22px; font-size: 0.9rem; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--bordo-dark); margin: 6px 0; transition: transform 0.3s, opacity 0.3s; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  padding: 70px 0 90px;
  overflow: hidden;
}
/* Los orbes por sección quedaban recortados por el `overflow:hidden` y dibujaban
   un corte recto sobre el fondo unificado. El ambiente ahora lo pone body::before. */
.hero-orb { display: none; }
@keyframes float-orb { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-24px, 26px) scale(1.06); } }

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; color: var(--verde-dark); margin-bottom: 18px; }
.hero-eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--verde); }
.hero h1 { font-size: clamp(2.5rem, 4.4vw, 3.7rem); color: var(--bordo-dark); }
.hero .lead { font-size: 1.18rem; color: var(--carbon-soft); max-width: 46ch; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }
.hero-facts { display: flex; gap: 30px; flex-wrap: wrap; }
.hero-fact strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--verde-dark); }
.hero-fact span { font-size: 0.85rem; color: var(--carbon-soft); }

.hero-media { position: relative; }
.blob-frame {
  position: relative;
  aspect-ratio: 4 / 4.6;
  border-radius: var(--radius-blob-1);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  animation: blob-morph 14s var(--ease) infinite;
}
.blob-frame img { width: 100%; height: 100%; object-fit: cover; }
@keyframes blob-morph {
  0%, 100% { border-radius: var(--radius-blob-1); }
  33% { border-radius: var(--radius-blob-2); }
  66% { border-radius: var(--radius-blob-3); }
}
.hero-media .sticker {
  position: absolute; bottom: -26px; left: -26px; background: var(--blanco);
  border-radius: 50%; width: 132px; height: 132px; display: flex; align-items: center; justify-content: center;
  flex-direction: column; text-align: center; box-shadow: var(--shadow-soft); border: 2px solid var(--crema-deep);
  animation: spin-slow 20s linear infinite;
}
.hero-media .sticker span { animation: counter-spin 20s linear infinite; display: block; }
.hero-media .sticker strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--bordo); }
.hero-media .sticker small { font-size: 0.62rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--carbon-soft); }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes counter-spin { to { transform: rotate(-360deg); } }

/* sierra wave divider — motivo firma tomado del propio logo */
.wave-divider { display: block; width: 100%; height: 64px; margin-top: -1px; }
.wave-divider path { fill: var(--crema); }
.wave-divider.flip { transform: scaleY(-1); }
/* Con el fondo unificado un divisor relleno cortaría el degradé: se oculta. */
.wave-divider { display: none; }

/* ---------- secciones ----------
   Todas transparentes: el fondo lo pone el body, igual en toda la web.
   `.section-alt` y `.section-dark` se conservan como clases (por el HTML)
   pero ya NO cambian el fondo — no hay bloques lisos vs. degradé. */
section { padding: 108px 0; position: relative; background: transparent; }
.section-alt { background: transparent; position: relative; }
.section-alt > .container { position: relative; z-index: 1; }
.section-dark { background: transparent; color: var(--carbon); }
.section-dark h2, .section-dark h3 { color: var(--bordo-dark); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; color: var(--verde-dark); margin-bottom: 16px; }
.eyebrow::before {
  content: "";
  width: 30px; height: 2px;
  background: var(--verde);
  transform-origin: left;
  animation: eyebrow-draw 2.6s var(--ease) infinite;
}
@keyframes eyebrow-draw {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  50% { transform: scaleX(1.5); opacity: 0.55; }
}
.section-dark .eyebrow { color: var(--dorado); }
.section-dark .eyebrow::before { background: var(--dorado); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2rem, 3vw, 2.7rem); }
.section-head p { color: var(--carbon-soft); font-size: 1.08rem; }
.section-dark .section-head p { color: rgba(248, 242, 230, 0.82); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal-stagger > .reveal { transition-delay: calc(var(--i, 0) * 95ms); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .split-ready .word, .split-ready .word.word-in { opacity: 1 !important; transform: none !important; }
  .motes { display: none; }
}

/* ---------- grids / cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  position: relative;
  background: var(--blanco);
  border-radius: 28px;
  padding: 8px;
  box-shadow: 0 24px 46px -30px rgba(42, 35, 28, 0.32);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.card:hover { transform: translateY(-10px); box-shadow: 0 36px 60px -26px rgba(42, 35, 28, 0.45); }
.card-media { position: relative; aspect-ratio: 5/4; border-radius: 22px; overflow: hidden; margin-bottom: 4px; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), filter 0.6s; }
.card:hover .card-media img { transform: scale(1.08); }
/* velo de color al hacer hover */
.card-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(124, 34, 38, 0.55), transparent 58%);
  opacity: 0;
  transition: opacity 0.5s;
}
.card:hover .card-media::after { opacity: 1; }
/* brillo diagonal que barre la imagen */
.card-media::before {
  content: "";
  position: absolute;
  top: 0; left: -70%;
  width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: skewX(-18deg);
  z-index: 2;
  transition: left 0.75s var(--ease);
}
.card:hover .card-media::before { left: 125%; }
.card-body { padding: 20px 22px 24px; }
.card-body h3 { font-size: 1.28rem; margin-bottom: 8px; }
.card-body p { color: var(--carbon-soft); font-size: 0.96rem; margin-bottom: 0; }
.card-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--verde-dark); background: rgba(35, 133, 102, 0.12); padding: 5px 12px; border-radius: 999px; margin-bottom: 10px; }

.icon-card {
  position: relative;
  text-align: left;
  padding: 32px 28px 30px;
  background: var(--blanco);
  border-radius: 26px;
  box-shadow: 0 20px 40px -30px rgba(42, 35, 28, 0.3);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
/* spotlight que sigue el cursor */
.icon-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(201, 161, 90, 0.20), transparent 62%);
  opacity: 0;
  transition: opacity 0.45s;
  z-index: -1;
}
/* filete de color que crece desde abajo */
.icon-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--verde), var(--dorado), var(--bordo));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.icon-card:hover { transform: translateY(-8px); box-shadow: 0 32px 56px -30px rgba(42, 35, 28, 0.42); }
.icon-card:hover::before { opacity: 1; }
.icon-card:hover::after { transform: scaleX(1); }

.icon-badge {
  position: relative;
  width: 58px; height: 58px;
  border-radius: var(--radius-blob-1);
  background: rgba(178, 52, 55, 0.11);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--bordo);
  transition: background 0.4s, color 0.4s, transform 0.5s var(--ease);
  animation: blob-morph 15s var(--ease) infinite;
}
.icon-badge svg { width: 28px; height: 28px; transition: transform 0.5s var(--ease); }
.icon-card:hover .icon-badge { background: var(--bordo); color: var(--blanco); transform: rotate(-6deg) scale(1.06); }
.icon-card:hover .icon-badge svg { transform: scale(1.1); }
/* halo que late al hacer hover */
.icon-card:hover .icon-badge::after {
  content: "";
  position: absolute; inset: -6px;
  border-radius: inherit;
  border: 1.5px solid rgba(178, 52, 55, 0.35);
  animation: badge-pulse 1.8s ease-out infinite;
}
@keyframes badge-pulse {
  0% { transform: scale(0.92); opacity: 0.9; }
  100% { transform: scale(1.22); opacity: 0; }
}

.icon-card h3 { font-size: 1.14rem; margin-bottom: 8px; }
.icon-card p { font-size: 0.93rem; color: var(--carbon-soft); margin: 0; }
/* número fantasma de la tarjeta */
.icon-card .ghost-num {
  position: absolute;
  top: 14px; right: 20px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.6rem;
  line-height: 1;
  color: rgba(42, 35, 28, 0.07);
  transition: color 0.45s, transform 0.5s var(--ease);
  pointer-events: none;
}
.icon-card:hover .ghost-num { color: rgba(201, 161, 90, 0.42); transform: translateY(-3px); }

/* ---------- lista de tipos de habitación ---------- */
.room-list li { display: flex; gap: 20px; align-items: flex-start; padding: 24px 0; border-bottom: 1px solid rgba(178, 52, 55, 0.16); }
.room-list li:first-child { padding-top: 0; }
.room-list li:last-child { border-bottom: none; }
.room-tag { font-family: var(--font-display); font-style: italic; font-size: 1.9rem; color: var(--dorado); line-height: 1; flex-shrink: 0; min-width: 46px; }
.room-list h3 { font-size: 1.2rem; margin-bottom: 6px; }
.room-list p { color: var(--carbon-soft); font-size: 0.96rem; margin: 0; }

/* ---------- cabañas: foto ancha + nombres ---------- */
.cabin-feature { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; }
.cabin-photo { aspect-ratio: 4/3.4; border-radius: var(--radius-blob-2); overflow: hidden; box-shadow: var(--shadow-soft); animation: blob-morph 16s var(--ease) infinite; }
.cabin-photo img { width: 100%; height: 100%; object-fit: cover; }
.cabin-names { display: flex; flex-direction: column; gap: 26px; }
.cabin-name { background: var(--blanco); border-radius: 26px; padding: 28px 30px; box-shadow: 0 20px 40px -30px rgba(42, 35, 28, 0.3); transition: transform 0.4s var(--ease); }
.cabin-name:hover { transform: translateY(-6px); }
.cabin-name h3 { font-size: 1.35rem; margin-bottom: 8px; }
.cabin-name p { color: var(--carbon-soft); font-size: 0.96rem; margin: 0; }
@media (max-width: 980px) { .cabin-feature { grid-template-columns: 1fr; } }

/* ---------- galería blob ---------- */
.blob-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.blob-gallery figure { margin: 0; aspect-ratio: 3/3.6; overflow: hidden; box-shadow: var(--shadow-soft); }
.blob-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.blob-gallery figure:hover img { transform: scale(1.08); }
.blob-gallery figure:nth-child(1) { border-radius: var(--radius-blob-1); }
.blob-gallery figure:nth-child(2) { border-radius: var(--radius-blob-2); margin-top: 42px; }
.blob-gallery figure:nth-child(3) { border-radius: var(--radius-blob-3); }
.blob-gallery figure:nth-child(4) { border-radius: var(--radius-blob-2); margin-top: 42px; }

/* ---------- banda cita (trazo que se dibuja) ---------- */
.quote-band { position: relative; padding: 100px 0; text-align: center; overflow: hidden; }
.quote-band svg.stroke-path { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; }
.quote-band svg.stroke-path path { fill: none; stroke: var(--dorado); stroke-width: 2; stroke-dasharray: 2000; stroke-dashoffset: 2000; transition: stroke-dashoffset 2.4s var(--ease); }
.quote-band.in-view svg.stroke-path path { stroke-dashoffset: 0; }
.quote-band blockquote { position: relative; z-index: 1; font-family: var(--font-display); font-style: italic; font-size: clamp(1.5rem, 3vw, 2.3rem); max-width: 780px; margin: 0 auto; color: var(--bordo-dark); line-height: 1.5; }
.quote-band cite { display: block; margin-top: 22px; font-style: normal; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.78rem; color: var(--verde-dark); }
.quote-band svg.stroke-path path { stroke: var(--dorado); }

/* ---------- timeline orgánico (historia) ---------- */
.timeline { position: relative; max-width: 880px; margin: 0 auto; }
.timeline::before {
  content: ""; position: absolute; left: 20px; top: 8px; bottom: 8px; width: 3px;
  background: linear-gradient(var(--verde), var(--bordo), var(--dorado));
  border-radius: 3px;
}
.timeline-item { position: relative; padding: 0 0 54px 64px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: 10px; top: 4px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--crema); border: 3px solid var(--bordo); box-shadow: 0 0 0 6px var(--crema);
  transition: background 0.4s, transform 0.4s var(--ease);
  z-index: 1;
}
/* nodo que late al pasar por encima */
.timeline-item::after {
  content: ""; position: absolute; left: 10px; top: 4px; width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--bordo); opacity: 0;
}
.timeline-item:hover::before { background: var(--bordo); transform: scale(1.15); }
.timeline-item:hover::after { animation: node-ping 1.6s ease-out infinite; }
@keyframes node-ping {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.1); opacity: 0; }
}
.timeline-item h3 { transition: color 0.3s; }
.timeline-item:hover h3 { color: var(--bordo); }
.timeline-year { font-family: var(--font-display); font-style: italic; color: var(--bordo); font-size: 1.5rem; display: block; margin-bottom: 6px; }
.timeline-item h3 { font-size: 1.2rem; margin-bottom: 8px; }
.timeline-item p { color: var(--carbon-soft); margin: 0; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid rgba(178, 52, 55, 0.18); padding: 22px 0; }
.faq-item summary { cursor: pointer; font-family: var(--font-display); font-size: 1.12rem; color: var(--bordo-dark); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.6rem; color: var(--verde); transition: transform 0.3s; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 14px 0 0; color: var(--carbon-soft); }

/* ---------- info strip (ubicación / contacto) ---------- */
.info-list { display: flex; flex-direction: column; gap: 22px; }
.info-row { display: flex; gap: 16px; align-items: flex-start; }
.info-row .icon-badge { flex-shrink: 0; margin-bottom: 0; }
.info-row h3, .info-row h4 { margin: 0 0 4px; font-family: var(--font-display); font-size: 1.05rem; color: var(--bordo-dark); }
.info-row p, .info-row a { margin: 0; color: var(--carbon-soft); }
.info-row a:hover { color: var(--bordo); }

.map-frame { border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-soft); border: 6px solid var(--blanco); }
.map-frame iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---------- formulario ---------- */
.contact-form { display: grid; gap: 18px; background: var(--blanco); padding: 40px; border-radius: 30px; box-shadow: var(--shadow-soft); }
.contact-form label { font-size: 0.85rem; font-weight: 700; color: var(--bordo-dark); display: block; margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 13px 16px; border-radius: 14px; border: 1.5px solid var(--crema-deeper);
  background: var(--crema); font-family: var(--font-body); font-size: 0.98rem; color: var(--carbon); resize: vertical;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--verde); box-shadow: 0 0 0 4px rgba(35, 133, 102, 0.14); }
.form-note { font-size: 0.82rem; color: var(--carbon-soft); }

/* ---------- footer ---------- */
.site-footer { background: var(--carbon); color: var(--crema); padding: 74px 0 30px; position: relative; overflow: hidden; }
/* resplandor cálido que respira detrás del footer */
.site-footer::before {
  content: "";
  position: absolute;
  width: 700px; height: 700px;
  top: -320px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(178, 52, 55, 0.30), transparent 66%);
  filter: blur(50px);
  pointer-events: none;
  animation: float-orb 20s ease-in-out infinite;
}
.site-footer > .container { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-brand img { height: 60px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-brand p { color: rgba(248, 242, 230, 0.68); max-width: 32ch; }
.site-footer h3, .site-footer h3, .site-footer h4 { color: var(--crema); font-family: var(--font-display); font-size: 1rem; margin-bottom: 16px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(248, 242, 230, 0.72); font-size: 0.95rem; transition: color 0.25s, padding-left 0.25s; }
.footer-links a:hover { color: var(--dorado); padding-left: 4px; }
.footer-social { display: flex; gap: 12px; margin-top: 6px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(248, 242, 230, 0.3); display: flex; align-items: center; justify-content: center; transition: background 0.25s, border-color 0.25s, transform 0.3s; }
.footer-social a:hover { background: var(--bordo); border-color: var(--bordo); transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(248, 242, 230, 0.14); padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: rgba(248, 242, 230, 0.55); }

/* ---------- whatsapp flotante ---------- */
.wa-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 100; width: 62px; height: 62px; border-radius: 50%;
  background: var(--whatsapp); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 34px -12px rgba(37, 211, 102, 0.6); transition: transform 0.35s var(--ease);
  animation: wa-pulse 2.6s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
@keyframes wa-pulse { 0%, 100% { box-shadow: 0 16px 34px -12px rgba(37, 211, 102, 0.6), 0 0 0 0 rgba(37, 211, 102, 0.45); } 50% { box-shadow: 0 16px 34px -12px rgba(37, 211, 102, 0.6), 0 0 0 14px rgba(37, 211, 102, 0); } }

/* ---------- page hero (cabecera de subpágina) ---------- */
.page-hero {
  position: relative;
  min-height: 58vh;
  display: flex;
  align-items: center;
  padding: 148px 0 190px;
  overflow: hidden;
  background: transparent;
  text-align: center;
}
/* Sin orbes locales: los recortaba el `overflow:hidden` y cortaban el degradé.
   El ambiente en movimiento lo aporta body::before, que es global. */

/* sierra en capas — el motivo del propio logo, con profundidad */
.page-hero .sierra {
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 118%;
  height: clamp(110px, 17vh, 175px);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}
.page-hero .sierra path { transform-origin: center bottom; }
.sierra .ridge-back { fill: rgba(35, 133, 102, 0.10); animation: ridge-drift 26s ease-in-out infinite; }
.sierra .ridge-mid { fill: rgba(35, 133, 102, 0.16); animation: ridge-drift 20s ease-in-out infinite reverse; }
/* translúcida: sobre el degradé no debe cortar como una franja lisa */
.sierra .ridge-front { fill: rgba(124, 34, 38, 0.07); }
@keyframes ridge-drift {
  0%, 100% { transform: translateX(0) scaleY(1); }
  50% { transform: translateX(-26px) scaleY(1.05); }
}

/* motas flotando */
.motes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }

.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { justify-content: center; }
.page-hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  margin-bottom: 0.34em;
  letter-spacing: -0.012em;
}
.page-hero .lead { max-width: 60ch; margin: 0 auto; color: var(--carbon-soft); font-size: 1.1rem; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; font-size: 0.84rem; color: var(--carbon-soft); margin-bottom: 22px; letter-spacing: 0.02em; }
.breadcrumb a { transition: color 0.25s; }
.breadcrumb a:hover { color: var(--bordo); }

/* titular que se arma palabra por palabra */
.split-ready .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.42em) rotate(1.2deg);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.split-ready .word.word-in { opacity: 1; transform: none; }

/* scroll progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--verde), var(--bordo), var(--dorado)); z-index: 200; width: 0%; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 420px; margin: 0 auto; }
  .grid-3, .grid-4, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .blob-gallery { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .nav-links { position: fixed; inset: 78px 0 0 0; background: var(--crema); flex-direction: column; padding: 40px 28px; gap: 24px; font-size: 1.1rem; transform: translateX(100%); transition: transform 0.4s var(--ease); overflow-y: auto; }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: block; }
  .nav-cta .btn-ghost { display: none; }
}
@media (max-width: 620px) {
  section { padding: 74px 0; }
  .grid-3, .grid-4, .footer-grid, .blob-gallery { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 130px; }
  .hero-facts { gap: 20px; }
  .footer-grid { gap: 34px; }
  .page-hero { padding: 150px 0 60px; }
}

/* ==========================================================================
   Cambios del 2026-10-23 (bmax): fotos por tipo de habitación + visor, capacidad de las cabañas,
   epígrafe de la galería de la Estrella Fugaz y link a Nuestra Historia desde la frase de la familia.
   ========================================================================== */
.room-fotos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.room-fotos a { display: block; width: 90px; aspect-ratio: 3/4; overflow: hidden; border-radius: 18px 26px 18px 30px; box-shadow: 0 14px 28px -18px rgba(42, 35, 28, 0.5); }
.room-fotos a.h { width: 120px; aspect-ratio: 4/3; }
.room-fotos img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.room-fotos a:hover img { transform: scale(1.08); }
.room-fotos a:focus-visible { outline: 3px solid var(--dorado); outline-offset: 3px; }
.cabin-name p.cabin-cap { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 6px 13px; border-radius: 999px; background: var(--crema); color: var(--verde-dark); font-weight: 700; font-size: 0.86rem; }
.cabin-cap svg { width: 18px; height: 18px; flex-shrink: 0; }
.cabin-foto-cap { margin: 14px 8px 0; font-family: var(--font-display); font-style: italic; font-size: 0.95rem; color: var(--carbon-soft); }
.quote-band .quote-btn { position: relative; z-index: 1; margin-top: 30px; }
.hlg-visor { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(20, 16, 12, 0.9); }
.hlg-visor.abierto { display: flex; }
.hlg-visor figure { margin: 0; max-width: min(92vw, 1100px); text-align: center; }
.hlg-visor img { max-width: 100%; max-height: 80vh; border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6); }
.hlg-visor figcaption { margin-top: 12px; color: var(--crema); font-size: 0.95rem; }
.hlg-visor button { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 253, 248, 0.14); color: var(--blanco); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.hlg-visor button:hover, .hlg-visor button:focus-visible { background: rgba(255, 253, 248, 0.3); }
.hlg-visor .cerrar { top: 18px; right: 18px; }
.hlg-visor .ant { left: 18px; top: 50%; transform: translateY(-50%); }
.hlg-visor .sig { right: 18px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .hlg-visor .ant, .hlg-visor .sig { top: auto; bottom: 18px; transform: none; } }
/* Celular: el menú cerrado (fijo y corrido a la derecha con translateX(100%)) ensanchaba la página a 780 px y el teléfono
   la mostraba achicada. Se recorta el desborde horizontal y el menú cerrado no se ve ni recibe foco. (2026-10-23, bmax) */
html { overflow-x: hidden; }
@media (max-width: 980px) {
  .nav-links { visibility: hidden; transition: transform 0.4s var(--ease), visibility 0s linear 0.4s; }
  .nav-links.open { visibility: visible; transition: transform 0.4s var(--ease), visibility 0s; }
}
/* Celular: el backdrop-filter del encabezado convierte al header en el bloque contenedor del menú fijo, que quedaba encerrado
   en sus 78 px (al abrirlo solo se veía "Inicio"). El desenfoque pasa a un ::before y el menú vuelve a ocupar la pantalla. */
.site-header { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(248, 242, 230, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

/* Cabañas: cada una con su foto (cambios del cliente, 2026-10-27) */
.cabin-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: stretch; }
.cabin-col { display: flex; flex-direction: column; }
.cabin-col .cabin-name { margin-top: 20px; flex: 1; }
.cabin-col + .cabin-col .cabin-photo { animation-delay: -8s; }
.cabin-photo img.foto-angel { object-position: center 62%; }
@media (max-width: 860px) { .cabin-dos { grid-template-columns: 1fr; gap: 56px; } }

/* Nuestra Historia: el texto completo de la historia (cambios del cliente, 2026-10-27) */
#historia-completa { scroll-margin-top: 90px; }
.historia-completa .section-head { margin-bottom: 40px; }
.capitulos { max-width: 940px; }
.capitulo { display: grid; grid-template-columns: 170px 1fr; gap: 40px; padding: 40px 0; border-top: 1px solid var(--crema-deeper); }
.capitulo:first-child { border-top: 0; padding-top: 0; }
.capitulo-marca { position: sticky; top: 110px; align-self: start; }
.capitulo-anio { display: block; font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--bordo); }
.capitulo-n { display: block; margin-top: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.74rem; color: var(--verde-dark); }
.capitulo-texto h3 { font-size: 1.45rem; margin-bottom: 14px; }
.capitulo-texto p { color: var(--carbon-soft); font-size: 1.04rem; line-height: 1.8; max-width: 66ch; margin: 0 0 16px; }
.leyenda { max-width: 66ch; margin: 24px 0 20px; padding: 22px 26px; background: var(--blanco); border-radius: 22px 30px 22px 34px; box-shadow: 0 20px 40px -30px rgba(42, 35, 28, 0.3); }
.leyenda h4 { font-family: var(--font-display); font-size: 1.12rem; color: var(--bordo-dark); margin: 0 0 8px; }
.leyenda p { margin: 0; }
@media (max-width: 760px) {
  .capitulo { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }
  .capitulo-marca { position: static; display: flex; align-items: baseline; gap: 12px; }
  .capitulo-anio { font-size: 2.1rem; }
  .capitulo-n { margin-top: 0; }
}

/* Estándar profesional (2026-10-28): casilla de consentimiento, páginas legales y aviso de cookies */
.contact-form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; font-weight: 400; color: var(--carbon-soft); margin: 0; cursor: pointer; }
.contact-form .consent input { width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--verde); }
.contact-form .consent a, .form-note a { color: var(--verde-dark); text-decoration: underline; }
.contact-form .falta { border-color: var(--bordo) !important; }
.contact-form .consent.falta { color: var(--bordo-dark); }
.form-error { margin: 0; font-size: 0.86rem; font-weight: 600; color: var(--bordo-dark); }
.legal { max-width: 760px; }
.legal h2 { font-size: 1.45rem; margin: 40px 0 12px; }
.legal h2:first-of-type { margin-top: 28px; }
.legal p, .legal li { color: var(--carbon-soft); font-size: 1.02rem; line-height: 1.75; }
.legal ul { padding-left: 20px; margin: 0 0 16px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--verde-dark); text-decoration: underline; }
.footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.hlg-cookies { position: fixed; left: 18px; bottom: 18px; z-index: 120; max-width: 420px; background: var(--blanco); border-radius: 22px; padding: 20px 22px; box-shadow: var(--shadow-soft); font-size: 0.88rem; color: var(--carbon); }
.hlg-cookies[hidden] { display: none; }
.hlg-cookies a { color: var(--verde-dark); text-decoration: underline; }
.hlg-cookies-btns { display: flex; gap: 10px; margin-top: 14px; justify-content: flex-end; }
.hlg-cookies .btn { padding: 10px 18px; font-size: 0.85rem; }
@media (max-width: 560px) { .hlg-cookies { left: 12px; right: 12px; bottom: 12px; max-width: none; } }
