/* =========================================================
   La Colina Resort — estilos
   Paleta del manual 2026 (pág. 9) + marfil para fondos claros
   ========================================================= */
:root {
  --green: #195C3F;
  --green-night: #0E3324;
  --green-soft: #2A6E50;
  --champagne: #E0B35E;
  --gold-light: #F5D393;
  --ivory: #F8F3E8;
  --ivory-deep: #EFE7D6;
  --ink: #1F2A24;
  --ink-soft: #4B574F;
  --line: rgba(25, 92, 63, .18);

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--green); color: var(--ivory); padding: 10px 16px; border-radius: 4px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .85em 1.7em;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--sans); font-weight: 600; font-size: .9rem; letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn--sm { min-height: 40px; padding: .55em 1.25em; font-size: .82rem; }
.btn--gold { background: var(--champagne); color: var(--green-night); }
.btn--gold:hover { background: var(--gold-light); }
.btn--green { background: var(--green); color: var(--ivory); }
.btn--green:hover { background: var(--green-night); }
.btn--outline-light { border-color: rgba(245, 211, 147, .7); color: var(--ivory); background: transparent; }
.btn--outline-light:hover { background: rgba(245, 211, 147, .12); border-color: var(--gold-light); }

.link-arrowless {
  color: var(--ivory); font-weight: 500; font-size: .92rem; text-decoration: none;
  padding: .6em 0; border-bottom: 1px solid rgba(245, 211, 147, .6);
}
.link-arrowless:hover { border-bottom-color: var(--gold-light); color: var(--gold-light); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header__inner {
  max-width: 1400px; margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: block; position: relative; width: 112px; aspect-ratio: 640 / 375; flex: none; }
.brand__logo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .35s var(--ease); }
.brand__logo--color { opacity: 0; }
.site-header.is-solid { background: rgba(248, 243, 232, .96); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.site-header.is-solid .brand { width: 92px; }
.site-header.is-solid .brand__logo--light { opacity: 0; }
.site-header.is-solid .brand__logo--color { opacity: 1; }

.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); }
.nav__list a:not(.btn) {
  color: var(--ivory); text-decoration: none; font-size: .88rem; font-weight: 500; letter-spacing: .02em;
  padding: 8px 0; border-bottom: 1px solid transparent;
}
.nav__list a:not(.btn):hover { border-bottom-color: var(--champagne); }
.site-header.is-solid .nav__list a:not(.btn) { color: var(--green-night); }
.nav__toggle { display: none; }

@media (max-width: 860px) {
  .brand { width: 92px; }
  .site-header.is-solid .brand { width: 80px; }
  .nav__toggle {
    display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer;
    color: var(--ivory); padding: 10px 4px; font-size: .85rem; font-weight: 600; letter-spacing: .04em;
  }
  .site-header.is-solid .nav__toggle { color: var(--green-night); }
  .nav__toggle-bars, .nav__toggle-bars::before, .nav__toggle-bars::after {
    display: block; width: 22px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s var(--ease);
  }
  .nav__toggle-bars::before, .nav__toggle-bars::after { content: ''; position: absolute; left: 0; }
  .nav__toggle-bars::before { top: -7px; }
  .nav__toggle-bars::after { top: 7px; }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

  .nav__list {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; gap: 28px;
    background: var(--green-night);
    opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
  }
  .nav__list.is-open { opacity: 1; visibility: visible; }
  .nav__list a:not(.btn), .site-header.is-solid .nav__list a:not(.btn) { color: var(--ivory); font-family: var(--serif); font-size: 1.9rem; font-weight: 400; letter-spacing: 0; }
  .site-header.menu-open .nav__toggle { color: var(--ivory); }
  .site-header.menu-open { background: transparent; box-shadow: none; }
  .site-header.menu-open .brand__logo--light { opacity: 1; }
  .site-header.menu-open .brand__logo--color { opacity: 0; }
  .nav__cta-item { margin-top: 12px; }
}

