/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Brand palette — sampled directly from the real Melody Health Care logo */
  --teal:          #1CA4AC;
  --teal-deep:     #0B5D62;
  --teal-dark:     #0A4548;
  --turquoise:     #5CE1E6;
  --turquoise-soft:#C9F5F3;

  --bg:            #F6FBFB;
  --bg-2:          #E7F6F5;
  --paper:         #FFFFFF;

  --ink:           #12302F;
  --ink-soft:      #3E5C5B;
  --ink-mute:      #6C8584;
  --cream:         #FBFEFE;

  --whatsapp:      #25D366;
  --warn-bg:       #FFF6E9;
  --warn-line:     #F0D9AE;

  --line:          rgba(18, 48, 47, 0.12);
  --line-soft:     rgba(18, 48, 47, 0.07);

  --shadow-sm: 0 2px 10px rgba(10, 69, 72, 0.08);
  --shadow-md: 0 18px 40px -12px rgba(10, 69, 72, 0.22);
  --shadow-lg: 0 30px 70px -20px rgba(10, 69, 72, 0.28);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --display: "Quicksand", var(--sans);

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --container: 1180px;
}

@property --blob-x { syntax: "<percentage>"; inherits: false; initial-value: 30%; }
@property --blob-y { syntax: "<percentage>"; inherits: false; initial-value: 30%; }

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

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; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  text-wrap: balance;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--teal-dark);
}
::selection { background: var(--turquoise); color: var(--teal-dark); }

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

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.1rem; background: var(--teal-dark); color: #fff;
  border-radius: 8px; font-weight: 600;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 720px) { .container { padding-inline: 2rem; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); font-weight: 700; font-size: .82rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--turquoise); box-shadow: 0 0 0 4px var(--turquoise-soft);
}

.section { position: relative; padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-top: .6rem; }
.section-head h2.h2-long { font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.3; }
.section-head p { margin-top: 1rem; color: var(--ink-soft); font-size: 1.08rem; max-width: 40ch; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center p { margin-inline: auto; }

/* Wave dividers between sections */
.wave { display: block; width: 100%; height: auto; margin-block: -1px; position: relative; z-index: 2; }
.wave path { transition: fill .4s; }

/* Soft floating blobs (decorative, non-intrusive) */
.blob {
  position: absolute; border-radius: 42% 58% 65% 35% / 45% 42% 58% 55%;
  filter: blur(2px);
  opacity: .5;
  pointer-events: none;
  animation: blobDrift 16s ease-in-out infinite;
}
@keyframes blobDrift {
  0%, 100% { border-radius: 42% 58% 65% 35% / 45% 42% 58% 55%; transform: translate3d(0,0,0) scale(1); }
  50%      { border-radius: 58% 42% 40% 60% / 55% 60% 40% 45%; transform: translate3d(0,-14px,0) scale(1.04); }
}
@media (prefers-reduced-motion: reduce) { .blob { animation: none; } }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: .98rem;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease-soft), box-shadow .4s var(--ease-soft), background-color .3s;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); transition-duration: .12s; }

