/* =============================================================
   Residencia Geriátrica María Inmaculada
   Arquetipo: Editorial Light Cream
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f4efe6;
  --bg-2:      #ebe3d4;
  --paper:     #fffdf8;
  --ink:       #1d241f;
  --ink-soft:  #39433b;
  --ink-mute:  #5f6a61;
  --accent:    #2d5a3d;   /* verde de la casa */
  --accent-dk: #1f4230;
  --gold:      #b9853a;   /* dorado */
  --cream:     #f7f2e8;
  --line:      rgba(29, 36, 31, 0.14);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 18px;
  --nav-h: 76px;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  overflow-x: clip;
}
body {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; text-wrap: balance; line-height: 1.08; letter-spacing: -0.015em; }
em { font-style: italic; font-variation-settings: "SOFT" 100; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--cream); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.1rem; background: var(--ink); color: var(--cream);
  border-radius: 10px; font-weight: 500;
}
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 10vw, 8.5rem); }

/* =============================================================
   4. Typography
   ============================================================= */
.kicker {
  font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
  display: inline-flex; align-items: center; gap: .7rem;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.kicker-light { color: #f1e6cf; }
.section-num {
  align-self: start;
  font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--gold);
  padding-top: .15rem;
}
.section-title { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.section-title em { color: var(--accent); }
.section-lead { margin-top: 1.25rem; max-width: 58ch; color: var(--ink-soft); font-size: 1.1rem; }
.section-head {
  display: grid; grid-template-columns: 1fr; gap: .5rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 54px; padding: .85rem 1.6rem; border-radius: 999px;
  font-weight: 500; font-size: 1rem; line-height: 1.2;
  transition: transform .35s var(--ease-out), background-color .25s, color .25s, box-shadow .35s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--cream); box-shadow: 0 10px 30px -12px rgba(45, 90, 61, .7); }
.btn-primary:hover { background: var(--accent-dk); }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { background: #fff; box-shadow: 0 14px 34px -14px rgba(0,0,0,.5); }
.btn-ghost-light { color: var(--cream); border: 1px solid rgba(247, 242, 232, .55); }
.btn-ghost-light:hover { background: rgba(247, 242, 232, .12); }
.btn-outline { border: 1px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-block { width: 100%; }

.round-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line);
  font-size: 1.2rem; background: var(--paper);
  transition: background-color .25s, color .25s, transform .35s var(--ease-out);
}
.round-btn:hover { background: var(--ink); color: var(--cream); transform: scale(1.05); }

.link-arrow { color: var(--accent); font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--cream);
  transition: background-color .4s var(--ease-soft), color .4s, box-shadow .4s;
}
.nav-inner {
  height: var(--nav-h);
  width: min(100% - 2 * var(--gutter), 1400px); margin-inline: auto;
  display: flex; align-items: center; gap: 1.5rem;
}
.nav.is-solid {
  background: rgba(244, 239, 230, .92);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
@supports (backdrop-filter: blur(12px)) {
  .nav.is-solid { background: rgba(244, 239, 230, .78); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
}
.brand { display: flex; align-items: center; gap: .75rem; margin-right: auto; }
.brand-mark { width: 30px; height: 36px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.3rem; letter-spacing: -.01em; }
.brand-sub { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.nav-links { display: none; gap: 2rem; font-size: .95rem; }
.nav-links a { position: relative; padding-block: .3rem; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-phone {
  display: none; align-items: center; gap: .5rem;
  padding: .6rem 1.1rem; border-radius: 999px; border: 1px solid currentColor;
  font-weight: 500; font-size: .95rem;
  transition: background-color .25s, color .25s;
}
.nav-phone svg { width: 16px; height: 16px; }
.nav.is-solid .nav-phone { background: var(--accent); border-color: var(--accent); color: var(--cream); }
.nav-toggle { width: 44px; height: 44px; display: grid; place-content: center; gap: 7px; }
.nav-toggle .bar { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .35s var(--ease-out); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }
.nav-mobile {
  background: var(--bg); color: var(--ink);
  padding: 1rem var(--gutter) 2rem;
  display: flex; flex-direction: column; gap: .25rem;
  border-top: 1px solid var(--line);
}
.nav-mobile[hidden] { display: none; }
.nav-mobile a:not(.btn) { font-family: var(--serif); font-size: 1.6rem; padding-block: .45rem; border-bottom: 1px solid var(--line); }
.nav-mobile .btn { margin-top: 1.25rem; }
.nav.is-open { background: var(--bg); color: var(--ink); }

/* =============================================================
   6. Sections
   ============================================================= */

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--cream);
  padding-top: var(--nav-h);
}
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%;
  animation: heroZoom 18s var(--ease-soft) both;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(18, 26, 20, .55) 0%, rgba(18, 26, 20, 0) 26%),
    linear-gradient(90deg, rgba(18, 26, 20, .55) 0%, rgba(18, 26, 20, .15) 55%, rgba(18, 26, 20, 0) 75%),
    linear-gradient(0deg, rgba(18, 26, 20, .88) 0%, rgba(18, 26, 20, .45) 42%, rgba(18, 26, 20, .05) 75%);
}
.hero-content {
  width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto;
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 1.02;
  max-width: 19ch;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}