/* ---------- Portada ---------- */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh;
  display: flex; align-items: flex-end;
  color: var(--ivory); overflow: hidden; isolation: isolate;
}
@supports (min-height: 100svh) { .hero { min-height: 100svh; } }
.hero__media { position: absolute; inset: 0; z-index: -1; background: var(--green-night); }
.hero__poster, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__video.is-playing { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 51, 36, .55) 0%, rgba(14, 51, 36, 0) 22%),
    linear-gradient(0deg, rgba(14, 51, 36, .82) 0%, rgba(14, 51, 36, .35) 38%, rgba(14, 51, 36, 0) 62%),
    linear-gradient(90deg, rgba(14, 51, 36, .45) 0%, rgba(14, 51, 36, 0) 55%);
}
.hero__content {
  width: 100%; max-width: 1400px; margin: 0 auto;
  padding: 0 var(--gutter) clamp(120px, 17vh, 190px);
}
.hero__place {
  font-size: .85rem; font-weight: 500; letter-spacing: .14em;
  color: var(--gold-light); margin-bottom: 1.1rem;
}
.hero__title {
  font-size: clamp(3rem, 8.4vw, 7.4rem); line-height: .98; max-width: 9.5ch;
  font-weight: 400; letter-spacing: -.015em; text-wrap: balance;
}
.hero__lede { font-size: clamp(1.02rem, 1.4vw, 1.2rem); max-width: 34ch; margin: 1.4rem 0 2rem; color: rgba(248, 243, 232, .92); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }

/* entrada única de la portada */
@media (prefers-reduced-motion: no-preference) {
  .hero__place, .hero__title, .hero__lede, .hero__actions { animation: rise 1.1s var(--ease) both; }
  .hero__title { animation-delay: .12s; }
  .hero__lede { animation-delay: .3s; }
  .hero__actions { animation-delay: .45s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

.hero__toggle {
  position: absolute; right: var(--gutter); bottom: clamp(104px, 15vh, 160px); z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(14, 51, 36, .35); border: 1px solid rgba(248, 243, 232, .35); color: var(--ivory);
  border-radius: 999px; padding: 8px 14px 8px 10px; font-size: .78rem; font-weight: 500; cursor: pointer;
  backdrop-filter: blur(6px);
}
.hero__toggle:hover { border-color: var(--gold-light); }
.hero__toggle-icon { width: 18px; height: 18px; position: relative; }
.hero__toggle-icon::before, .hero__toggle-icon::after {
  content: ''; position: absolute; top: 3px; width: 4px; height: 12px; background: currentColor; border-radius: 1px;
}
.hero__toggle-icon::before { left: 4px; }
.hero__toggle-icon::after { left: 10px; }
.hero__toggle[aria-pressed="true"] .hero__toggle-icon::before {
  left: 5px; top: 2px; width: 0; height: 0; background: none; border-radius: 0;
  border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent;
}
.hero__toggle[aria-pressed="true"] .hero__toggle-icon::after { display: none; }

.hero__hill {
  position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(54px, 8vw, 120px);
  fill: var(--ivory);
}
.hero__hill-line { fill: none; stroke: var(--champagne); stroke-width: 1.2; vector-effect: non-scaling-stroke; opacity: .9; }

@media (max-width: 760px) {
  .hero__content { padding-bottom: 116px; }
  .hero__toggle { top: 84px; bottom: auto; right: var(--gutter); }
  .hero__toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hero__toggle { padding: 9px; }
}

/* ---------- Títulos de sección ---------- */
.section-title { font-size: clamp(2.4rem, 5vw, 4rem); color: var(--green); }
.section-lede { font-size: 1.05rem; color: var(--ink-soft); max-width: 46ch; margin: 1rem 0 0; }

/* ---------- Intro ---------- */
.intro { padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 9vw, 110px); }
.intro__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
.intro__title { font-size: clamp(2rem, 4.2vw, 3.4rem); color: var(--green); max-width: 14ch; }
.intro__body { font-size: 1.06rem; color: var(--ink-soft); max-width: 52ch; padding-top: .5rem; }
.gems {
  list-style: none; margin-top: clamp(48px, 7vw, 88px); padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 22px;
  font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2.1vw, 1.7rem); color: var(--green);
}
.gems li { white-space: nowrap; }
.gems li:nth-child(n+4):nth-child(-n+8) { color: var(--green-soft); }
.gems li:nth-child(n+9) { color: #8F6A22; }
@media (max-width: 820px) {
  .intro__grid { grid-template-columns: 1fr; }
  .gems { justify-content: flex-start; gap: 6px 18px; }
}

/* ---------- Alojamientos ---------- */
.stays { padding: clamp(40px, 6vw, 72px) 0 clamp(72px, 10vw, 128px); }
.stays__head { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 24px 64px; margin-bottom: clamp(28px, 4vw, 44px); }
@media (max-width: 820px) { .stays__head { grid-template-columns: 1fr; } }

.tabs { display: flex; gap: 6px; padding: 5px; background: var(--ivory-deep); border-radius: 999px; width: max-content; max-width: 100%; margin-bottom: clamp(32px, 5vw, 56px); }
.tabs__tab {
  border: 0; background: transparent; cursor: pointer; border-radius: 999px;
  padding: .7em 1.5em; min-height: 46px; font-weight: 600; font-size: .92rem; color: var(--ink-soft);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.tabs__tab[aria-selected="true"] { background: var(--green); color: var(--ivory); }
.tabs__count { font-weight: 500; opacity: .7; margin-left: .25em; }

/* Domo destacado */
.feature { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 4.5vw, 72px); align-items: center; }
.feature__mosaic { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 4 / 3.1; }
.feature__mosaic figure { margin: 0; overflow: hidden; border-radius: 4px; position: relative; background: var(--ivory-deep); }
.feature__mosaic figure:first-child { grid-row: 1 / 3; border-radius: 180px 180px 4px 4px; }
.feature__mosaic img { width: 100%; height: 100%; object-fit: cover; }
.feature__name { font-size: clamp(2rem, 3.6vw, 3rem); color: var(--green); }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature__mosaic { aspect-ratio: 4 / 3.6; }
  .feature__mosaic figure:first-child { border-radius: 140px 140px 4px 4px; }
}

