/* ═══════════════════════════════════════════════════════════════
   DESIGN TOKENS — Ported from Mock Web CDC
═══════════════════════════════════════════════════════════════ */
:root {
  --blue: #2B5C7B;
  --blue-deep: #1E4A65;
  --blue-soft: #4A8DB5;
  --gold: #C4A962;
  --gold-warm: #D4BC7E;
  --salud: #7B8C6B;
  --salud-light: #E8F0EC;
  --calidad: #9A7D3A;
  --calidad-light: #FAF3EB;
  --armonia: #9B7068;
  --armonia-light: #F5E8EE;
  --cream: #FAF8F5;
  --warm: #F5F0EB;
  --bg: #F8F9FA;
  --text: #1A1A2E;
  --text-soft: #3D3D52;
  --text-light: #6A6A7E;
  --text-muted: #9A9AAE;
  --border: #E8E6E2;
  --white: #FFFFFF;
  --dark: #1A1A2E;
  --shadow: 0 8px 40px rgba(26,26,46,0.10);
  --shadow-sm: 0 2px 16px rgba(26,26,46,0.06);
  --shadow-lg: 0 16px 64px rgba(26,26,46,0.14);
  --radius: 14px;
  --radius-sm: 8px;
  --serif: 'Playfair Display', Georgia, serif;
  --heading: 'Plus Jakarta Sans', sans-serif;
  --body: 'DM Sans', sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ═══════════════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

/* ═══════════════════════════════════════════════════════════════
   REVEAL ANIMATIONS
═══════════════════════════════════════════════════════════════ */
.r { opacity: 0; transform: translateY(28px); transition: opacity 0.75s var(--ease-spring), transform 0.75s var(--ease-spring); }
.r.v { opacity: 1; transform: translateY(0); }
.r-d1 { transition-delay: 0.08s; }
.r-d2 { transition-delay: 0.16s; }
.r-d3 { transition-delay: 0.24s; }
.r-d4 { transition-delay: 0.32s; }
.r-d5 { transition-delay: 0.40s; }
.r-d6 { transition-delay: 0.48s; }
.r-d7 { transition-delay: 0.56s; }
.r-d8 { transition-delay: 0.64s; }

/* ═══════════════════════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════════════════════ */
.w { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.w-narrow { max-width: 720px; margin: 0 auto; padding: 0 28px; }
.w-wide { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
section { position: relative; }

/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════════════════════════ */
/* Base heading reset */
h1, h2, h3, h4 {
  font-family: var(--heading);
  line-height: 1.2;
  color: var(--dark, #1a1a2e);
}
/* h1 — page-level hero titles: serif, fino, premium */
h1 {
  font-family: var(--serif) !important;
  font-weight: 400 !important;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
/* h2 — section titles: serif para consistencia premium, peso ligero */
h2 {
  font-family: var(--serif) !important;
  font-weight: 400 !important;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
/* h3 — subsection titles: sans, medio */
h3 {
  font-weight: 500 !important;
  letter-spacing: 0;
  line-height: 1.25;
}
/* h4 — minor titles: sans, medio */
h4 {
  font-weight: 500 !important;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.hero-title {
  font-family: var(--serif) !important;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 400 !important;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.section-title {
  font-family: var(--serif) !important;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400 !important;
  letter-spacing: -0.01em;
  line-height: 1.18;
}
.overline {
  font-family: var(--heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.body-lg {
  font-size: 1.08rem;
  line-height: 1.72;
  color: var(--text-soft);
}
.serif { font-family: var(--serif); }
.text-gold { color: var(--gold); }
.font-serif { font-family: var(--serif); }

/* ═══════════════════════════════════════════════════════════════
   SECTION UTILITIES
═══════════════════════════════════════════════════════════════ */
.sec { padding: 96px 0; position: relative; z-index: 3; background: var(--white); }
.sec-sm { padding: 56px 0; }
.sec-cream { background: var(--cream); }
.sec-dark { background: var(--dark); }
.sec-blue { background: var(--blue); }
@media (max-width: 768px) {
  .sec { padding: 56px 0; }
  .sec-sm { padding: 40px 0; }
}

/* Section Intro */
.section-intro { text-align: center; margin-bottom: 52px; }

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 34px;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  border: none;
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-align: center;
  justify-content: center;
}
.btn-primary { background: var(--blue); color: var(--white); border: 2px solid var(--blue); }
.btn-primary:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(43,92,123,0.32);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.75);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}
.btn-outline-dark {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline-dark:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(43,92,123,0.25);
}
.btn-ghost {
  background: transparent;
  color: var(--blue);
  padding: 10px 0;
  border: none;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.btn-ghost:hover {
  color: var(--blue-deep);
  transform: translateX(4px);
}
.btn-gold { background: var(--gold); color: var(--white); border: 2px solid var(--gold); }
.btn-gold:hover {
  background: #B89A52;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196,169,98,0.3);
}
.btn-white { background: var(--white); color: var(--blue); border: 2px solid var(--white); }
.btn-white:hover {
  background: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,255,255,0.3);
}
.btn-sm { padding: 10px 22px; font-size: 0.8rem; }
.link-arrow {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--blue);
  text-decoration: none;
  transition: all 0.3s var(--ease);
  cursor: pointer;
}
.link-arrow:hover { color: var(--blue-deep); letter-spacing: 0.02em; }

/* ═══════════════════════════════════════════════════════════════
   BADGES
═══════════════════════════════════════════════════════════════ */
.badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 50px;
  font-family: var(--heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-s { background: rgba(26,135,84,0.12); color: var(--salud); }
.badge-e { background: rgba(212,160,23,0.12); color: var(--equilibrio); }
.badge-b { background: rgba(139,76,140,0.12); color: var(--belleza); }
.badge-blue { background: rgba(43,92,123,0.1); color: var(--blue); }
.badge-gold { background: rgba(196,169,98,0.15); color: #9A7D30; }

/* ═══════════════════════════════════════════════════════════════
   CARDS
═══════════════════════════════════════════════════════════════ */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.38s var(--ease), box-shadow 0.38s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-border { border: 1px solid var(--border); }

/* ═══════════════════════════════════════════════════════════════
   TRUST BAR
═══════════════════════════════════════════════════════════════ */
section.trust-bar {
  padding: 32px 0 36px;
  background: #fff;
  margin: 0;
}
section.trust-bar .w {
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
}
.trust-bar-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
}
.trust-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}
.trust-bar-stat {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2rem;
  color: var(--dark, #1a1a2e);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
  padding: 0;
}
.trust-bar-label {
  font-family: var(--heading);
  font-size: 0.78rem;
  font-weight: 500;
  color: #9ca3af;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}
@media (max-width: 540px) {
  .trust-bar-grid { gap: 32px; }
  .trust-bar-stat { font-size: 1.6rem; }
}

/* ═══════════════════════════════════════════════════════════════
   PREOCUPACIONES CARDS
═══════════════════════════════════════════════════════════════ */
.preoc-card {
  padding: 22px 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
  position: relative;
  cursor: pointer;
  display: block;
}
.preoc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  background: var(--cream);
}
.preoc-layer {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
.preoc-title {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}
.preoc-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   DOCTOR CARDS
═══════════════════════════════════════════════════════════════ */
.doc-card {
  text-align: center;
  cursor: pointer;
  padding: 20px;
}
.doc-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--border);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.doc-card:hover .doc-photo {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(43,92,123,0.1);
}
.doc-name { font-family: var(--heading); font-weight: 700; font-size: 1rem; }
.doc-role { font-size: 0.85rem; color: var(--text-muted); margin-top: 3px; }
.doc-badges { margin-top: 10px; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════════
   TESTIMONIOS MARQUEE
═══════════════════════════════════════════════════════════════ */
.testi-marquee { overflow: hidden; width: 100%; }
.testi-track { display: flex; gap: 20px; animation: marquee 40s linear infinite; width: max-content; }
.testi-track:hover { animation-play-state: paused; }
@keyframes marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.testi-card {
  flex: 0 0 360px;
  padding: 32px;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
}
.testi-stars { color: var(--gold); font-size: 0.92rem; margin-bottom: 12px; }
.testi-text {
  font-size: 0.92rem;
  font-style: italic;
  color: rgba(255,255,255,0.82);
  line-height: 1.65;
  white-space: normal;
}
.testi-author {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-top: 16px;
}

/* ═══════════════════════════════════════════════════════════════
   MAP PLACEHOLDER
═══════════════════════════════════════════════════════════════ */
.map-ph {
  border-radius: var(--radius);
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--cream);
  overflow: hidden;
}
.map-ph-inner {
  text-align: center;
  color: var(--text-light);
}
.map-ph .pin { font-size: 2.4rem; margin-bottom: 8px; }

/* ═══════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════ */
.hero-video-wrap {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  z-index: 0;
  overflow: hidden;
}
.hero-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-spacer {
  position: relative;
  height: 200vh;
  background: transparent;
}
.hero-content {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  z-index: 2;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.hero-content > * { pointer-events: auto; }
.hero-content .hero-inner {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.1s, transform 0.1s;
}
.hero-overlay,
#hero-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  z-index: 1;
  background: transparent;
  display: none;
}
.hero-spacer ~ section {
  position: relative;
  z-index: 3;
}

/* ═══════════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════════ */
.hdr {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 0 28px;
  transition: all 0.4s var(--ease);
}
.hdr.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
.hdr-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 24px;
}
.hdr-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.5rem;
}
.hdr-logo-dark  { height: 42px; width: auto; display: block; }
.hdr-logo-light { height: 42px; width: auto; display: none;  }
.hdr.scrolled .hdr-logo-dark  { display: none;  }
.hdr.scrolled .hdr-logo-light { display: block; }
@media (max-width: 640px) {
  .hdr-logo-dark, .hdr-logo-light { height: 36px; }
}

.hdr-badge-medsum {
  display: flex; align-items: center; text-decoration: none; margin-left: 8px;
}
.hdr-badge-text {
  font-family: var(--heading); font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; transition: opacity 0.3s;
}
.hdr[data-hero='true'] .hdr-badge-text { color: white; }
.hdr.scrolled .hdr-badge-text { color: var(--blue); }
.hdr-badge-medsum:hover .hdr-badge-text { opacity: 1; }
@media (max-width: 640px) { .hdr-badge-medsum { display: none; } }

.hdr-menu-toggle {
  background: none; border: none; padding: 0.5rem; cursor: pointer; color: inherit; display: none;
}
.hdr[data-hero='true'] .hdr-menu-toggle { color: white; }
.hdr.scrolled .hdr-menu-toggle { color: #1f2937; }
.hdr-cta-desktop { display: inline-flex; }

@media (max-width: 768px) {
  .hdr-nav { display: none !important; }
  .hdr-menu-toggle { display: block; }
  .hdr-cta-desktop { display: none; }
}

.hdr-mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: white; overflow-y: auto; z-index: 999; -webkit-overflow-scrolling: touch;
}
.hdr-mobile-menu.open { display: block; }
.hdr-mobile-menu nav { padding: 1.5rem 1rem; }
.hdr-mobile-menu .hdr-link { font-size: 1rem; padding: 0.75rem 0; display: block; }
.hdr-mobile-menu details summary { padding: 0.75rem 0; font-size: 1rem; }
.hdr-mobile-menu .btn { width: 100%; margin-top: 1.5rem; }

.hdr-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
}
.hdr-link {
  font-family: var(--heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  background: none;
  border: none;
}
.hdr.scrolled .hdr-link { color: var(--text-soft); }
.hdr-link:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.hdr.scrolled .hdr-link:hover { color: var(--blue); background: rgba(43,92,123,0.06); }
.hdr-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.hdr-cta { padding: 10px 26px; font-size: 0.8rem; }

/* ═══════════════════════════════════════════════════════════════
   DROPDOWN
═══════════════════════════════════════════════════════════════ */
.hdr-drop { position: relative; display: flex; align-items: center; }
.hdr-drop > .hdr-link { display: inline-flex; align-items: center; gap: 4px; }
.hdr-drop > .hdr-link svg { flex-shrink: 0; margin-left: 0; }
.hdr-drop-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 24px;
  padding-top: 32px;
  min-width: 520px;
  z-index: 300;
}
.hdr-drop-menu::before { content:''; position:absolute; top:-12px; left:0; right:0; height:12px; }
.hdr-drop:hover .hdr-drop-menu { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.hdr-drop-col h5 {
  font-family: var(--heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hdr-drop-col h5.c-s { color: var(--salud); }
.hdr-drop-col h5.c-e { color: var(--equilibrio); }
.hdr-drop-col h5.c-b { color: var(--belleza); }
.hdr-drop-col a {
  display: block;
  font-size: 0.82rem;
  color: var(--text-light);
  padding: 4px 0;
  transition: color 0.2s;
}
.hdr-drop-col a:hover { color: var(--blue); }

/* ═══════════════════════════════════════════════════════════════
   MOBILE MENU
═══════════════════════════════════════════════════════════════ */
.hdr-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.hdr-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
  border-radius: 2px;
}
.hdr.scrolled .hdr-hamburger span { background: var(--text); }
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 190;
  flex-direction: column;
  padding: 100px 28px 40px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--heading);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  display: block;
}
.mobile-menu a:hover { color: var(--blue); }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
.ftr {
  background: var(--dark);
  color: var(--white);
  position: relative;
  z-index: 3;
}
.ftr-inner { padding: 72px 0 48px; }
.ftr-grid {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr;
  gap: 48px;
}
.ftr-heading {
  font-family: var(--heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}
.ftr-link {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  padding: 5px 0;
  transition: color 0.2s;
}
.ftr-link:hover { color: var(--white); }
.ftr-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

/* ═══════════════════════════════════════════════════════════════
   FAQ
═══════════════════════════════════════════════════════════════ */
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 8px;
  transition: box-shadow 0.3s;
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
}
.faq-q .icon {
  font-size: 18px;
  color: var(--blue);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-a {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-item.open .faq-a { max-height: 400px; padding: 0 24px 20px; }

/* ═══════════════════════════════════════════════════════════════
   HERO BACKGROUNDS (inner pages)
═══════════════════════════════════════════════════════════════ */
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-fade-bottom {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 140px;
  background: linear-gradient(transparent, var(--white));
  z-index: 3;
}

/* ═══════════════════════════════════════════════════════════════
   CTA BLOCK
═══════════════════════════════════════════════════════════════ */
.cta-block {
  text-align: center; padding: 56px 28px; background: var(--blue);
}
.cta-block h3 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 1.7rem);
  font-weight: 500; color: var(--white); margin-bottom: 20px;
}
.cta-block p { color: rgba(255,255,255,0.75); font-size: 0.95rem; margin-bottom: 24px; }

/* ═══════════════════════════════════════════════════════════════
   PYRAMID LAYER HOVER (Tu Piel page)
═══════════════════════════════════════════════════════════════ */
.pyr-layer:hover { z-index: 10 !important; }
.pyr-layer.pyr-armonia:hover { background: linear-gradient(135deg,#9B7068,#B8908A) !important; border-color: transparent !important; box-shadow: 0 8px 30px rgba(155,112,104,0.3); }
.pyr-layer.pyr-armonia:hover span { color: #fff !important; }
.pyr-layer.pyr-calidad:hover { background: linear-gradient(135deg,#9A7D3A,#B89B5E) !important; border-color: transparent !important; box-shadow: 0 8px 30px rgba(154,125,58,0.3); }
.pyr-layer.pyr-calidad:hover span { color: #fff !important; }
.pyr-layer.pyr-salud:hover { background: linear-gradient(135deg,#7B8C6B,#96A887) !important; border-color: transparent !important; box-shadow: 0 8px 30px rgba(123,140,107,0.3); }
.pyr-layer.pyr-salud:hover span { color: #fff !important; }

/* ═══════════════════════════════════════════════════════════════
   SKIN SEASONS CARDS
═══════════════════════════════════════════════════════════════ */
.season-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.season-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.season-header {
  padding: 24px 24px 16px; display: flex; align-items: center;
  gap: 14px; border-bottom: 1px solid var(--border);
}
.season-emoji { font-size: 2.2rem; }
.season-name { font-family: var(--heading); font-weight: 800; font-size: 1.1rem; }
.season-sub {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold); margin-top: 1px;
}
.season-body { padding: 20px 24px; }
.season-ttos { font-size: 0.85rem; line-height: 1.55; margin-bottom: 10px; }
.season-footer { padding: 16px 24px; border-top: 1px solid var(--border); }
.season-cta {
  font-family: var(--heading); font-size: 0.82rem; font-weight: 700;
  color: var(--blue); cursor: pointer; text-decoration: none;
}
.season-cta:hover { color: var(--blue-deep); }

/* ═══════════════════════════════════════════════════════════════
   WHATSAPP
═══════════════════════════════════════════════════════════════ */
.wa {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: all 0.3s var(--ease);
  z-index: 100;
}
.wa:hover { transform: scale(1.1); box-shadow: var(--shadow-lg); }

/* ═══════════════════════════════════════════════════════════════
   TESTIMONIOS MARQUEE
═══════════════════════════════════════════════════════════════ */
.testi-marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}
.testi-track {
  display: flex;
  gap: 20px;
  animation: testi-scroll 80s linear infinite;
  width: max-content;
}
.testi-track:hover { animation-play-state: paused; }
@keyframes testi-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.testi-card {
  flex-shrink: 0;
  width: 360px;
  background: #fff;
  border: 1px solid #e8e8e4;
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.testi-stars {
  color: #C4A962;
  font-size: 1rem;
  letter-spacing: 2px;
}
.testi-text {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.65;
  font-style: italic;
  flex: 1;
}
.testi-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #e8e8e4;
}
.testi-name {
  font-family: var(--heading);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--dark);
}
.testi-source {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
@media (max-width: 480px) {
  .testi-card { width: 300px; padding: 22px; }
}

/* ═══════════════════════════════════════════════════════════════
   PYRAMID HOVER EFFECTS
═══════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════
   PYRAMID CARDS (Homepage) — Minimal style
═══════════════════════════════════════════════════════════════ */
.pyr-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 0;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 900px) {
  .pyr-cards-grid { gap: 16px; }
}
@media (max-width: 640px) {
  .pyr-cards-grid { grid-template-columns: 1fr; gap: 16px; max-width: 400px; }
}
.pyr-card {
  display: flex;
  text-decoration: none;
}
.pyr-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  padding: 36px 28px 28px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e8e8e4;
  transition: all 0.35s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.pyr-card-accent {
  width: 32px;
  height: 3px;
  border-radius: 2px;
  margin-bottom: 24px;
  transition: width 0.35s ease;
}
.pyr-card-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.65rem;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
  transition: color 0.3s;
}
.pyr-card-question {
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
  font-size: 0.98rem;
  transition: color 0.3s;
}
.pyr-card-desc {
  font-size: 0.88rem;
  color: #9ca3af;
  line-height: 1.6;
  transition: color 0.3s;
  flex-grow: 1;
}
.pyr-card-arrow {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.3s ease;
}

/* Hover: subtle lift, accent line widens */
.pyr-card:hover .pyr-card-inner {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.06);
  border-color: #ddd;
}
.pyr-card:hover .pyr-card-accent {
  width: 48px;
}
.pyr-card:hover .pyr-card-arrow {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   CONCERN CARDS (Homepage)
═══════════════════════════════════════════════════════════════ */
.concern-home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .concern-home-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 540px) {
  .concern-home-grid { grid-template-columns: 1fr; gap: 14px; max-width: 400px; }
}
.concern-home-card {
  display: flex;
  text-decoration: none;
}
.concern-home-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 22px 24px;
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  background: #FAFAF8;
  border-left: 3px solid transparent;
}

/* Capa group headers */
.concern-capa-group {
  margin-bottom: 32px;
}
.concern-capa-group:last-of-type {
  margin-bottom: 0;
}
.concern-capa-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.concern-capa-line {
  width: 24px;
  height: 2px;
  border-radius: 1px;
  flex-shrink: 0;
}
.concern-capa-name {
  font-family: var(--heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.concern-home-card:hover .concern-home-inner {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.concern-home-label {
  font-family: var(--heading);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.concern-home-title {
  font-family: var(--serif) !important;
  font-weight: 400 !important;
  font-size: 1.15rem;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.3;
}
.concern-home-excerpt {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.5;
  flex-grow: 1;
}
.concern-home-arrow {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.7;
  transition: all 0.3s ease;
}
.concern-home-card:hover .concern-home-arrow {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════
   TREATMENT CARDS (Homepage — grouped by capa)
═══════════════════════════════════════════════════════════════ */
.trat-capa-group {
  margin-bottom: 32px;
}
.trat-capa-group:last-of-type {
  margin-bottom: 0;
}
.trat-home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .trat-home-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 540px) {
  .trat-home-grid { grid-template-columns: 1fr; gap: 14px; max-width: 400px; }
}
.trat-home-card {
  display: flex;
  text-decoration: none;
  border-radius: 10px;
  overflow: hidden;
  background: #FAFAF8;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}
.trat-home-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.trat-home-img {
  width: 100px;
  min-height: 100px;
  flex-shrink: 0;
  overflow: hidden;
  background: #eee;
}
.trat-home-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.trat-home-card:hover .trat-home-img img {
  transform: scale(1.05);
}
.trat-home-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 0.7rem;
}
.trat-home-info {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.trat-home-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 4px;
  line-height: 1.3;
}
.trat-home-excerpt {
  font-size: 0.82rem;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 6px;
}
.trat-home-arrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.trat-home-card:hover .trat-home-arrow {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════
   TEAM CARDS (Homepage)
═══════════════════════════════════════════════════════════════ */
.team-home-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
}
.team-home-grid .team-home-card {
  width: 240px;
}
@media (max-width: 540px) {
  .team-home-grid { gap: 32px; }
  .team-home-grid .team-home-card { width: 100%; max-width: 280px; }
}
.team-home-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  text-align: center;
  transition: transform 0.3s ease;
}
.team-home-card:hover { transform: translateY(-4px); }
.team-home-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  background: #eee;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease;
}
.team-home-card:hover .team-home-photo {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.team-home-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.team-home-card:hover .team-home-photo img {
  transform: scale(1.05);
}
.team-home-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8e6e3, #d5d0ca);
  color: #999;
}
.team-home-info { padding: 0 8px; }
.team-home-name {
  font-family: var(--serif) !important;
  font-weight: 400 !important;
  font-size: 1.15rem;
  color: var(--dark);
  margin-bottom: 4px;
}
.team-home-role {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-bottom: 6px;
  font-weight: 500;
}
.team-home-spec {
  font-size: 0.78rem;
  color: #9ca3af;
  line-height: 1.4;
  margin-bottom: 8px;
}
.team-home-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.team-home-card:hover .team-home-link { opacity: 1; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE GRIDS
═══════════════════════════════════════════════════════════════ */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.grid-preoc { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.doc-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; max-width: 600px; margin: 0 auto; }
.two-col-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }

@media (max-width: 768px) {
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-preoc { grid-template-columns: repeat(2,1fr); }
  .doc-grid { grid-template-columns: 1fr; max-width: 300px; }
  .two-col-grid { grid-template-columns: 1fr; gap: 32px; }
  .ftr-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .testi-card { flex: 0 0 300px; }
}

@media (max-width: 480px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-preoc { grid-template-columns: 1fr; }
  .ftr-grid { grid-template-columns: 1fr; }
  .testi-card { flex: 0 0 280px; }
}

/* ═══════════════════════════════════════════════════════════════
   CONCERN CAROUSEL (Preocupaciones)
═══════════════════════════════════════════════════════════════ */
.concern-carousel {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  scroll-padding-left: max(28px, calc(50% - 542px));
  scroll-behavior: smooth;
  padding-bottom: 8px;
  cursor: grab;
}
.concern-carousel::-webkit-scrollbar { display: none; }
.concern-carousel.dragging { cursor: grabbing; }
.concern-carousel.dragging .concern-slide { pointer-events: none; }

.concern-track {
  display: flex;
  gap: 32px;
  padding: 0 max(28px, calc(50% - 542px));
}

.concern-slide {
  flex: 0 0 280px;
  cursor: default;
  text-decoration: none;
  color: inherit;
  display: block;
  scroll-snap-align: start;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.concern-img {
  text-align: center;
  margin-bottom: 14px;
  background: transparent;
  border-radius: 0;
  padding: 0;
  overflow: hidden;
}
.concern-img img {
  height: 260px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
  mix-blend-mode: multiply;
}
.concern-slide:hover .concern-img img {
  transform: scale(1.05);
}

.concern-title {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 6px 0 4px;
}
.concern-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.concern-more {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--heading);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--blue);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.concern-more:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .concern-slide { flex: 0 0 240px; }
  .concern-img img { height: 240px; }
  .concern-track { gap: 24px; padding: 0 28px; }
}

/* ═══════════════════════════════════════════════════════════════
   BREADCRUMB
═══════════════════════════════════════════════════════════════ */
.breadcrumb {
  font-family: var(--heading);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
}
.breadcrumb.dark { color: var(--text-muted); }
.breadcrumb span { color: rgba(255,255,255,0.3); margin: 0 6px; }
.breadcrumb.dark span { color: var(--border); }
.breadcrumb a { text-decoration: none; color: inherit; }
.breadcrumb.dark a { color: var(--blue); }
.breadcrumb a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════
   IMG ROUNDED
═══════════════════════════════════════════════════════════════ */
.img-rounded { border-radius: var(--radius); }

/* ═══════════════════════════════════════════════════════════════
   TREATMENT GRID RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .treatment-grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
  .treatment-grid-4 { grid-template-columns: 1fr !important; }
}

/* ═══════════════════════════════════════════════════════════════
   FICHA TÉCNICA (Treatment spec sheet)
═══════════════════════════════════════════════════════════════ */
.ficha {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.ficha-item {
  padding: 28px 20px;
  text-align: center;
  background: var(--white);
  border-right: 1px solid var(--border);
}
.ficha-item:last-child { border-right: none; }
.ficha-label {
  font-family: var(--heading);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ficha-value {
  font-family: var(--heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  margin-top: 8px;
}
@media (max-width: 768px) {
  .ficha { grid-template-columns: repeat(3, 1fr); }
  .ficha-item { padding: 20px 12px; }
  .ficha-item:nth-child(4), .ficha-item:nth-child(5) { border-top: 1px solid var(--border); }
  .ficha-item:nth-child(3) { border-right: none; }
}
.team-aux-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 768px) {
  .team-aux-grid { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   TREATMENT TAG (member profile)
═══════════════════════════════════════════════════════════════ */
.treatment-tag {
  display: inline-block;
  padding: 8px 18px;
  background: var(--belleza-light);
  color: var(--belleza);
  border-radius: 50px;
  font-family: var(--heading);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid rgba(139,76,140,0.15);
  transition: all 0.3s ease;
}
.treatment-tag:hover {
  background: var(--belleza);
  color: var(--white);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════
   BLOG FILTERS + CARDS
═══════════════════════════════════════════════════════════════ */
.blog-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.blog-filter {
  padding: 8px 18px;
  border-radius: 50px;
  font-family: var(--heading);
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s;
}
.blog-filter:hover, .blog-filter.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.blog-card { cursor: pointer; }

/* ── Legal content ── */
.legal-content {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-light);
}
.legal-content h2,
.legal-content h3 {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin: 28px 0 12px;
}
.legal-content h2 { font-size: 1.1rem; }
.legal-content p { margin-bottom: 0; }
.legal-content p + p { margin-top: 8px; }
.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 8px 0;
}
.legal-content li { margin-bottom: 4px; }
.legal-content a {
  color: var(--blue);
  text-decoration: none;
}
.legal-content a:hover { text-decoration: underline; }
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 12px 0;
}
.legal-content table thead tr {
  background: var(--blue);
  color: white;
  text-align: left;
}
.legal-content table th,
.legal-content table td {
  padding: 10px 14px;
}
.legal-content table tbody tr {
  border-bottom: 1px solid var(--border);
}
.legal-content strong { color: var(--text); }

/* ═══════════════════════════════════════════════════════════════
   TAILWIND REPLACEMENT UTILITIES
═══════════════════════════════════════════════════════════════ */

/* Section padding: replaces py-12 md:py-16 */
.sec-pad      { padding: 48px 0; }
.sec-pad-lg   { padding: 64px 0; }
@media (min-width: 768px) {
  .sec-pad    { padding: 64px 0; }
  .sec-pad-lg { padding: 96px 0; }
}

/* Text utilities */
.text-center { text-align: center; }

/* ── Breadcrumbs ── */
.breadcrumb-nav    { padding: 16px 0; font-size: 0.875rem; color: var(--text-light); }
.breadcrumb-list   { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; list-style: none; }
.breadcrumb-current { color: var(--text); font-weight: 500; }
.breadcrumb-link   { color: inherit; text-decoration: none; transition: color 0.2s; }
.breadcrumb-link:hover { color: var(--blue); }
.breadcrumb-sep    { color: var(--text-muted); }

/* ── Section Intro ── */
.section-intro     { text-align: center; max-width: 672px; margin: 0 auto 32px; }

/* ── front-page.php: Hero text ── */
.hero-overline  { margin-bottom: 16px; }
.hero-title     { font-family: var(--serif); font-weight: 600; margin-bottom: 24px; line-height: 1.1; }
.hero-subtitle  { font-size: clamp(1.125rem, 2.5vw, 1.5rem); margin-bottom: 32px; }
.hero-tagline   { font-size: clamp(1rem, 2vw, 1.25rem); font-style: italic; margin-bottom: 48px; }
.hero-buttons   { display: flex; flex-direction: column; gap: 16px; justify-content: center; }
@media (min-width: 640px) {
  .hero-buttons { flex-direction: row; }
}

/* ── front-page.php: Location section ── */
.loc-section   { position: relative; z-index: 3; }
.loc-grid      { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 768px) {
  .loc-grid    { grid-template-columns: 1fr 1fr; }
}
.loc-info-list { display: flex; flex-direction: column; gap: 24px; margin-bottom: 32px; }
.loc-info-row  { display: flex; gap: 16px; }
.loc-icon      { font-size: 1.5rem; flex-shrink: 0; }
.loc-label     { font-weight: 700; color: var(--dark); }
.loc-sub       { color: #6B7280; }
.loc-link      { font-weight: 700; color: var(--blue); text-decoration: none; }
.loc-link:hover { color: var(--blue-deep); }
.loc-buttons   { display: flex; flex-direction: column; gap: 12px; }
.loc-map       { position: relative; border-radius: 12px; height: 256px; overflow: hidden; }
@media (min-width: 768px) {
  .loc-map     { height: 384px; }
}

/* ── page-clinica.php: Video section ── */
.clinic-video-wrap {
  position: relative; width: 100%; background: #d1d5db; border-radius: 14px;
  overflow: hidden; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center;
}
.clinic-video-wrap video { width: 100%; height: 100%; }

/* ── page-clinica.php: History ── */
.history-text  { color: #374151; font-size: 1.125rem; line-height: 1.7; margin-bottom: 16px; }
.history-img   {
  background: #e5e7eb; border-radius: 14px; aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.history-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.history-placeholder {
  width: 100%; height: 100%; border-radius: 14px; display: flex;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f5f0eb 0%, #e8ddd4 100%);
}
.history-placeholder p { color: #9ca3af; font-size: 0.875rem; }

/* ── page-clinica.php: Equipment grid ── */
.equip-wrap    { width: 100%; max-width: 1152px; margin: 0 auto; padding: 0 16px; }
.equip-grid    { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) {
  .equip-grid  { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .equip-grid  { grid-template-columns: repeat(4, 1fr); }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE EXPERIENCE
═══════════════════════════════════════════════════════════════ */

/* ── Sticky CTA bar (mobile only) ── */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 900;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.mobile-cta-bar .btn { width: 100%; justify-content: center; padding: 14px 24px; font-size: 0.92rem; }
@media (max-width: 768px) {
  .mobile-cta-bar { display: block; }
  body { padding-bottom: 72px; } /* space for sticky bar */
  .wa { bottom: 84px; }          /* push WhatsApp above sticky */
}

/* ── Hamburger → X animation ── */
.hdr-menu-toggle svg .line1,
.hdr-menu-toggle svg .line2,
.hdr-menu-toggle svg .line3 { transition: all 0.3s ease; }
.hdr-mobile-menu.open ~ .hdr-menu-toggle .line1,
.menu-open .hdr-menu-toggle .line1 { transform: rotate(45deg) translate(5px, 5px); }
.menu-open .hdr-menu-toggle .line2 { opacity: 0; }
.menu-open .hdr-menu-toggle .line3 { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Carousel snap on touch ── */
@media (max-width: 768px) {
  .concern-carousel {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .concern-slide {
    scroll-snap-align: start;
  }
}

/* ── Inline grid overrides for mobile ── */
@media (max-width: 768px) {
  /* Contacto: 3 channel cards → stack */
  .page-template-contacto .treatment-grid-4,
  section .treatment-grid-4 {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Generic inline 2-col grids → 1 col */
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns:1.1fr 1fr"],
  div[style*="grid-template-columns:1.2fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  /* Clinica: 3-col facilities grid → 1 col */
  div[style*="grid-template-columns:repeat(3,1fr)"],
  div[style*="grid-template-columns: repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Ficha técnica: smaller on mobile */
  .ficha { grid-template-columns: repeat(2, 1fr) !important; }
  .ficha-item:nth-child(odd):last-child { grid-column: 1 / -1; }
  .ficha-value { font-size: 1rem; }
}

@media (max-width: 480px) {
  .ficha { grid-template-columns: 1fr !important; }
  .ficha-item { border-right: none !important; border-bottom: 1px solid var(--border); }
  .ficha-item:last-child { border-bottom: none; }

  /* Tighter padding on small screens */
  .w, .w-narrow, .w-wide { padding: 0 16px; }
  .sec { padding: 40px 0; }
  .sec-sm { padding: 32px 0; }

  /* Hero titles smaller */
  h1 { font-size: clamp(1.8rem, 5vw, 2.4rem) !important; }
}

/* ── Touch targets: min 44px ── */
@media (max-width: 768px) {
  .hdr-mobile-menu .hdr-link { min-height: 44px; display: flex; align-items: center; }
  .faq-q { min-height: 48px; }
  .ftr-link { min-height: 40px; display: flex; align-items: center; }
  .btn { min-height: 48px; }
  .concern-more { min-height: 44px; display: inline-flex; align-items: center; }
}

/* ── Cookie banner mobile ── */
@media (max-width: 640px) {
  .ck-banner {
    bottom: auto !important;
    top: 0 !important;          /* show at top to not conflict with sticky CTA */
    border-top: none;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  }
}

/* ── Hero top padding: 140px is too much on mobile ── */
@media (max-width: 768px) {
  section[style*="padding:140px"],
  section[style*="padding: 140px"] {
    padding-top: 100px !important;
    padding-bottom: 36px !important;
  }
  section[style*="padding:160px"] {
    padding-top: 110px !important;
  }
}
@media (max-width: 480px) {
  section[style*="padding:140px"],
  section[style*="padding: 140px"] {
    padding-top: 88px !important;
    padding-bottom: 28px !important;
  }
}

/* ── Mapa widget: reduce min-height on mobile ── */
@media (max-width: 768px) {
  #mapaWidget {
    min-height: 500px !important;
  }
}
@media (max-width: 480px) {
  #mapaWidget {
    min-height: 400px !important;
  }
}

/* ── iOS zoom prevention: inputs must be >= 16px ── */
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* ── Legal table: prevent overflow on mobile ── */
@media (max-width: 768px) {
  .legal-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ── Hero spacer: limit on mobile (no frame animation on small screens) ── */
@media (max-width: 768px) {
  .hero-spacer {
    height: 60vh !important;
    min-height: 300px !important;
    max-height: 500px !important;
  }
  .hero-canvas {
    display: none;
  }
  .hero-video-wrap {
    position: relative !important;
    height: auto !important;
  }
  .hero-content {
    position: relative !important;
  }
}

/* ── Testimonios: narrower cards on mobile ── */
@media (max-width: 480px) {
  .testi-card {
    min-width: 260px !important;
    padding: 18px !important;
  }
  .testi-text { font-size: 0.85rem !important; }
}

/* ── Footer: tighter on mobile ── */
@media (max-width: 768px) {
  .ftr-inner { padding: 48px 0 32px; }
}

/* ── Single preocupacion/tratamiento: hero text ── */
@media (max-width: 768px) {
  .body-lg { font-size: 0.95rem; }
}

/* ── Loc buttons stacked properly on mobile ── */
@media (max-width: 480px) {
  .loc-buttons .btn { font-size: 0.85rem; padding: 12px 20px; }
}