.btn-primary { background: var(--whatsapp); color: #fff; }
.btn-primary:hover { box-shadow: var(--shadow-md); }
.btn-primary svg { width: 20px; height: 20px; flex: none; }

.btn-ghost {
  background: rgba(255,255,255,.14);
  color: var(--teal-dark);
  border: 1.5px solid var(--teal);
}
.btn-ghost:hover { background: var(--paper); box-shadow: var(--shadow-md); }

.btn-solid { background: var(--teal); color: #fff; }
.btn-solid:hover { background: var(--teal-deep); box-shadow: var(--shadow-md); }

.btn-block { width: 100%; }

/* =============================================================
   5. Nav
   ============================================================= */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 200;
  padding-block: 1rem;
  transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out), padding-block .3s;
}
.nav.is-scrolled {
  background: rgba(246, 251, 251, 0.92);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
  padding-block: .65rem;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-brand { display: flex; align-items: center; gap: .8rem; }
.nav-logo { display: block; width: 100px; height: auto; transition: width .3s var(--ease-out); }
.nav-logo-dark { display: none; }
.nav.is-scrolled .nav-logo-light { display: none; }
.nav.is-scrolled .nav-logo-dark { display: block; }
.nav.is-scrolled .nav-logo { width: 66px; }
.nav-brand-name { font-family: var(--display); font-weight: 700; font-size: 1.25rem; line-height: 1.1; color: #fff; transition: color .3s; }
.nav-brand-name small { display: block; margin-top: .2rem; font-family: var(--sans); font-weight: 500; font-size: .74rem; letter-spacing: .05em; color: rgba(255,255,255,.82); transition: color .3s; }
.nav.is-scrolled .nav-brand-name { color: var(--teal-dark); }
.nav.is-scrolled .nav-brand-name small { color: var(--ink-mute); }
@media (max-width: 719px) {
  .nav-logo { width: 68px; }
  .nav-brand { gap: .5rem; }
  .nav-brand-name { font-size: 1rem; }
  .nav-brand-name small { font-size: .64rem; }
  .nav.is-scrolled .nav-logo { width: 50px; }
}

.nav-links { display: none; align-items: center; gap: 2rem; }
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-link { position: relative; font-weight: 600; font-size: 1rem; padding-block: .3rem; transition: color .3s; }
.nav:not(.is-scrolled) .nav-link { color: #fff; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--teal); transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav:not(.is-scrolled) .nav-link::after { background: var(--turquoise); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-actions { display: flex; align-items: center; gap: .75rem; }
.nav-actions .btn { padding: .7rem 1.25rem; font-size: .88rem; }
.nav-actions .btn-primary { display: none; }
@media (min-width: 720px) { .nav-actions .btn-primary { display: inline-flex; } }

/* Language switch */
.lang-switch {
  display: flex; align-items: center; gap: .35rem;
  padding: .35rem .5rem; border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: .82rem; letter-spacing: .02em;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.32);
  transition: background-color .3s, border-color .3s;
}
.nav.is-scrolled .lang-switch { background: var(--bg-2); border-color: var(--line); }
.lang-switch .lang-current,
.lang-switch .lang-link { padding: .15rem .45rem; border-radius: 999px; color: #fff; transition: color .25s, background-color .25s; }
.nav.is-scrolled .lang-switch .lang-current,
.nav.is-scrolled .lang-switch .lang-link { color: var(--teal-dark); }
.lang-switch .lang-current { background: rgba(255,255,255,.22); }
.nav.is-scrolled .lang-switch .lang-current { background: var(--turquoise-soft); }
.lang-switch .lang-link:hover { background: rgba(255,255,255,.18); }
.nav.is-scrolled .lang-switch .lang-link:hover { background: var(--bg-2); }

.nav-mobile-lang {
  display: flex; align-items: center; gap: .75rem;
  font-family: var(--display); font-weight: 700; font-size: 1rem !important;
}
.nav-mobile-lang .lang-current,
.nav-mobile-lang .lang-link { padding: .3rem .8rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); }
.nav-mobile-lang .lang-current { background: rgba(255,255,255,.18); }
.nav-mobile-lang .lang-link:hover { background: rgba(255,255,255,.12); }

.nav-toggle {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; background: var(--bg-2);
}
@media (min-width: 960px) { .nav-toggle { display: none; } }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--teal-dark);
  position: relative; transition: transform .3s, opacity .3s;
}
.nav-toggle::before { transform: translateY(-6px); }
.nav-toggle::after { transform: translateY(4px); }
body.nav-open .nav-toggle::before { transform: translateY(0) rotate(45deg); }
body.nav-open .nav-toggle::after { transform: translateY(-2px) rotate(-45deg); }
body.nav-open .nav-toggle span { opacity: 0; }