.stay-meta { font-size: .86rem; color: var(--ink-soft); margin: .7rem 0 1.2rem; }
.stay-meta strong { color: var(--green); font-weight: 600; }
.stay-text { font-size: 1.04rem; max-width: 46ch; }
.chips { list-style: none; margin: 1.2rem 0 1.8rem; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: .8rem; font-weight: 500; padding: .45em .95em; border: 1px solid var(--line); border-radius: 999px; color: var(--green-night); background: rgba(255,255,255,.35); }
.stay-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.text-btn {
  background: none; border: 0; padding: .5em 0; cursor: pointer;
  font-weight: 600; font-size: .9rem; color: var(--green); border-bottom: 1px solid var(--champagne);
}
.text-btn:hover { color: var(--green-night); border-bottom-color: var(--green); }

/* Chalets: filas editoriales */
.chalets { display: grid; gap: clamp(56px, 8vw, 104px); }
.chalet { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 4.5vw, 72px); align-items: center; }
.chalet:nth-child(even) .chalet__media { order: 2; }
.chalet__media { margin: 0; position: relative; cursor: pointer; border: 0; padding: 0; background: none; display: block; width: 100%; text-align: left; }
.chalet__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; transition: transform .6s var(--ease); }
.chalet__media:hover img { transform: scale(1.015); }
.chalet__photos { position: absolute; right: 14px; bottom: 14px; font-size: .74rem; font-weight: 600; background: rgba(14, 51, 36, .72); color: var(--ivory); padding: .35em .8em; border-radius: 999px; }
.chalet__name { font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--green); }
.chalet__name + .stay-meta { margin-top: .9rem; }
.chalet__units { font-family: var(--serif); font-style: italic; color: #8F6A22; font-size: 1.05rem; margin: .35rem 0 0; }
@media (max-width: 820px) {
  .chalet { grid-template-columns: 1fr; }
  .chalet:nth-child(even) .chalet__media { order: 0; }
}

.included { margin-top: clamp(64px, 9vw, 112px); padding-top: 28px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 2.4fr; gap: 20px 48px; }
.included__title { font-size: 1.35rem; color: var(--green); }
.included__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 32px; font-size: .95rem; color: var(--ink-soft); }
.included__list li { padding-left: 22px; position: relative; }
.included__list li::before { content: ''; position: absolute; left: 0; top: .62em; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--champagne); }
@media (max-width: 820px) {
  .included { grid-template-columns: 1fr; }
  .included__list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) { .included__list { grid-template-columns: 1fr; } }

