/* ============================================================
   AMARO ODONTOLOGÍA — Main Stylesheet
   Brand: PANTONE 5747 C (#243300) + Helvetica Neue LT Std
   ============================================================ */

/* @font-face declarations */
@font-face {
  font-family: 'HelveticaNeueLTStd';
  src: url('../fonts/HelveticaNeueLTStd-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'HelveticaNeueLTStd';
  src: url('../fonts/HelveticaNeueLTStd-LtIt.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'HelveticaNeueLTStd';
  src: url('../fonts/HelveticaNeueLTStd-Roman.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'HelveticaNeueLTStd';
  src: url('../fonts/HelveticaNeueLTStd-It.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'HelveticaNeueLTStd';
  src: url('../fonts/HelveticaNeueLTStd-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand Colors — Amaro Odontología */
  --brand:        #243300;
  --brand-hover:  #3A5210;
  --brand-bg:     #F2F4EE;
  --brand-light:  #6A8A3A;

  /* Grays — PANTONE 427 C */
  --gray-light:   #E3E3E3;
  --gray-mid:     #8A8A8A;
  --gray-dark:    #4A4A4A;

  /* Text & Backgrounds */
  --text:         #1A1A1A;
  --muted:        #6B7280;
  --bg:           #FFFFFF;
  --bg-alt:       #F9FAFB;
  --line:         #EBEBEB;

  /* WhatsApp */
  --whatsapp:     #5E7550;
  --whatsapp-dark:#465A39;
  --whatsapp-glow:#93A884;

  /* Typography */
  --font-heading: 'HelveticaNeueLTStd', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body:    'HelveticaNeueLTStd', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Layout */
  --radius:       6px;
  --radius-lg:    14px;
  --shadow:       0 2px 20px rgba(0,0,0,0.07);
  --shadow-md:    0 4px 32px rgba(0,0,0,0.12);
  --shadow-lg:    0 8px 48px rgba(0,0,0,0.16);
  --max-width:    1360px;
  --section-pad:  96px;
  --header-h:     72px;
  --motion-fast:  0.18s;
  --motion-base:  0.34s;
  --motion-slow:  0.46s;
  --ease-smooth:  cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
.img-fade {
  opacity: 0;
  filter: saturate(0.96) contrast(0.98);
  transition: opacity 0.42s var(--ease-smooth), filter 0.42s var(--ease-smooth);
}
.img-fade.is-loaded {
  opacity: 1;
  filter: none;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─── Scroll progress bar ────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ─── Container ──────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 1600px) {
  .container { max-width: 1440px; }
}
@media (max-width: 768px) {
  .container { padding: 0 16px; }
}

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 300;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; font-weight: 400; }
p  { font-size: 1rem; line-height: 1.7; color: var(--muted); }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-light);
  display: block;
  margin-bottom: 12px;
}
.section-title { margin-bottom: 16px; }
.section-subtitle { font-size: 1.05rem; max-width: 520px; margin-inline: auto; text-align: center; }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: background-color var(--motion-base) var(--ease-smooth), color var(--motion-base) var(--ease-smooth), border-color var(--motion-base) var(--ease-smooth), transform var(--motion-base) var(--ease-smooth), box-shadow var(--motion-base) var(--ease-smooth);
  text-decoration: none;
  white-space: nowrap;
}
.btn-compact {
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 0.84rem;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  border: 2px solid var(--brand);
}
.btn-primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(36,51,0,0.2);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}
.btn-outline-dark {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
}
.btn-outline-dark:hover {
  background: var(--brand);
  color: #fff;
}
.btn-whatsapp {
  background: linear-gradient(135deg, var(--whatsapp) 0%, var(--brand) 100%);
  color: #fff;
  border: 2px solid transparent;
}
.btn-whatsapp:hover {
  background: linear-gradient(135deg, var(--whatsapp-dark) 0%, var(--brand-hover) 100%);
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(70,90,57,0.2);
}
.btn-whatsapp-soft {
  box-shadow: 0 14px 34px rgba(36,51,0,0.22);
}

/* ─── Section spacing ────────────────────────────────────── */
.section {
  padding: var(--section-pad) 0;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.section-alt { background: var(--bg-alt); }
.section-brand { background: var(--brand-bg); }
.section-dark {
  background: var(--brand);
  color: #fff;
}
.section-dark h2,
.section-dark h3,
.section-dark .section-label { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.75); }

/* ─── Header ─────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: linear-gradient(180deg, rgba(255,255,255,0.84) 0%, rgba(255,255,255,0.7) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.96);
  border-bottom-color: rgba(36,51,0,0.08);
  box-shadow: 0 14px 40px rgba(26,26,26,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}
.site-logo img {
  height: 36px;
  max-width: min(42vw, 240px);
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.main-nav ul {
  display: flex;
  gap: 32px;
  align-items: center;
}
.main-nav a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--gray-dark);
  transition: color 0.2s;
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--brand);
  transition: width 0.2s;
}
.main-nav a:hover { color: var(--brand); }
.main-nav a:hover::after { width: 100%; }
.header-cta { flex-shrink: 0; }
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
@media (max-width: 900px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: flex; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 999;
  padding: 32px 24px;
  min-height: calc(100dvh - var(--header-h));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
  overflow-y: auto;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-menu a {
  display: block;
  padding: 16px 0;
  font-size: 1.1rem;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { width: 100%; justify-content: center; margin-top: 24px; }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-h);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 24%, rgba(255,255,255,0.12), transparent 24%),
    linear-gradient(115deg, rgba(25,34,6,0.78) 0%, rgba(36,51,0,0.48) 46%, rgba(12,16,8,0.42) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  color: #fff;
}
.hero-content .section-label { color: rgba(255,255,255,0.7); }
.hero-content h1 { color: #fff; margin-bottom: 20px; }
.hero-content p { color: rgba(255,255,255,0.85); font-size: 1.15rem; margin-bottom: 36px; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  z-index: 2;
}

/* ─── Services / Tratamientos ────────────────────────────── */
.tratamientos-featured {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.tratamiento-featured-card {
  position: relative;
  min-height: 420px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(36,51,0,0.1);
  background: #f8faf5;
  box-shadow: 0 18px 34px rgba(36,51,0,0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  isolation: isolate;
  transform: none;
  will-change: auto;
}
.tratamiento-featured-card::before {
  content: none;
}
.tratamiento-featured-card::after {
  content: none;
}
.tratamiento-featured-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 44px rgba(36,51,0,0.16);
  border-color: rgba(36,51,0,0.18);
}
/* Ensure hover movement is not overridden by global reveal transforms */
.js .tratamiento-featured-card.reveal.visible:hover {
  transform: translate3d(0, -8px, 0);
}
.tratamiento-featured-media {
  position: absolute;
  inset: 0;
}
.tratamiento-featured-media::after {
  content: none;
}
.tratamiento-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
  transition: none;
  transform: none;
  filter: none !important;
}
.tratamiento-featured-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 22px 22px 24px;
  color: #fff;
  transition: none;
}
.tratamiento-featured-content h3 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 8px;
  transition: none;
}
.tratamiento-featured-content p {
  color: rgba(255,255,255,0.86);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 14px;
  min-height: 5.1em;
  transition: none;
}
.tratamiento-featured-content .tratamiento-link {
  color: #fff;
}
.tratamiento-featured-content .tratamiento-link::after {
  color: rgba(255,255,255,0.9);
}
.tratamiento-featured-card:hover .tratamiento-featured-content { transform: none; }
.tratamiento-featured-card:hover .tratamiento-featured-content h3 { transform: none; text-shadow: none; }
.tratamiento-featured-card:hover .tratamiento-featured-content p { transform: none; color: rgba(255,255,255,0.86); }