.nav-mobile {
  position: fixed; inset: 0; z-index: 190;
  background: var(--teal-dark); color: #fff;
  display: grid; place-items: center;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-soft);
}
.nav-mobile[aria-hidden="false"] { clip-path: inset(0); }
.nav-mobile-list { display: flex; flex-direction: column; align-items: center; gap: 1.75rem; }
.nav-mobile-list a { font-family: var(--display); font-weight: 700; font-size: 1.7rem; }
.nav-mobile .btn-primary { margin-top: .75rem; }

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative;
  padding-top: clamp(8.5rem, 14vw, 10rem);
  padding-bottom: 0;
  background: linear-gradient(175deg, var(--teal-deep) 0%, var(--teal) 46%, #22B4B9 100%);
  color: #fff;
  overflow: clip;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: -10% -10% -10% -10%; z-index: -1;
  background:
    radial-gradient(38% 46% at 82% 18%, rgba(92,225,230,.42), transparent 65%),
    radial-gradient(46% 40% at 8% 86%, rgba(255,255,255,.14), transparent 60%);
}
.hero-grid {
  display: grid; gap: clamp(2.5rem, 5vw, 3rem);
  padding-bottom: clamp(4.5rem, 9vw, 6.5rem);
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; }
}

.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.35rem; }
.hero-chip {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem 1rem; border-radius: 999px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.32);
  backdrop-filter: blur(6px);
  font-weight: 700; font-size: .85rem; letter-spacing: .02em;
}
.hero-chip strong { font-family: var(--display); font-size: .95rem; }
.hero-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: #6CFFA0; box-shadow: 0 0 0 3px rgba(108,255,160,.28); flex: none; }

.hero-title {
  color: #fff;
  font-size: clamp(2.35rem, 5.4vw, 3.6rem);
  max-width: 15ch;
}
.hero-title em {
  font-style: normal;
  color: var(--turquoise);
}
.hero-lead {
  margin-top: 1.25rem;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.25;
  color: #fff; max-width: 32ch; text-wrap: balance;
}
.hero-sub {
  margin-top: 1.15rem;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: rgba(255,255,255,.92);
  max-width: 42ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.9rem; }
.hero-actions .btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.08); }
.hero-actions .btn-ghost:hover { background: rgba(255,255,255,.18); }

.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art-frame {
  position: relative;
  width: min(440px, 86vw);
  aspect-ratio: 2 / 3;
  border-radius: 220px 220px 36px 36px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid rgba(255,255,255,.4);
}
.hero-art-frame img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 719px) { .hero-art-frame { aspect-ratio: 4 / 5; border-radius: 160px 160px 32px 32px; } }
.hero-art-caption {
  position: absolute; left: 50%; bottom: -1.1rem; transform: translateX(-50%);
  background: var(--paper); color: var(--ink);
  padding: .7rem 1.2rem; border-radius: 14px;
  box-shadow: var(--shadow-md);
  font-size: .85rem; font-weight: 600;
  white-space: nowrap;
  display: flex; align-items: center; gap: .5rem;
}
.hero-art-caption strong { font-family: var(--display); color: var(--teal-dark); }

.hero-wave { position: relative; z-index: 3; }
.hero-wave path { fill: var(--bg); }

/* =============================================================
   7. Services
   ============================================================= */
.services-head-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
@media (min-width: 860px) {
  .services-head-grid { grid-template-columns: 1.1fr .9fr; }
  .services-head-grid .section-head { margin-bottom: 0; }
}
.services-photo {
  border-radius: 26px; overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}
.services-photo video { width: 100%; height: 100%; object-fit: cover; object-position: center 78%; background: var(--bg-2); }

.services-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }

.service-card {
  background: var(--paper);
  border-radius: 26px;
  padding: 2rem 1.75rem;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  --rx: 0deg; --ry: 0deg;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft), border-color .3s;
}
.service-card:hover { box-shadow: var(--shadow-md); border-color: var(--turquoise-soft); }

.service-icon {
  width: 58px; height: 58px; border-radius: 18px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--turquoise-soft), var(--bg-2));
  color: var(--teal-deep);
  margin-bottom: 1.25rem;
}
.service-icon svg { width: 28px; height: 28px; }

.service-card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.service-card p { color: var(--ink-soft); font-size: .98rem; }

.service-card .service-intro { font-weight: 600; color: var(--teal-deep); }
.service-card .service-outro { margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--line-soft); }
.service-bullets { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line-soft); display: grid; gap: .55rem; }
.service-bullets li {
  position: relative; padding-left: 1.4rem;
  font-size: .9rem; color: var(--ink-soft);
}
.service-bullets li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--turquoise);
}