/* ---------- Experiencias ---------- */
.experiences { background: var(--ivory-deep); padding: clamp(72px, 10vw, 128px) 0 clamp(40px, 6vw, 80px); }
.experiences__head { margin-bottom: clamp(40px, 6vw, 72px); }
.spread {
  display: grid; grid-template-columns: 1.6fr 1fr; align-items: center;
  gap: clamp(28px, 5vw, 80px);
  max-width: 1400px; margin: 0 auto clamp(64px, 9vw, 120px); padding-right: var(--gutter);
}
.spread--reverse { grid-template-columns: 1fr 1.25fr; padding-right: 0; padding-left: var(--gutter); max-width: var(--wrap); }
.spread--reverse .spread__media { order: 2; }
.spread__media { margin: 0; }
.spread__media img { width: 100%; height: 100%; object-fit: cover; }
.spread__media--wide img { aspect-ratio: 16 / 10; border-radius: 4px; }
.spread__media--tall { max-width: 520px; justify-self: end; width: 100%; padding-right: var(--gutter); }
.spread__media--tall img { aspect-ratio: 4 / 5; border-radius: 200px 200px 4px 4px; }
.spread__text { max-width: 42ch; }
.spread__text h3 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); color: var(--green); margin-bottom: 1rem; }
.spread__text p { font-size: 1.04rem; color: var(--ink-soft); }
.spread__inset { margin: 1.8rem 0 0; width: min(46%, 200px); }
.spread__inset img { aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; }
@media (max-width: 900px) {
  .spread, .spread--reverse { grid-template-columns: 1fr; padding: 0; }
  .spread--reverse .spread__media { order: 0; }
  .spread__media--wide img { border-radius: 0; aspect-ratio: 4 / 3; }
  .spread__media--tall { justify-self: center; padding: 0 var(--gutter); max-width: 560px; }
  .spread__text { padding: 0 var(--gutter); }
  .spread__inset { display: none; }
}

/* ---------- Reel ---------- */
.reel { background: var(--green); color: var(--ivory); padding: clamp(72px, 10vw, 120px) 0; overflow: hidden; }
.reel__grid { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: clamp(36px, 6vw, 96px); }
.reel__title { font-size: clamp(2.2rem, 4.4vw, 3.6rem); color: var(--ivory); margin-bottom: 1.1rem; }
.reel__text p { color: rgba(248, 243, 232, .82); max-width: 40ch; font-size: 1.05rem; margin-bottom: 2rem; }
.play-dot { width: 0; height: 0; border-left: 9px solid var(--gold-light); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.reel__poster {
  position: relative; justify-self: center; width: min(100%, 340px); padding: 0; border: 0; cursor: pointer; background: none;
  border-radius: 170px 170px 6px 6px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.55);
}
.reel__poster img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; transition: transform .6s var(--ease); }
.reel__poster:hover img { transform: scale(1.02); }
.reel__play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  border-radius: 50%; border: 1px solid rgba(245, 211, 147, .85); background: rgba(14, 51, 36, .45); backdrop-filter: blur(4px);
}
.reel__play::after { content: ''; position: absolute; left: 31px; top: 25px; border-left: 20px solid var(--gold-light); border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
@media (max-width: 820px) { .reel__grid { grid-template-columns: 1fr; } .reel__poster { width: min(100%, 300px); } }

/* ---------- Ubicación ---------- */
.location { padding: clamp(72px, 10vw, 128px) 0; }
.location__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.location__address { font-style: normal; font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.4; color: var(--green-night); margin: 1.4rem 0 1.4rem; }
.location__text > p { color: var(--ink-soft); max-width: 46ch; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 40px; margin: 2rem 0 2.2rem; padding: 20px 0; border-block: 1px solid var(--line); }
.facts dt { font-size: .78rem; font-weight: 600; color: var(--green); letter-spacing: .03em; }
.facts dd { margin: .15rem 0 0; font-family: var(--serif); font-size: 1.12rem; }
.location__media { margin: 0; justify-self: end; width: min(100%, 470px); }
.location__media img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px 200px 4px 4px; }
@media (max-width: 820px) {
  .location__grid { grid-template-columns: 1fr; }
  .location__media { justify-self: center; }
  .facts { grid-template-columns: 1fr 1fr; }
}

