/* Soli Visión — design system
   Apple-style: white / #F5F5F7 alternation, ink text, deep-amber accent used sparingly. */

:root {
  --white: #ffffff;
  --alt: #f5f5f7;
  --ink: #1d1d1f;
  --gray: #6e6e73;
  --hairline: #e8e8ed;
  --accent: #8e5b22;         /* deep amber / tortoise */
  --accent-strong: #6f4517;
  --accent-soft: #c98f4e;
  --radius: 22px;
  --radius-sm: 18px;
  --shadow-card: 0 1px 2px rgba(0,0,0,.04), 0 10px 30px rgba(0,0,0,.06);
  --shadow-lift: 0 2px 6px rgba(0,0,0,.05), 0 22px 48px rgba(0,0,0,.12);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --nav-h: 52px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  font-size: 17px;
  animation: pagein .5s ease both;
}
@keyframes pagein { from { opacity: 0 } to { opacity: 1 } }
body.pageout { opacity: 0; transition: opacity .18s ease; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1120px, calc(100% - 44px)); margin: 0 auto; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section.alt { background: var(--alt); }

/* ---------- typography ---------- */
h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; }
h1 { font-size: clamp(2.7rem, 7.5vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); letter-spacing: -0.022em; }
h3 { font-size: 1.28rem; letter-spacing: -0.015em; line-height: 1.25; }
.lead { font-size: clamp(1.08rem, 2.2vw, 1.32rem); color: var(--gray); font-weight: 400; max-width: 42ch; }
.eyebrow {
  display: block; font-size: .82rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.center { text-align: center; }
.center .lead { margin-inline: auto; }

.gradient-text {
  background: linear-gradient(96deg, #8e5b22 5%, #c98f4e 45%, #a06a2c 80%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- buttons ---------- */
.btn, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 13px 26px; font-size: 1.02rem; font-weight: 500;
  font-family: inherit; cursor: pointer; border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  text-decoration: none;
}
.btn { background: var(--accent); color: #fff; }
.btn:hover { background: var(--accent-strong); text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(142,91,34,.28); }
.btn-ghost { background: transparent; color: var(--ink); border-color: #c9c9ce; }
.btn-ghost:hover { border-color: var(--ink); text-decoration: none; transform: translateY(-1px); }
.btn.small, .btn-ghost.small { padding: 9px 18px; font-size: .95rem; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-logo { font-size: 1.18rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.nav-logo span { color: var(--accent); }
.nav-logo:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { color: rgba(29,29,31,.78); font-size: .95rem; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a.active { color: var(--ink); font-weight: 500; }
.nav-book { background: var(--accent); color: #fff !important; padding: 8px 18px; border-radius: 999px; font-weight: 500; transition: background .25s ease; }
.nav-book:hover { background: var(--accent-strong); }

.nav-burger {
  display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px;
  position: relative; z-index: 70;
}
.nav-burger span {
  position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform .3s ease, opacity .3s ease, top .3s ease;
}
.nav-burger span:nth-child(1) { top: 17px; }
.nav-burger span:nth-child(2) { top: 25px; }
body.menu-open .nav-burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 60; background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  display: flex; flex-direction: column; justify-content: center; padding: 0 34px;
  opacity: 0; pointer-events: none; transition: opacity .35s ease; visibility: hidden;
}
body.menu-open .mobile-menu { opacity: 1; pointer-events: auto; visibility: visible; }
.mobile-menu a {
  color: var(--ink); font-size: 2.1rem; font-weight: 600; letter-spacing: -0.02em;
  padding: 13px 0; border-bottom: 1px solid var(--hairline);
  opacity: 0; transform: translateY(14px); transition: opacity .4s ease, transform .4s ease;
}
.mobile-menu a:hover { text-decoration: none; color: var(--accent); }
body.menu-open .mobile-menu a { opacity: 1; transform: none; }
body.menu-open .mobile-menu a:nth-child(1) { transition-delay: .05s }
body.menu-open .mobile-menu a:nth-child(2) { transition-delay: .1s }
body.menu-open .mobile-menu a:nth-child(3) { transition-delay: .15s }
body.menu-open .mobile-menu a:nth-child(4) { transition-delay: .2s }
body.menu-open .mobile-menu a:nth-child(5) { transition-delay: .25s }
body.menu-open .mobile-menu a:nth-child(6) { transition-delay: .3s }
.mobile-menu .btn { margin-top: 26px; align-self: flex-start; }
body.menu-open { overflow: hidden; }

main { padding-top: var(--nav-h); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--white); }
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px);
  align-items: center; padding: clamp(56px, 8vw, 108px) 0;
}
.hero-copy .lead { margin: 22px 0 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media img {
  width: 100%; aspect-ratio: 4/3.4; object-fit: cover; border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  will-change: transform;
}
.hero-glow {
  position: absolute; inset: -12% -8% auto auto; width: 62%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(201,143,78,.18), transparent 70%);
  pointer-events: none;
}

/* value strip */
.strip { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: var(--white); }
.strip-inner {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  padding: 22px 0; text-align: center;
}
.strip-inner div { color: var(--gray); font-size: .95rem; }
.strip-inner strong { display: block; color: var(--ink); font-weight: 600; font-size: 1rem; }

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

.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-card); border: 1px solid rgba(0,0,0,.03);
  transition: transform .35s cubic-bezier(.2,.6,.2,1), box-shadow .35s cubic-bezier(.2,.6,.2,1);
  display: block; color: inherit;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); text-decoration: none; }
.card-media { overflow: hidden; aspect-ratio: 4/3; background: var(--alt); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.6,.2,1); }
.card:hover .card-media img { transform: scale(1.045); }
.card-body { padding: 20px 22px 24px; }
.card-body h3 { margin-bottom: 6px; }
.card-body p { color: var(--gray); font-size: .97rem; }
.card-kicker { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }

