/* ============================================================
   SunDara CC Oasiz — demo de renovación
   Identidad original: miel #f0cf71 · oro #d4b55a · agua #a5e5e8
   Paleta 60-30-10: crema 60 / miel+oro 30 / tinta 10 (agua micro-aviso)
   Tipografía: Fraunces (display) + Inter (texto)
   ============================================================ */

:root {
  --honey: #f0cf71;
  --gold: #d4b55a;
  --ink: #202020;
  --ink-soft: #373737;
  --cream: #faf6ee;
  --cream-2: #f3ecdc;
  --aqua: #a5e5e8;
  --brown: #5d4f38;        /* texto atenuado sobre crema (AA) */
  --white: #ffffff;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(32, 32, 32, .12);
  --wrap: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}

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

a { color: inherit; }

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

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

/* ---------- utilidades ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.kicker {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: .75rem;
}
.band--ink .kicker, .band--honey .kicker { color: inherit; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; }

h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }

/* motivo "hilo": trazo ondulado en oro, firma de la marca */
.hilo { display: block; width: 132px; height: 14px; margin: 1rem 0 0; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 56ch; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  min-height: 48px;
  padding: .8em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink:hover { background: #000; }
.btn--honey { background: var(--honey); color: var(--ink); }
.btn--ghost { border: 2px solid currentColor; color: var(--ink); background: transparent; }
.btn--ghost:hover { background: rgba(32, 32, 32, .06); box-shadow: none; }

/* ---------- bandas a ancho completo ---------- */
.band--cream { background: var(--cream); }
.band--cream2 { background: var(--cream-2); }
.band--honey { background: var(--honey); color: var(--ink); }
.band--ink { background: var(--ink); color: var(--cream); }
.band--cream > .wrap,
.band--cream2 > .wrap,
.band--honey > .wrap,
.band--ink > .wrap { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.svc-band > .wrap { padding-block: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid rgba(32, 32, 32, .08);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .8rem;
}
.brand { display: inline-flex; align-items: baseline; gap: .5rem; text-decoration: none; }
.brand strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: .01em; }
.brand span { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brown); }

.main-nav ul { display: flex; gap: clamp(1rem, 2.5vw, 2rem); list-style: none; align-items: center; }
.main-nav a { text-decoration: none; font-weight: 500; padding: .4em 0; }
.main-nav a[aria-current="page"] { border-bottom: 2px solid var(--gold); }
.main-nav a:hover { color: var(--brown); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  border-radius: 10px;
  min-width: 44px;
  min-height: 44px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}

.header-tel { display: inline-flex; }
.header-tel .btn { min-height: 44px; padding: .5em 1.1em; }

/* ---------- hero split editorial ---------- */
.hero { display: grid; }
.hero-copy {
  background: var(--honey);
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  display: flex;
  align-items: center;
}
.hero-copy .wrap { padding-block: 0; }
.hero-copy h1 { max-width: 12ch; }
.hero-copy .lead { margin-top: 1.1rem; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-note { margin-top: 1.4rem; font-size: .92rem; color: var(--ink-soft); }
.hero-note strong { color: var(--ink); }

.hero-media { position: relative; min-height: 340px; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  left: clamp(1rem, 3vw, 2.5rem);
  bottom: clamp(1rem, 3vw, 2rem);
  background: rgba(32, 32, 32, .78);
  color: var(--cream);
  padding: .8rem 1.1rem;
  border-radius: var(--radius);
  font-size: .92rem;
  max-width: 17rem;
  backdrop-filter: blur(2px);
}

/* ---------- banda de sellos ---------- */
.seals .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  padding-block: clamp(2rem, 4vw, 3rem);
}
.seal { display: flex; gap: .9rem; align-items: flex-start; }
.seal svg { flex: none; margin-top: .15rem; }
.seal b { display: block; font-size: 1.02rem; }
.seal small { color: #d9cdb4; }
.seal img { width: 34px; height: auto; }

/* ---------- servicios: bandas verticales alternas ---------- */
.svc-band { display: grid; }
.svc-band:nth-of-type(even) .svc-media { order: -1; }
.svc-media { position: relative; min-height: 300px; }
.svc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc-body { padding: clamp(2rem, 5vw, 4rem) 0; display: flex; flex-direction: column; justify-content: center; }
.svc-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: .6rem;
}
.svc-body p { margin-top: .9rem; max-width: 46ch; color: var(--ink-soft); }
.svc-list { margin: 1rem 0 0; padding-left: 1.1rem; color: var(--ink-soft); }
.svc-list li { margin-block: .3rem; }
.band--honey .svc-body p, .band--cream2 .svc-body p { color: inherit; }
.svc-body .btn { align-self: flex-start; margin-top: 1.4rem; }

/* ---------- galería cosmética (scroll-snap) ---------- */
.gallery-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; }
.gallery { list-style: none; }
.gallery .wrap { padding-block: 0; }
.snap {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1.6rem clamp(1.25rem, 4vw, 3rem) 2.2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.snap li {
  flex: 0 0 min(240px, 68vw);
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.snap img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.snap figcaption { padding: .8rem 1rem 1rem; font-size: .92rem; }
.snap figcaption b { display: block; font-size: 1rem; }
.snap figcaption span { color: var(--brown); }

/* ---------- testimonios ---------- */
.quotes { display: grid; gap: 1.4rem; }
.quotes figure {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--honey);
}
.quotes blockquote { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.45; }
.quotes figcaption { margin-top: .9rem; font-size: .92rem; color: var(--brown); }


/* ---------- CTA ---------- */
.cta-band .wrap { text-align: center; }
.cta-band h2 { max-width: 18ch; margin-inline: auto; }
.cta-band p { margin: 1rem auto 1.6rem; max-width: 46ch; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- página: cabecera interior ---------- */
.page-hero .wrap { padding-block: clamp(2.5rem, 6vw, 4.5rem); }

/* ---------- índice sticky (servicios) ---------- */
.sec-index { border-bottom: 1px solid rgba(32, 32, 32, .08); background: var(--cream-2); }
.sec-index ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  padding-block: .85rem;
  scrollbar-width: none;
}
.sec-index a { text-decoration: none; font-weight: 500; font-size: .95rem; white-space: nowrap; color: var(--ink-soft); }
.sec-index a:hover { color: var(--ink); }

/* ---------- contacto ---------- */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.contact-data h2 { margin-bottom: .5rem; }
.contact-list { list-style: none; margin-top: 1.6rem; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list svg { flex: none; margin-top: .2rem; }
.contact-list b { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brown); }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--gold); }
.atten { display: flex; gap: 1rem; align-items: center; margin-top: 2rem; }
.atten img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid var(--honey); }
.atten p { font-size: .95rem; color: var(--ink-soft); }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.contact-form h3 { margin-bottom: 1.2rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: .7em .9em;
  border: 1.5px solid rgba(32, 32, 32, .25);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: var(--cream);
}
.field textarea { min-height: 120px; resize: vertical; }
.field .hint { font-size: .82rem; color: var(--brown); margin-top: .3rem; }
.form-ok {
  display: none;
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 10px;
  background: #e7f6ec;
  border: 1.5px solid #2e7d4f;
  color: #17452b;
  font-weight: 500;
}
.form-ok.is-visible { display: block; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); }
.footer-grid {
  display: grid;
  gap: 2rem;
  padding-block: clamp(2.5rem, 6vw, 4rem) 2rem;
}
.footer-grid h3 { color: var(--honey); font-size: 1.05rem; margin-bottom: .7rem; }
.footer-grid ul { list-style: none; display: grid; gap: .45rem; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--honey); }
.footer-brand strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--honey); display: block; }
.footer-brand p { margin-top: .6rem; max-width: 34ch; color: #d9cdb4; font-size: .95rem; }
.footer-note {
  border-top: 1px solid rgba(250, 246, 238, .15);
  padding-block: 1.1rem;
  font-size: .85rem;
  color: #cbbfa8;
}
.footer-note .wrap { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; justify-content: space-between; }

/* ---------- CTA sticky móvil ---------- */
.mobile-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--ink);
  border-top: 1px solid rgba(250, 246, 238, .2);
}
.mobile-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 54px;
  font-weight: 600;
  text-decoration: none;
  color: var(--cream);
}
.mobile-cta .mcta-book { background: var(--honey); color: var(--ink); }
body { padding-bottom: 54px; }