/* ---------- Cierre ---------- */
.closing { background: var(--green-night); color: var(--ivory); padding: clamp(80px, 12vw, 150px) 0 clamp(72px, 10vw, 120px); text-align: center; }
.closing__inner { display: flex; flex-direction: column; align-items: center; }
.closing__iso { width: 84px; height: 84px; margin-bottom: 2rem; }
.closing__title { font-size: clamp(2rem, 4.6vw, 3.8rem); max-width: 19ch; text-wrap: balance; }
.closing__actions { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 2.4rem 0 3.4rem; }
.closing__alt { color: var(--gold-light); font-size: .92rem; font-weight: 500; text-decoration: none; border-bottom: 1px solid rgba(245, 211, 147, .5); padding: 4px 0; }
.closing__alt:hover { border-bottom-color: var(--gold-light); }
.contact { list-style: none; margin: 0; padding: 26px 0 0; border-top: 1px solid rgba(245, 211, 147, .25); display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 44px; font-size: .95rem; }
.social { list-style: none; margin: 22px 0 0; padding: 0; display: flex; gap: 28px; font-size: .86rem; }
.social a { color: var(--gold-light); text-decoration: none; border-bottom: 1px solid rgba(245, 211, 147, .4); padding: 4px 0; }
.social a:hover { border-bottom-color: var(--gold-light); }
.contact__k { display: block; font-size: .74rem; color: rgba(248, 243, 232, .6); font-weight: 500; letter-spacing: .03em; }
.contact a { color: var(--ivory); text-decoration: none; border-bottom: 1px solid transparent; }
.contact a:hover { border-bottom-color: var(--champagne); }

/* ---------- Footer ---------- */
.footer { background: var(--green-night); color: rgba(248, 243, 232, .7); padding: 0 0 56px; font-size: .84rem; }
@media (max-width: 760px) { .footer { padding-bottom: 112px; } }
.footer__inner { border-top: 1px solid rgba(245, 211, 147, .18); padding-top: 36px; display: grid; justify-items: center; text-align: center; gap: 6px; }
.footer img { width: 120px; height: auto; margin-bottom: 12px; }
.footer p { margin: 0; }
.footer__small { font-size: .76rem; color: rgba(248, 243, 232, .5); }

