/* ==========================================================
   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 ---------- */
.catalog { background: var(--forest-2); }

.cat-tools { display: grid; gap: 20px; margin-bottom: 28px; }
.cat-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs button {
  flex: none; min-height: 46px; padding: 0 20px; border: 1px solid var(--line-dark); border-radius: 999px;
  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:hover { border-color: var(--gold); }
.cat-tabs button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--forest); }

.cat-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; font-size: .9rem; color: var(--muted-dark); }
.field-search { grid-column: 1 / -1; }
.field select, .field input {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-dark); border-radius: 2px;
  background: var(--forest); color: var(--ivory); font: inherit; font-size: 1rem;
}
.field select {
  appearance: none; padding-right: 36px;
  background: var(--forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A96E' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat;
}
.field input::placeholder { color: var(--muted-dark); }
.field select:focus, .field input:focus { outline: none; border-color: var(--gold); }

.cat-count { color: var(--muted-dark); font-size: .95rem; margin-bottom: 16px; }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
.card { display: block; text-decoration: none; }
.card-media {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px;
  background: var(--ivory); display: grid; place-items: center;
}
.card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease); }
.card:hover .card-media img, .card:focus-visible .card-media img { transform: scale(1.04); }
.n-fotos { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(15, 42, 31, .8); color: var(--ivory); font-size: .8rem; }
.ph { width: 46%; height: auto; transition: transform .6s var(--ease); }
.ph path, .ph rect { fill: none; stroke: var(--forest); stroke-width: 2; }
.ph circle { fill: var(--gold); }
.card:hover .ph { transform: rotate(-6deg); }

.card-body { padding: 12px 2px 0; display: grid; gap: 2px; }
.card-marca { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.card-modelo { font-size: 1.05rem; font-weight: 400; line-height: 1.3; color: var(--ivory); }
.card-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; margin-top: 6px; }
.card-forma { font-size: .85rem; color: var(--muted-dark); }
.card-precio { font-size: 1.05rem; font-weight: 500; color: var(--ivory); }
.card-precio.consultar { font-size: .9rem; font-weight: 400; color: var(--gold-light); }

.more { text-align: center; margin-top: 40px; }
.cat-empty { margin-top: 24px; color: var(--muted-dark); }
.cat-empty a { color: var(--gold-light); }

/* ---------- Ficha de producto ---------- */
.pd {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0;
  background: var(--forest); color: var(--ivory); overscroll-behavior: contain;
}
.pd::backdrop { background: rgba(5, 15, 10, .7); }
.pd[open] { animation: pd-in .35s var(--ease); }
@keyframes pd-in { from { opacity: 0; transform: translateY(24px); } }
.pd-close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--forest); color: var(--ivory); display: grid; place-items: center; cursor: pointer;
}
.pd-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.pd-body { display: grid; }

.pd-gallery { background: var(--ivory); }
.pd-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pd-track::-webkit-scrollbar { display: none; }
.pd-track > div { scroll-snap-align: center; aspect-ratio: 1; display: grid; place-items: center; }
.pd-track img { width: 100%; height: 100%; object-fit: contain; }
.pd-track .ph { width: 38%; }
.pd-thumbs { display: flex; gap: 8px; padding: 0 16px 16px; overflow-x: auto; }
.pd-thumbs:empty { display: none; }
.pd-thumbs button { flex: none; width: 60px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 4px; background: #fff; cursor: pointer; overflow: hidden; }
.pd-thumbs button[aria-current="true"] { border-color: var(--gold); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: contain; }

.pd-info { padding: 28px var(--gutter) 40px; display: flex; flex-direction: column; }
.pd-marca { margin: 0 0 4px; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.pd-info h2 { font-size: clamp(1.9rem, 6vw, 2.6rem); margin-bottom: 12px; }
.pd-forma { color: var(--muted-dark); margin-bottom: 20px; }
.pd-forma strong { color: var(--ivory); font-weight: 400; }
.pd-precio { font-size: 2rem; font-weight: 300; margin-bottom: 4px; }
.pd-precio.consultar { font-size: 1.2rem; color: var(--gold-light); }
.pd-cuotas { color: var(--muted-dark); font-size: .95rem; margin-bottom: 28px; }
.pd-cta { width: 100%; }
.pd-share { margin-top: 14px; min-height: 44px; border: 0; background: none; color: var(--gold-light); font: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; align-self: center; }

/* ---------- Modo administrador ---------- */
.card-admin { margin-top: 8px; padding: 6px 8px; border-radius: 2px; background: rgba(201, 169, 110, .14); color: var(--gold-light); font-size: .82rem; line-height: 1.4; }
.card-admin.neg { background: rgba(214, 90, 70, .18); color: #F0B4A8; }
.pd-admin { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0 0 24px; border: 1px solid var(--line-dark); background: var(--line-dark); }
.pd-admin[hidden] { display: none; }
.pd-admin div { background: var(--forest); padding: 10px 12px; }
.pd-admin dt { font-size: .8rem; color: var(--muted-dark); }
.pd-admin dd { margin: 0; font-size: 1.05rem; color: var(--gold-light); }
.pd-alerta { margin: -12px 0 24px; font-size: .9rem; color: #F0B4A8; }

.login { width: min(420px, calc(100% - 32px)); padding: 32px 24px; border: 1px solid var(--line-dark); border-radius: 4px; background: var(--forest); color: var(--ivory); }
.login::backdrop { background: rgba(5, 15, 10, .7); }
.login h2 { font-size: 1.8rem; margin-bottom: 20px; }
.login-form { display: grid; gap: 14px; }
.login-error { margin: 0; color: #F0B4A8; font-size: .95rem; }
.login-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

.admin-open { min-height: 44px; padding: 0; border: 0; background: none; color: var(--muted-dark); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.admin-open:hover { color: var(--gold-light); }
.admin-open[hidden] { display: none; }
.admin-bar { position: sticky; top: var(--header-h); z-index: 49; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 16px; padding: 6px var(--gutter); background: var(--gold); color: var(--forest); font-size: .9rem; }
.admin-bar[hidden] { display: none; }
.admin-bar button { flex: none; min-height: 36px; padding: 0 12px; border: 1px solid var(--forest); border-radius: 2px; background: transparent; color: var(--forest); font: inherit; cursor: pointer; }
.admin-bar button:hover { background: var(--forest); color: var(--gold); }

/* ---------- 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) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 32px 16px; }
  .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-tabs { margin: 0; padding: 0; }
  .cat-filters { grid-template-columns: 220px 220px 1fr; }
  .field-search { grid-column: auto; }
  .grid { grid-template-columns: repeat(4, 1fr); gap: 40px 24px; }
  .pd { width: min(1040px, calc(100% - 64px)); height: auto; max-height: calc(100% - 64px); margin: auto; border-radius: 4px; }
  .pd-body { grid-template-columns: 1.1fr 1fr; }
  .pd-gallery { display: flex; flex-direction: column; justify-content: center; }
  .pd-info { padding: 56px 48px; justify-content: center; }
  .pd-cta { width: auto; align-self: flex-start; }
  .pd-share { align-self: flex-start; }

  .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; }
}