/* ---------- reveals ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease var(--d, 0s), transform .7s ease var(--d, 0s); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

.content-auto { content-visibility: auto; contain-intrinsic-size: auto 720px; }

/* ---------- responsive ---------- */
@media (min-width: 720px) {
  .seals .wrap { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: repeat(2, 1fr); }
  .snap li { flex-basis: 230px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1.2fr; }
}

@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .mobile-cta { display: none; }

  .nav-toggle { display: none; }
  .hero { grid-template-columns: 1.15fr 1fr; }
  .hero-media { min-height: 560px; }

  .seals .wrap { grid-template-columns: repeat(4, 1fr); }

  .svc-band { grid-template-columns: 1fr 1fr; min-height: 480px; }
  .svc-media { min-height: 480px; }

  .quotes { grid-template-columns: repeat(3, 1fr); }

  .contact-grid { grid-template-columns: 1fr 1.1fr; align-items: start; }

  .footer-grid { grid-template-columns: 1.6fr 1fr 1.3fr 1.1fr; }
}

@media (max-width: 959px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(32, 32, 32, .12);
    display: none;
    box-shadow: 0 14px 24px rgba(32, 32, 32, .12);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .6rem clamp(1.25rem, 4vw, 3rem) 1rem; }
  .main-nav li { border-bottom: 1px solid rgba(32, 32, 32, .07); }
  .main-nav a { display: block; padding: .9em 0; }
  .header-tel { display: none; }
}