/* =============================================================
   8. Confianza — credibility strip + testimonials
   ============================================================= */
.trust { background: var(--bg-2); position: relative; overflow: clip; }
.trust .blob {
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--turquoise-soft), transparent 70%);
  top: -10%; right: -8%;
}

.commitment-banner {
  text-align: center;
  max-width: 44rem; margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2.5rem);
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  background: linear-gradient(160deg, var(--turquoise-soft), var(--bg-2));
  border-radius: 24px;
}
.commitment-quote {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--teal-deep);
}
.commitment-text {
  margin-top: .75rem; color: var(--ink-soft);
  font-size: 1rem; max-width: 42ch; margin-inline: auto;
}

.trust-strip {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
  background: var(--paper);
  border-radius: 28px;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-md);
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
@media (min-width: 860px) {
  .trust-strip { grid-template-columns: .82fr 1.18fr; align-items: center; }
}

.trust-photo-frame {
  position: relative;
  width: 100%; max-width: 320px; margin-inline: auto;
  aspect-ratio: 3 / 4;
  border-radius: 36px;
  overflow: hidden;
  border: 5px solid var(--turquoise-soft);
  box-shadow: var(--shadow-md);
}
@media (min-width: 860px) { .trust-photo-frame { max-width: 380px; } }
.trust-photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.trust-person-name { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--teal-dark); text-align: center; }
.trust-person-role { font-size: .95rem; color: var(--ink-mute); margin-top: .2rem; text-align: center; }
.trust-person-quote { font-size: 1.05rem; color: var(--ink-soft); margin-top: .6rem; text-align: center; }
.trust-person-bio { font-size: .95rem; color: var(--ink-soft); margin-top: .75rem; text-align: center; }
@media (min-width: 860px) {
  .trust-person-name, .trust-person-role, .trust-person-quote, .trust-person-bio { text-align: left; }
}

.moments-band { display: grid; gap: 1.25rem; grid-template-columns: 1fr 1fr; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.moments-card {
  position: relative; border-radius: 22px; overflow: hidden;
  aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm);
}
.moments-card img { width: 100%; height: 100%; object-fit: cover; }
.moments-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.5rem 1.1rem .9rem;
  background: linear-gradient(0deg, rgba(10,69,72,.82), transparent);
  color: #fff; font-family: var(--display); font-weight: 700; font-size: .92rem;
}
@media (max-width: 539px) { .moments-band { grid-template-columns: 1fr; } }

.support-group {
  display: grid; gap: 0;
  grid-template-columns: 1fr;
  align-items: stretch;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 720px) { .support-group { grid-template-columns: .85fr 1.15fr; } }

.support-group-photo { aspect-ratio: 16/10; }
@media (min-width: 720px) { .support-group-photo { aspect-ratio: auto; height: 100%; } }
.support-group-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }

.support-group-content { padding: 1.75rem clamp(1.25rem, 3vw, 2.25rem); }
.support-group-icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; flex: none;
  background: linear-gradient(145deg, var(--turquoise-soft), var(--bg-2));
  color: var(--teal-deep);
  margin-bottom: 1rem;
}
.support-group-icon svg { width: 24px; height: 24px; }
.support-group-label { display: block; font-family: var(--display); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.support-group h3 { font-size: 1.4rem; margin: .2rem 0 .5rem; color: var(--teal-dark); }
.support-group p { color: var(--ink-soft); font-size: .97rem; }
.support-group p + p { margin-top: .75rem; }
.support-group .support-group-lead { font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--teal-deep); margin-bottom: .75rem; }
.support-group-link { display: inline-block; margin-top: .75rem; font-weight: 700; color: var(--teal-deep); }
.support-group-link:hover { text-decoration: underline; }


.testimonials-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.testimonials-head h3 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.testimonials-more { font-weight: 600; font-size: .92rem; color: var(--teal-deep); white-space: nowrap; }
.testimonials-more:hover { text-decoration: underline; }