/* ---------- Barra móvil ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 40;
    display: flex; gap: 10px; align-items: center;
    padding: 8px; border-radius: 999px; background: rgba(14, 51, 36, .92); backdrop-filter: blur(8px);
    box-shadow: 0 12px 30px -12px rgba(0,0,0,.5);
    transform: translateY(140%); transition: transform .4s var(--ease);
  }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar__main { flex: 1; }
  .mobile-bar__wa { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: var(--gold-light); border: 1px solid rgba(245, 211, 147, .5); }
  .mobile-bar__wa[hidden] { display: none; }
  .nav__cta-item { display: block; }
}

/* ---------- Detalle (dialog) ---------- */
dialog { padding: 0; border: 0; }
.detail {
  width: min(1180px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  background: var(--ivory); color: var(--ink); border-radius: 6px; overflow: hidden;
}
.detail::backdrop, .reel-dialog::backdrop { background: rgba(14, 51, 36, .78); backdrop-filter: blur(3px); }
.detail[open] { display: block; }
.detail__inner { display: grid; grid-template-columns: 1.45fr 1fr; max-height: inherit; }
.detail__gallery { position: relative; background: var(--green-night); min-height: 0; }
.detail__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; height: 100%; scrollbar-width: none; }
.detail__track::-webkit-scrollbar { display: none; }
.detail__track figure { margin: 0; flex: 0 0 100%; scroll-snap-align: start; display: grid; place-items: center; }
.detail__track img { width: 100%; height: 100%; max-height: calc(100dvh - 32px); object-fit: cover; }
.detail__track img.is-portrait { object-fit: contain; background: var(--green-night); }
.detail__nav { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; align-items: center; gap: 14px; pointer-events: none; }
.detail__nav button {
  pointer-events: auto; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: rgba(14, 51, 36, .62); border: 1px solid rgba(245, 211, 147, .55); color: var(--ivory); font-size: 1.4rem; line-height: 1;
}
.detail__count { font-size: .8rem; color: var(--ivory); background: rgba(14, 51, 36, .62); padding: .3em .8em; border-radius: 999px; }
.detail__body { padding: clamp(28px, 4vw, 52px); overflow-y: auto; max-height: calc(100dvh - 32px); }
.detail__kind { font-size: .82rem; font-weight: 600; color: #8F6A22; margin: 0 0 .4rem; }
.detail__title { font-size: clamp(1.9rem, 3vw, 2.6rem); color: var(--green); padding-right: 40px; }
.detail__units { font-family: var(--serif); font-style: italic; color: var(--ink-soft); margin: .5rem 0 1.2rem; }
.detail__desc { font-size: 1rem; }
.detail__attrs { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: 8px; }
.detail__attrs li { padding-left: 22px; position: relative; font-size: .94rem; }
.detail__attrs li::before { content: ''; position: absolute; left: 0; top: .6em; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--champagne); }
.detail__note { font-size: .84rem; color: var(--ink-soft); padding-top: 1rem; border-top: 1px solid var(--line); }
.detail__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 1.4rem; }
.detail__alt { font-weight: 600; font-size: .9rem; color: var(--green); text-decoration: none; border-bottom: 1px solid var(--champagne); padding: 4px 0; }
.detail__close {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--ivory); cursor: pointer;
}
.detail__close span::before, .detail__close span::after {
  content: ''; position: absolute; left: 13px; top: 21px; width: 17px; height: 1.5px; background: var(--green-night);
}
.detail__close span::before { transform: rotate(45deg); }
.detail__close span::after { transform: rotate(-45deg); }
.detail__close--light { background: rgba(248, 243, 232, .92); }
@media (max-width: 860px) {
  .detail { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; }
  .detail__inner { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: 100%; }
  .detail__gallery { height: 46vh; height: 46dvh; }
  .detail__track img { max-height: 46dvh; }
  .detail__body { max-height: none; overflow-y: auto; padding-bottom: 40px; }
}

.reel-dialog { background: transparent; width: auto; max-width: 100vw; overflow: visible; }
.reel-dialog[open] { display: grid; place-items: center; }
.reel-dialog__video { height: min(86vh, 860px); height: min(86dvh, 860px); width: auto; aspect-ratio: 9 / 16; max-width: 92vw; border-radius: 8px; background: #000; object-fit: cover; }
.reel-dialog .detail__close { top: -6px; right: -6px; }
@media (max-width: 600px) { .reel-dialog .detail__close { top: 8px; right: 8px; } }

.noscript { padding: 1rem; border: 1px solid var(--line); }
html.has-dialog { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