/* why tiles (no images, icon-led) */
.why-tile { background: var(--white); border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow-card); }
.section.alt .why-tile { box-shadow: none; border: 1px solid rgba(0,0,0,.04); }
.why-tile svg { width: 34px; height: 34px; color: var(--accent); margin-bottom: 18px; }
.why-tile h3 { margin-bottom: 8px; }
.why-tile p { color: var(--gray); font-size: .98rem; }

/* story band */
.band { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 420px; display: flex; align-items: flex-end; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band-content {
  position: relative; padding: clamp(26px, 4vw, 48px); color: #fff; width: 100%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.55));
}
.band-content h2 { color: #fff; }
.band-content p { max-width: 46ch; opacity: .92; margin-top: 10px; }

/* ---------- footer ---------- */
footer { background: var(--alt); border-top: 1px solid var(--hairline); padding: 56px 0 40px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
.footer-grid h3 { font-size: .9rem; font-weight: 600; margin-bottom: 14px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a, .footer-grid p, .footer-grid li { color: var(--gray); font-size: .92rem; }
.footer-grid a:hover { color: var(--ink); text-decoration: none; }
.footer-logo { font-size: 1.15rem; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.footer-logo span { color: var(--accent); }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--gray); font-size: .85rem;
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.6,.2,1), transform .8s cubic-bezier(.2,.6,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s } .reveal.d2 { transition-delay: .16s } .reveal.d3 { transition-delay: .24s }

/* ---------- forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .92rem; font-weight: 500; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid #d2d2d7; border-radius: 13px; padding: 13px 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(142,91,34,.12);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { color: var(--gray); font-size: .88rem; }
.form-status { margin-top: 14px; font-size: .95rem; min-height: 1.4em; }
.form-status.ok { color: #1a7f37; }
.form-status.err { color: #b3261e; }

/* ---------- booking wizard ---------- */
.wizard { max-width: 640px; margin: 0 auto; }
.steps { display: flex; gap: 8px; justify-content: center; margin: 26px 0 38px; flex-wrap: wrap; }
.step-chip {
  font-size: .84rem; color: var(--gray); border: 1px solid var(--hairline);
  padding: 7px 15px; border-radius: 999px; background: var(--white); display: inline-flex; gap: 7px; align-items: center;
}
.step-chip.active { color: #fff; background: var(--ink); border-color: var(--ink); font-weight: 500; }
.step-chip.done { color: var(--accent); border-color: rgba(142,91,34,.35); }

.panel { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: clamp(24px, 4vw, 40px); }
.section.alt .panel { border: 1px solid rgba(0,0,0,.04); }
.choice-grid { display: grid; gap: 14px; }
.choice {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  text-align: left; font: inherit; background: var(--white); color: var(--ink);
  border: 1.5px solid var(--hairline); border-radius: var(--radius-sm); padding: 18px 20px; cursor: pointer;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.choice:hover { border-color: #c9c9ce; transform: translateY(-2px); box-shadow: var(--shadow-card); }
.choice.selected { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(142,91,34,.1); }
.choice strong { display: block; font-weight: 600; }
.choice small { color: var(--gray); }
.choice .dur { color: var(--gray); font-size: .88rem; white-space: nowrap; }

.slot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.slot {
  font: inherit; font-size: .95rem; padding: 11px 6px; text-align: center; cursor: pointer;
  background: var(--white); color: var(--ink); border: 1.5px solid var(--hairline); border-radius: 999px;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.slot:hover:not(:disabled) { border-color: var(--accent); }
.slot.selected { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 500; }
.slot:disabled { color: #c7c7cc; background: var(--alt); cursor: not-allowed; border-color: transparent; text-decoration: line-through; }

.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.review dl { display: grid; grid-template-columns: 130px 1fr; row-gap: 12px; }
.review dt { color: var(--gray); font-size: .95rem; }
.review dd { font-weight: 500; }

.success-check { width: 74px; height: 74px; margin: 0 auto 22px; color: var(--accent); }

/* ---------- admin ---------- */
.admin-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.admin-table th { text-align: left; color: var(--gray); font-weight: 500; font-size: .85rem; padding: 10px 12px; border-bottom: 1px solid var(--hairline); }
.admin-table td { padding: 13px 12px; border-bottom: 1px solid var(--hairline); }
.admin-table tr:hover td { background: var(--alt); }
.tag { display: inline-block; font-size: .8rem; padding: 3px 11px; border-radius: 999px; background: rgba(142,91,34,.1); color: var(--accent); font-weight: 500; }
.btn-danger {
  font: inherit; font-size: .88rem; color: #b3261e; background: none; border: 1px solid rgba(179,38,30,.35);
  padding: 6px 14px; border-radius: 999px; cursor: pointer; transition: background .2s ease, color .2s ease;
}
.btn-danger:hover { background: #b3261e; color: #fff; }

/* map card */
.map-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); min-height: 320px; background: linear-gradient(140deg, #eef1f4, #e3e8ee 55%, #edeae4); }
.map-grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(29,29,31,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(29,29,31,.05) 1px, transparent 1px); background-size: 44px 44px; }
.map-pin { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -100%); text-align: center; }
.map-pin svg { width: 42px; height: 42px; color: var(--accent); filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.map-pin span { display: block; margin-top: 6px; background: var(--white); border-radius: 999px; padding: 5px 14px; font-size: .85rem; font-weight: 500; box-shadow: var(--shadow-card); }
.map-cta { position: absolute; right: 18px; bottom: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 16/10; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .strip-inner { grid-template-columns: 1fr; gap: 10px; text-align: left; }
  .strip-inner div { display: flex; gap: 8px; align-items: baseline; }
  .slot-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .review dl { grid-template-columns: 105px 1fr; }
  .container { width: calc(100% - 36px); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .card-media img, .btn, .btn-ghost, .choice, .mobile-menu, .mobile-menu a { transition: none !important; }
  .hero-media img { transform: none !important; }
}

/* h2 used as card heading (keeps h1->h2 order on listing pages) */
.card-title { font-size: 1.28rem; letter-spacing: -0.015em; line-height: 1.25; font-weight: 600; margin-bottom: 6px; }
