/* ============================================================
   Purificación Caballero — demo de renovación (heaptech)
   Identidad heredada del original: carbón #282828, dorado #9d8f62,
   Poppins + acento script Allura. Modernizada con bandas 100vw,
   tipografía editorial y ritmo zigzag.
   ============================================================ */
:root {
  /* Paleta 60-30-10: papel 60 / carbón 30 / dorado 10 */
  --paper: #faf8f4;
  --white: #ffffff;
  --ink: #282828;          /* heredado del original */
  --ink-deep: #1f1f1f;
  --muted: #5f594e;
  --gold: #9d8f62;         /* heredado del original (acento) */
  --gold-deep: #7d6e45;    /* CTA: blanco encima = 5.0:1 */
  --gold-ink: #6a5c37;     /* texto dorado sobre claro = 6.2:1 */
  --gold-soft: #c6b98f;    /* texto dorado sobre oscuro = 7.5:1 */
  --line: #e5dfd1;
  --shadow: 0 18px 40px -18px rgba(40, 40, 40, .35);
  --radius: 8px;
  --wrap: 1120px;
  --font-display: 'Poppins', system-ui, sans-serif;
  --font-script: 'Allura', cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--white);
  padding: .8rem 1.2rem; z-index: 200;
}
.skip:focus { left: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }

/* ---------- Cabecera ---------- */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 72px;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { height: 38px; width: auto; }
.brand-name {
  font-weight: 600; font-size: 1rem; letter-spacing: .02em; color: var(--ink);
  line-height: 1.15;
}
.brand-name small {
  display: block; font-weight: 500; font-size: .68rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.main-nav ul { list-style: none; display: flex; gap: 1.6rem; align-items: center; }
.main-nav a {
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem;
  padding: .4rem 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.main-nav .nav-tel { color: var(--gold-ink); font-weight: 600; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 6px; padding: .55rem .7rem; cursor: pointer;
  font: inherit; color: var(--ink);
}
.nav-toggle svg { display: block; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; inset: 100% 0 auto 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    display: none; padding: .6rem 0 1.2rem;
    box-shadow: 0 18px 30px -22px rgba(40,40,40,.4);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { display: block; padding: .85rem clamp(1.1rem, 4vw, 2.5rem); border-bottom: 1px solid var(--line); }
  .main-nav li:last-child a { border-bottom: 0; }
}

/* ---------- Hero editorial split ---------- */
.hero { background: var(--paper); }
.hero .wrap {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold-ink);
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--gold); }

.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 4.1rem);
  line-height: 1.08; font-weight: 600; letter-spacing: -.02em;
  margin: 1.1rem 0 .4rem;
}
.script { font-family: var(--font-script); font-weight: 400; color: var(--gold-ink); }
.hero .script { font-size: clamp(1.9rem, 3.6vw, 2.8rem); display: block; line-height: 1.15; }
.hero p.lead {
  color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.13rem);
  max-width: 34rem; margin-top: 1.1rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.9rem; }
.hero-note { margin-top: 1.2rem; font-size: .85rem; color: var(--muted); }
.hero-note a { color: var(--gold-ink); font-weight: 600; }

.hero-media { position: relative; }
.hero-media::before {
  content: ""; position: absolute; inset: auto -14px -14px auto;
  width: 58%; height: 58%; border: 2px solid var(--gold); border-radius: var(--radius);
  z-index: 0; pointer-events: none;
}
.hero-media img {
  position: relative; z-index: 1;
  width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}

@media (min-width: 880px) {
  .hero .wrap { grid-template-columns: 1.15fr .85fr; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .8rem 1.7rem;
  border-radius: 6px; text-decoration: none;
  font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-solid { background: var(--gold-deep); color: var(--white); border: 2px solid var(--gold-deep); }
.btn-solid:hover { background: var(--ink); border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); border: 2px solid var(--white); }
.btn-light:hover { background: transparent; color: var(--white); }

/* ---------- Secciones / bandas 100vw ---------- */
section { display: block; }
.band { padding-block: clamp(4rem, 9vw, 7rem); }
.band-ink { background: var(--ink); color: var(--paper); }
.band-gold { background: var(--gold-deep); color: var(--white); }
.band-white { background: var(--white); }
.band-head { max-width: 46rem; margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.band-head h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.9rem); line-height: 1.12;
  font-weight: 600; letter-spacing: -.015em; margin-top: .9rem;
}
.band-head p { color: var(--muted); margin-top: .9rem; }
.band-ink .band-head p, .band-gold .band-head p { color: var(--gold-soft); }