.hero-title em { color: #f1e6cf; }
.hero-sub { margin-top: 1.4rem; max-width: 44ch; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: rgba(247, 242, 232, .92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-facts {
  width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto;
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid rgba(247, 242, 232, .3);
  padding-block: 1.25rem 1.6rem; gap: 1rem;
}
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; }
.hero-facts span { font-size: .85rem; color: rgba(247, 242, 232, .78); }

/* ---------- Manifiesto ---------- */
.manifesto-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.manifesto-text { font-size: clamp(1.45rem, 2.5vw, 2.15rem); line-height: 1.32; max-width: 38ch; }
.manifesto-text em { color: var(--accent); }
.manifesto-foot { display: grid; gap: 2.5rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.manifesto-foot > p { color: var(--ink-soft); max-width: 52ch; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.stats dt { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.stats dd { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.1; color: var(--accent); font-variant-numeric: tabular-nums; }

/* ---------- Cinta ---------- */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line);
  background: var(--bg-2); padding-block: 1.1rem;
}
.marquee-track {
  display: flex; width: max-content; gap: 2rem; align-items: center;
  font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  color: var(--ink-soft);
  animation: marquee 48s linear infinite;
}
.marquee-track i { font-style: normal; color: var(--gold); font-size: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- La casa (bento) ---------- */
.bento {
  display: grid; gap: .8rem;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 180px;
}
.bento-item { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.bento-item button { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.bento-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease-out), filter .6s;
}
.bento-item figcaption {
  position: absolute; left: .8rem; bottom: .8rem; pointer-events: none;
  padding: .35rem .8rem; border-radius: 999px;
  background: rgba(255, 253, 248, .92); color: var(--ink);
  font-size: .82rem; font-weight: 500;
}
.bento-item { transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.bento-item:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(45, 90, 61, .55); }
.bento-item:hover img { transform: scale(1.06); filter: saturate(1.1) brightness(1.04); }
.b-1 { grid-row: span 2; }
.bento-more { display: grid; gap: .8rem; grid-template-columns: repeat(2, 1fr); margin-top: .8rem; }
.bento-more .bento-item { aspect-ratio: 3 / 4; }
@media (min-width: 900px) { .bento-more { grid-template-columns: repeat(4, 1fr); } .bento-more .bento-item { aspect-ratio: 4 / 5; } }
.b-4 { grid-column: span 2; }
.b-8 { grid-column: span 2; grid-row: span 2; }
.casa-extra {
  display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem;
}
.casa-extra li {
  padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: .92rem; color: var(--ink-soft); background: var(--paper);
}
.casa-extra li::before { content: "✓ "; color: var(--accent); font-weight: 600; }

/* ---------- Jardín ---------- */
.jardin {
  position: relative; isolation: isolate;
  min-height: 92vh; min-height: 92svh;
  display: flex; align-items: flex-end;
  padding: clamp(1.25rem, 4vw, 3rem);
}
.jardin-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #33402f; }
.jardin-video, .jardin-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.jardin-video { z-index: 1; opacity: 0; transition: opacity 1.2s; }
.jardin-video.is-playing { opacity: 1; }
.jardin-card {
  background: var(--paper); border-radius: calc(var(--radius) + 6px);
  padding: clamp(1.6rem, 4vw, 2.75rem);
  max-width: 560px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .5);
}
.jardin-card .section-title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 1rem; }
.jardin-card > p:not(.kicker) { color: var(--ink-soft); }
.jardin-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: 1.5rem; }
.jardin-thumbs img { aspect-ratio: 1; object-fit: cover; border-radius: 12px; width: 100%; }

/* ---------- Cuidados (carrusel) ---------- */
.section-head-row { align-items: end; }
.carousel-nav { display: none; gap: .6rem; }
.carousel {
  display: flex; gap: 1.1rem;
  overflow-x: auto; overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: .5rem var(--gutter) 2rem;
  scrollbar-width: thin; scrollbar-color: var(--gold) transparent;
}
.carousel:focus-visible { outline-offset: -3px; }
.service {
  flex: 0 0 min(82vw, 340px);
  scroll-snap-align: start;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem 1rem 1.6rem;
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.service:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -30px rgba(29, 36, 31, .45); }
.service-img { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; margin-bottom: 1.2rem; background: var(--bg-2); }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.service:hover .service-img img { transform: scale(1.06); }
.service-num { font-family: var(--serif); font-style: italic; color: var(--gold); padding-inline: .4rem; }
.service h3 { font-size: 1.5rem; margin: .3rem 0 .6rem; padding-inline: .4rem; }
.service p:not(.service-num) { font-size: 1rem; color: var(--ink-soft); padding-inline: .4rem; }
.service-cta {
  background: var(--accent); color: var(--cream); border-color: var(--accent);
  justify-content: flex-end; padding: 1.8rem 1.4rem;
}
.service-cta .service-num { font-size: 3rem; color: #e8c88f; font-style: normal; line-height: 1; }
.service-cta p:not(.service-num) { color: rgba(247, 242, 232, .88); }
.service-cta .link-arrow { color: #f1e6cf; margin: 1.2rem .4rem 0; align-self: flex-start; }

/* ---------- Equipo ---------- */
.equipo { background: var(--paper); }
.leaders { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.leader { text-align: center; }
.arch {
  aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 999px 999px var(--radius) var(--radius);
  background: #d9c79f;
  max-width: 340px; margin-inline: auto;
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; transition: transform 1s var(--ease-out); }
.leader:hover .arch img { transform: scale(1.04); }
.leader figcaption { margin-top: 1.2rem; display: flex; flex-direction: column; gap: .15rem; }
.leader strong { font-family: var(--serif); font-weight: 400; font-size: 1.55rem; }
.leader span { color: var(--accent); font-weight: 600; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.leader small { color: var(--ink-mute); font-size: .95rem; }
.crew {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: grid; gap: 1.25rem; align-items: center;
  border-top: 1px solid var(--line); padding-top: 2rem;
}
.crew-faces { display: flex; flex-wrap: wrap; }
.crew-faces img {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 20%;
  border: 3px solid var(--paper); margin-right: -12px;
  transition: transform .4s var(--ease-out);
}
.crew-faces img:hover { transform: translateY(-6px) scale(1.12); position: relative; z-index: 2; }
.crew p { color: var(--ink-soft); max-width: 40ch; }
.crew strong { color: var(--ink); }

/* ---------- Familias ---------- */
.steps { display: grid; gap: 1rem; counter-reset: step; }
.step {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
}
.step-n {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); color: var(--cream);
  font-family: var(--serif); font-size: 1.3rem; margin-bottom: 1.1rem;
}
.step h3 { font-size: 1.6rem; margin-bottom: .5rem; }
.step p { color: var(--ink-soft); font-size: 1rem; }

.trust {
  margin-top: clamp(3rem, 6vw, 5rem);
  display: grid; gap: 1.6rem; align-items: center;
  padding: clamp(1.8rem, 4vw, 3rem); border-radius: calc(var(--radius) + 6px);
  background: var(--bg-2);
}
.trust-score { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: center; }
.trust-num { font-family: var(--serif); font-size: 4rem; line-height: 1; color: var(--accent); grid-row: span 2; }
.trust-stars { color: var(--gold); letter-spacing: .15em; }
.trust-txt { font-size: .9rem; color: var(--ink-mute); line-height: 1.35; }
.trust-quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.4; color: var(--ink-soft); }
.trust .btn { justify-self: start; }

.faq { margin-top: clamp(3.5rem, 7vw, 5.5rem); max-width: 860px; }
.faq-title { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 1.5rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 1.5rem; align-items: center;
  padding: 1.35rem 0; font-size: 1.12rem; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line);
  font-size: 1.3rem; transition: transform .4s var(--ease-out), background-color .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent); color: var(--cream); border-color: var(--accent); }
.faq details p { padding: 0 3.5rem 1.5rem 0; color: var(--ink-soft); }

/* ---------- Visítenos ---------- */
.visitenos { background: var(--accent); color: var(--cream); }
.visitenos .section-title em { color: #f1e6cf; }
.visitenos-grid { display: grid; gap: 3rem; }
.visitenos-info > p:not(.kicker) { margin-top: 1.25rem; color: rgba(247, 242, 232, .88); max-width: 46ch; }
.channels { margin-top: 2.25rem; display: grid; gap: 1.2rem; }
.channels li { display: flex; flex-direction: column; border-top: 1px solid rgba(247, 242, 232, .22); padding-top: 1rem; font-size: 1.1rem; }
.channels a { text-decoration: underline; text-decoration-color: rgba(247, 242, 232, .4); text-underline-offset: 4px; word-break: break-word; }
.channels a:hover { text-decoration-color: currentColor; }
.ch-label { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: #e8c88f; margin-bottom: .2rem; }
.channels small { color: rgba(247, 242, 232, .75); font-size: .9rem; margin-top: .2rem; }

.form {
  background: var(--paper); color: var(--ink);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  display: grid; gap: 1.05rem; align-self: start;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55);
}
.form h3 { font-size: 1.9rem; }
.form-note { font-size: .95rem; color: var(--ink-mute); margin-top: -.4rem; }
.form label { display: block; font-size: .95rem; font-weight: 500; }
.form label > input, .form label > select, .form label > textarea { display: block; margin-top: .4rem; }
.form .opt { font-weight: 400; color: var(--ink-mute); }
.form input, .form select, .form textarea {
  font: inherit; font-size: 1.05rem; color: var(--ink);
  width: 100%; padding: .85rem 1rem; min-height: 52px;
  border: 1px solid rgba(29, 36, 31, .25); border-radius: 12px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(45, 90, 61, .15);
}
.form-legal { font-size: .82rem; color: var(--ink-mute); }
.form-error { color: #9b2c1f; font-weight: 500; font-size: .95rem; }

.map { margin-top: clamp(3rem, 6vw, 4.5rem); border-radius: calc(var(--radius) + 6px); overflow: hidden; height: 360px; background: var(--accent-dk); }
.map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.75) contrast(1.02); }

/* ---------- Pie ---------- */
.footer { background: var(--ink); color: rgba(247, 242, 232, .82); padding-block: 4rem 6rem; font-size: .98rem; }
.footer-grid { display: grid; gap: 2rem; }
.footer-brand { font-family: var(--serif); font-size: 1.8rem; color: var(--cream); margin-bottom: .5rem; }
.footer-h { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: #e8c88f; margin-bottom: .5rem; }
.footer a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(247, 242, 232, .15);
  font-size: .88rem;
}

/* ---------- Flotantes ---------- */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 5.2rem; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%;
  display: none; place-items: center; /* en móvil ya está la barra de abajo */
  background: #25d366; color: #fff;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .45);
  transition: transform .35s var(--ease-out);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); }

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0; padding: 0; background: transparent; color: var(--cream);
  max-width: min(94vw, 1200px); max-height: 92vh; margin: auto;
}
.lightbox::backdrop { background: rgba(18, 22, 19, .9); }
.lightbox img { max-height: 82vh; width: auto; margin-inline: auto; border-radius: 12px; }
.lightbox p { text-align: center; margin-top: .8rem; font-family: var(--serif); font-style: italic; font-size: 1.15rem; }
.lightbox-close {
  position: fixed; top: 1rem; right: 1rem; width: 52px; height: 52px; border-radius: 50%;
  background: var(--cream); color: var(--ink); font-size: 1.8rem; line-height: 1;
}

