/* ============================================================
   PILAR GARIJO — Home (Centros de Quiromasaje)
   Sistema visual: cálido / wellness / acogedor
   El header, el modal de WhatsApp, el drawer y el botón flotante
   viven en css/site-header.css + assets/site-header.js (compartidos).
   ============================================================ */

:root {
  --bg:        #F8F3E9;
  --surface:   #FFFFFF;
  --ink:       #1C1505;
  --ink-soft:  #6B5E48;
  --line:      #E8DFCE;
  --primary:   #231A04;
  --primary-d: #3D2D0A;
  --accent:    #9A7B3C;
  --deep:      #231A04;
  --deep-ink:  #F4ECDB;
  --wa:        #1FA855;
  --wa-d:      #128C42;

  --radius:    20px;
  --radius-sm: 13px;
  --shadow:    0 1px 2px rgba(46,38,32,.04), 0 18px 40px -22px rgba(46,38,32,.30);
  --shadow-lg: 0 2px 4px rgba(46,38,32,.05), 0 40px 80px -30px rgba(46,38,32,.40);

  --serif: "Season Sans", system-ui, sans-serif;   /* títulos */
  --sans:  "Season Sans", system-ui, sans-serif;   /* cuerpo de texto */
  --label: "GT Pressura", system-ui, sans-serif;   /* subtítulos / etiquetas */

  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 18px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(35,26,4,.06), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(154,123,60,.10), transparent 60%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
.eyebrow { font-family: var(--label); font-size: 13px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; color: var(--primary); }

/* ---------- Huecos de foto ----------
   Sustituye <div class="ph">…</div> por <img class="ph" src="tu-foto.jpg" alt="…">
   cuando tengas la imagen real (conserva el mismo tamaño y recorte). */
.ph {
  display: flex; align-items: center; justify-content: center; text-align: center;
  width: 100%; object-fit: cover; padding: 16px;
  color: var(--ink-soft); font-size: 13px; font-weight: 600; letter-spacing: .02em;
  background: color-mix(in srgb, var(--primary) 6%, var(--surface));
  border: 1px dashed var(--line);
}
img.ph { padding: 0; border: none; display: block; }

/* ---------- Buttons (contenido) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-weight: 700; font-size: 16px;
  border: none; border-radius: 999px; padding: 15px 26px; cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease; white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 12px 26px -12px rgba(31,168,85,.7); }
.btn-wa:hover { background: var(--wa-d); transform: translateY(-2px); box-shadow: 0 18px 32px -12px rgba(31,168,85,.75); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-d); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn .wa-glyph { width: 20px; height: 20px; flex: none; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-copy .eyebrow { margin-bottom: 22px; display: inline-block; font-size: clamp(19px, 2.4vw, 27px); font-weight: 600; letter-spacing: .1em; line-height: 1.3; }
.hero h1 { font-size: clamp(46px, 6vw, 84px); margin-bottom: 24px; }
.hero h1 .it { font-style: italic; color: var(--primary); }
.hero .lead { font-size: clamp(19px, 2vw, 23px); color: var(--ink-soft); max-width: 30ch; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-trust { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero-trust .stat .n { font-family: var(--serif); font-size: 34px; color: var(--ink); line-height: 1; }
.hero-trust .stat .l { font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; max-width: 16ch; }
.hero-trust-single .stat { display: flex; align-items: center; gap: 22px; }
.hero-trust-single .stat .n { font-size: 68px; }
.hero-trust-single .stat .l { display: flex; flex-direction: column; gap: 3px; max-width: 30ch; font-size: 16.5px; color: var(--ink); }
.hero-trust-single .stat .l .it { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 18px; }
.hero-media { position: relative; }
.hero-media .ph { height: 540px; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.hero-badge {
  position: absolute; left: -24px; bottom: 34px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 20px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 14px; max-width: 250px;
}
.hero-badge .ring {
  width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 22%, var(--surface));
  color: var(--ink); font-family: var(--serif); font-size: 19px;
}
.hero-badge .t { font-size: 13.5px; line-height: 1.35; color: var(--ink-soft); }
.hero-badge .t b { color: var(--ink); display: block; font-size: 14.5px; }

/* ---------- Academia teaser ---------- */
.academia-teaser { padding: 0 0 90px; }
.academia-card {
  display: grid; grid-template-columns: 1.2fr 1fr; align-items: stretch;
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.academia-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.academia-media .ph {
  width: 100%; height: 100%; min-height: 460px; border-radius: 0; border: none;
  background: color-mix(in srgb, var(--primary) 10%, var(--surface));
  font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--ink);
}
.academia-body { padding: 48px 56px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; }
.academia-body .eyebrow { display: inline-block; }
.academia-body p { font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); max-width: 48ch; }
.academia-body p b { color: var(--ink); }
.academia-cta { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--primary); display: inline-flex; align-items: center; gap: 8px; }
.academia-cta .arrow { transition: transform .2s ease; }
.academia-card:hover .academia-cta .arrow { transform: translateX(6px); }

