/* ---------- Progreso de scroll ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; background: var(--gold-solid); transform-origin: left; transform: scaleX(0); pointer-events: none; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); transition: background .4s, backdrop-filter .4s, transform .5s var(--ease); }
.site-header.is-scrolled { background: rgba(8, 7, 6, .82); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header__brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.site-header__brand img { width: 42px; height: auto; }
.site-header__name { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: .06em; line-height: .9; display: flex; flex-direction: column; color: var(--gold-solid); }
.site-header__name small { font-weight: 600; font-size: .62rem; letter-spacing: .3em; margin-top: 3px; text-transform: uppercase; color: var(--muted); }
.site-header__nav { display: flex; align-items: center; gap: 30px; }
.site-header__nav ul { display: flex; gap: 28px; }
.site-header__nav li a { position: relative; color: var(--text); font-size: .95rem; font-weight: 500; padding: 6px 0; }
.site-header__nav li a::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--gold-solid); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.site-header__nav li a:hover { color: var(--gold-hi); }
.site-header__nav li a:hover::after, .site-header__nav li a.is-current::after { transform: scaleX(1); }
.site-header__toggle { display: none; background: none; border: 0; color: var(--gold); width: 46px; height: 46px; cursor: pointer; }
.site-header__toggle .icon { width: 26px; height: 26px; margin: auto; }

@media (max-width: 900px) {
  .site-header__toggle { display: grid; place-items: center; }
  .site-header__nav {
    position: fixed; inset: var(--header-h) 0 0 0; flex-direction: column; justify-content: center; gap: 32px;
    background: rgba(8, 7, 6, .98); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .3s, transform .3s, visibility .3s;
  }
  .site-header__nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-header__nav ul { flex-direction: column; align-items: center; gap: 18px; }
  .site-header__nav li a { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; text-transform: uppercase; letter-spacing: .03em; }
}

/* ---------- Carta de servicios (selector + filas) ---------- */
.menu { display: grid; gap: 0; }
.tabs { display: grid; gap: 20px; }
.tabs__list { display: flex; gap: 6px 28px; overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding-inline: 20px; }
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__tab {
  position: relative; flex: none; background: none; border: 0; cursor: pointer; text-align: left; padding: 6px 0;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 5vw, 2.2rem); line-height: 1.05; color: #5d5646;
  transition: color .35s, transform .45s var(--ease);
}
.tabs__tab small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-top: 4px; color: inherit; opacity: .8; }
.tabs__tab:hover { color: var(--text); }
.tabs__tab[aria-selected='true'] { color: var(--gold-solid); }
.tabs__panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.js .tabs__panel[hidden] { display: none; }
.no-js .tabs__list { display: none; }
.no-js .tabs__panel[hidden] { display: block; }

.row { color: var(--text); position: relative; display: grid; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.row::before { content: ''; position: absolute; inset: 0; background: var(--gold-solid); transform: translateX(-101%); transition: transform .55s var(--ease); z-index: -1; }
.row__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 4.2vw, 2.6rem); line-height: 1; transition: transform .5s var(--ease), color .3s; }
.row__text { color: var(--muted); max-width: 48ch; transition: color .3s; }
.row__go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; margin-top: 4px; color: var(--gold); transition: color .3s; }
.row__go .icon { transition: transform .4s var(--ease); }
.row { isolation: isolate; }
@media (hover: hover) {
  .row:hover::before { transform: translateX(0); }
  .row:hover .row__title { transform: translateX(14px); color: #140f03; }
  .row:hover .row__text { color: #2b2210; }
  .row:hover .row__go { color: #140f03; }
  .row:hover .row__go .icon { transform: translateX(6px); }
}
@media (min-width: 760px) {
  .row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; align-items: center; padding: 20px 0; }
  .row__go { margin: 0; }
}
@media (min-width: 1000px) {
  .tabs { grid-template-columns: 340px minmax(0, 1fr); gap: 70px; }
  .tabs__list { flex-direction: column; gap: 22px; overflow: visible; margin: 0; padding: 0; position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
  .tabs__tab[aria-selected='true'] { transform: translateX(18px); }
  .tabs__tab[aria-selected='true']::before { content: ''; position: absolute; left: -22px; top: 14px; width: 12px; height: 12px; background: var(--gold-solid); clip-path: polygon(0 0, 100% 50%, 0 100%); }
}

/* ---------- FAQ ---------- */
.faq__list { display: grid; max-width: 900px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 0; position: relative; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 3.4vw, 2rem); line-height: 1.1; transition: color .3s; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--gold-hi); }
.faq__item summary::after, .faq__item summary::before { content: ''; position: absolute; right: 6px; top: 50%; width: 22px; height: 2px; background: var(--gold-solid); transition: transform .4s var(--ease); }
.faq__item summary::after { transform: rotate(90deg); }
.faq__item[open] summary::after { transform: rotate(0); }
.faq__item[open] summary { color: var(--gold-solid); }
.faq__item p { padding: 0 56px 22px 0; color: var(--muted); font-size: 1.08rem; animation: fade .5s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Formulario (sobre panel dorado) ---------- */
.form { --cut: 26px; display: grid; gap: 18px; padding: clamp(24px, 4vw, 44px); background: var(--gold-solid); color: #140f03; clip-path: var(--chamfer); }
.form__field { display: grid; gap: 7px; }
.form__field > span { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.form input, .form select, .form textarea { width: 100%; background: #140f03; color: var(--text); border: 2px solid transparent; padding: 14px 16px; font-size: 16px; transition: border-color .3s; }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: #fff; }
.form input.is-invalid { border-color: #ff6a55; }
.form__hint { font-size: .85rem; color: #3b2d0b; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); padding-top: 48px; }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 32px; padding-bottom: 32px; }
.site-footer__col img { width: 84px; height: auto; }
.site-footer__tag { margin-top: 16px; color: var(--muted); font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.1; }
.site-footer__title { font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; font-weight: 600; }
.site-footer__col li { margin-bottom: 10px; }
.site-footer__col a, .site-footer__col span { display: inline-flex; align-items: center; gap: 10px; color: var(--text); word-break: break-word; }
.site-footer__col a:hover { color: var(--gold-hi); }
.site-footer__col .icon { color: var(--gold); }
.site-footer__legal { border-top: 1px solid var(--line); padding-block: 26px 100px; color: var(--muted); font-size: .85rem; display: grid; gap: 10px; }
@media (max-width: 800px) { .site-footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- WhatsApp flotante ---------- */
.wa-fab { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 90; width: 62px; height: 62px; display: grid; place-items: center; background: var(--gold-solid); color: #140f03; clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); transition: transform .35s var(--ease), background .3s; }
.wa-fab .icon { width: 28px; height: 28px; }
.wa-fab:hover { transform: scale(1.08); background: var(--gold-hi); color: #140f03; }