/* =============================================================
   7. Effects (reveal)
   ============================================================= */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.hero .reveal { transition-duration: 1.3s; }
.hero .reveal:nth-child(2) { transition-delay: .12s; }
.hero .reveal:nth-child(3) { transition-delay: .24s; }
.hero .reveal:nth-child(4) { transition-delay: .36s; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; }
  .b-8 { grid-column: span 1; }
  .crew { grid-template-columns: auto 1fr; }
}
@media (min-width: 720px) {
  .hero-facts { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .leaders { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.4fr; }
  .trust { grid-template-columns: auto 1fr; }
  .trust .btn { grid-column: 2; }
  .carousel-nav { display: flex; }
  .section-head-row { grid-template-columns: 1fr auto; }
  .section-head-row .section-num { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  :root { --nav-h: 84px; }
  .nav-links { display: flex; }
  .nav-phone { display: inline-flex; }
  .nav-toggle, .nav-mobile { display: none !important; }
  .section-head { grid-template-columns: 90px 1fr; }
  .section-head-row { grid-template-columns: 90px 1fr auto; }
  .section-head-row .section-num { grid-column: auto; }
  .manifesto-grid { grid-template-columns: 90px 1fr; }
  .manifesto-foot { grid-template-columns: 1fr 1fr; align-items: end; gap: 4rem; }
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; }
  .b-1 { grid-row: span 2; }
  .b-4 { grid-column: span 2; }
  .b-8 { grid-column: span 2; grid-row: span 1; }
  .casa-extra { margin-left: 90px; }
  .carousel { padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2)); scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2)); }
  .service { flex-basis: 360px; }
  .visitenos-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .jardin { padding: 4rem; }
  .wa-float { display: grid; bottom: 1.5rem; right: 1.5rem; }
  .hero { padding-bottom: 0; }
  .footer { padding-bottom: 4rem; }
  .steps, .trust, .faq { margin-left: 90px; }
}
@media (min-width: 1280px) {
  .bento { grid-auto-rows: 260px; }
}

