/* ============================================================
   Nannys by Sofia — "Mosaico cálido"
   Tokens ported from design-export/brand.css; layout rebuilt
   from design-export/directionB.jsx (desktop) + mobile.jsx.
   ============================================================ */

:root {
  /* core palette */
  --sun-gold: #F4B23E;
  --terracotta: #C76B43;
  --pine: #2F6B5E;
  --brick: #B24A3F;
  /* soft accents */
  --blush: #F3D7DB;
  --sky: #BFE0EF;
  --mint: #CBE6C2;
  /* neutrals */
  --cream: #FCF6EC;
  --cream-2: #FBF1E2;
  --charcoal: #2B2A28;
  --charcoal-60: rgba(43, 42, 40, .62);
  --charcoal-45: rgba(43, 42, 40, .45);

  /* darker text variants for AA contrast on cream/gold */
  --terracotta-ink: #A8512C;
  --pine-ink: #245247;

  --font-script: 'Caveat', cursive;
  --font-head: 'Poppins', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;

  --shadow-card: 0 6px 20px rgba(43, 42, 40, .05);
  --shadow-raised: 0 8px 22px rgba(43, 42, 40, .1);
  --radius-card: 20px;

  --container: 1180px;
  --gutter: 56px;
  --header-h: 78px;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; line-height: 1.1; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.script { font-family: var(--font-script); font-weight: 600; }

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

/* offset anchored sections below the sticky header */
section[id], [id="inicio"] { scroll-margin-top: 92px; }

/* visible focus for keyboard users */
:focus-visible { outline: 3px solid var(--pine); outline-offset: 2px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--pine); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-family: var(--font-head); font-weight: 600; transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- icons ---------- */
.ico {
  width: 24px; height: 24px; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;
}

/* ---------- terrazzo dividers ---------- */
.terrazzo-rule {
  height: 9px;
  background: url('../svg/terrazzo-rule.svg') center / cover no-repeat;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; line-height: 1;
  border: none; border-radius: 999px; cursor: pointer; text-decoration: none;
  padding: 13px 22px; font-size: 15.5px;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, filter .15s ease;
}
.btn-sm { padding: 10px 18px; font-size: 14.5px; }
.btn-lg { padding: 16px 28px; font-size: 17px; }
.btn:active { transform: translateY(1px); }

.btn-pine { background: var(--pine); color: #fff; box-shadow: 0 10px 24px rgba(47, 107, 94, .26); }
.btn-pine:hover { filter: brightness(1.07); transform: translateY(-1px); box-shadow: 0 14px 28px rgba(47, 107, 94, .32); }

.btn-gold { background: var(--sun-gold); color: var(--charcoal); box-shadow: 0 10px 24px rgba(244, 178, 62, .36); }
.btn-gold:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 14px 28px rgba(244, 178, 62, .42); }

.btn-ghost { background: #fff; color: var(--pine-ink); border: 1.5px solid rgba(47, 107, 94, .3); }
.btn-ghost:hover { background: var(--cream-2); transform: translateY(-1px); }

.wa-glyph { width: 20px; height: 20px; fill: currentColor; }
.btn-lg .wa-glyph { width: 22px; height: 22px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(252, 246, 236, .88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(43, 42, 40, .06);
}
.header-inner { display: flex; align-items: center; gap: 24px; padding-block: 16px; }

.logo { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark { width: 46px; height: 46px; object-fit: contain; }
.logo-text { line-height: 1; }
.logo-word { display: block; font-size: 29px; color: var(--charcoal); white-space: nowrap; }
.logo-sub {
  display: block; font-family: var(--font-head); font-weight: 700; font-size: 10.5px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--charcoal-60); margin-top: 3px;
}

.primary-nav { display: flex; gap: 26px; margin: 0 auto; }
.nav-link {
  font-family: var(--font-head); font-weight: 500; font-size: 15px; color: var(--charcoal);
  padding: 4px 2px; position: relative; transition: color .15s ease;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px;
  background: var(--terracotta); border-radius: 2px; transform: scaleX(0);
  transform-origin: center; transition: transform .2s ease;
}
.nav-link:hover { color: var(--terracotta-ink); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--terracotta-ink); }

.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

/* language toggle (cream theme) */
.lang-toggle {
  display: inline-flex; background: #fff; border-radius: 999px; padding: 3px;
  box-shadow: 0 2px 8px rgba(43, 42, 40, .08);
}
.lang-btn {
  border: none; cursor: pointer; border-radius: 999px; padding: 6px 13px;
  font-family: var(--font-head); font-weight: 700; font-size: 12.5px;
  background: transparent; color: rgba(43, 42, 40, .5); transition: background-color .15s ease, color .15s ease;
}
.lang-btn.is-on { background: var(--sun-gold); color: var(--charcoal); }

/* hamburger */
.nav-toggle {
  display: none; width: 42px; height: 42px; border: none; background: #fff; cursor: pointer;
  border-radius: 12px; box-shadow: 0 2px 8px rgba(43, 42, 40, .08);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--charcoal); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 30px; }
.kicker {
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--terracotta-ink); margin: 0 0 8px;
}
.kicker-brick { color: var(--brick); }
.section-head h2 { font-size: clamp(26px, 3.4vw, 32px); font-weight: 600; color: var(--charcoal); }
.section-note { margin-top: 8px; font-size: 15.5px; color: var(--charcoal-60); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: 30px; }
.hero-inner { text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px;
  padding: 8px 16px; font-family: var(--font-head); font-weight: 600; font-size: 13.5px;
  color: var(--terracotta-ink); box-shadow: 0 4px 14px rgba(43, 42, 40, .06);
}
.pill .ico { width: 16px; height: 16px; stroke: var(--terracotta); }