.tratamientos-disclosure {
  margin-top: 26px;
  border-radius: 18px;
  border: 1px solid rgba(36,51,0,0.14);
  background: linear-gradient(180deg, #fcfdf9 0%, #f7faf2 100%);
  padding: 0;
}
.tratamientos-disclosure summary {
  list-style: none;
}
.tratamientos-disclosure summary::-webkit-details-marker {
  display: none;
}
.tratamientos-disclosure-summary {
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
}
.tratamientos-disclosure-title {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}
.tratamientos-disclosure-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(36,51,0,0.22);
  position: relative;
  transition: transform 0.24s ease, background-color 0.24s ease;
}
.tratamientos-disclosure-icon::before,
.tratamientos-disclosure-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--brand);
  transform: translate(-50%, -50%);
}
.tratamientos-disclosure-icon::before {
  width: 10px;
  height: 1.5px;
}
.tratamientos-disclosure-icon::after {
  width: 1.5px;
  height: 10px;
}
.tratamientos-disclosure[open] .tratamientos-disclosure-icon {
  transform: rotate(180deg);
  background: rgba(36,51,0,0.06);
}
.tratamientos-disclosure[open] .tratamientos-disclosure-icon::after {
  display: none;
}
.tratamientos-secondary {
  margin-top: 0;
  border-radius: 18px;
  border-top: 1px solid rgba(36,51,0,0.1);
  background: transparent;
  padding: 22px;
}
.tratamientos-secondary-head {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0;
  margin-bottom: 18px;
}
.tratamientos-secondary-head p {
  max-width: 800px;
  font-size: 0.92rem;
}
.tratamientos-secondary-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.tratamientos-secondary-media img {
  width: 100%;
  height: 132px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(36,51,0,0.12);
}
.tratamientos-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.tratamiento-list-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-radius: 14px;
  border: 1px solid rgba(36,51,0,0.1);
  background: #fff;
  padding: 16px;
  transition: transform var(--motion-base) var(--ease-smooth), border-color var(--motion-base) var(--ease-smooth), box-shadow var(--motion-base) var(--ease-smooth);
  will-change: transform;
}
.tratamiento-list-item:hover {
  transform: translateY(-3px);
  border-color: rgba(106,138,58,0.45);
  box-shadow: 0 14px 26px rgba(36,51,0,0.11);
}
.tratamiento-list-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(145deg, #f7f9f1 0%, #eef3e4 100%);
  border: 1px solid rgba(36,51,0,0.14);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 4px 10px rgba(36,51,0,0.08);
}
.tratamiento-list-icon svg {
  width: 30px;
  height: 30px;
}
.tratamiento-list-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}
.tratamiento-list-copy h4 {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 6px;
}
.tratamiento-list-copy p {
  font-size: 0.88rem;
  margin-bottom: 10px;
}
.tratamientos-foot-cta {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}
.tratamiento-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.02em;
  position: relative;
}
.tratamiento-link::before {
  content: '';
  position: absolute;
  left: 0;
  right: 18px;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.45);
  transform-origin: left;
  transition: opacity var(--motion-base) var(--ease-smooth), transform var(--motion-base) var(--ease-smooth);
}
.tratamiento-link::after { content: '→'; transition: transform var(--motion-base) var(--ease-smooth); }
.tratamiento-link:hover::before {
  opacity: 0.85;
  transform: scaleX(1);
}
.tratamiento-link:hover::after { transform: translateX(4px); }
@media (max-width: 1080px) {
  .tratamientos-featured {
    grid-template-columns: 1fr;
  }
  .tratamiento-featured-card {
    min-height: 360px;
  }
  .tratamientos-secondary-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .tratamientos-secondary-media {
    grid-template-columns: 1fr;
  }
  .tratamientos-secondary-media img {
    height: 156px;
  }
  .tratamientos-disclosure-summary {
    padding: 18px 18px;
  }
  .tratamientos-list {
    grid-template-columns: 1fr;
  }
}