/* =============================================================
   9. Reduced motion — solo lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img { animation: none; }
  .marquee-track { animation-duration: 120s; }
  .jardin-video { display: none; }
}

.reveal-all .reveal { opacity: 1 !important; transform: none !important; }
.nowrap { white-space: nowrap; }

/* Titular de portada: la línea pequeña forma parte del h1 (SEO) */
.hero-eyebrow { display: flex; font-family: var(--sans); font-style: normal; line-height: 1.4; letter-spacing: .16em; margin-bottom: 1.1rem; text-shadow: none; }

/* =============================================================
   10. Blog
   ============================================================= */
.subpage main { padding-top: var(--nav-h); }
.read-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; color: var(--ink-mute); margin-bottom: 1.6rem; }
.crumbs li + li::before { content: "›"; margin-right: .4rem; color: var(--gold); }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.crumbs a:hover { color: var(--accent); }

/* Cabecera del artículo */
.post-head { padding-top: clamp(2rem, 5vw, 3.5rem); }
.post-head > * { max-width: 900px; }
.post-title { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.06; }
.post-lede { margin-top: 1.2rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 60ch; }
.post-meta { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin-top: 1.4rem; font-size: .9rem; color: var(--ink-mute); }
.post-meta span + span::before { content: "·"; margin-right: 1.2rem; color: var(--gold); }