/* ---------- Cita (texto original verificado) + sellos ---------- */
.quote-band .script {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.25; color: var(--gold-soft);
  display: block; max-width: 24ch;
}
.quote-band .quote-src {
  margin-top: 1.4rem; font-size: .8rem; letter-spacing: .16em;
  text-transform: uppercase; color: #bdb7aa;
}
.trust {
  list-style: none; display: flex; flex-wrap: wrap; gap: .7rem 2.4rem;
  margin-top: clamp(2rem, 4vw, 3rem); padding-top: 2rem;
  border-top: 1px solid rgba(198, 185, 143, .35);
}
.trust li { display: flex; align-items: center; gap: .6rem; font-weight: 500; font-size: .95rem; }
.trust svg { flex: none; }

/* ---------- Servicios: bandas verticales alternas (protagonista) ---------- */
.svc-list { display: grid; gap: clamp(3rem, 7vw, 5.5rem); }
.svc-band {
  display: grid; gap: clamp(1.6rem, 4vw, 3.5rem); align-items: center;
}
.svc-media { position: relative; }
.svc-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
  clip-path: inset(0 0 0 0); /* revelado por scroll (ver .reveal-clip) */
}
.svc-num {
  font-size: clamp(3.4rem, 7vw, 5.6rem); font-weight: 700; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--gold);
  display: block; margin-bottom: .4rem;
}
.svc-copy h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 600; letter-spacing: -.01em;
  margin: .1rem 0 .6rem;
}
.svc-copy p { color: var(--muted); max-width: 30rem; }
.svc-copy .svc-link {
  display: inline-flex; align-items: center; gap: .45rem; margin-top: 1rem;
  color: var(--gold-ink); font-weight: 600; text-decoration: none;
  border-bottom: 2px solid transparent;
}
.svc-copy .svc-link:hover { border-bottom-color: var(--gold); }
@media (min-width: 880px) {
  .svc-band { grid-template-columns: 1fr 1fr; }
  .svc-band:nth-of-type(even) .svc-media { order: 2; }
}

/* ---------- Banda CTA ---------- */
.cta-band .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.6rem;
}
.cta-band .script { font-size: clamp(2.2rem, 4.4vw, 3.2rem); color: var(--white); line-height: 1.1; }
.cta-band p { color: #f3efe4; margin-top: .2rem; }
.cta-tel {
  display: inline-block; font-weight: 700; font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: var(--white); text-decoration: none; letter-spacing: .02em;
}
.cta-tel:hover { text-decoration: underline; }
.cta-actions { display: flex; flex-direction: column; gap: .7rem; align-items: stretch; }
@media (min-width: 700px) { .cta-actions { flex-direction: row; align-items: center; } }

/* ---------- Galería horizontal (scroll-snap) ---------- */
.gallery-scroller {
  display: flex; gap: 1.2rem; overflow-x: auto;
  scroll-snap-type: x mandatory; padding: .4rem clamp(1.1rem, 4vw, 2.5rem) 1.4rem;
  scrollbar-width: thin; scrollbar-color: var(--gold) transparent;
}
.gallery-scroller figure {
  scroll-snap-align: start; flex: 0 0 min(78vw, 560px); margin: 0;
}
.gallery-scroller img {
  width: 100%; aspect-ratio: 16 / 9.4; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.gallery-scroller figcaption { font-size: .88rem; color: var(--muted); margin-top: .6rem; }
.gallery-hint { font-size: .85rem; color: var(--muted); margin-top: .4rem; }
.gallery-scroller::-webkit-scrollbar { height: 6px; }
.gallery-scroller::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ---------- Testimonios ---------- */
.tst-grid { display: grid; gap: 1.3rem; }
@media (min-width: 760px) { .tst-grid { grid-template-columns: repeat(3, 1fr); } }
.tst {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem; display: flex; flex-direction: column; gap: 1rem;
}
.tst .stars { color: var(--gold-deep); letter-spacing: .15em; font-size: .9rem; }
.tst blockquote { font-size: 1rem; color: var(--ink); line-height: 1.6; }
.tst cite { font-style: normal; font-size: .85rem; color: var(--muted); font-weight: 500; }

/* ---------- Página compacta (servicios/contacto hero) ---------- */
.page-hero { background: var(--paper); padding-block: clamp(3rem, 7vw, 5rem) 0; }
.page-hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 600;
  letter-spacing: -.02em; line-height: 1.1; margin: .9rem 0 .5rem;
}
.page-hero p { color: var(--muted); max-width: 40rem; }

/* ---------- Marcas ---------- */
.marcas-band ul {
  list-style: none; display: flex; flex-wrap: wrap; gap: .8rem;
  margin-top: 1.6rem;
}
.marcas-band li {
  border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1.3rem;
  font-weight: 500; font-size: .95rem; color: var(--ink); background: var(--white);
}
.marcas-band .band-head p { max-width: 42rem; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: clamp(2.4rem, 6vw, 4.5rem); align-items: start; }
@media (min-width: 880px) { .contact-grid { grid-template-columns: .9fr 1.1fr; } }
.contact-card { list-style: none; display: grid; gap: 1.4rem; }
.contact-card li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-card svg { flex: none; margin-top: .2rem; }
.contact-card .lbl {
  display: block; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .15rem;
}
.contact-card a { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-card a:hover { color: var(--gold-ink); text-decoration: underline; }
.contact-card address { font-style: normal; color: var(--ink); font-weight: 500; }
.contact-card .note { font-size: .88rem; color: var(--muted); font-weight: 400; }
.contact-card .note a { font-weight: 600; }

/* ---------- Formulario ---------- */
.reserva { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.6rem, 4vw, 2.6rem); }
.reserva h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: .4rem; }
.reserva > p { color: var(--muted); margin-bottom: 1.6rem; font-size: .95rem; }
.field { display: grid; gap: .35rem; margin-bottom: 1.2rem; }
.field label { font-weight: 600; font-size: .92rem; }
.field label .req { color: var(--gold-deep); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 6px; padding: .8rem .9rem;
  min-height: 48px; width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--gold-deep);
}
.form-ok {
  display: none; background: var(--paper); border: 1px solid var(--gold);
  border-radius: var(--radius); padding: 1.4rem 1.5rem;
}
.form-ok.show { display: block; }
.form-ok strong { display: block; margin-bottom: .3rem; }
.form-ok p { color: var(--muted); font-size: .95rem; }
.form-ok .script { font-size: 1.7rem; }