/* ─── Clínica / About ────────────────────────────────────── */
.clinica-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 768px) { .clinica-grid { grid-template-columns: 1fr; gap: 40px; } }
.clinica-img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 4/3;
  box-shadow: 0 28px 52px rgba(36,51,0,0.14);
  transition: transform var(--motion-slow) var(--ease-smooth), box-shadow var(--motion-slow) var(--ease-smooth), filter var(--motion-slow) var(--ease-smooth);
  will-change: transform;
}
.clinica-img:hover {
  transform: translateY(-4px) scale(1.018);
  box-shadow: 0 34px 62px rgba(36,51,0,0.2);
  filter: saturate(1.04);
}
.clinica-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.stat-item { text-align: center; }
.stat-item {
  position: relative;
  overflow: hidden;
  padding: 18px 14px;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(36,51,0,0.08);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(36,51,0,0.06);
  transition: transform var(--motion-base) var(--ease-smooth), box-shadow var(--motion-base) var(--ease-smooth), border-color var(--motion-base) var(--ease-smooth), background-color var(--motion-base) var(--ease-smooth);
}
.stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(106,138,58,0.2), rgba(106,138,58,0.85), rgba(106,138,58,0.2));
  opacity: 0;
  transition: opacity var(--motion-base) var(--ease-smooth);
}
.stat-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 26px rgba(36,51,0,0.11);
  border-color: rgba(106,138,58,0.35);
  background: rgba(255,255,255,0.88);
}
.stat-item:hover::before {
  opacity: 1;
}
.stat-number {
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--brand);
  line-height: 1;
  display: block;
}
.stat-label { font-size: 0.8rem; color: var(--muted); margin-top: 6px; }