.post-cover { margin-top: clamp(1.8rem, 4vw, 2.8rem); }
.post-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 70%; border-radius: calc(var(--radius) + 6px); background: var(--bg-2); }
.post-cover figcaption, .post-figure figcaption {
  margin-top: .7rem; font-size: .88rem; font-style: italic; color: var(--ink-mute);
  display: flex; gap: .6rem; align-items: baseline;
}
.post-cover figcaption::before, .post-figure figcaption::before { content: ""; flex: none; width: 18px; height: 1px; background: var(--gold); transform: translateY(-.25em); }

/* Cuerpo */
.post-layout { display: grid; gap: 2rem; padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5rem); }
.post-aside .btn { display: none; }
.post-toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.post-toc-title { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .7rem; }
.post-toc ol { list-style: decimal; padding-left: 1.2rem; display: grid; gap: .45rem; font-size: .95rem; line-height: 1.4; }
.post-toc li::marker { color: var(--gold); font-family: var(--serif); }
.post-toc a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.prose { max-width: 70ch; font-size: 1.1rem; line-height: 1.75; color: var(--ink-soft); min-width: 0; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--ink); margin-top: 3.2rem; line-height: 1.15; scroll-margin-top: calc(var(--nav-h) + 20px); }
.prose h3 { font-size: 1.4rem; color: var(--ink); margin-top: 2.2rem; line-height: 1.25; scroll-margin-top: calc(var(--nav-h) + 20px); }
.prose h2 + p, .prose h3 + p { margin-top: .8rem; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(45, 90, 61, .35); }
.prose a:not(.btn):hover { text-decoration-color: currentColor; }
.prose ul, .prose ol { padding-left: 1.3rem; display: grid; gap: .55rem; }
.prose ul { list-style: none; }
.prose ul li { position: relative; }
.prose ul li::before { content: ""; position: absolute; left: -1.05rem; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.prose ol { list-style: decimal; }
.prose ol li::marker { color: var(--accent); font-weight: 600; }
.prose .callout {
  background: var(--paper); border-left: 3px solid var(--gold); border-radius: 0 14px 14px 0;
  padding: 1.1rem 1.4rem; font-size: 1.02rem; color: var(--ink);
}
.prose blockquote {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2.4vw, 1.7rem); line-height: 1.35;
  color: var(--accent); padding: .4rem 0 .4rem 1.4rem; border-left: 2px solid var(--gold); margin-block: 2.2rem;
}

/* En resumen (las 5 W) */
.post-summary { background: var(--accent); color: var(--cream); border-radius: calc(var(--radius) + 4px); padding: clamp(1.4rem, 3vw, 2rem); margin-top: 0; }
.post-summary-title.post-summary-title { font-size: .78rem; font-family: var(--sans); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #e8c88f; margin: 0 0 1rem; }
.post-summary dl { display: grid; gap: .9rem 2rem; }
.post-summary dt { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: #f1e6cf; }
.post-summary dd { font-size: 1rem; line-height: 1.55; color: rgba(247, 242, 232, .92); }

/* Imágenes dentro del texto */
.post-figure { margin-block: 2.4rem; }
.post-figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: var(--bg-2); }
.post-figure.is-portrait img { aspect-ratio: 4 / 3; }

/* Tablas */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
.prose th, .prose td { padding: .8rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; color: var(--ink); background: var(--bg-2); }
.prose tr:last-child td { border-bottom: 0; }

/* Preguntas, aviso y llamada a la acción */
.post-faq details { border-top: 1px solid var(--line); }
.post-faq details:last-child { border-bottom: 1px solid var(--line); }
.post-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; font-weight: 500; color: var(--ink); }
.post-faq summary::-webkit-details-marker { display: none; }
.post-faq summary::after { content: "+"; flex: none; font-size: 1.4rem; line-height: 1; color: var(--accent); transition: transform .3s var(--ease-out); }
.post-faq details[open] summary::after { transform: rotate(45deg); }
.post-faq details p { padding-bottom: 1.2rem; }
.post-note { font-size: .9rem; color: var(--ink-mute); border-top: 1px solid var(--line); padding-top: 1rem; }