.hero-title {
  font-size: clamp(33px, 5.4vw, 56px); font-weight: 700; color: var(--charcoal);
  letter-spacing: -.02em; margin: 20px auto 0; max-width: 14ch; line-height: 1.08;
}
.hero-accent { color: var(--terracotta); font-weight: 700; font-size: 1.18em; }
.hero-sub {
  font-size: clamp(16px, 2vw, 19.5px); color: var(--charcoal-60);
  margin: 18px auto 0; max-width: 620px; line-height: 1.6;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* arched photo */
.hero-photo-wrap { position: relative; width: min(720px, 100%); height: 380px; margin: 44px auto 0; }
.terrazzo-tile { position: absolute; border-radius: 20px; overflow: hidden; opacity: .9; z-index: 0; }
.tile-left { left: -64px; bottom: -6px; width: 180px; height: 220px; transform: rotate(-6deg); background: url('../svg/terrazzo-tile-1.svg') center / cover no-repeat; }
.tile-right { right: -64px; bottom: 26px; width: 160px; height: 190px; transform: rotate(7deg); background: url('../svg/terrazzo-tile-2.svg') center / cover no-repeat; }

.hero-photo {
  position: relative; z-index: 1; margin: 0; height: 100%; overflow: hidden;
  border-radius: 190px 190px 28px 28px; background: #ece2d2;
  box-shadow: 0 26px 60px rgba(43, 42, 40, .18);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo.is-pending {
  background-image: repeating-linear-gradient(135deg, rgba(0, 0, 0, .035) 0 12px, transparent 12px 24px);
  background-color: #ece2d2;
}
.photo-pending {
  display: none; position: absolute; inset: 0; align-items: center; justify-content: center;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13px; letter-spacing: .04em;
  color: rgba(43, 42, 40, .42); text-transform: uppercase; text-align: center; padding: 16px;
}
.hero-photo.is-pending .photo-pending { display: flex; }
.hero-sun {
  position: absolute; top: -32px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 70px; height: 70px; background: var(--cream); border-radius: 50%; padding: 8px; object-fit: contain;
}

/* ============================================================
   CREDENTIALS (blush band)
   ============================================================ */
.credentials { background: var(--blush); margin-top: 52px; padding-block: 44px; }
.cred-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cred-card {
  background: #fff; border-radius: 18px; padding: 24px 20px; text-align: center;
  box-shadow: 0 6px 18px rgba(43, 42, 40, .06);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.cred-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(43, 42, 40, .1); }
.chip { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.chip .ico { width: 26px; height: 26px; }
.cred-card .chip .ico { stroke-width: 1.8; }
/* per-card tints + icon colors */
.cred-card:nth-child(1) .chip { background: #FBE6C7; } .cred-card:nth-child(1) .chip .ico { stroke: var(--terracotta); }
.cred-card:nth-child(2) .chip { background: #D9EDE6; } .cred-card:nth-child(2) .chip .ico { stroke: var(--pine); }
.cred-card:nth-child(3) .chip { background: #DDE8F2; } .cred-card:nth-child(3) .chip .ico { stroke: var(--pine); }
.cred-card:nth-child(4) .chip { background: #F4DEE2; } .cred-card:nth-child(4) .chip .ico { stroke: var(--brick); }
.cred-label { font-family: var(--font-head); font-weight: 600; font-size: 15.5px; line-height: 1.3; }

/* ============================================================
   SERVICES
   ============================================================ */
.services { padding-block: 56px 16px; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc-card {
  background: #fff; border-radius: var(--radius-card); padding: 26px 24px;
  border: 1px solid rgba(43, 42, 40, .06); box-shadow: var(--shadow-card);
  transition: transform .18s ease, box-shadow .18s ease;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(43, 42, 40, .1); }
.svc-card .chip { border-radius: 14px; margin-bottom: 16px; }
.svc-card h3 { font-size: 18.5px; font-weight: 600; color: var(--charcoal); }
.svc-card p { font-size: 14.5px; color: var(--charcoal-60); margin-top: 8px; line-height: 1.55; }
.svc-card:nth-child(1) .chip { background: #FBE6C7; } .svc-card:nth-child(1) .chip .ico { stroke: var(--terracotta); }
.svc-card:nth-child(2) .chip { background: #E6F0DE; } .svc-card:nth-child(2) .chip .ico { stroke: var(--pine); }
.svc-card:nth-child(3) .chip { background: #DDE8F2; } .svc-card:nth-child(3) .chip .ico { stroke: var(--pine); }
.svc-card:nth-child(4) .chip { background: #F4DEE2; } .svc-card:nth-child(4) .chip .ico { stroke: var(--brick); }
.svc-card:nth-child(5) .chip { background: #FBE6C7; } .svc-card:nth-child(5) .chip .ico { stroke: var(--terracotta); }
.svc-card:nth-child(6) .chip { background: #D9EDE6; } .svc-card:nth-child(6) .chip .ico { stroke: var(--pine); }

/* ============================================================
   GALLERY — Momentos reales
   ============================================================ */
.gallery { padding-block: 48px 8px; }
.gal-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; grid-auto-rows: 230px; }
.gal-item {
  position: relative; margin: 0; border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-raised); background: #e6dccb;
}
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gal-item:hover img { transform: scale(1.04); }
.gal-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 16px 14px;
  font-family: var(--font-head); font-weight: 600; font-size: 14px; color: #fff;
  background: linear-gradient(to top, rgba(43, 42, 40, .62), transparent);
  display: flex; align-items: center; gap: 7px;
}
.gal-item figcaption .ico { width: 14px; height: 14px; stroke: #fff; }

/* ============================================================
   NIÑERAS — team profiles
   ============================================================ */
.nannies { padding-block: 56px 8px; }
.nanny-carousel { position: relative; }
.nanny-grid {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: none;
  scroll-behavior: smooth; padding: 4px 2px 14px; scroll-padding-inline: 2px;
  scrollbar-width: thin; scrollbar-color: rgba(43, 42, 40, .22) transparent;
}
.nanny-grid::-webkit-scrollbar { height: 8px; }
.nanny-grid::-webkit-scrollbar-thumb { background: rgba(43, 42, 40, .18); border-radius: 999px; }
.nanny-grid::-webkit-scrollbar-track { background: transparent; }
.nanny-card { flex: 0 0 calc((100% - 36px) / 3); scroll-snap-align: start; }
.carousel-btn {
  position: absolute; top: 125px; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: #fff; color: var(--charcoal); box-shadow: 0 6px 18px rgba(43, 42, 40, .16);
  font-family: var(--font-head); font-size: 26px; line-height: 1; padding-bottom: 4px;
  display: grid; place-items: center; transition: transform .15s ease, background-color .15s ease;
}
.carousel-btn:hover { transform: translateY(-50%) scale(1.08); background: var(--cream-2); }
.carousel-btn.prev { left: -10px; }
.carousel-btn.next { right: -10px; }
.carousel-btn[hidden] { display: none; }
/* card is a flex column so the front face fills the whole height: every card
   in the carousel stretches to the tallest, and the front expands to fill it
   (no blank space). The back is absolutely overlaid so a long bio scrolls
   instead of making one card taller than the rest. */
/* fixed card height = every card identical height on every viewport; the flex
   chain (with min-height:0) lets the bio fill to it and clip, so no ballooning
   on iPad/desktop and no device-dependent length. Mobile shrinks the photo. */
.nanny-card { perspective: 1200px; display: flex; flex-direction: column; height: 540px; transition: transform .18s ease; }
.nanny-card:hover { transform: translateY(-4px); }
.nanny-inner {
  flex: 1 1 auto; min-height: 0; position: relative; display: flex; flex-direction: column;
  transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.nanny-card.is-flipped .nanny-inner { transform: rotateY(180deg); }
.nanny-face {
  border-radius: var(--radius-card); overflow: hidden; background: #fff;
  border: 1px solid rgba(43, 42, 40, .06); box-shadow: var(--shadow-card);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  transition: box-shadow .18s ease;
}
.nanny-card:hover .nanny-face { box-shadow: 0 16px 34px rgba(43, 42, 40, .1); }
.nanny-front { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; cursor: pointer; }
.nanny-front .nanny-photo { flex-shrink: 0; }
.nanny-back {
  position: absolute; inset: 0; transform: rotateY(180deg);
  display: flex; flex-direction: column; padding: 22px; cursor: pointer;
}
/* body fills the front; the CTA is pinned to the bottom so cards read even */
.nanny-front .nanny-body { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.nanny-front .nanny-bio {
  /* fills the remaining card height and clips with a fade (card height is fixed) */
  text-align: justify; flex: 1 1 auto; min-height: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}
/* subtle text CTA, tucked into the bottom-right corner */
.nanny-more {
  align-self: flex-end; margin-top: auto; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: none; color: var(--charcoal-45); padding: 0;
  font-family: var(--font-head); font-weight: 600; font-size: 12px;
  transition: color .15s ease;
}
.nanny-more:hover { color: var(--terracotta-ink); }
.nanny-more .ico { width: 13px; height: 13px; stroke: currentColor; }
/* back face */
.nanny-back-head { display: flex; align-items: center; gap: 12px; }
.nanny-mini {
  width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  position: relative; background: var(--cream-2); display: grid; place-items: center;
}
.nanny-mini img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nanny-mini-initial { font-family: var(--font-script); font-weight: 700; font-size: 32px; color: var(--terracotta); opacity: .5; }
.nanny-back-bio {
  margin-top: 14px; color: var(--charcoal-60); font-size: 15.5px; line-height: 1.65; text-align: justify;
  flex: 1 1 auto; overflow-y: auto; padding-right: 4px;
}
.nanny-back-btn {
  margin-top: 14px; align-self: flex-start; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; color: var(--terracotta-ink);
  font-family: var(--font-head); font-weight: 700; font-size: 13px; padding: 4px 0;
}
.nanny-back-btn .ico { width: 15px; height: 15px; stroke: var(--terracotta-ink); transform: scaleX(-1); }
@media (prefers-reduced-motion: reduce) {
  .nanny-inner { transition: none; }
}
.nanny-photo { position: relative; height: 250px; display: grid; place-items: center; overflow: hidden; background: var(--cream-2); }
.nanny-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nanny-initial { font-family: var(--font-script); font-weight: 700; font-size: 76px; color: var(--terracotta); opacity: .45; }
.nanny-card:nth-child(3n+1) .nanny-photo { background: #FBE6C7; }
.nanny-card:nth-child(3n+2) .nanny-photo { background: #D9EDE6; }
.nanny-card:nth-child(3n+3) .nanny-photo { background: #DDE8F2; }
.nanny-body { padding: 22px; }
.nanny-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nanny-name { font-size: 18.5px; font-weight: 600; color: var(--charcoal); }
.nanny-cpr {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
  background: #D9EDE6; color: var(--pine-ink); font-family: var(--font-head); font-weight: 700;
  font-size: 11.5px; padding: 4px 9px; border-radius: 999px; white-space: nowrap;
}
.nanny-cpr .ico { width: 14px; height: 14px; stroke: var(--pine); }
.nanny-exp { color: var(--terracotta-ink); font-weight: 600; font-family: var(--font-head); font-size: 13.5px; margin-top: 4px; }
.nanny-langs { display: flex; align-items: center; gap: 8px; color: var(--charcoal-60); font-size: 14px; margin-top: 8px; }
.nanny-langs .ico { width: 16px; height: 16px; stroke: var(--pine); }
.nanny-bio { color: var(--charcoal-60); font-size: 14px; margin-top: 12px; line-height: 1.55; }
.nanny-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.nanny-tags li {
  background: var(--cream); border: 1px solid rgba(43, 42, 40, .08); color: var(--charcoal-60);
  font-family: var(--font-head); font-weight: 600; font-size: 11px; line-height: 1.35;
  padding: 3px 9px; border-radius: 999px;
}

/* ============================================================
   HOW TO BOOK
   ============================================================ */
.howto { padding-block: 52px 40px; text-align: center; }
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { position: relative; padding: 0 8px; }
.step-icon {
  width: 64px; height: 64px; border-radius: 50%; background: #fff; border: 2px solid var(--terracotta);
  display: grid; place-items: center; margin: 0 auto 16px; position: relative;
}
.step-icon .ico { width: 28px; height: 28px; stroke: var(--terracotta); }
.step-num {
  position: absolute; top: -6px; right: -6px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--sun-gold); color: var(--charcoal); font-family: var(--font-head); font-weight: 700;
  font-size: 13.5px; display: grid; place-items: center;
}
.step h3 { font-size: 17px; font-weight: 600; color: var(--charcoal); }
.step p { font-size: 14px; color: var(--charcoal-60); margin-top: 6px; line-height: 1.5; }
.howto-cta { margin-top: 34px; }

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.testimonial { padding-block: 8px 60px; }
.testi-grid {
  display: grid; gap: 18px; align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.quote-panel {
  background: var(--mint); border-radius: 26px; padding: 40px 40px; margin: 0; text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.quote-panel:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 18px 38px rgba(43, 42, 40, .16);
  filter: saturate(1.06);
}
.quote-sun { width: 54px; height: 54px; margin: 0 auto 14px; object-fit: contain; }
.quote-text {
  font-size: clamp(20px, 2.8vw, 26px); font-family: var(--font-head); font-weight: 500;
  color: var(--charcoal); max-width: 720px; margin: 0 auto; line-height: 1.4;
}
.quote-author { display: block; margin-top: 16px; font-family: var(--font-head); font-weight: 600; color: var(--pine-ink); font-style: normal; }

/* ============================================================
   CONTACT + FORM
   ============================================================ */
.contact { padding-block: 8px 64px; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info .kicker { text-align: left; }
.contact-info h2 { font-size: clamp(26px, 3.4vw, 32px); font-weight: 600; }
.contact-sub { margin-top: 10px; color: var(--charcoal-60); font-size: 16px; max-width: 42ch; }
.contact-wa { margin-top: 22px; }
.contact-list { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; }
.contact-list .ico { width: 20px; height: 20px; stroke: var(--pine); }
.contact-list a:hover { color: var(--pine-ink); text-decoration: underline; }

.contact-form {
  position: relative;
  background: #fff; border-radius: 22px; padding: 30px; border: 1px solid rgba(43, 42, 40, .07);
  box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 14px;
}
.form-heading { font-size: 21px; font-weight: 600; }
.form-sub { font-size: 14.5px; color: var(--charcoal-60); margin-top: -6px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-family: var(--font-head); font-weight: 600; font-size: 13.5px; color: var(--charcoal); }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 15px; color: var(--charcoal);
  background: var(--cream); border: 1.5px solid rgba(43, 42, 40, .12); border-radius: 12px;
  padding: 12px 14px; width: 100%; resize: vertical; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px rgba(47, 107, 94, .15); }
/* honeypot: contained visually-hidden (no off-screen coords → no overflow) */
.hp-field { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.form-submit { margin-top: 6px; align-self: flex-start; }
.form-status { font-size: 14.5px; font-weight: 600; margin-top: 4px; }
.form-status.is-ok { color: var(--pine-ink); }
.form-status.is-err { color: var(--brick); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { position: relative; background: var(--charcoal); color: #fff; padding-block: 48px 28px; margin-top: 8px; }
.terrazzo-rule-footer { position: absolute; top: 0; left: 0; right: 0; opacity: .92; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-top: 14px; }
.footer-brand .logo-word { color: #fff; }
.footer-brand .logo-sub { color: rgba(255, 255, 255, .6); }
.footer-tagline { font-size: 26px; color: var(--sun-gold); margin-top: 14px; }
.footer-h {
  font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--sun-gold); margin-bottom: 12px;
}
.footer-col p { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .82); font-size: 14.5px; margin-bottom: 10px; }
.footer-col .ico { width: 17px; height: 17px; stroke: var(--sun-gold); }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-wa { margin-top: 10px; }
.footer-copy { text-align: center; font-size: 13px; color: rgba(255, 255, 255, .5); border-top: 1px solid rgba(255, 255, 255, .14); margin: 32px var(--gutter) 0; padding-top: 18px; }
.footer-privacy { color: rgba(255, 255, 255, .62); }
.footer-privacy:hover { color: #fff; text-decoration: underline; }

/* ---------- contact form consent ---------- */
.form-consent { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--charcoal-60); line-height: 1.45; }
.form-consent input { margin-top: 2px; flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--pine); }
.form-consent a { color: var(--pine-ink); text-decoration: underline; }

/* ============================================================
   LEGAL PAGE — Aviso de privacidad
   ============================================================ */
.legal-page { padding-block: 36px 64px; }
.legal-wrap { max-width: 760px; }
.legal-back { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--pine-ink); margin-bottom: 16px; }
.legal-back:hover { text-decoration: underline; }
.legal-wrap h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; color: var(--charcoal); letter-spacing: -.02em; }
.legal-updated { color: var(--charcoal-60); font-size: 14px; margin-top: 6px; }
.legal-wrap h2 { font-size: 20px; font-weight: 600; color: var(--terracotta-ink); margin-top: 30px; }
.legal-wrap p { color: var(--charcoal); font-size: 16px; line-height: 1.7; margin-top: 12px; }
.legal-meta { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.legal-meta li { font-size: 16px; color: var(--charcoal); }
.legal-email { color: var(--pine-ink); border-bottom: 1px solid rgba(36, 82, 71, .3); }
.legal-footer .footer-copy { border-top: none; margin-top: 0; padding-top: 0; }

/* ============================================================
   PAGE-LOAD REVEAL (staggered)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { opacity: 0; transform: translateY(14px); animation: rise .6s cubic-bezier(.2, .7, .2, 1) forwards; }
  .hero-inner > .pill { animation-delay: .05s; }
  .hero-inner > .hero-title { animation-delay: .14s; }
  .hero-inner > .hero-sub { animation-delay: .22s; }
  .hero-inner > .hero-cta { animation-delay: .3s; }
  .hero-inner > .hero-photo-wrap { animation-delay: .38s; }

  /* scroll-reveal hook (toggled by main.js) */
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.is-in { opacity: 1; transform: none; }
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root { --gutter: 32px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .nanny-card { flex-basis: calc((100% - 18px) / 2); }
  .gal-grid { grid-template-columns: repeat(3, 1fr); }
  /* credentials + steps were 4-across down to 768, cramped on iPad portrait */
  .cred-grid { grid-template-columns: repeat(2, 1fr); }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .cred-grid { grid-template-columns: repeat(2, 1fr); }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }

  /* keep the whole header row (logo + lang + WhatsApp + burger) inside the
     gutter on phones — it used to overflow and clip the hamburger off-screen */
  .header-inner { gap: 10px; }
  .logo { gap: 8px; min-width: 0; }
  .header-actions { gap: 8px; margin-left: auto; flex-shrink: 0; }
  .lang-btn { padding: 6px 10px; font-size: 12px; }
  .lang-toggle { padding: 2px; }
  .logo-mark { width: 38px; height: 38px; }

  /* location eyebrow: keep it to a single line on phones */
  .pill { font-size: clamp(10px, 2.8vw, 12.5px); padding: 7px 12px; gap: 6px; }
  .pill .ico { width: 14px; height: 14px; }

  /* nav → hamburger dropdown */
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 4px; align-items: stretch;
    background: var(--cream); border-bottom: 1px solid rgba(43, 42, 40, .08);
    padding: 12px var(--gutter) 18px; box-shadow: 0 12px 24px rgba(43, 42, 40, .1);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  }
  .primary-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-link { padding: 10px 4px; font-size: 16px; }
  .nav-link::after { display: none; }
  .header-inner { position: relative; }
  .logo-sub { display: none; }
  .logo-word { font-size: 22px; }

  /* header WhatsApp becomes a round icon button */
  .header-actions .wa-link { padding: 0; width: 40px; height: 40px; border-radius: 50%; }
  .header-actions .wa-link span { display: none; }
  .header-actions .wa-link .wa-glyph { width: 20px; height: 20px; }

  /* hero */
  .hero-cta .btn { width: 100%; }
  .hero-photo-wrap { height: 230px; margin-top: 36px; }
  .hero-photo { border-radius: 130px 130px 24px 24px; }
  .tile-left { width: 92px; height: 120px; left: -10px; }
  .tile-right { width: 82px; height: 104px; right: -10px; }
  .hero-sun { width: 52px; height: 52px; top: -24px; }

  /* services → horizontal list cards */
  .svc-grid { grid-template-columns: 1fr; }
  /* keep a whole card within a phone screen: shorter photo + capped bio
     (bio stops filling and clips to ~4 lines w/ the fade; flip/back unchanged) */
  .nanny-card { flex-basis: 86%; height: 510px; }
  .nanny-front .nanny-photo { height: 195px; }
  .carousel-btn { display: none; }
  .svc-card { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: center; padding: 18px 18px; }
  .svc-card .chip { width: 42px; height: 42px; margin-bottom: 0; grid-row: span 2; }
  .svc-card .chip .ico { width: 22px; height: 22px; }
  .svc-card h3 { font-size: 16.5px; align-self: end; }
  .svc-card p { font-size: 13.5px; margin-top: 2px; align-self: start; }

  /* gallery → 2-col, drop the 5th tile */
  .gal-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gal-item:nth-child(5) { display: none; }

  /* how-to → vertical rows */
  .step-grid { grid-template-columns: 1fr; gap: 18px; text-align: left; }
  .step { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 0; }
  .step-icon { margin: 0; grid-row: span 2; }
  .step h3 { align-self: end; }

  .quote-panel { padding: 34px 22px; }
  .contact-inner { grid-template-columns: 1fr; gap: 28px; }
  .contact-form { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-copy { margin-inline: var(--gutter); }
}

/* honor reduced-motion globally */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