/* ─── Equipo ─────────────────────────────────────────────── */
.equipo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
  gap: 32px;
  margin-top: 48px;
  justify-content: center;
  justify-items: stretch;
}
.equipo-card {
  width: 100%;
  text-align: center;
  border: 1px solid rgba(36,51,0,0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.9);
  padding: 20px 16px;
  box-shadow: 0 10px 24px rgba(36,51,0,0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.equipo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 44px rgba(36,51,0,0.16);
  border-color: rgba(36,51,0,0.18);
}
.js .equipo-card.reveal.visible:hover {
  transform: translate3d(0, -8px, 0);
}
.equipo-foto {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 4px solid var(--brand-bg);
  box-shadow: var(--shadow);
  transition: transform var(--motion-base) var(--ease-smooth), box-shadow var(--motion-base) var(--ease-smooth);
}
.equipo-card:hover .equipo-foto {
  transform: scale(1.02);
  box-shadow: 0 12px 22px rgba(36,51,0,0.14);
}
.equipo-card h3 { font-size: 1.1rem; font-weight: 400; margin-bottom: 6px; }
.equipo-card .titulo {
  font-size: 0.8rem;
  color: var(--brand-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.equipo-card p { font-size: 0.9rem; }

/* ─── Antes / Después ────────────────────────────────────── */
.antes-despues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.before-after-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  cursor: col-resize;
  user-select: none;
  box-shadow: var(--shadow-md);
}
.before-after-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.after-img { clip-path: inset(0 50% 0 0); }
.slider-divider {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  z-index: 3;
  transform: translateX(-50%);
}
.slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  z-index: 4;
  pointer-events: none;
}
.ba-labels {
  position: absolute;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  width: calc(100% - 24px);
  left: 12px;
  z-index: 5;
  pointer-events: none;
}
.ba-label {
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
}
.ba-title {
  text-align: center;
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ─── Testimonios ────────────────────────────────────────── */
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
@media (max-width: 900px) { .testimonios-grid { grid-template-columns: 1fr; } }
.testimonio-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: transform var(--motion-base) var(--ease-smooth), box-shadow var(--motion-base) var(--ease-smooth), border-color var(--motion-base) var(--ease-smooth);
}
.testimonio-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 26px rgba(36,51,0,0.11);
  border-color: rgba(106,138,58,0.35);
}
.testimonio-stars {
  color: #F59E0B;
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.testimonio-texto {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 20px;
  font-style: italic;
}
.testimonio-autor { font-weight: 700; font-size: 0.875rem; color: var(--brand); }
.testimonio-tratamiento { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.testimonios-trust {
  margin-top: 34px;
}
.testimonios-trust .reviews-widget-shell {
  background: #fff;
}
.testimonios-trust-cta {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─── Blog preview ───────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: var(--bg);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 44px rgba(36,51,0,0.16);
  border-color: rgba(36,51,0,0.18);
}
.js .blog-card.reveal.visible:hover {
  transform: translate3d(0, -8px, 0);
}
.blog-card-img { width: 100%; height: 180px; object-fit: cover; }
.blog-card-body { padding: 20px; }
.blog-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-light);
  margin-bottom: 8px;
}
.blog-card-body h3 { font-size: 1rem; font-weight: 400; margin-bottom: 8px; line-height: 1.4; }
.blog-card-body p { font-size: 0.875rem; margin-bottom: 12px; }
.blog-date { font-size: 0.75rem; color: var(--muted); }
.blog-cta { text-align: center; margin-top: 40px; }

/* ─── FAQ ────────────────────────────────────────────────── */
.faq-list { max-width: 720px; margin: 48px auto 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%;
  text-align: left;
  padding: 22px 0;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}
.faq-icon {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
  font-size: 1rem;
  color: var(--brand);
}
.faq-item.open .faq-icon { background: var(--brand); border-color: var(--brand); color: #fff; }
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}
.faq-answer-inner { padding-bottom: 22px; }
.faq-answer p { font-size: 0.95rem; }