.cta-box { background: var(--accent); color: var(--cream); border-radius: calc(var(--radius) + 6px); padding: clamp(1.6rem, 4vw, 2.4rem); margin-block: 2.8rem; }
.cta-box-kicker { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #e8c88f; }
.cta-box-title { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; margin-top: .5rem; color: var(--cream); }
.cta-box > p:not(.cta-box-kicker):not(.cta-box-title) { margin-top: .7rem; color: rgba(247, 242, 232, .88); font-size: 1rem; }
.cta-box-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }

/* Tarjetas de artículos */
.post-related { background: var(--paper); }
.post-related .section-title { margin-bottom: 2rem; }
.post-grid { display: grid; gap: 1.2rem; }
.post-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.post-related .post-card { background: var(--bg); }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(29, 36, 31, .45); }
.post-card a { display: flex; flex-direction: column; height: 100%; }
.post-card-img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-2); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-card-body { padding: 1.3rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.post-card-meta { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.post-card h3 { font-size: 1.4rem; line-height: 1.2; }
.post-card-body > p:not(.post-card-meta) { font-size: .98rem; color: var(--ink-soft); }
.post-card .link-arrow { margin-top: auto; align-self: flex-start; }

.blog-hero { padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.blog-hero > * { max-width: 900px; }
.blog-list { display: grid; gap: 1.2rem; }
.blog-cta { padding-block: 1rem 4rem; }

@media (min-width: 720px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-summary dl { grid-template-columns: repeat(2, 1fr); }
  .post-card.is-featured a { display: grid; grid-template-columns: 1.2fr 1fr; }
  .post-card.is-featured .post-card-img { aspect-ratio: auto; min-height: 340px; }
  .post-card.is-featured .post-card-body { padding: 2rem; justify-content: center; }
  .post-card.is-featured h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
}
@media (min-width: 960px) {
  .post-grid { grid-template-columns: repeat(3, 1fr); }
  .post-layout { grid-template-columns: 260px minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5rem); }
  .post-aside { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; display: grid; gap: 1rem; }
  .post-aside .btn { display: inline-flex; }
}
@media (max-width: 539px) {
  .post-meta { flex-direction: column; gap: .15rem; }
  .post-meta span + span::before { display: none; }
}
.post-figure figcaption a { text-decoration: underline; text-underline-offset: 2px; color: inherit; }

/* =============================================================
   11. Ajustes de móvil
   ============================================================= */
.stats > div { display: flex; flex-direction: column; justify-content: flex-end; }
@media (max-width: 539px) {
  .manifesto-text { font-size: 1.3rem; line-height: 1.42; }
  .stats dt { font-size: .72rem; }
  .bento-item figcaption { font-size: .74rem; padding: .3rem .65rem; left: .55rem; bottom: .55rem; white-space: nowrap; max-width: calc(100% - 1.1rem); overflow: hidden; text-overflow: ellipsis; }
  .b-7 { grid-column: span 2; }
  .arch { max-width: 250px; }
  .leader strong { font-size: 1.4rem; }
  .trust .btn { white-space: nowrap; padding-inline: 1.3rem; }
  .hero-eyebrow { letter-spacing: .12em; }
}

/* Botón flotante de llamada (móvil) — en ordenador se muestra el de WhatsApp */
.call-float {
  position: fixed; right: 1.1rem; bottom: calc(1.1rem + env(safe-area-inset-bottom)); z-index: 45;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #3a7050 0%, var(--accent) 55%, var(--accent-dk) 100%);
  color: var(--cream);
  box-shadow: 0 16px 34px -12px rgba(31, 66, 48, .75), 0 0 0 1px rgba(255, 255, 255, .14) inset;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.call-float svg { width: 26px; height: 26px; }
.call-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(45, 90, 61, .45);
  animation: callRing 3.2s var(--ease-out) infinite;
  pointer-events: none;
}
.call-float:active { transform: scale(.94); }
@keyframes callRing {
  0%   { transform: scale(1);   opacity: .9; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
@media (min-width: 960px) { .call-float { display: none; } }
@media (prefers-reduced-motion: reduce) { .call-float::before { animation: none; opacity: 0; } }
@media (max-width: 959px) { .hero-facts { padding-bottom: 5.4rem; } }

/* =============================================================
   12. Asistente con IA
   ============================================================= */
.asistente { background: var(--paper); }
.asistente-grid { display: grid; gap: 2.5rem; align-items: start; }
.asistente-intro .section-num { margin-bottom: .6rem; }
.asistente-points { margin-top: 1.6rem; display: grid; gap: .7rem; color: var(--ink-soft); }
.asistente-points li { position: relative; padding-left: 1.6rem; }
.asistente-points li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 600; }
.asistente-points a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.chat {
  background: var(--bg); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 40px 80px -50px rgba(29, 36, 31, .45);
}
.chat-head { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.2rem; background: var(--accent); color: var(--cream); }
.chat-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(247, 242, 232, .14); flex: none; }
.chat-avatar svg { width: 18px; height: 22px; }
.chat-title { display: flex; flex-direction: column; line-height: 1.25; }
.chat-title strong { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; }
.chat-status { font-size: .8rem; color: rgba(247, 242, 232, .8); display: inline-flex; align-items: center; gap: .4rem; }
.chat-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7fd49b; box-shadow: 0 0 0 3px rgba(127, 212, 155, .25); }

.chat-log { height: 360px; overflow-y: auto; padding: 1.2rem; display: flex; flex-direction: column; gap: .8rem; scroll-behavior: smooth; overscroll-behavior: contain; }
.msg { max-width: 88%; padding: .8rem 1rem; border-radius: 18px; font-size: 1rem; line-height: 1.55; }
.msg p + p, .msg ul + p, .msg p + ul { margin-top: .55rem; }
.msg ul { padding-left: 1.1rem; list-style: disc; display: grid; gap: .25rem; }
.msg a { text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.msg-bot { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 6px; color: var(--ink); }
.msg-bot a { color: var(--accent); }
.msg-user { align-self: flex-end; background: var(--accent); color: var(--cream); border-bottom-right-radius: 6px; }

.typing { display: inline-flex; gap: 5px; padding: .3rem 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-mute); opacity: .4; animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.chat-suggest { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0 1.2rem 1rem; }
.chat-suggest[hidden] { display: none; }
.chat-suggest button {
  font-size: .88rem; padding: .5rem .85rem; border-radius: 999px; border: 1px solid rgba(45, 90, 61, .35);
  color: var(--accent); background: var(--paper); text-align: left;
  transition: background-color .25s, color .25s;
}
.chat-suggest button:hover { background: var(--accent); color: var(--cream); }

.chat-form { display: flex; gap: .6rem; align-items: flex-end; padding: .9rem 1rem; border-top: 1px solid var(--line); background: var(--paper); }
.chat-form textarea {
  flex: 1; resize: none; font: inherit; font-size: 1rem; line-height: 1.45; color: var(--ink);
  border: 1px solid rgba(29, 36, 31, .2); border-radius: 14px; padding: .75rem .95rem; min-height: 48px; max-height: 140px; background: #fff;
}
.chat-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(45, 90, 61, .14); }
.chat-form button {
  flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--cream); transition: background-color .25s, transform .3s var(--ease-out);
}
.chat-form button svg { width: 22px; height: 22px; }
.chat-form button:hover { background: var(--accent-dk); transform: translateX(2px); }
.chat-form button:disabled { opacity: .5; cursor: wait; transform: none; }
.chat-note { font-size: .78rem; line-height: 1.45; color: var(--ink-mute); padding: 0 1.2rem 1rem; background: var(--paper); }