.testimonials-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 720px) { .testimonials-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial-card {
  position: relative;
  background: var(--paper);
  border-radius: 28px 28px 28px 6px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line-soft);
}
.testimonial-mark {
  font-family: var(--display); font-weight: 700; font-size: 3.2rem; line-height: 1;
  color: var(--turquoise); margin-bottom: .5rem; display: block;
}
.testimonial-card p { font-size: 1.05rem; color: var(--ink); }
.testimonial-author { margin-top: 1.5rem; display: flex; align-items: center; gap: .7rem; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: linear-gradient(145deg, var(--teal), var(--turquoise));
  display: grid; place-items: center; color: #fff; font-family: var(--display); font-weight: 700;
}
.testimonial-author-name { font-weight: 700; font-size: .95rem; color: var(--teal-dark); }
.testimonial-author-loc { font-size: .82rem; color: var(--ink-mute); }

.share-review {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 860px) { .share-review { grid-template-columns: .85fr 1.15fr; align-items: start; } }

.share-review-copy h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
.share-review-copy p { color: var(--ink-soft); margin-top: .6rem; font-size: .98rem; max-width: 30ch; }

.share-review-form .field:last-of-type { margin-bottom: 1.25rem; }
.share-review-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.share-review-fb svg { width: 19px; height: 19px; }

/* =============================================================
   9. Contact
   ============================================================= */
.contact {
  background:
    linear-gradient(175deg, rgba(8,58,61,.95) 0%, rgba(8,58,61,.88) 45%, rgba(9,77,81,.95) 100%),
    url('assets/img/sma-noche.jpg') center 35% / cover no-repeat;
  color: #fff; position: relative; overflow: clip;
}
.contact::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(50% 60% at 12% 0%, rgba(92,225,230,.18), transparent 70%);
}
.contact .container { position: relative; z-index: 1; }
.contact .section-head h2 { color: #fff; }
.contact .section-head p { color: rgba(255,255,255,.78); }
.contact .eyebrow { color: var(--turquoise); }
.contact .eyebrow::before { background: var(--turquoise); box-shadow: 0 0 0 4px rgba(92,225,230,.25); }

.contact-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .95fr 1.05fr; align-items: start; } }

.contact-list { display: grid; gap: 1rem; margin-bottom: 1.75rem; }
.contact-item {
  display: flex; align-items: center; gap: 1rem;
  background: rgba(8,58,61,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px; padding: 1.1rem 1.25rem;
  transition: background .3s, transform .3s var(--ease-soft);
}
.contact-item:hover { background: rgba(8,58,61,.7); transform: translateX(3px); }
.contact-item-icon {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: rgba(92,225,230,.16); color: var(--turquoise);
  display: grid; place-items: center;
}
.contact-item-icon svg { width: 22px; height: 22px; }
.contact-item-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.6); }
.contact-item-value { font-weight: 700; font-family: var(--display); font-size: 1rem; }

.contact-social { display: flex; gap: .75rem; margin-bottom: 1.75rem; }
.contact-social a {
  width: 46px; height: 46px; border-radius: 14px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  display: grid; place-items: center;
  transition: background .3s, transform .3s var(--ease-soft);
}
.contact-social a:hover { background: var(--turquoise); color: var(--teal-dark); transform: translateY(-3px); }
.contact-social svg { width: 21px; height: 21px; }

.map-frame {
  border-radius: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,.16);
  aspect-ratio: 16/10;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: saturate(0.9); }

.contact-form-card {
  background: var(--cream); color: var(--ink);
  border-radius: 26px; padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.contact-form-card h3 { color: var(--teal-dark); font-size: 1.35rem; margin-bottom: .4rem; }
.contact-form-card > p { color: var(--ink-mute); font-size: .95rem; margin-bottom: 1.5rem; }

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: .4rem; color: var(--teal-dark); }
.field input, .field textarea {
  width: 100%; padding: .9rem 1rem; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  font: inherit; transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 4px var(--turquoise-soft); outline: none;
}
.field textarea { min-height: 110px; resize: vertical; }