/* ─── Contact ────────────────────────────────────────────── */
.patient-access-promo {
  padding-top: 28px;
}
.patient-access-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.85fr);
  gap: 40px;
  align-items: center;
  padding: 44px 48px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(191, 201, 157, 0.18), transparent 28%),
    linear-gradient(135deg, #f9f8f2 0%, #f3f2e9 52%, #edf0e3 100%);
  border: 1px solid rgba(36, 51, 0, 0.09);
  box-shadow: 0 18px 52px rgba(36, 51, 0, 0.07);
  overflow: hidden;
}
.patient-access-card::after {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 22px;
  pointer-events: none;
}
.patient-access-copy,
.patient-access-actions {
  position: relative;
  z-index: 1;
}
.patient-access-text {
  max-width: 62ch;
  margin-bottom: 12px;
}
.patient-access-note,
.patient-access-meta {
  font-size: 0.92rem;
  color: var(--muted);
}
.patient-access-copy .section-title {
  margin-bottom: 18px;
}
.patient-access-copy .section-label {
  margin-bottom: 14px;
}
.patient-access-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    inset 0 0 0 1px rgba(36, 51, 0, 0.06),
    0 10px 28px rgba(36, 51, 0, 0.05);
}
.patient-access-actions .btn {
  min-width: 100%;
  justify-content: center;
}
.patient-access-meta--eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-light);
}
@media (max-width: 900px) {
  .patient-access-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 32px 24px;
  }
  .patient-access-actions {
    padding: 20px;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.contact-grid > * { min-width: 0; }
.contact-form { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; min-width: 0; }
@media (max-width: 560px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
label { font-size: 0.8rem; font-weight: 700; color: var(--gray-dark); text-transform: uppercase; letter-spacing: 0.05em; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
input:not([type=checkbox]):not([type=radio]):focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand-light);
  box-shadow: 0 0 0 3px rgba(36,51,0,0.08);
}
textarea { resize: vertical; min-height: 120px; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; }
.form-consent--secondary { margin-top: 6px; }
.form-consent input[type=checkbox] {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  padding: 0;
  flex-shrink: 0;
  appearance: auto;
  accent-color: var(--brand);
  border-radius: 5px;
}
.form-consent label { font-size: 0.8rem; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); }
.form-consent a { color: var(--brand); text-decoration: underline; }
.form-submit { margin-top: 8px; }
.form-submit .btn { width: 100%; justify-content: center; }
.form-message { padding: 12px 16px; border-radius: var(--radius); font-size: 0.875rem; display: none; }
.form-message.success { background: #d1fae5; color: #065f46; display: block; }
.form-message.error { background: #fee2e2; color: #991b1b; display: block; }
.honeypot { display: none !important; }

.contact-info { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.contact-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(180deg, #f4f6ef 0%, #e6ebdb 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(36,51,0,0.05);
}
.contact-icon svg {
  width: 22px;
  height: 22px;
}
.contact-detail-text { min-width: 0; }
.contact-detail-text strong { display: block; font-size: 0.875rem; font-weight: 700; margin-bottom: 2px; }
.contact-detail-text span {
  font-size: 0.875rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.contact-inline-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.contact-inline-link:hover {
  color: var(--brand-hover);
}
.contact-map { margin-top: 24px; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9; background: var(--gray-light); }
.contact-map,
.contact-map-inline {
  width: 100%;
  max-width: 100%;
}
.contact-map iframe { width: 100%; max-width: 100%; height: 100%; border: 0; display: block; }
.contact-map-inline {
  margin-top: 8px;
  border: 1px solid rgba(36,51,0,0.1);
  border-radius: 16px;
  padding: 12px;
  background: linear-gradient(180deg, #fcfdf9 0%, #f7faf2 100%);
  transition: transform var(--motion-base) var(--ease-smooth), box-shadow var(--motion-base) var(--ease-smooth), border-color var(--motion-base) var(--ease-smooth);
}
.contact-map-inline:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(36,51,0,0.08);
  border-color: rgba(106,138,58,0.35);
}
.contact-map-inline .contact-map {
  margin-top: 0;
  border: 1px solid rgba(36,51,0,0.1);
  border-radius: 12px;
  aspect-ratio: 16/8;
  min-height: 190px;
}
@media (max-width: 768px) {
  .contact-map-inline {
    padding: 10px;
  }
  .contact-map-inline .contact-map {
    min-height: 220px;
  }
}

/* --- Location map block (bottom placement) ---------------- */
.location-map-section {
  padding-top: 24px;
}
.location-map-card {
  border-radius: 22px;
  border: 1px solid rgba(36,51,0,0.1);
  background: linear-gradient(180deg, #fcfdf9 0%, #f7faf2 100%);
  padding: 22px;
  box-shadow: 0 14px 30px rgba(36,51,0,0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.location-map-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 44px rgba(36,51,0,0.14);
  border-color: rgba(36,51,0,0.18);
}
.location-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 20px;
  align-items: stretch;
}
.location-map-info {
  border-radius: 16px;
  border: 1px solid rgba(36,51,0,0.08);
  background: rgba(255,255,255,0.84);
  padding: 20px;
  display: grid;
  gap: 16px;
}
.location-map-info .section-title {
  margin-bottom: 8px;
}
.location-map-meta {
  display: grid;
  gap: 12px;
}
.location-map-meta-item {
  display: grid;
  gap: 4px;
}
.location-map-meta-item strong {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-light);
}
.location-map-meta-item span,
.location-map-meta-item a {
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
}
.location-map-meta-item a:hover {
  color: var(--brand);
}
.location-map-actions {
  padding-top: 4px;
}
.location-map-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(36,51,0,0.1);
  background: #e8ece0;
  min-height: 340px;
  max-height: 360px;
}
.location-map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.reviews-section {
  padding-top: 28px;
}
.reviews-card {
  border-radius: 22px;
  border: 1px solid rgba(36,51,0,0.1);
  background: linear-gradient(180deg, #fcfdf9 0%, #f7faf2 100%);
  box-shadow: 0 14px 30px rgba(36,51,0,0.07);
  padding: 22px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.reviews-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 44px rgba(36,51,0,0.14);
  border-color: rgba(36,51,0,0.18);
}
.reviews-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}
.reviews-widget-shell {
  border: 1px solid rgba(36,51,0,0.1);
  border-radius: 16px;
  background: rgba(255,255,255,0.9);
  padding: 16px;
}
.reviews-widget-placeholder {
  border: 1px dashed rgba(36,51,0,0.2);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 0.84rem;
  color: var(--muted);
  background: rgba(242,246,236,0.8);
}
.reviews-widget-shell.is-loaded .reviews-widget-placeholder {
  display: none;
}
.reviews-widget {
  min-height: 120px;
}
@media (max-width: 980px) {
  .location-map-layout {
    grid-template-columns: 1fr;
  }
  .location-map-card {
    padding: 18px;
  }
  .reviews-card {
    padding: 18px;
  }
  .reviews-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .location-map-frame {
    min-height: 260px;
    max-height: 280px;
  }
}

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--brand);
  color: rgba(255,255,255,0.8);
  padding: 64px 0 32px;
  position: relative;
  overflow: hidden;
}
.footer-wave {
  position: absolute;
  top: 0; left: 0; right: 0;
  line-height: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 32px; } }
