/* El Quincho — estilos
   Paleta tomada del logo (azul marino + línea blanca) con madera y verde pino. */
:root {
  --navy: #1c2a44;
  --navy-deep: #101b31;
  --navy-soft: #2b3f63;
  --cream: #f5efe3;
  --cream-2: #ebe3d1;
  --wood: #96612f;
  --wood-dark: #7c4f24;
  --amber: #f0a950;
  --pine: #3d5f4a;
  --ink: #1d2433;
  --muted: #5b6474;
  --line: rgba(28, 42, 68, .14);
  --radius: 18px;
  --shadow: 0 14px 40px rgba(16, 27, 49, .14);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.wrap { width: min(1160px, 100% - 2rem); margin-inline: auto; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cream); color: var(--navy); padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.ico { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1.2 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .55rem 1.05rem; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-wood { background: var(--wood); color: #fff; box-shadow: 0 8px 22px rgba(168, 112, 58, .38); }
.btn-wood:hover { background: var(--wood-dark); }
.btn-navy { background: var(--navy); color: var(--cream); }
.btn-navy:hover { background: var(--navy-soft); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: var(--cream); border-color: rgba(245, 239, 227, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); }

.link { font-weight: 700; color: var(--navy); text-underline-offset: 4px; }
.link-light { color: var(--amber); font-weight: 700; text-underline-offset: 4px; }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { background: rgba(16, 27, 49, .94); backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.header-in { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--cream); }
.brand-mark { width: 44px; height: 44px; padding: 7px; border-radius: 50%; background: var(--navy); border: 1.5px solid rgba(245, 239, 227, .5); color: var(--cream); }
.brand-text { display: grid; line-height: 1.1; }
.brand-text strong { font: 700 1.2rem var(--display); letter-spacing: .02em; }
.brand-text small { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a:not(.btn) { color: var(--cream); text-decoration: none; font-weight: 500; font-size: .98rem; opacity: .9; }
.nav a:not(.btn):hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }

.burger { display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; padding: 0; }
.burger span { display: block; width: 24px; height: 2px; background: var(--cream); margin: 5px auto; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; color: var(--cream); background: var(--navy-deep); }
.hero-art, .hero-scene, .hero-photo, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo { object-fit: cover; object-position: 50% 60%; }
.hero.has-photo .hero-scene, .hero.has-photo .hero-cabin { display: none; }
.hero.has-photo .hero-shade {
  background:
    radial-gradient(ellipse at center, rgba(10, 18, 34, .62) 0%, rgba(10, 18, 34, .8) 100%),
    linear-gradient(0deg, rgba(10, 18, 34, .55) 0%, transparent 35%),
    linear-gradient(180deg, rgba(10, 18, 34, .6) 0%, transparent 22%);
}
.hero-shade { background: radial-gradient(ellipse at center, rgba(10, 18, 34, .5) 0%, rgba(10, 18, 34, .15) 100%); }
.hero-cabin {
  position: absolute; right: 7%; bottom: 3%; width: clamp(200px, 26vw, 360px); height: auto; overflow: visible;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .4));
}
.hero-in { position: relative; z-index: 2; padding: 7.5rem 0 8rem; text-align: center; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--amber); margin-bottom: 1.1rem; }
.eyebrow-dark { color: var(--wood-dark); }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); max-width: 12ch; margin: 0 auto .35em; text-wrap: balance; }
.hero h1 em { font-style: italic; font-weight: 400; color: #ffd9a0; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 34rem; opacity: .95; margin: 0 auto 1.8rem; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-bottom: 2rem; }
.hero-loc { display: inline-flex; align-items: center; gap: .5rem; font-size: .95rem; opacity: .85; margin: 0; }

.smoke { animation: rise 4s ease-in-out infinite; transform-origin: center; }
.win { animation: flicker 5s ease-in-out infinite; }
.win-2 { animation-delay: -2.2s; }
.stars circle { animation: twinkle 4s ease-in-out infinite; }
.stars circle:nth-child(2n) { animation-delay: -1.3s; }
.stars circle:nth-child(3n) { animation-delay: -2.6s; }
@keyframes flicker { 0%, 100% { opacity: 1; } 45% { opacity: .82; } 60% { opacity: .95; } }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes rise { 0%, 100% { opacity: .15; } 50% { opacity: .45; } }

/* ---------- Franja ---------- */
.strip { background: var(--navy); color: var(--cream); border-top: 1px solid rgba(245, 239, 227, .12); }
.strip-in { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2.4rem; padding: 1.2rem 0; margin-block: 0; font-weight: 500; }
.strip-in li { display: inline-flex; align-items: center; gap: .6rem; }
.strip-in .ico { color: var(--amber); }

/* ---------- Secciones ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-tint { background: var(--cream-2); }
.section-navy { background: var(--navy); color: var(--cream); }
.section-head { max-width: 40rem; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
.section-head p:last-child { color: var(--muted); margin-bottom: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; }
.card { text-align: center; background: #fff; border-radius: var(--radius); padding: 1.8rem 1.5rem; border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.4rem; }
.card p { color: var(--muted); margin: 0; font-size: 1rem; }
.card-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--navy); color: var(--amber); margin: 0 auto 1.1rem; }
.card-ico .ico { width: 28px; height: 28px; }

/* ---------- Bloques partidos ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; }
.split-art { position: relative; min-height: 340px; }
.split-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.split-copy { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: clamp(2.5rem, 6vw, 5.5rem); }
.split-copy h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.split-copy > p:not(.eyebrow) { color: var(--muted); max-width: 32rem; }
.split-cabin { background: var(--cream); }
.split-events { background: #fff; }
.split-rev .split-art { order: 2; }

.ticks { list-style: none; padding: 0; margin: .4rem 0 1.8rem; display: grid; gap: .55rem; justify-items: center; }
.ticks li { display: flex; align-items: center; justify-content: center; gap: .6rem; text-align: center; }
.ticks li::before {
  content: ""; flex: none; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--pine) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.3 2.6 2.6L12 5.4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-bottom: 2rem; }
.gallery figure { margin: 0; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--cream-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.05); }

/* ---------- Tarifas ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; max-width: 820px; margin-inline: auto; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem 2rem; display: flex; flex-direction: column; align-items: center; text-align: center; }
.plan h3 { font-size: 1.6rem; }
.plan p { color: var(--muted); flex: 1; }
.plan-featured { border: 2px solid var(--wood); box-shadow: var(--shadow); }
.badge { position: absolute; top: -.85rem; right: 1.5rem; background: var(--wood); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 999px; }
.fine { color: var(--muted); font-size: .92rem; margin: 1.8rem 0 0; }

/* ---------- Preguntas frecuentes ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: .8rem; text-align: center; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.4rem; }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 0; font: 600 1.1rem/1.3 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: .6rem; color: var(--wood-dark); font-weight: 700; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--muted); margin: 0 0 1.2rem; }

/* ---------- Pasos ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2rem; max-width: 940px; margin-inline: auto; counter-reset: s; }
.steps li { text-align: center; }
.steps h3 { font-size: 1.35rem; }
.steps p { color: var(--muted); margin: 0; }
.step-n { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 1rem; border-radius: 50%; border: 2px solid var(--wood); color: var(--wood); font: 600 1.5rem var(--display); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; text-align: center; }
.section-navy h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.lead-sm { opacity: .9; margin-bottom: 1.8rem; }
.form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: .4rem; font-size: .9rem; font-weight: 700; letter-spacing: .02em; }
.form input, .form select, .form textarea {
  width: 100%; padding: .8rem .95rem; border-radius: 12px; border: 1.5px solid rgba(245, 239, 227, .3);
  background: rgba(255, 255, 255, .07); color: var(--cream); font: 400 1rem var(--body); text-align: center;
}
.form select { text-align-last: center; }
.form select option { color: var(--ink); }
.form input::placeholder, .form textarea::placeholder { color: rgba(245, 239, 227, .55); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--amber); background: rgba(255, 255, 255, .12); }
.form input[type="date"] { color-scheme: dark; }
.form-note { min-height: 1.4em; margin: 0; font-size: .92rem; color: #ffd9a0; }

.info { position: sticky; top: 100px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(245, 239, 227, .18); border-radius: var(--radius); padding: 2rem; }
.info h3 { font-size: 1.3rem; }
.info-row { display: flex; gap: .8rem; align-items: center; justify-content: center; text-align: center; }
.info-row .ico { margin-top: .25rem; color: var(--amber); }
.fine-light { font-size: .95rem; opacity: .8; margin: .6rem 0 1.2rem; }
.map-embed { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 14px; margin-bottom: 1rem; background: rgba(255, 255, 255, .06); }
.info hr { border: 0; border-top: 1px solid rgba(245, 239, 227, .18); margin: 1.6rem 0; }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy-deep); color: var(--cream); padding: 3rem 0 1.5rem; }
.footer-in { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 1rem 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(245, 239, 227, .14); }
.footer-in p { margin: 0; opacity: .85; }
.copy { font-size: .85rem; opacity: .75; margin: 1.2rem auto 0; text-align: center; }

/* ---------- Botón flotante ---------- */
.float-cta {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60; display: none; align-items: center; gap: .5rem;
  padding: .8rem 1.2rem; border-radius: 999px; background: var(--wood); color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.float-cta.show { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Animación de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .burger { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(16, 27, 49, .98); padding: .5rem 1rem 1.2rem; display: none; box-shadow: 0 16px 30px rgba(0, 0, 0, .35);
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: .9rem .4rem; border-bottom: 1px solid rgba(245, 239, 227, .1); text-align: center; }
  .nav-cta { margin-top: 1rem; }
  .site-header.menu-open { background: rgba(16, 27, 49, .98); }

  .hero-shade { background: linear-gradient(180deg, rgba(10, 18, 34, .6) 0%, rgba(10, 18, 34, .25) 60%, rgba(10, 18, 34, .1) 100%); }
  .hero { align-items: flex-start; }
  .hero-in { padding: 6.5rem 0 14rem; }
  .hero.has-photo .hero-in { padding-bottom: 6rem; }
  .hero.has-photo .hero-shade { background: linear-gradient(180deg, rgba(10, 18, 34, .8) 0%, rgba(10, 18, 34, .6) 55%, rgba(10, 18, 34, .4) 100%); }
  .hero-cabin { right: 50%; transform: translateX(50%); width: min(62vw, 260px); bottom: 2%; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .info { position: static; }
  .split-rev .split-art { order: 0; }
  .split-art { min-height: 260px; }
  .float-cta { display: inline-flex; }
  .site-footer { padding-bottom: 5rem; }
}
@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
  .brand-text small { display: none; }
  .strip-in { gap: .5rem 1.3rem; font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
