/* ==========================================================
   Diseño 5 · Club — premium, minimalista, líneas finas.
   Verde bosque, dorado y marfil. Outfit liviana.
   ========================================================== */

:root {
  --forest: #0F2A1F;
  --forest-2: #163829;
  --gold: #C9A96E;
  --gold-light: #DCC395;
  --ivory: #F4EFE6;
  --ivory-2: #EAE3D6;
  --text-dark: #F4EFE6;
  --muted-dark: #B9C2B8;
  --ink: #0F2A1F;
  --muted-light: #56645B;
  --line-dark: rgba(201, 169, 110, .28);
  --line-light: rgba(15, 42, 31, .16);

  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 68px;
  --gutter: 24px;
  --ease: cubic-bezier(.25, .8, .25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }

body { margin: 0; font-family: var(--font); font-weight: 300; font-size: 1.0625rem; line-height: 1.7; color: var(--text-dark); background: var(--forest); -webkit-font-smoothing: antialiased; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }

h1, h2, h3 { font-weight: 200; line-height: 1.1; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 10vw, 5.4rem); }
h2 { font-size: clamp(2.2rem, 7vw, 3.6rem); }
h3 { font-size: 1.7rem; font-weight: 300; }
p { margin: 0 0 1em; }
strong { font-weight: 500; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -100px; z-index: 100; background: var(--gold); color: var(--forest); padding: 10px 16px; font-weight: 500; }
.skip-link:focus { top: 8px; }

.container { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 54px; padding: .8em 1.8em; border-radius: 2px; border: 1px solid var(--gold); font-family: var(--font); font-weight: 400; font-size: 1rem; letter-spacing: .02em; text-decoration: none; transition: background-color .3s var(--ease), color .3s var(--ease); }
.btn-gold { background: var(--gold); color: var(--forest); }
.btn-gold:hover { background: var(--gold-light); }
.btn-line { background: transparent; color: var(--gold-light); }
.btn-line:hover { background: var(--gold); color: var(--forest); }
.wa-icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(15, 42, 31, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .4s; }
.site-header.is-scrolled { border-color: var(--line-dark); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { font-weight: 400; letter-spacing: .32em; font-size: 1rem; text-decoration: none; margin: 0; }
.brand span { color: var(--gold); }

.nav-toggle { width: 48px; height: 48px; border: 0; background: transparent; display: grid; place-content: center; gap: 8px; cursor: pointer; }
.nav-toggle span { width: 26px; height: 1px; background: var(--ivory); transition: transform .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

.nav { position: fixed; inset: var(--header-h) 0 auto 0; display: flex; flex-direction: column; padding: 16px var(--gutter) 32px; background: var(--forest); border-bottom: 1px solid var(--line-dark); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.nav.is-open { opacity: 1; visibility: visible; }
.nav a { padding: 16px 0; border-bottom: 1px solid var(--line-dark); text-decoration: none; font-size: 1.5rem; font-weight: 200; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 96px; text-align: center; border-bottom: 1px solid var(--line-dark); }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-img { width: 170px; margin-bottom: 40px; animation: turn 9s ease-in-out infinite; }
@keyframes turn { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
.lead { font-size: 1.15rem; color: var(--muted-dark); max-width: 30em; margin-bottom: 36px; }
.cta-row { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 360px; }

/* ---------- Secciones ---------- */
.section { padding: 96px 0; }
.section-ivory { background: var(--ivory); color: var(--ink); }
.section-ivory .intro, .section-ivory p, .section-ivory dd { color: var(--muted-light); }
.intro { font-size: 1.15rem; color: var(--muted-dark); max-width: 34em; margin-bottom: 48px; }

/* ---------- Colección ---------- */
.columns { display: grid; border-top: 1px solid var(--line-dark); }
.col { padding: 40px 0; border-bottom: 1px solid var(--line-dark); display: grid; grid-template-columns: 80px 1fr; column-gap: 24px; }
.col .shape-art { grid-row: span 4; width: 80px; }
.shape-head { fill: none; stroke: var(--gold); stroke-width: 1.5; }
.shape-handle { fill: none; stroke: var(--gold); stroke-width: 1.5; }
.shape-spot { fill: var(--gold); opacity: .9; }
.col h3 { margin: 0; }
.kind { color: var(--gold); font-size: .95rem; letter-spacing: .18em; text-transform: uppercase; margin: 2px 0 12px; font-weight: 400; }
.col p:not(.kind) { color: var(--muted-dark); }
.link { justify-self: start; color: var(--gold-light); text-decoration: none; border-bottom: 1px solid var(--gold); padding: 6px 0 2px; transition: color .2s; }
.link:hover { color: var(--ivory); }

/* ---------- Catálogo de modelos ---------- */
.catalog { background: var(--forest-2); }
.cat-tools { display: grid; gap: 16px; margin-bottom: 40px; }
.cat-tools[hidden] { display: none; }
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-tabs button {
  min-height: 48px; padding: 0 20px; border: 1px solid var(--line-dark); border-radius: 2px;
  background: transparent; color: var(--ivory); font: inherit; font-weight: 400; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s;
}
.cat-tabs button span { color: var(--gold); margin-left: 4px; }
.cat-tabs button:hover { border-color: var(--gold); }
.cat-tabs button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--forest); }
.cat-tabs button[aria-pressed="true"] span { color: var(--forest); }
.cat-search input {
  width: 100%; min-height: 50px; padding: 0 16px; border: 1px solid var(--line-dark); border-radius: 2px;
  background: var(--forest); color: var(--ivory); font: inherit; font-size: 1rem;
}
.cat-search input::placeholder { color: var(--muted-dark); }
.cat-search input:focus { outline: none; border-color: var(--gold); }

.cat-group + .cat-group { margin-top: 56px; }
.cat-group h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding-bottom: 14px; margin-bottom: 0; border-bottom: 1px solid var(--line-dark); }
.cat-group h3 span { font-size: .95rem; color: var(--gold); letter-spacing: .04em; }
.js .cat-tools:not([hidden]) ~ .cat-group[data-hidden] { display: none; }
.js .container:not(.is-searching) > .cat-tools:not([hidden]) ~ .cat-group h3 { display: none; }

.cat-list { list-style: none; margin: 0; padding: 0; display: grid; }
.cat-list li[hidden] { display: none; }
.cat-list a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 14px 0; border-bottom: 1px solid var(--line-dark);
  text-decoration: none;
}
.cat-list a::after { content: "Consultar"; flex: none; font-size: .9rem; color: var(--gold); opacity: 0; transition: opacity .3s; }
.cat-list a:hover span, .cat-list a:focus-visible span { transform: translateX(10px); }
.cat-list a:hover::after, .cat-list a:focus-visible::after { opacity: 1; }
.cat-list small { order: 2; flex: none; font-size: .9rem; color: var(--muted-dark); letter-spacing: .06em; text-transform: uppercase; }
.cat-list span { font-size: 1.1rem; font-weight: 300; transition: transform .3s var(--ease); }
.cat-list a:hover small, .cat-list a:focus-visible small { display: none; }
.cat-empty { margin-top: 24px; color: var(--muted-dark); }
.cat-empty a { color: var(--gold-light); }