.footer-brand img { height: 32px; filter: brightness(0) saturate(100%) invert(100%) contrast(100%) !important; margin-bottom: 16px; }
.footer-brand-logo {
  filter: brightness(0) saturate(100%) invert(100%) contrast(100%) !important;
  mix-blend-mode: normal;
  opacity: 1;
  height: 34px;
}
.footer-brand p { font-size: 0.875rem; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.875rem; color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.site-footer .footer-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
  text-align: left;
}
.site-footer .footer-link-button:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.8rem; }
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all 0.2s;
  font-size: 0.9rem;
}
.social-link:hover { background: rgba(255,255,255,0.15); color: #fff; border-color: rgba(255,255,255,0.6); }

/* ─── WhatsApp Float ─────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.24s ease;
}
.whatsapp-float.whatsapp-float--near-footer { transform: translateY(-76px); }
.whatsapp-btn {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, var(--whatsapp) 0%, var(--brand) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(36,51,0,0.26);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  text-decoration: none;
}
.whatsapp-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 16px 34px rgba(36,51,0,0.34);
}
.whatsapp-btn svg { width: 28px; height: 28px; fill: #fff; }
.whatsapp-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(147,168,132,0.45);
  animation: wa-pulse 2s infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: 1; }
  70%  { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}
.whatsapp-tooltip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  background: var(--brand);
  color: #fff;
  font-size: 0.8rem;
  padding: 8px 14px;
  border-radius: var(--radius);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.2s;
  pointer-events: none;
  box-shadow: var(--shadow);
}
.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateY(0);
}
.whatsapp-float.whatsapp-float--near-footer .whatsapp-tooltip {
  opacity: 0;
  transform: translateY(8px);
}
@media (max-width: 980px) {
  .whatsapp-tooltip { display: none; }
}

/* ─── Cookie Banner ──────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--brand);
  color: rgba(255,255,255,0.9);
  padding: 20px 24px;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner p { font-size: 0.85rem; flex: 1; min-width: 200px; }
.cookie-banner a { color: rgba(255,255,255,0.9); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-btn {
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.2s;
}
.cookie-btn-accept { background: var(--whatsapp); color: #fff; }
.cookie-btn-reject { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.cookie-btn-accept:hover { background: var(--whatsapp-dark); }

/* ─── Scroll reveal ──────────────────────────────────────── */
.js .reveal {
  opacity: 0;
  filter: none;
  transform: translate3d(0, 12px, 0);
  will-change: opacity, transform;
  backface-visibility: hidden;
  transition: opacity var(--motion-base) var(--ease-smooth), transform var(--motion-base) var(--ease-smooth);
}
.js .reveal.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.js .reveal-delay-1 { transition-delay: 0.05s; }
.js .reveal-delay-2 { transition-delay: 0.1s; }
.js .reveal-delay-3 { transition-delay: 0.15s; }
.js .reveal-delay-4 { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .reveal.visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .btn,
  .tratamiento-featured-card,
  .tratamiento-featured-card::before,
  .tratamiento-featured-card::after,
  .equipo-card,
  .location-map-card,
  .reviews-card,
  .tratamiento-featured-img,
  .tratamiento-featured-content,
  .tratamiento-list-item,
  .tratamiento-link::before,
  .tratamiento-link::after,
  .blog-card {
    transition: none !important;
  }
}

/* ─── Utility ────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-brand { color: var(--brand); }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.flex { display: flex; }
.gap-4 { gap: 16px; }
.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;
}

@media (max-width: 768px) {
  :root { --section-pad: 64px; }
  h1 { font-size: clamp(1.8rem, 7vw, 2.5rem); }
  .site-logo {
    padding: 0;
  }
  .site-logo img {
    height: 30px;
    max-width: min(56vw, 220px);
  }
  .clinica-stats {
    grid-template-columns: 1fr;
  }
}

/* Legal pages */
.site-header--minimal {
  position: sticky;
}
.site-header--minimal .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 100%;
}
.site-header__logo img {
  width: auto;
  height: 36px;
  max-height: 36px;
  mix-blend-mode: multiply;
}
.site-header__nav {
  display: flex;
  align-items: center;
}
.btn--ghost {
  color: var(--brand);
  background: rgba(242,244,238,0.94);
  border: 1px solid rgba(36,51,0,0.09);
}
.btn--ghost:hover {
  background: #edf1e4;
}
.btn--sm {
  padding: 10px 16px;
  font-size: 0.82rem;
}
.legal-page {
  background:
    radial-gradient(circle at top left, rgba(147,168,132,0.15), transparent 28%),
    linear-gradient(180deg, #f8faf5 0%, #ffffff 28%);
}
.legal-content {
  padding: 48px 0 96px;
}
.container--narrow {
  max-width: 980px;
}
.legal-page .site-footer {
  padding: 28px 0;
}
.legal-page .site-footer .container {
  position: relative;
  z-index: 1;
}
.legal-shell {
  display: grid;
  gap: 28px;
}
.legal-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.legal-summary-card {
  padding: 18px 18px 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(244,247,239,0.92) 100%);
  border: 1px solid rgba(36,51,0,0.08);
  box-shadow: 0 16px 40px rgba(36,51,0,0.06);
}
.legal-summary-label {
  display: inline-flex;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-light);
}
.legal-summary-card p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--gray-dark);
}
.legal-hero {
  padding: 26px 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(36,51,0,0.96) 0%, rgba(72,90,49,0.94) 100%);
  color: #fff;
  box-shadow: 0 30px 60px rgba(36,51,0,0.16);
}
.legal-hero img {
  height: 34px;
  width: auto;
  mix-blend-mode: screen;
  margin-bottom: 18px;
}
.legal-kicker {
  color: rgba(255,255,255,0.72);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}