@media (min-width: 960px) {
  .asistente-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 4.5rem; }
  .asistente-intro { position: sticky; top: calc(var(--nav-h) + 40px); }
  .chat-log { height: 400px; }
}
@media (max-width: 539px) {
  .chat-log { height: 340px; padding: 1rem; }
  .msg { max-width: 92%; font-size: .98rem; }
  .chat-suggest { padding-inline: 1rem; }
}
.service-tag { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(185, 133, 58, .45); border-radius: 999px; padding: .15rem .6rem; margin-right: .3rem; vertical-align: 1px; }

/* =============================================================
   13. Galería por zonas — fotos enteras, sin recortes
   ============================================================= */
.galeria-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.galeria-tabs button {
  padding: .6rem 1.1rem; border-radius: 999px; border: 1px solid rgba(45, 90, 61, .25);
  background: transparent; color: var(--ink); font: inherit; font-size: .95rem; cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.galeria-tabs button span { opacity: .55; font-size: .85em; margin-left: .2rem; }
.galeria-tabs button:hover { border-color: var(--accent); }
.galeria-tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.galeria-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; align-items: start; }
@media (min-width: 1200px) { .galeria-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.galeria-grid[hidden] { display: none; }
.galeria-item { break-inside: avoid; margin: 0; animation: galeria-in .6s var(--ease-out) both; }
.galeria-item button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.galeria-item img { display: block; width: 100%; height: auto; transition: transform 1s var(--ease-out); }
.galeria-item button:hover img { transform: scale(1.03); }
.galeria-item figcaption { margin-top: .55rem; font-size: .92rem; color: var(--ink-soft); padding-inline: .2rem; }
.galeria-hint { display: none; }
@keyframes galeria-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 699px) {
  .galeria-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .galeria-tabs::-webkit-scrollbar { display: none; }
  .galeria-tabs button { white-space: nowrap; flex: none; }
  .galeria-grid { columns: auto; display: flex; gap: .9rem; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; align-items: flex-start; }
  .galeria-grid::-webkit-scrollbar { display: none; }
  .galeria-grid[hidden] { display: none; }
  .galeria-item { flex: 0 0 84%; scroll-snap-align: center; margin: 0; }
  .galeria-hint { display: block; font-size: .85rem; color: var(--ink-soft); margin-top: .8rem; text-align: right; }
}
@media (prefers-reduced-motion: reduce) { .galeria-item { animation: none; } }