[data-contact-form].is-sending { opacity: .7; pointer-events: none; }
.contact-success {
  display: none; align-items: center; gap: .6rem;
  margin-top: 1rem; padding: .85rem 1rem; border-radius: 12px;
  background: #E5F8EE; color: #1D7A4C; font-weight: 600; font-size: .92rem;
}
.contact-success[aria-hidden="false"] { display: flex; }
.contact-success svg { width: 20px; height: 20px; flex: none; }

/* =============================================================
   10. Floating WhatsApp button
   ============================================================= */
.whatsapp-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 300;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--whatsapp); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px -6px rgba(37,211,102,.55);
  transition: transform .35s var(--ease-bounce), box-shadow .35s;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 16px 38px -6px rgba(37,211,102,.65); }
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--whatsapp);
  animation: pulseRing 2.4s ease-out infinite;
}
@keyframes pulseRing {
  0% { transform: scale(1); opacity: .55; }
  100% { transform: scale(1.55); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .whatsapp-float-ring { animation: none; } }

/* =============================================================
   11. Footer
   ============================================================= */
.footer { background: var(--teal-dark); color: rgba(255,255,255,.82); padding-top: 0; }
.footer-inner {
  display: grid; gap: 2.5rem; grid-template-columns: 1fr;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid rgba(255,255,255,.12);
}
@media (min-width: 860px) { .footer-inner { grid-template-columns: 1.3fr 1fr 1fr; } }

.footer-brand img { height: 46px; margin-bottom: .9rem; }
.footer-tagline { font-family: var(--display); font-style: normal; color: var(--turquoise); font-weight: 700; }
.footer-desc { margin-top: .75rem; font-size: .92rem; max-width: 32ch; color: rgba(255,255,255,.62); }

.footer-col h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: .65rem; }
.footer-col a { font-size: .94rem; color: rgba(255,255,255,.72); transition: color .25s; }
.footer-col a:hover { color: var(--turquoise); }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .82rem; color: rgba(255,255,255,.55);
}
.footer-bottom a { color: rgba(255,255,255,.7); }
.footer-bottom a:hover { color: var(--turquoise); }

/* =============================================================
   12. Reveal effect (defensive: never invisible)
   ============================================================= */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* =============================================================
   13. Responsive helpers
   ============================================================= */
@media (max-width: 719px) {
  .hero-art { order: -1; }
}

/* Rollo fotográfico: fotos separadas en una tira que se desliza */
.filmstrip { position: relative; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.filmstrip-scroll {
  overflow-x: auto; overflow-y: hidden;
  border-radius: 14px; box-shadow: var(--shadow-md);
  scroll-behavior: smooth; scroll-snap-type: x proximity; scroll-padding-inline: 20px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  background: var(--teal-dark);
}
.filmstrip-scroll::-webkit-scrollbar { display: none; }
.filmstrip-track {
  position: relative; display: flex; gap: 14px; width: max-content; min-width: 100%;
  padding: 34px 20px;
  background: var(--teal-dark);
}
.filmstrip-track::before, .filmstrip-track::after {
  content: ""; position: absolute; left: 0; right: 0; height: 12px;
  background: repeating-linear-gradient(90deg, transparent 0 8px, rgba(255,255,255,.88) 8px 22px, transparent 22px 34px);
}
.filmstrip-track::before { top: 11px; }
.filmstrip-track::after { bottom: 11px; }
.filmstrip-frame {
  flex: 0 0 auto; margin: 0; scroll-snap-align: start;
  width: clamp(180px, 22vw, 250px); aspect-ratio: 4 / 5;
  border-radius: 4px; overflow: hidden;
  background: #0c2f31; outline: 3px solid rgba(255,255,255,.08); outline-offset: -3px;
}
.filmstrip-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.filmstrip-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.92); color: var(--teal-dark); box-shadow: var(--shadow-sm);
  transition: background .3s, transform .3s var(--ease-soft);
}
.filmstrip-btn:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.filmstrip-btn svg { width: 22px; height: 22px; }
.filmstrip-prev { left: .6rem; }
.filmstrip-next { right: .6rem; }
@media (prefers-reduced-motion: reduce) { .filmstrip-scroll { scroll-behavior: auto; } }