.legal-hero h1 {
  color: #fff;
  margin-bottom: 12px;
}
.legal-hero p {
  color: rgba(255,255,255,0.82);
  max-width: 640px;
}
.legal-updated {
  color: rgba(255,255,255,0.7) !important;
  font-size: 0.92rem;
}
.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
}
.legal-main {
  display: grid;
  gap: 20px;
}
.legal-card,
.legal-aside {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(36,51,0,0.08);
  border-radius: 26px;
  box-shadow: 0 16px 46px rgba(36,51,0,0.08);
}
.legal-card {
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.legal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(106,138,58,0.5), transparent 60%);
}
.legal-card-index {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-light);
}
.legal-card h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  margin-bottom: 14px;
}
.legal-card h3 {
  margin: 22px 0 10px;
  font-size: 1rem;
  font-weight: 400;
}
.legal-card p + p,
.legal-card ul + p,
.legal-card table + p {
  margin-top: 14px;
}
.legal-card ul {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  list-style: disc;
}
.legal-card li {
  color: var(--muted);
}
.legal-card-cta {
  background: linear-gradient(180deg, rgba(242,244,238,0.96) 0%, rgba(255,255,255,0.96) 100%);
}
.legal-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.legal-card a:not(.btn),
.legal-aside a:not(.btn) {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.legal-inline-actions .btn.btn-primary {
  color: #fff !important;
  font-weight: 500;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  font-size: 0.92rem;
  overflow: hidden;
  border-radius: 18px;
}
.legal-table th,
.legal-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(36,51,0,0.08);
}
.legal-table th {
  background: #eff3e7;
  color: var(--brand);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.legal-table td {
  color: var(--muted);
}
.legal-aside {
  padding: 22px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.legal-aside h2 {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.legal-aside ul {
  display: grid;
  gap: 10px;
}
.legal-aside li {
  color: var(--muted);
}
.legal-aside p {
  font-size: 0.92rem;
}
.legal-aside-box {
  padding: 16px 16px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(242,244,238,0.95) 0%, rgba(255,255,255,0.95) 100%);
  border: 1px solid rgba(36,51,0,0.08);
}
.legal-aside-box strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand);
}
@media (max-width: 900px) {
  .legal-summary-strip {
    grid-template-columns: 1fr;
  }
  .legal-grid {
    grid-template-columns: 1fr;
  }
  .legal-aside {
    position: static;
  }
}