/* Tarjetas de cuidados: foto más alta para recortar menos */
.service-img { aspect-ratio: 4 / 5; }

/* =============================================================
   14. Galería 3D (carrusel tipo coverflow)
   ============================================================= */
.g3d {
  position: relative; overflow: hidden; color: var(--ink);
  padding: clamp(4.5rem, 9vw, 7rem) 0 clamp(3.5rem, 7vw, 5rem);
  background: var(--bg-2);
}
.g3d-head { text-align: center; }
.g3d-lead { margin: 1rem auto 0; max-width: 46ch; color: var(--ink-soft); font-size: 1.05rem; }
.g3d-stage {
  --card-w: clamp(220px, 30vw, 380px);
  position: relative; height: calc(var(--card-w) * 1.333 + 4rem);
  margin-top: clamp(2rem, 4vw, 3rem); perspective: 1800px; outline: none; touch-action: pan-y;
}
.g3d-track { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; transform-style: preserve-3d; }
.g3d-slide {
  position: absolute; top: 2rem; left: 50%; width: var(--card-w); aspect-ratio: 3 / 4; margin-left: calc(var(--card-w) / -2);
  transition: transform .7s var(--ease-out), opacity .7s var(--ease-out), filter .7s var(--ease-out);
  will-change: transform;
}
.g3d-slide button {
  display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: var(--bg);
  border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -24px rgba(30, 45, 34, .45);
}
.g3d-slide img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.g3d-slide img.is-loaded { opacity: 1; }
.g3d-slide.is-active button { cursor: zoom-in; box-shadow: 0 40px 80px -28px rgba(30, 45, 34, .55), 0 0 0 1px rgba(185, 133, 58, .35); }
.g3d-nav {
  position: absolute; top: 50%; z-index: 50; width: 56px; height: 56px; margin-top: -28px; border-radius: 50%;
  border: 1px solid rgba(45, 90, 61, .25); background: rgba(255, 253, 248, .9); color: var(--accent);
  font-size: 1.8rem; line-height: 1; cursor: pointer; backdrop-filter: blur(6px); transition: background .3s, border-color .3s;
}
.g3d-nav:hover { background: var(--accent); color: #fff; border-color: transparent; }
.g3d-prev { left: max(16px, calc(50% - var(--card-w) * 1.9)); }
.g3d-next { right: max(16px, calc(50% - var(--card-w) * 1.9)); }
.g3d-caption { text-align: center; margin-top: 1.4rem; font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.4rem); min-height: 1.6em; }
.g3d-count { margin-left: .8rem; font-family: inherit; font-size: .8rem; letter-spacing: .12em; color: var(--ink-soft); opacity: .7; font-variant-numeric: tabular-nums; }
.g3d-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin: 1.1rem auto 0; max-width: 520px; padding-inline: 16px; }
.g3d-dots i { display: block; width: 7px; height: 7px; border-radius: 99px; background: rgba(45, 90, 61, .2); transition: width .4s var(--ease-out), background .4s; }
.g3d-dots i.on { width: 26px; background: var(--gold); }
.familias-faq { padding-top: clamp(3rem, 6vw, 4.5rem); }
.familias-faq .faq { margin-top: 0; }

@media (max-width: 699px) {
  .g3d-stage { --card-w: 66vw; }
  .g3d-nav { width: 44px; height: 44px; margin-top: -22px; font-size: 1.4rem; }
  .g3d-prev { left: 8px; } .g3d-next { right: 8px; }
  .g3d-dots { display: none; }
}
@media (prefers-reduced-motion: reduce) { .g3d-slide { transition: none; } }
/* Menú: con 7 enlaces, más compacto en pantallas medianas */
@media (min-width: 960px) and (max-width: 1279px) {
  .nav-links { gap: 1.25rem; font-size: .9rem; }
  .brand-name, .brand-sub { white-space: nowrap; }
}
.nav-phone { white-space: nowrap; }