/* ---------- Clinics ---------- */
.clinics { padding: 90px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.section-head .eyebrow { margin-bottom: 16px; display: inline-block; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 56px); margin-bottom: 16px; }
.section-head h2 .it { font-style: italic; color: var(--primary); }
.section-head p { color: var(--ink-soft); font-size: 18px; }
.clinic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.clinic {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.clinic:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.clinic .photo { position: relative; }
.clinic .photo .ph { height: 230px; }
.clinic .since {
  position: absolute; top: 14px; left: 14px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(4px);
  font-family: var(--label); font-size: 12px; font-weight: 400; letter-spacing: .06em; padding: 6px 12px; border-radius: 999px; color: var(--ink);
}
.clinic .newtag {
  position: absolute; top: 14px; right: 14px; background: var(--primary); color: #fff;
  font-family: var(--label); font-size: 11px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.clinic .body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.clinic h3 { font-size: 28px; margin-bottom: 4px; }
.clinic .area { font-family: var(--label); font-size: 13px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.clinic .row { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); margin-bottom: 8px; }
.clinic .row svg { width: 17px; height: 17px; flex: none; margin-top: 3px; stroke: var(--primary); }
.clinic .row a:hover { color: var(--primary); }
.clinic .actions { margin-top: auto; padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.clinic .actions .btn { width: 100%; }
.clinic .actions .sub-links { display: flex; gap: 8px; }
.clinic .actions .sub-links .btn { flex: 1; padding: 11px 12px; font-size: 14px; }

/* ---------- Method ---------- */
.method { padding: 0 0 96px; }
.method-card { background: var(--deep); color: var(--deep-ink); border-radius: 28px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.method-media .ph { width: 100%; height: 100%; min-height: 480px; }
.method-body { padding: 60px 56px; display: flex; flex-direction: column; justify-content: center; }
.method-body .eyebrow { color: color-mix(in srgb, var(--accent) 75%, #fff); margin-bottom: 18px; }
.method-body h2 { font-size: clamp(30px, 3.4vw, 46px); color: #fff; margin-bottom: 22px; }
.method-body h2 .it { font-style: italic; color: color-mix(in srgb, var(--accent) 75%, #fff); }
.method-feats { display: flex; flex-direction: column; gap: 18px; margin-bottom: 30px; }
.method-feats .feat { display: flex; gap: 14px; align-items: flex-start; }
.method-feats .feat .ic {
  width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center;
  background: color-mix(in srgb, #fff 8%, transparent); border: 1px solid color-mix(in srgb, #fff 14%, transparent);
}
.method-feats .feat .ic svg { width: 19px; height: 19px; stroke: color-mix(in srgb, var(--accent) 80%, #fff); }
.method-feats .feat p { font-size: 15.5px; color: color-mix(in srgb, var(--deep-ink) 82%, transparent); }
.method-feats .feat p b { color: #fff; }
.method-quote { border-top: 1px solid color-mix(in srgb, #fff 14%, transparent); padding-top: 24px; }
.method-quote blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.45; color: #fff; }
.method-quote cite { display: block; margin-top: 12px; font-style: normal; font-size: 14px; font-weight: 700; letter-spacing: .04em; color: color-mix(in srgb, var(--accent) 80%, #fff); }

/* ---------- Cursos ---------- */
.cursos { padding: 0 0 96px; }
.cursos-card { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; display: grid; grid-template-columns: 1fr 1.1fr; box-shadow: var(--shadow); }
.cursos-media .ph { width: 100%; height: 100%; min-height: 340px; }
.cursos-body { padding: 52px 56px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; }
.cursos-body h2 { font-size: clamp(30px, 3.4vw, 46px); }
.cursos-body p { color: var(--ink-soft); max-width: 44ch; }
.cursos-actions { margin-top: 6px; }
@media (max-width: 980px) {
  .cursos-card { grid-template-columns: 1fr; }
  .cursos-media .ph { min-height: 280px; }
  .cursos-body { padding: 36px 28px; }
}

/* ---------- Testimonios en vídeo ---------- */
.testimonials { padding: 0 0 96px; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); max-width: 760px; margin: 0 auto; }
.video-card { position: relative; }
.video-thumb { aspect-ratio: 9 / 16; border-radius: var(--radius-sm); font-size: 13px; }
video.video-thumb { display: block; width: 100%; height: 100%; object-fit: cover; padding: 0; border: none; background: #000; }
.play-btn {
  position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 82%, transparent); color: #fff; border: none; cursor: pointer;
  display: grid; place-items: center; transition: transform .15s ease, background .2s ease, opacity .15s ease;
}
.play-btn:hover { background: var(--ink); transform: scale(1.06); }
.play-btn svg { width: 22px; height: 22px; margin-left: 3px; }
.video-card.is-playing .play-btn { opacity: 0; pointer-events: none; }
@media (max-width: 860px) { .video-grid { grid-template-columns: repeat(2, 1fr); max-width: none; } }

/* ---------- Reseñas de Google ---------- */
.reviews { padding: 0 0 96px; }
.stars { display: flex; gap: 3px; color: #E8A93C; }
.stars svg { width: 16px; height: 16px; }
.reviews-summary {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 24px 28px; margin-bottom: clamp(28px, 4vw, 44px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.rs-score { font-family: var(--serif); font-size: 40px; line-height: 1; }
.rs-meta { display: flex; flex-direction: column; gap: 6px; }
.rs-meta .stars svg { width: 18px; height: 18px; }
.rs-meta span { font-size: 14px; color: var(--ink-soft); }
.rs-link { margin-left: auto; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); }
.review-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow);
}
.review-text { font-size: 15px; color: var(--ink-soft); line-height: 1.6; flex: 1; }
.review-name { font-family: var(--label); font-size: 13px; font-weight: 400; letter-spacing: .04em; color: var(--ink); }
@media (max-width: 980px) { .review-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .review-grid { grid-template-columns: 1fr; }
  .reviews-summary { padding: 20px; }
  .rs-link { margin-left: 0; width: 100%; }
}

/* ---------- Equipo ---------- */
.team { padding: 0 0 96px; }
.team-grid {
  --col-gap: clamp(16px, 2.4vw, 32px);
  --row-gap: clamp(24px, 3vw, 40px);
  display: flex; flex-direction: column; align-items: center;
  gap: var(--row-gap);
}
/* filas explícitas centradas (4 · 5 · 4): la del medio es más ancha,
   las de los extremos quedan centradas debajo */
.team-row { display: flex; justify-content: center; gap: var(--col-gap); width: 100%; }
.member { flex: 0 0 calc((100% - 4 * var(--col-gap)) / 5); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.member-photo {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 50%;
  font-size: 12px; padding: 10px;
}
.member-name { font-family: var(--label); font-size: 13px; font-weight: 400; letter-spacing: .06em; color: var(--ink); }
@media (max-width: 860px) {
  /* en móvil/tablet las filas se disuelven y las fotos se reflowean */
  .team-grid { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: var(--row-gap) var(--col-gap); }
  .team-row { display: contents; }
  .member { flex: 0 0 calc((100% - 2 * var(--col-gap)) / 3); }
}
@media (max-width: 560px) { .member { flex: 0 0 calc((100% - 1 * var(--col-gap)) / 2); } }

/* ---------- CTA strip ---------- */
.cta-strip { padding: 0 0 96px; }
.cta-inner {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 14%, var(--surface)), var(--surface));
  border: 1px solid var(--line); border-radius: 28px; padding: 56px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.cta-inner h2 { font-size: clamp(30px, 3.6vw, 46px); }
.cta-inner h2 .it { font-style: italic; color: var(--primary); }
.cta-inner p { color: var(--ink-soft); max-width: 44ch; }
.cta-tagline { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--primary); margin-top: -10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: var(--deep-ink); position: relative; z-index: 1; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 70px 0 50px; }
.footer-logo-link { display: inline-flex; }
.footer-logo-link img { width: auto; height: 80px; }
.footer-top p.blurb { font-size: 15px; color: color-mix(in srgb, var(--deep-ink) 75%, transparent); margin-top: 18px; max-width: 34ch; }
.footer-col h5 { font-family: var(--label); font-size: 13px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--accent) 80%, #fff); margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 15px; color: color-mix(in srgb, var(--deep-ink) 82%, transparent); }
.footer-col a:hover { color: #fff; }
.social { display: flex; gap: 12px; margin-top: 6px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid color-mix(in srgb, #fff 16%, transparent); transition: background .2s ease, border-color .2s ease; }
.social a:hover { background: var(--wa); border-color: var(--wa); }
.social a svg { width: 19px; height: 19px; fill: #fff; }
.footer-bottom { border-top: 1px solid color-mix(in srgb, #fff 12%, transparent); padding: 22px 0; font-size: 13px; color: color-mix(in srgb, var(--deep-ink) 60%, transparent); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .hero-media .ph { height: 420px; }
  .academia-card { grid-template-columns: 1fr; }
  .academia-media .ph { min-height: 320px; }
  .clinic-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .method-card { grid-template-columns: 1fr; }
  .method-media .ph { min-height: 320px; }
  .method-body { padding: 44px 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 34px; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .hero { padding: 32px 0 52px; }
  .hero h1 { font-size: clamp(32px, 8vw, 42px); }
  .cta-inner { padding: 40px 24px; }
  .method-body { padding: 36px 24px; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-badge { left: 12px; }
  .wrap { padding: 0 20px; }
  .academia-body { padding: 30px 22px; }
  .hero-media-desktop { margin-top: 30px; }
  .hero-media-desktop .ph { height: 280px; }
}