/* Privacy refinement: less card-heavy, more editorial rhythm */
.legal-page--editorial .container--narrow {
  max-width: 1120px;
}
.legal-page--editorial .legal-content {
  padding-top: 40px;
}
.legal-page--editorial .legal-hero {
  border-radius: 16px;
  padding: 30px 34px;
  box-shadow: 0 20px 42px rgba(36,51,0,0.14);
}
.legal-page--editorial .legal-summary-strip--inline .legal-summary-card {
  border-radius: 12px;
  background: transparent;
  border: 1px solid rgba(36,51,0,0.08);
  box-shadow: none;
}
.legal-page--editorial .legal-grid {
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 34px;
}
.legal-page--editorial .legal-main {
  gap: 30px;
}
.legal-page--editorial .legal-card,
.legal-page--editorial .legal-aside {
  border-radius: 14px;
  border: 1px solid rgba(36,51,0,0.12);
  box-shadow: none;
  background: #fff;
}
.legal-page--editorial .legal-card {
  padding: 30px 32px 28px;
}
.legal-page--editorial .legal-card::before {
  top: 24px;
  left: 0;
  width: 3px;
  height: calc(100% - 48px);
  background: linear-gradient(180deg, rgba(106,138,58,0.95), rgba(106,138,58,0));
}
.legal-page--editorial .legal-card h2 {
  margin-bottom: 16px;
}
.legal-page--editorial .legal-card p,
.legal-page--editorial .legal-card li {
  color: #485264;
}
.legal-page--editorial .legal-aside {
  background: #f8faf5;
}
.legal-page--editorial .legal-aside hr {
  border: 0;
  border-top: 1px solid rgba(36,51,0,0.12);
  margin: 16px 0;
}
.legal-page--editorial .legal-aside ul:first-of-type {
  gap: 8px;
}
.legal-page--editorial .legal-aside ul:first-of-type a {
  text-decoration: none;
  font-weight: 600;
}
@media (max-width: 900px) {
  .legal-page--editorial .legal-grid {
    grid-template-columns: 1fr;
  }
}