/* ---------- Accesorios ---------- */
.split { display: grid; gap: 40px; }
.acc-img { width: 200px; margin-top: 8px; background: var(--forest); border-radius: 50%; padding: 24px; }
.acc-list { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line-light); }
.acc-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line-light); text-decoration: none; }
.acc-list a:hover span { transform: translateX(12px); }
.acc-list span { font-size: 1.45rem; font-weight: 300; transition: transform .3s var(--ease); }
.acc-list small { font-size: .95rem; color: var(--muted-light); text-align: right; }

/* ---------- Servicio ---------- */
.service { margin: 0; display: grid; border-top: 1px solid var(--line-dark); }
.service div { padding: 28px 0; border-bottom: 1px solid var(--line-dark); }
.service dt { font-size: 1.45rem; font-weight: 300; margin-bottom: 6px; }
.service dt::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 14px; vertical-align: middle; }
.service dd { margin: 0; color: var(--muted-dark); }

/* ---------- Red ---------- */
.quote { text-align: center; background: var(--forest-2); }
.quote p { color: var(--muted-dark); font-size: 1.15rem; margin: 0 auto 36px; max-width: 32em; }

/* ---------- Contacto ---------- */
address { font-style: normal; font-size: 1.3rem; margin-bottom: 28px; }
.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-light); }
.hours dt { font-weight: 400; }
.hours dd { margin: 0; text-align: right; }
.hours a { color: var(--ink); font-weight: 500; }

.faq h3 { margin-bottom: 16px; }
.faq details { border-top: 1px solid var(--line-light); }
.faq details:last-child { border-bottom: 1px solid var(--line-light); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; min-height: 60px; position: relative; font-weight: 400; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 16px; height: 1px; background: var(--ink); transition: transform .3s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { margin: 0 0 18px; }

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0 110px; border-top: 1px solid var(--line-dark); color: var(--muted-dark); font-size: .95rem; }
.footer-inner { display: grid; gap: 10px; }
.footer-inner p { margin: 0; }
.site-footer a { color: var(--gold-light); }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 58px; height: 58px; display: grid; place-items: center; background: var(--gold); color: var(--forest); border-radius: 2px; box-shadow: 0 8px 20px rgba(0, 0, 0, .3); transition: background-color .3s; }
.wa-float:hover { background: var(--gold-light); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Aparición (lenta y sutil) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (min-width: 640px) {
  .cta-row { flex-direction: row; justify-content: center; max-width: none; }
}

@media (min-width: 960px) {
  :root { --header-h: 84px; --gutter: 48px; }
  .nav-toggle { display: none; }
  .nav { position: static; flex-direction: row; gap: 40px; padding: 0; background: none; border: 0; opacity: 1; visibility: visible; }
  .nav a { border: 0; padding: 6px 0; font-size: .95rem; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; }
  .nav a:hover { color: var(--gold); }

  .hero { padding: 96px 0 140px; }
  .hero-img { width: 220px; }
  .section { padding: 150px 0; }

  .columns { grid-template-columns: repeat(3, 1fr); border-top: 0; }
  .col { display: flex; flex-direction: column; padding: 8px 40px 8px; border-bottom: 0; border-left: 1px solid var(--line-dark); }
  .col:first-child { padding-left: 0; border-left: 0; }
  .col .shape-art { width: 96px; margin-bottom: 32px; }
  .col .link { margin-top: auto; align-self: flex-start; }

  .split { grid-template-columns: 1fr 1.3fr; gap: 96px; align-items: start; }
  .service { grid-template-columns: 1fr 1fr; column-gap: 64px; }
  .cat-tools { grid-template-columns: auto minmax(260px, 360px); justify-content: space-between; align-items: center; }
  .cat-list { grid-template-columns: 1fr 1fr; column-gap: 64px; }

  .footer-inner { grid-template-columns: auto 1fr; justify-items: end; align-items: center; }
  .site-footer { padding-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