/* ---------- Footer ---------- */
.footer { background: var(--ink-deep); color: #d8d2c2; }
.footer-cta { border-bottom: 1px solid rgba(216, 210, 194, .18); }
.footer-cta .wrap { padding-block: clamp(3.4rem, 7vw, 5.5rem); }
.footer-cta .script { font-size: clamp(2.2rem, 4.6vw, 3.4rem); color: var(--gold-soft); }
.footer-cta h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 600; margin-top: .2rem; }
.footer-cta p { color: #b9b2a2; margin-top: .8rem; max-width: 34rem; }
.footer-cta .hero-actions { margin-top: 1.6rem; }
.footer-cols { display: grid; gap: 2.2rem; padding-block: clamp(2.6rem, 6vw, 4rem); }
@media (min-width: 760px) { .footer-cols { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-cols h3 {
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 1rem; font-weight: 600;
}
.footer-cols ul { list-style: none; display: grid; gap: .55rem; }
.footer-cols a { color: #d8d2c2; text-decoration: none; }
.footer-cols a:hover { color: var(--white); text-decoration: underline; }
.footer-cols p { font-size: .95rem; max-width: 30rem; }
.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-name small { color: #a9a294; }
.footer-bottom {
  border-top: 1px solid rgba(216, 210, 194, .14);
  padding-block: 1.4rem; font-size: .82rem; color: #a9a294;
}
.footer-bottom .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; justify-content: space-between; }
.footer-bottom a { color: #a9a294; }
.footer-bottom a:hover { color: var(--white); }

/* ---------- CTA sticky móvil ---------- */
@media (max-width: 879.9px) { body { padding-bottom: 58px; } } /* la barra no tapa el footer ni el foco */
.mbar {
  position: fixed; inset: auto 0 0 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--ink-deep); border-top: 1px solid rgba(216,210,194,.2);
}
.mbar a {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 58px; text-decoration: none; font-weight: 600; font-size: .98rem;
}
.mbar .mbar-tel { color: var(--white); background: var(--ink-deep); }
.mbar .mbar-cta { color: var(--white); background: var(--gold-deep); }
@media (min-width: 880px) { .mbar { display: none; } }

/* ---------- Revelado por scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-clip { clip-path: inset(0 100% 0 0); transition: clip-path .9s ease .1s, transform .9s ease .1s; transform: scale(1.05); }
.reveal-clip.visible { clip-path: inset(0 0 0 0); transform: scale(1); }
/* la foto del hero nunca se revela: es el LCP */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-clip {
    opacity: 1; transform: none; clip-path: none; transition: none;
  }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
