/* ==========================================================================
   FISUNIC · PROTOTIP v6
   ========================================================================== */

:root {
  --bg: #F0F1F2;
  --bg-warm: #E6E7E9;
  --bg-cool: #F6F7F8;
  --ink: #1A1A1A;
  --ink-deep: #0A0A0A;
  --mute: #5F6368;
  --mute-light: #9AA0A6;
  --line: rgba(26,26,26,0.08);
  --line-strong: rgba(26,26,26,0.15);
  --accent: #2A72DE;
  --accent-dark: #1E5CB8;
  --white: #FFFFFF;
  --whatsapp: #25D366;
  --font-display: 'Chillax', -apple-system, 'Inter', sans-serif;
  --font-body: 'Supreme', -apple-system, sans-serif;
  --container: 1320px;
  --gutter: 32px;
  --radius: 14px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; background: var(--bg); }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
  max-width: 100vw;
}
html {
  overflow-x: clip;
  max-width: 100vw;
}
html, body { hyphens: none; -webkit-hyphens: none; }
* {
  max-width: 100%;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }
::selection { background: var(--ink); color: var(--bg); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
h1 em, h2 em, h3 em { font-style: italic; font-weight: 400; color: var(--mute); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 88px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 980px;
  color: var(--ink);
}
.section-sub {
  font-family: var(--font-body);
  font-size: 19px;
  color: var(--mute);
  margin-top: 28px;
  max-width: 640px;
  line-height: 1.5;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.4s var(--ease);
  white-space: nowrap; cursor: pointer;
  border-radius: 999px;
  border: 1.5px solid transparent;
  position: relative; overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: var(--accent);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease);
  z-index: 0;
}
.btn:hover::before { transform: translateY(0); }
.btn > * { position: relative; z-index: 1; }
.btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-primary:hover { color: var(--white); border-color: var(--accent); transform: translateY(-2px); }
.btn-primary .arrow { display: inline-block; transition: transform 0.3s var(--ease); }
.btn-primary:hover .arrow { transform: translateX(6px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { color: var(--white); border-color: var(--accent); transform: translateY(-2px); }
.btn-light { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn-light:hover { color: var(--white); border-color: var(--accent); transform: translateY(-2px); }
.btn-sm { padding: 11px 22px; font-size: 13px; }
.btn-lg { padding: 20px 40px; font-size: 15px; }

.link-arrow {
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 10px;
  transition: all 0.3s var(--ease);
  padding-bottom: 4px;
  position: relative;
}
.link-arrow::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--ink);
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 300ms ease-out, background 0.3s var(--ease);
}
.link-arrow:hover { gap: 18px; color: var(--accent); }
.link-arrow:hover::after { background: var(--accent); }
@media (hover: hover) {
  .link-arrow::after { transform: scaleX(0); }
  .link-arrow:hover::after { transform: scaleX(1); }
}

.status-dot {
  width: 8px; height: 8px; background: var(--accent);
  border-radius: 50%; display: inline-block;
  position: relative; flex-shrink: 0;
}
.status-dot::after {
  content: ''; position: absolute; inset: -4px;
  border-radius: 50%; background: var(--accent); opacity: 0.25;
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: 0.35; } 75%, 100% { transform: scale(2.5); opacity: 0; } }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(240, 241, 242, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.logo {
  font-family: var(--font-display); font-size: 24px; font-weight: 600;
  letter-spacing: -0.03em; color: var(--ink);
  display: inline-flex;
  align-items: center;
}
.logo-img {
  height: 48px;
  width: auto;
  display: block;
}
.footer-brand .logo-img {
  height: 40px;
  margin-bottom: 20px;
}
/* Invert logo to white on dark sections (if ever needed) */
.section-dark .logo-img,
.section-cta .logo-img {
  filter: invert(1) brightness(1.1);
}
.nav-links { display: flex; gap: 36px; flex: 1; justify-content: center; }
.nav-links a {
  font-family: var(--font-body); font-size: 15px; font-weight: 400;
  color: var(--ink); position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1.5px; background: var(--accent);
  transition: width 0.35s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-burger span { width: 22px; height: 2px; background: var(--ink); display: block; }

/* ============ HERO ============ */
.hero { padding: 80px var(--gutter) 120px; max-width: var(--container); margin: 0 auto; position: relative; }
.hero-kicker {
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  color: var(--mute); margin-bottom: 40px;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 18px; background: var(--white); border: 1px solid var(--line);
  border-radius: 999px;
  opacity: 0; transform: translateY(12px);
  animation: fadeUp 0.8s var(--ease) 0.1s forwards;
}
.hero-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(60px, 9vw, 152px);
  line-height: 0.95; letter-spacing: -0.045em;
  margin-bottom: 56px; color: var(--ink); max-width: 1200px;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line span {
  display: inline-block;
  opacity: 0; transform: translateY(100%);
  animation: lineUp 1s var(--ease) forwards;
}
.hero-title .line:nth-child(1) span { animation-delay: 0.3s; }
.hero-title .line:nth-child(2) span { animation-delay: 0.5s; }
@keyframes lineUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.hero-title em { font-style: italic; font-weight: 400; color: var(--mute); }

.hero-lede-block {
  max-width: 640px; margin-bottom: 48px;
  opacity: 0; animation: fadeUp 1s var(--ease) 0.8s forwards;
}
.hero-lede { font-family: var(--font-body); font-size: 22px; line-height: 1.45; color: var(--ink); margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-image {
  margin-top: 40px; aspect-ratio: 21/9; background: var(--ink);
  border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center;
  color: rgba(240,241,242,0.3); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  overflow: hidden; position: relative; will-change: transform;
  opacity: 0; animation: fadeUp 1.2s var(--ease) 1s forwards;
}

/* Hero stats strip under image */
.hero-stats {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  opacity: 0; animation: fadeUp 1s var(--ease) 1.2s forwards;
}
.hero-stat {
  background: var(--bg);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero-stat .stat-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}
.hero-stat .stat-value .accent { color: var(--accent); }
.hero-stat .stat-label {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--mute);
  line-height: 1.35;
}

/* ============ SECTIONS ============ */
.section { padding: 140px 0; position: relative; }
.section-dark { background: var(--ink); color: var(--bg); }
.section-dark .eyebrow { color: var(--mute-light); }
.section-dark .section-title { color: var(--bg); }
.section-dark .section-sub { color: rgba(240,241,242,0.65); }
.section-dark .link-arrow { color: var(--bg); }
.section-dark .link-arrow::after { background: var(--bg); }
.section-dark .link-arrow:hover { color: var(--accent); }
.section-dark .link-arrow:hover::after { background: var(--accent); }
.section-warm { background: var(--bg-warm); }

/* Tècniques section on home — subtle differentiation from Tractaments */
.section-tecniques { background: var(--bg-cool); }
.section-head { margin-bottom: 80px; max-width: 1000px; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; max-width: none; }

/* ============ PRINCIPLES (replacement for steps) ============ */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.principle {
  background: var(--white);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: background 0.4s var(--ease);
}
.principle:hover { background: var(--bg-cool); }
.principle-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.principle h3 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
}
.principle p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--mute);
}

/* ============ TREATMENTS (COMPACT v6) ============ */
.treatments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.treatment-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  display: flex; flex-direction: column;
  color: var(--ink);
  position: relative;
}
.treatment-card::after {
  content: ''; position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px -25px rgba(42,114,222,0.3);
  opacity: 0; transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.treatment-card:hover { transform: translateY(-6px); }
.treatment-card:hover::after { opacity: 1; }
.treatment-img {
  aspect-ratio: 4/3; background: var(--bg-warm);
  display: flex; align-items: center; justify-content: center;
  color: var(--mute); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  overflow: hidden; position: relative;
}
.treatment-img::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(42,114,222,0.08) 100%);
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.treatment-card:hover .treatment-img::before { opacity: 1; }
.treatment-img picture { display: block; width: 100%; height: 100%; }
.treatment-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.treatment-body { padding: 24px 24px 28px; flex: 1; display: flex; flex-direction: column; }
.treatment-tag {
  font-family: var(--font-body); font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.treatment-card h3 {
  font-family: var(--font-display); font-size: 22px; font-weight: 500;
  letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 10px; color: var(--ink);
}
.treatment-card p {
  font-family: var(--font-body); font-size: 13px; line-height: 1.5;
  color: var(--mute); margin-bottom: 20px; flex: 1;
}
.treatment-more {
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.treatment-card:hover .treatment-more { gap: 14px; color: var(--accent); }

/* ============ ABOUT ============ */
.section-about { padding: 180px 0; overflow: hidden; position: relative; }
.section-about::before {
  content: ''; position: absolute; top: -20%; left: -10%;
  width: 60%; height: 140%;
  background: radial-gradient(ellipse at center, rgba(42,114,222,0.12) 0%, transparent 60%);
  animation: breathe 8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes breathe { 0%, 100% { opacity: 0.7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.15); } }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; position: relative; z-index: 1; }
.about-text .section-title { font-size: clamp(40px, 5vw, 72px); margin-bottom: 32px; }
.about-text .section-title em { color: var(--accent); }
.about-text p { font-family: var(--font-body); font-size: 18px; color: rgba(240,241,242,0.75); margin-bottom: 20px; line-height: 1.55; }
.about-text .link-arrow { margin-top: 24px; }
.about-image {
  aspect-ratio: 4/5; background: var(--bg); border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--mute); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  overflow: hidden;
}
.about-image video,
.about-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============ METRICS ============ */
.metrics-band { padding: 100px 0; background: var(--bg-warm); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.metric-cell { background: var(--white); padding: 40px 32px; border-radius: var(--radius-lg); transition: transform 0.5s var(--ease); }
.metric-cell:hover { transform: translateY(-6px); }
.metric-num { font-family: var(--font-display); font-weight: 500; font-size: clamp(52px, 5vw, 72px); letter-spacing: -0.04em; line-height: 0.9; color: var(--ink); margin-bottom: 20px; }
.metric-num .accent { color: var(--accent); }
.metric-label { font-family: var(--font-body); font-size: 14px; color: var(--mute); line-height: 1.45; }

/* ============ TEAM ============ */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.team-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; transition: transform 0.5s var(--ease); display: block; color: var(--ink); }
.team-card:hover { transform: translateY(-6px); }
.team-img {
  aspect-ratio: 3/4; background: var(--bg-warm);
  display: flex; align-items: center; justify-content: center;
  color: var(--mute); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  overflow: hidden; transition: transform 0.6s var(--ease);
}
.team-card:hover .team-img { transform: scale(1.03); }
.team-img picture { display: block; width: 100%; height: 100%; }
.team-body { padding: 24px 24px 32px; }
.team-card h3 { font-family: var(--font-display); font-size: 24px; font-weight: 500; letter-spacing: -0.025em; line-height: 1; margin-bottom: 8px; color: var(--ink); }
.team-role { font-family: var(--font-body); font-size: 12px; color: var(--mute); line-height: 1.35; }

/* Exclusive tag on treatment card (for sol pelvia) */
.treatment-card .exclusive-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  z-index: 2;
}

/* ============ TESTIMONIALS ============ */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial {
  background: var(--white); border-radius: var(--radius-lg); padding: 40px 32px;
  display: flex; flex-direction: column; gap: 28px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  min-height: 320px;
}
.testimonial:hover { transform: translateY(-6px); box-shadow: 0 25px 60px -20px rgba(26,26,26,0.12); }
.testimonial-rating { display: flex; gap: 3px; }
.star { width: 14px; height: 14px; background: var(--accent); clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.testimonial p { font-family: var(--font-display); font-size: 22px; font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; color: var(--ink); flex: 1; }
.testimonial footer { display: flex; flex-direction: column; gap: 4px; }
.testimonial cite { font-style: normal; font-family: var(--font-display); font-size: 16px; font-weight: 500; color: var(--ink); }
.testimonial footer span { font-family: var(--font-body); font-size: 13px; color: var(--mute); }

/* ============ RESERVA ============ */
.section-reserva { padding: 140px 0; }
.reserva-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 64px;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center;
}
.reserva-text h2 { font-family: var(--font-display); font-size: clamp(40px, 5vw, 68px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.02; margin-bottom: 24px; color: var(--ink); }
.reserva-text p { font-family: var(--font-body); font-size: 17px; color: var(--mute); line-height: 1.5; margin-bottom: 24px; }
.reserva-features { display: flex; flex-direction: column; gap: 14px; margin-top: 32px; }
.reserva-feature { display: flex; align-items: center; gap: 12px; font-family: var(--font-body); font-size: 15px; color: var(--ink); }
.reserva-feature-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }
.reserva-hours {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(26,26,26,0.08);
}
.reserva-hours-title {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 10px;
}
.reserva-hours-line {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  line-height: 1.55;
}
.doctoralia-embed {
  background: var(--bg); border: 2px dashed var(--line-strong);
  border-radius: var(--radius); min-height: 480px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px; text-align: center; gap: 12px;
}
.doctoralia-embed .icon { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; font-size: 20px; margin-bottom: 8px; }
.doctoralia-embed p { font-family: var(--font-body); font-size: 14px; color: var(--mute); max-width: 360px; line-height: 1.5; }
.doctoralia-embed code { font-family: 'SF Mono', Menlo, monospace; font-size: 12px; background: var(--bg-warm); padding: 4px 10px; border-radius: 6px; color: var(--ink); }

/* ============ CTA ============ */
.section-cta {
  padding: 180px 0; background: var(--ink); color: var(--bg);
  position: relative; overflow: hidden;
}
.section-cta::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); width: 140%; height: 500px;
  background: radial-gradient(ellipse at center, rgba(42,114,222,0.18) 0%, transparent 65%);
  animation: breathe 10s ease-in-out infinite; pointer-events: none;
}
.cta-inner { max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 1; text-align: center; }
.cta-inner h2 { font-family: var(--font-display); font-size: clamp(52px, 8vw, 128px); font-weight: 500; letter-spacing: -0.045em; line-height: 0.95; margin-bottom: 40px; color: var(--bg); }
.cta-inner h2 em { font-style: italic; font-weight: 400; color: var(--accent); }
.cta-inner p { font-family: var(--font-body); font-size: 20px; color: rgba(240,241,242,0.7); margin-bottom: 56px; max-width: 560px; margin-left: auto; margin-right: auto; line-height: 1.5; }

/* ============ FOOTER ============ */
.footer { background: var(--bg-warm); color: var(--ink); padding: 100px 0 40px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 80px; border-bottom: 1px solid var(--line); }
.footer-brand .logo { font-size: 28px; margin-bottom: 20px; display: block; }
.footer-brand p { color: var(--mute); font-size: 15px; margin-bottom: 32px; max-width: 320px; line-height: 1.5; }
.footer-col h4 { font-family: var(--font-body); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 12px; font-size: 15px; }
.footer-col ul li a { transition: color 0.3s var(--ease); }
.footer-col ul li a:hover { color: var(--accent); }
.footer-mega { font-family: var(--font-display); font-size: clamp(100px, 18vw, 300px); font-weight: 500; letter-spacing: -0.05em; line-height: 0.85; color: var(--ink); padding: 80px 0 40px; overflow: hidden; white-space: nowrap; opacity: 0.08; }
.footer-bottom { padding-top: 40px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--mute); }
.footer-legal { display: flex; gap: 28px; }
.footer-legal a:hover { color: var(--ink); }

/* ============ WHATSAPP FLOATING (DESKTOP) ============ */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--whatsapp);
  display: flex; align-items: center; justify-content: center;
  z-index: 90;
  box-shadow: 0 10px 30px -5px rgba(37,211,102,0.5);
  transition: all 0.4s var(--ease);
}
.whatsapp-float svg { width: 32px; height: 32px; fill: var(--white); transition: transform 0.4s var(--ease); }
.whatsapp-float::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: var(--whatsapp); opacity: 0.4;
  animation: wa-pulse 2.5s var(--ease) infinite;
  pointer-events: none; z-index: -1;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: 0.4; } 100% { transform: scale(1.6); opacity: 0; } }
.whatsapp-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 40px -5px rgba(37,211,102,0.6); }
.whatsapp-float:hover svg { transform: rotate(-8deg) scale(1.08); }
.whatsapp-float .label {
  position: absolute; right: 72px;
  background: var(--ink); color: var(--bg);
  padding: 10px 16px; border-radius: 8px;
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  white-space: nowrap;
  opacity: 0; transform: translateX(8px);
  transition: all 0.3s var(--ease); pointer-events: none;
}
.whatsapp-float:hover .label { opacity: 1; transform: translateX(0); }

/* ============ MOBILE STICKY BAR ============ */
.mobile-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(240, 241, 242, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--line);
  z-index: 85;
  gap: 10px;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
}
.mobile-bar.visible { transform: translateY(0); }
.mobile-bar .btn-mobile-primary {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 20px;
  background: var(--ink); color: var(--bg);
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
}
.mobile-bar .btn-mobile-call,
.mobile-bar .btn-mobile-wa {
  width: 52px; height: 52px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mobile-bar .btn-mobile-call {
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  transition: transform 200ms ease-out;
}
.mobile-bar .btn-mobile-call svg { width: 22px; height: 22px; }
.mobile-bar .btn-mobile-call:active { transform: scale(0.96); }
.mobile-bar .btn-mobile-wa {
  background: var(--whatsapp);
}
.mobile-bar .btn-mobile-wa svg { width: 24px; height: 24px; fill: var(--white); }

/* ============ COOKIE BANNER ============ */
.cookie-banner {
  position: fixed; bottom: 24px; left: 24px; right: 24px;
  max-width: 520px;
  background: var(--ink); color: var(--bg);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: 0 20px 60px -20px rgba(26,26,26,0.4);
  z-index: 95;
  display: flex; flex-direction: column; gap: 16px;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.cookie-banner.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cookie-banner p {
  font-family: var(--font-body); font-size: 13.5px;
  line-height: 1.5; color: rgba(240,241,242,0.9);
}
.cookie-banner p a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 10px; align-items: center; }
.cookie-actions button {
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  padding: 10px 18px; border-radius: 999px;
  transition: all 0.3s var(--ease);
  cursor: pointer;
}
.cookie-accept { background: var(--bg); color: var(--ink); border: 1.5px solid var(--bg); }
.cookie-accept:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.cookie-reject { background: transparent; color: var(--bg); border: 1.5px solid rgba(240,241,242,0.3); }
.cookie-reject:hover { border-color: var(--bg); }

/* ============ PAGE HEROS ============ */
.page-hero { padding: 60px var(--gutter) 100px; max-width: var(--container); margin: 0 auto; }
.breadcrumb { font-family: var(--font-body); font-size: 14px; color: var(--mute); margin-bottom: 56px; }
.breadcrumb a { color: var(--mute); transition: color 0.3s var(--ease); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span.sep { margin: 0 10px; opacity: 0.5; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(64px, 10vw, 168px); font-weight: 500; letter-spacing: -0.045em; line-height: 0.95; margin-bottom: 40px; color: var(--ink); }
.page-hero h1 em { font-style: italic; font-weight: 400; color: var(--mute); }
.page-hero > p { font-family: var(--font-body); font-size: 20px; color: var(--ink); max-width: 620px; line-height: 1.45; }

.treatment-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; margin-top: 48px; }
.treatment-hero-lede { font-family: var(--font-body); font-size: 21px; color: var(--ink); line-height: 1.45; margin-bottom: 40px; }
.treatment-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 40px 0; }
.meta-item { background: var(--white); padding: 24px; border-radius: var(--radius); }
.meta-item .data-label { font-family: var(--font-body); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.meta-item strong { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 500; letter-spacing: -0.025em; color: var(--ink); }
.treatment-hero-img { aspect-ratio: 4/5; background: var(--ink); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; color: rgba(240,241,242,0.3); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; overflow: hidden; }
.treatment-hero-img.tall { aspect-ratio: 3/4; }
.treatment-hero-img picture { display: block; width: 100%; height: 100%; }
.treatment-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============ CONTENT ============ */
.content-section { padding: 120px 0; }
.content-section.warm { background: var(--bg-warm); }
.content-grid { display: grid; grid-template-columns: 340px 1fr; gap: 100px; }
.content-grid h2 { font-family: var(--font-display); font-size: clamp(40px, 5vw, 64px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.02; color: var(--ink); }
.content-body { font-family: var(--font-body); font-size: 18px; line-height: 1.65; color: var(--mute); }
.content-body p { margin-bottom: 20px; }
.content-body h3 { font-family: var(--font-display); font-size: 26px; font-weight: 500; letter-spacing: -0.025em; margin: 48px 0 16px; color: var(--ink); display: flex; align-items: baseline; gap: 16px; }
.content-body h3 .step-mark { font-family: var(--font-body); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; color: var(--accent); }
.indications-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
.indication-card { background: var(--white); padding: 28px; border-radius: var(--radius); transition: transform 0.4s var(--ease); }
.indication-card:hover { transform: translateY(-4px); }
.indication-num { font-family: var(--font-body); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 16px; }
.indication-card h4 { font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 10px; color: var(--ink); }
.indication-card p { font-family: var(--font-body); font-size: 14px; color: var(--mute); line-height: 1.5; margin: 0; }
.faq-item { border-bottom: 1px solid var(--line); padding: 28px 0; }
.faq-item:first-child { border-top: 1px solid var(--line-strong); }
.faq-item summary { font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; color: var(--ink); transition: color 0.3s var(--ease); }
.faq-item summary:hover { color: var(--accent); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: var(--font-display); font-size: 28px; font-weight: 400; transition: transform 0.4s var(--ease), color 0.3s var(--ease); color: var(--mute); }
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq-item p { margin-top: 16px; color: var(--mute); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }

/* ============ PREUS ============ */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.price-card { background: var(--white); border-radius: var(--radius-lg); padding: 40px 32px 48px; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); position: relative; display: flex; flex-direction: column; }
.price-card:hover { transform: translateY(-6px); box-shadow: 0 25px 60px -20px rgba(26,26,26,0.12); }
.price-card.featured { background: var(--ink); color: var(--bg); }
.price-card.featured .price-name, .price-card.featured .price-desc, .price-card.featured .price-amount, .price-card.featured .price-list li { color: var(--bg); }
.price-card.featured .price-desc { color: rgba(240,241,242,0.7); }
.price-card.featured .price-list li { color: rgba(240,241,242,0.85); }
.price-card.featured .price-list li::before { background: var(--accent); }
.price-badge { position: absolute; top: 20px; right: 20px; background: var(--accent); color: var(--white); font-family: var(--font-body); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.price-name { font-family: var(--font-display); font-size: 26px; font-weight: 500; letter-spacing: -0.025em; margin-bottom: 8px; color: var(--ink); }
.price-desc { font-family: var(--font-body); font-size: 14px; color: var(--mute); margin-bottom: 24px; line-height: 1.45; }
.price-amount { font-family: var(--font-display); font-size: 64px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: var(--ink); margin-bottom: 8px; }
.price-amount .unit { font-size: 24px; color: var(--mute); font-weight: 400; margin-left: 8px; }
.price-duration { font-family: var(--font-body); font-size: 14px; color: var(--mute); margin-bottom: 32px; }
.price-list { margin-top: 12px; margin-bottom: 32px; flex: 1; }
.price-list li { padding: 10px 0 10px 24px; font-family: var(--font-body); font-size: 15px; color: var(--ink); position: relative; }
.price-list li::before { content: ''; position: absolute; left: 0; top: 17px; width: 12px; height: 1.5px; background: var(--ink); }

/* ============ BLOG ============ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.blog-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 25px 60px -20px rgba(26,26,26,0.15); }
.blog-card.featured { grid-column: span 2; }
.blog-img { aspect-ratio: 16/10; background: var(--bg-warm); display: flex; align-items: center; justify-content: center; color: var(--mute); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; overflow: hidden; transition: transform 0.7s var(--ease); }
.blog-card:hover .blog-img { transform: scale(1.03); }
.blog-body { padding: 32px; flex: 1; display: flex; flex-direction: column; }
.blog-meta { display: flex; gap: 12px; align-items: center; font-family: var(--font-body); font-size: 12px; letter-spacing: 0.04em; color: var(--mute); margin-bottom: 16px; flex-wrap: wrap; }
.blog-meta .category { color: var(--accent); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; }
.blog-card h3 { font-family: var(--font-display); font-size: 26px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 14px; color: var(--ink); }
.blog-card.featured h3 { font-size: 34px; }
.blog-card p { font-family: var(--font-body); font-size: 15px; line-height: 1.55; color: var(--mute); margin-bottom: 24px; flex: 1; }

.post-hero { padding: 60px var(--gutter) 40px; max-width: 820px; margin: 0 auto; }
.post-hero .blog-meta { margin-bottom: 40px; }
.post-hero h1 { font-family: var(--font-display); font-size: clamp(40px, 5.5vw, 72px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; color: var(--ink); margin-bottom: 32px; }
.post-lede { font-family: var(--font-body); font-size: 22px; color: var(--ink); line-height: 1.5; max-width: 720px; }
.post-image { max-width: 1160px; margin: 40px auto 80px; padding: 0 var(--gutter); }
.post-image > div { aspect-ratio: 16/9; background: var(--bg-warm); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; color: var(--mute); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.post-body { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter) 120px; font-family: var(--font-body); font-size: 18px; line-height: 1.75; color: var(--ink); }
.post-body p { margin-bottom: 24px; }
.post-body h2 { font-family: var(--font-display); font-size: 36px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; margin: 64px 0 20px; color: var(--ink); }
.post-body h3 { font-family: var(--font-display); font-size: 24px; font-weight: 500; letter-spacing: -0.02em; margin: 48px 0 16px; color: var(--ink); }
.post-body blockquote { border-left: 3px solid var(--accent); padding: 8px 0 8px 32px; margin: 40px 0; font-family: var(--font-display); font-size: 22px; font-weight: 500; font-style: italic; line-height: 1.4; color: var(--ink); }
.post-body ul { margin: 24px 0 32px; padding-left: 0; }
.post-body ul li { padding: 8px 0 8px 28px; position: relative; color: var(--ink); }
.post-body ul li::before { content: ''; position: absolute; left: 0; top: 19px; width: 12px; height: 1.5px; background: var(--accent); }

/* ============ EQUIP PROFILE ============ */
.profile-hero { padding: 40px var(--gutter) 100px; max-width: var(--container); margin: 0 auto; }
.profile-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }
.profile-photo { aspect-ratio: 3/4; background: var(--bg-warm); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; color: var(--mute); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.profile-name { font-family: var(--font-display); font-size: clamp(52px, 7vw, 96px); font-weight: 500; letter-spacing: -0.04em; line-height: 0.95; margin-bottom: 20px; color: var(--ink); }
.profile-role { font-family: var(--font-body); font-size: 14px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 32px; display: inline-block; }
.profile-bio { font-family: var(--font-body); font-size: 18px; line-height: 1.6; color: var(--ink); margin-bottom: 20px; }
.profile-bio p { margin-bottom: 20px; }
.profile-specialties { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.profile-specialties h4 { font-family: var(--font-body); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); margin-bottom: 20px; }
.specialty-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.specialty-tag { font-family: var(--font-body); font-size: 14px; background: var(--white); padding: 10px 18px; border-radius: 999px; color: var(--ink); }

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 40px var(--gutter) 140px; max-width: var(--container); margin: 0 auto; }
.contact-info { background: var(--white); border-radius: var(--radius-lg); padding: 16px 32px; }
.info-block { padding: 28px 0; border-bottom: 1px solid var(--line); }
.info-block:last-child { border-bottom: none; }
.info-block h3 { font-family: var(--font-body); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); margin-bottom: 12px; }
.info-block p, .info-block a { font-family: var(--font-display); font-size: 26px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; color: var(--ink); transition: color 0.3s var(--ease); }
.info-block a { display: block; }
.info-block a:hover { color: var(--accent); }
/* === CONTACT MAP (Google Maps embed) === */
.contact-map {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-warm);
  box-shadow: 0 8px 32px -8px rgba(26, 26, 26, 0.12);
}
.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  display: block;
}
@media (max-width: 860px) {
  .contact-map {
    aspect-ratio: auto;
    height: 360px;
  }
}

.reservar-page-embed { max-width: 960px; margin: 40px auto 140px; padding: 0 var(--gutter); }
.reservar-page-embed .doctoralia-embed { min-height: 720px; }

/* ============ 404 PAGE ============ */
.page-404 {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px var(--gutter) 120px;
  max-width: 800px;
  margin: 0 auto;
}
.error-code {
  font-family: var(--font-display);
  font-size: clamp(140px, 22vw, 320px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.9;
  color: var(--ink);
  margin-bottom: 24px;
  position: relative;
}
.error-code em { font-style: italic; font-weight: 400; color: var(--accent); }
.page-404 h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 20px;
}
.page-404 h1 em { font-style: italic; color: var(--mute); }
.page-404 p {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--mute);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.5;
}
.error-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-inner .btn { display: none; }

  .hero { padding: 40px var(--gutter) 64px; }
  .hero-image { margin-top: 24px; aspect-ratio: 4/3; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 20px; }
  .hero-stat { padding: 18px 20px; }
  .hero-stat .stat-value { font-size: 20px; }

  .section { padding: 80px 0; }
  .section-about { padding: 100px 0; }
  .section-head-row { flex-direction: column; align-items: flex-start; }

  .principles { grid-template-columns: 1fr; }
  .principle { padding: 32px 24px; }

  .treatments-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .treatment-body { padding: 18px 18px 22px; }
  .treatment-card h3 { font-size: 18px; }
  .treatment-card p { display: none; }
  .treatment-tag { font-size: 10px; margin-bottom: 8px; }
  .treatment-card .exclusive-tag { font-size: 8px; padding: 4px 8px; top: 10px; right: 10px; }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-body { padding: 20px 20px 24px; }
  .team-card h3 { font-size: 20px; }
  .testimonial-grid { grid-template-columns: 1fr; gap: 16px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 16px; }

  .reserva-card { grid-template-columns: 1fr; padding: 40px 32px; gap: 32px; }
  .price-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card.featured { grid-column: span 1; }

  .treatment-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .treatment-hero-grid > .treatment-hero-img.tall { order: -1; }
  .content-grid { grid-template-columns: 1fr; gap: 32px; }
  .indications-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .profile-grid { grid-template-columns: 1fr; gap: 48px; }

  .whatsapp-float { display: none; }
  .mobile-bar { display: flex; }

  body { padding-bottom: 80px; }

  .cookie-banner { left: 12px; right: 12px; bottom: 80px; padding: 16px 18px; }
}

@media (max-width: 560px) {
  :root { --gutter: 20px; }
  .treatments-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .treatment-body { padding: 14px 14px 18px; }
  .treatment-card h3 { font-size: 16px; }
  .treatment-img { aspect-ratio: 1/1; }

  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .treatment-meta { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}

/* ============ SCROLL REVEAL ============ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 600ms ease-out, transform 600ms ease-out; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============ CURSOR HALO EN HERO ============ */
.cursor-halo {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 114, 222, 0.15) 0%, rgba(42, 114, 222, 0.05) 30%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  mix-blend-mode: multiply;
  will-change: transform;
  top: 0;
  left: 0;
}
.hero { position: relative; overflow: hidden; }
.hero > * { position: relative; z-index: 2; }

/* ============ LINE REVEAL DEL H1 ============ */
.hero h1 .line-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: baseline;
}
.hero h1 .line-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.hero h1 .line-inner.revealed {
  transform: translateY(0);
}

/* ============ BREATHING EFFECT EN CTA PRIMARY ============ */
@keyframes btn-breathe {
  0%, 100% { box-shadow: 0 8px 30px rgba(42, 114, 222, 0.25); }
  50% { box-shadow: 0 8px 40px rgba(42, 114, 222, 0.45); }
}
.hero .btn-primary,
.hero-ctas .btn-primary {
  animation: btn-breathe 3.5s ease-in-out infinite;
}

/* Smooth anchor scrolling */
html { scroll-behavior: smooth; }

/* ============ FIX: mobile overflow protection ============ */
/* Base rules apply always */
html, body {
  overflow-x: clip !important;
  max-width: 100%;
}
body {
  position: relative;
}
/* Any section/container must never exceed viewport width */
section, main, header, footer, .container, .nav-inner {
  max-width: 100%;
  overflow-x: clip;
}
/* Footer mega text with nowrap must be clipped */
.footer-mega {
  overflow: hidden;
  max-width: 100%;
  width: 100%;
}

@media (max-width: 960px) {
  /* Reinforce body + html */
  html, body {
    overflow-x: clip !important;
    max-width: 100vw !important;
    width: 100%;
  }
  /* Force all direct children to respect viewport */
  body > * {
    max-width: 100vw;
    overflow-x: hidden;
  }
  .container, .nav-inner, section, .footer-top {
    max-width: 100%;
  }
  .content-section, .page-hero, .section, .section-cta, .hero {
    overflow: hidden;
    max-width: 100%;
  }
  /* Prevent any table-like grids from causing overflow */
  .indications-grid, .metrics-grid, .price-grid, .team-grid, .treatment-grid, .blog-grid, .content-grid, .testimonial-grid {
    max-width: 100%;
  }
  /* Huge headlines clamp more aggressively on small screens */
  .page-hero h1 {
    font-size: clamp(34px, 9vw, 72px);
    word-break: normal;
    margin-bottom: 20px;
  }
  h1, h2, h3 {
    word-break: normal;
  }

  /* Compact hero spacing on mobile — less dead air before content */
  .page-hero {
    padding: 32px var(--gutter) 48px;
  }
  .page-hero .breadcrumb {
    margin-bottom: 20px;
  }
  .page-hero .eyebrow {
    margin-bottom: 14px;
  }
  .page-hero > p {
    font-size: 17px;
  }
  .post-hero {
    padding: 32px var(--gutter) 28px;
  }
  .post-hero .breadcrumb {
    margin-bottom: 20px;
  }
  .post-hero .blog-meta {
    margin-bottom: 12px;
  }
  .post-hero h1 {
    font-size: clamp(30px, 6vw, 56px);
    margin-bottom: 16px;
  }
  .post-lede {
    font-size: 18px;
  }
  /* Footer mega can overflow horizontally — clip it hard */
  .footer-mega {
    font-size: clamp(64px, 18vw, 140px);
    overflow: hidden;
    max-width: 100vw;
  }
  /* Error code on 404 page */
  .error-code {
    font-size: clamp(100px, 22vw, 200px);
  }
  /* Images always constrained */
  img, svg, video, iframe {
    max-width: 100%;
    height: auto;
  }
  /* Tables and code blocks */
  table, pre {
    max-width: 100%;
    overflow-x: auto;
  }
}

/* Mobile menu dropdown must escape header's overflow clip */
.nav { overflow: visible; }

/* ============ SOCIAL ICONS ============ */
.social-links {
  display: flex;
  gap: 12px;
  align-items: center;
}
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--bg);
  transition: all 0.3s var(--ease);
  border: 1px solid rgba(255,255,255,0.12);
}
.social-icon:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.25);
}
.social-icon svg {
  width: 18px;
  height: 18px;
}

/* ============ LEGAL PAGES ============ */
.legal-content {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.7;
}
.legal-content .lede {
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 48px 0 20px;
}
.legal-content h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 32px 0 12px;
}
.legal-content p {
  margin-bottom: 16px;
  color: var(--ink);
}
.legal-content ul,
.legal-content ol {
  list-style: initial;
  padding-left: 24px;
  margin-bottom: 20px;
}
.legal-content ul li,
.legal-content ol li {
  margin-bottom: 8px;
  color: var(--ink);
}
.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(42, 114, 222, 0.3);
  text-underline-offset: 3px;
  transition: all 0.2s var(--ease);
}
.legal-content a:hover {
  text-decoration-color: var(--accent);
}
.legal-content strong {
  font-weight: 600;
  color: var(--ink);
}
.legal-content .legal-date {
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 14px;
}
.legal-content .cookie-warning {
  border-radius: var(--radius-md);
}

@media (max-width: 720px) {
  .legal-content h2 { font-size: 24px; margin: 36px 0 16px; }
  .legal-content h3 { font-size: 16px; }
  .legal-content .lede { font-size: 17px; }
}

/* ============ HERO ADDRESS ============ */
.hero-address {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  margin-bottom: 28px;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 14px;
  color: var(--ink);
  transition: all 0.3s var(--ease);
}
.hero-address svg {
  color: var(--accent);
  flex-shrink: 0;
}
.hero-address a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.hero-address:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}
.hero-address:hover a {
  color: var(--accent);
}
@media (max-width: 720px) {
  .hero-address {
    font-size: 13px;
    padding: 9px 14px;
  }
  .hero-address a {
    /* Ensure long address wraps on mobile */
    display: inline-block;
  }
}

/* ============ HERO SPLIT LAYOUT (v11.5 final) ============ */
/* Goal: Entire hero fits in viewport on common laptop screens (900-1080px tall) */

.hero.hero-split {
  padding: 40px var(--gutter) 0;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  min-height: auto;
  display: block;
  overflow: visible;
}

.hero-split-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: start;
  width: 100%;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 2;
  min-width: 0;
}

.hero-split .hero-kicker {
  margin-bottom: 0;
  font-size: 13px;
}

.hero-split .hero-title {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 0;
  max-width: none;
}

.hero-split .hero-lede {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 0;
  max-width: 520px;
}

.hero-split .hero-address {
  margin: 0;
  align-self: flex-start;
  font-size: 13px;
  padding: 8px 14px;
}

.hero-split .hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
}

.hero-split .hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-top: 20px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  max-width: 520px;
  border-left: none;
  border-right: none;
  border-bottom: none;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  opacity: 1;
  animation: none;
}

.hero-split .hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  background: transparent;
  border: none;
}

.hero-split .hero-stat .stat-value {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0;
}

.hero-split .hero-stat .stat-value .accent {
  color: var(--accent);
}

.hero-split .hero-stat .stat-label {
  font-size: 11px;
  color: var(--mute);
  line-height: 1.3;
  letter-spacing: 0.01em;
  font-weight: 400;
}

/* RIGHT SIDE: media container anchored to viewport */
.hero-right {
  position: relative;
  min-width: 0;
  height: 100%;
}

.hero-media {
  position: relative;
  width: 100%;
  /* Height anchored to viewport, never overflows */
  height: calc(100vh - 320px);
  min-height: 340px;
  max-height: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #E6E7E9 0%, #D4D6D9 100%);
}

.hero-media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mute);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 40px;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Space between hero and next section */
.hero-split + .section {
  padding-top: 80px;
}

/* Tablet */
@media (max-width: 1080px) {
  .hero-split-inner {
    gap: 40px;
  }
  .hero-split .hero-title {
    font-size: clamp(36px, 4.5vw, 56px);
  }
  .hero-media {
    height: calc(100vh - 180px);
    max-height: 520px;
  }
}

/* Mobile: stack vertically, image full width below text */
@media (max-width: 860px) {
  .hero.hero-split {
    padding: 40px var(--gutter) 20px;
  }
  .hero-split-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-split .hero-title {
    font-size: clamp(40px, 9vw, 56px);
  }
  .hero-split .hero-lede {
    font-size: 15px;
  }
  .hero-split .hero-stats {
    max-width: 100%;
    gap: 14px;
  }
  .hero-split .hero-stat .stat-value {
    font-size: 17px;
  }
  .hero-media {
    /* On mobile: aspect-ratio-based, no viewport height */
    height: auto;
    aspect-ratio: 4/3;
    max-height: none;
    min-height: auto;
  }
  .hero-split + .section {
    padding-top: 60px;
  }
  /* Preserve pre-compaction mobile spacing (v11.31 desktop-only compaction) */
  .hero-left { gap: 18px; }
  .stats-band { margin-top: 0; }
  .stats-band + .section { padding-top: 56px; }
}

@media (max-width: 480px) {
  .hero-split .hero-stats {
    gap: 10px;
  }
  .hero-split .hero-stat .stat-value {
    font-size: 15px;
  }
  .hero-split .hero-stat .stat-label {
    font-size: 10px;
  }
  .hero-media {
    aspect-ratio: 1/1;
  }
}

/* ============ CLINIC GALLERY SECTION ============ */
.clinic-gallery {
  background: var(--bg-warm);
  padding: 120px 0;
  overflow: hidden;
}

.clinic-gallery-head {
  max-width: var(--container);
  margin: 0 auto 64px;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
}

.clinic-gallery-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 5vw, 76px);
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--ink);
  margin: 0;
}
.clinic-gallery-head h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--mute);
}

.clinic-gallery-sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
  max-width: 440px;
}

/* Grid layout: 3 photos, asymmetric */
.clinic-gallery-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  height: 640px;
}

.clinic-photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #DCDDE0 0%, #C5C7CA 100%);
}

.clinic-photo:nth-child(1) {
  grid-row: 1 / span 2;
}

.clinic-photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mute);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 24px;
}

.clinic-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease);
}

.clinic-photo:hover img {
  transform: scale(1.05);
}

/* Caption overlay */
.clinic-photo-caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(26, 26, 26, 0.85);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  z-index: 2;
}

/* Responsive */
@media (max-width: 860px) {
  .clinic-gallery {
    padding: 80px 0;
  }
  .clinic-gallery-head {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }
  .clinic-gallery-head h2 {
    font-size: clamp(36px, 8vw, 48px);
  }
  .clinic-gallery-sub {
    font-size: 15px;
  }
  .clinic-gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    height: auto;
    gap: 12px;
  }
  .clinic-photo {
    aspect-ratio: 1/1;
  }
  .clinic-photo:nth-child(1) {
    grid-column: 1 / span 2;
    grid-row: auto;
    aspect-ratio: 16/9;
  }
}

@media (max-width: 480px) {
  .clinic-gallery-grid {
    grid-template-columns: 1fr;
  }
  .clinic-photo:nth-child(1) {
    grid-column: auto;
  }
}

/* ============ STATS BAND (below hero) ============ */
.stats-band {
  background: var(--bg);
  padding: 0 var(--gutter) 0;
  margin: -32px 0 0 0;
  position: relative;
  z-index: 2;
}

.stats-band-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-cell {
  background: var(--bg);
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.3s var(--ease);
}

.stat-cell:hover {
  background: var(--bg-warm);
}

.stat-cell-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.1;
}

.stat-cell-value .accent {
  color: var(--accent);
  margin-left: 2px;
}

.stat-cell-label {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--mute);
  line-height: 1.35;
  letter-spacing: 0.01em;
}
.stat-cell-label .stat-link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 200ms ease-out, border-color 200ms ease-out;
}
.stat-cell-label .stat-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.stat-cell-label .stat-link-logo {
  flex-shrink: 0;
  display: block;
}

/* Reduce space after stats band and before "Com treballem" */
.stats-band {
  margin-bottom: 0;
  padding-bottom: 0;
}
.stats-band + .section {
  padding-top: 40px;
}

/* Tablet */
@media (max-width: 1080px) {
  .stats-band {
    margin-top: 0;
  }
  .stats-band-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-cell {
    padding: 22px 24px;
  }
  .stat-cell-value {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .stats-band-inner {
    grid-template-columns: 1fr;
  }
  .stat-cell {
    padding: 20px 20px;
  }
  .stats-band + .section {
    padding-top: 60px;
  }
}

/* ============ TREATMENTS CTA (end of home services) ============ */
.treatments-cta {
  margin-top: 48px;
  padding: 40px 48px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}

.treatments-cta-text p {
  font-size: 16px;
  color: var(--ink);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .treatments-cta {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    gap: 20px;
    text-align: left;
  }
  .treatments-cta .btn {
    justify-self: start;
  }
}

/* ============ PROFILE PAGES (fisioterapeutes) ============ */
.profile-hero { padding: 72px 0 56px; }
.profile-hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.profile-hero-text .eyebrow { margin-bottom: 20px; }
.profile-hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--ink);
  margin-bottom: 16px;
}
.profile-subtitle {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--mute);
  line-height: 1.5;
  margin-bottom: 32px;
  max-width: 500px;
}
.profile-hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.profile-about {
  padding: 72px 0;
  background: var(--bg-cool);
}
.profile-about .eyebrow { margin-bottom: 16px; }
.profile-about h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 32px;
  max-width: 720px;
}
.profile-about-body { max-width: 68ch; }
.profile-about-body p {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 20px;
}
.profile-about-body p:last-child { margin-bottom: 0; }

.profile-formacio { padding: 72px 0; }
.profile-formacio .eyebrow { margin-bottom: 16px; }
.profile-formacio h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 32px;
}
.formacio-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 780px;
}
.formacio-list li {
  padding: 14px 0 14px 20px;
  border-left: 2px solid var(--accent);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  line-height: 1.5;
}

.profile-idiomes {
  padding: 56px 0;
  background: var(--bg-warm);
}
.profile-idiomes .eyebrow { margin-bottom: 20px; }
.idiomes-list { display: flex; flex-wrap: wrap; gap: 10px; }
.idioma-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.profile-cta {
  padding: 100px 0;
  background: var(--bg-warm);
  text-align: center;
}
.profile-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 14px;
}
.profile-cta p {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--mute);
  margin: 0 auto 32px;
  max-width: 540px;
}

/* Team card photos on /equip/ — fill container */
.team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Mobile adaptations for profile pages */
@media (max-width: 860px) {
  .profile-hero { padding: 40px 0 40px; }
  .profile-hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .profile-hero-photo {
    order: -1;
    max-width: 360px;
    margin: 0 auto;
  }
  .profile-about, .profile-formacio { padding: 56px 0; }
  .profile-idiomes { padding: 40px 0; }
  .profile-cta { padding: 72px 0; }
}

/* ============ BLOG / ACTUALITAT EXTRAS ============ */
.blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  padding: 0 var(--gutter);
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  min-height: 40px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--mute);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  user-select: none;
}
.filter-chip:hover { border-color: var(--ink); color: var(--ink); }
.filter-chip.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

@media (max-width: 860px) {
  .blog-filter {
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
  }
  .filter-chip {
    padding: 10px 16px;
    font-size: 13px;
  }
}

.author-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--mute);
}
.author-info a { color: inherit; text-decoration: none; }
.author-info a:hover { color: var(--ink); }
.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--bg-warm);
}
.blog-card .author-info { color: var(--mute); }

/* ============================================
   MICRO-ANIMATIONS (cards + CTAs)
   ============================================ */

/* Accessibility — respect user's motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Cards: unified lift + shadow on hover (hover-capable pointers only) */
@media (hover: hover) {
  .treatment-card,
  .team-card,
  .blog-card {
    transition: transform 200ms ease-out, box-shadow 200ms ease-out;
  }
  .treatment-card:hover,
  .team-card:hover,
  .blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -18px rgba(26, 26, 26, 0.18);
  }

  /* Image zoom inside card when card is hovered */
  .treatment-card .treatment-img img,
  .team-card .team-img,
  .blog-card .blog-img {
    transition: transform 300ms ease-out;
  }
  .treatment-card:hover .treatment-img img,
  .team-card:hover .team-img,
  .blog-card:hover .blog-img {
    transform: scale(1.03);
  }
}

/* Touch devices: neutralize sticky hover states */
@media not all and (hover: hover) {
  .treatment-card:hover,
  .team-card:hover,
  .blog-card:hover {
    transform: none;
    box-shadow: none;
  }
  .treatment-card:hover .treatment-img img,
  .team-card:hover .team-img,
  .blog-card:hover .blog-img {
    transform: none;
  }
  .treatment-card:hover::after { opacity: 0; }
}

/* CTA buttons: subtle scale + brightness on hover */
.btn-primary {
  transition: transform 150ms ease-out, filter 150ms ease-out, color 0.3s var(--ease), border-color 0.3s var(--ease);
}
@media (hover: hover) {
  .btn-primary:hover {
    transform: scale(1.02);
    filter: brightness(1.05);
  }
}

/* ============================================
   SCROLL REVEAL + KEN BURNS + LINK UNDERLINE
   ============================================ */

/* Ken Burns: slow cinematic zoom on home hero photo only */
@keyframes kenburns {
  0%   { transform: scale(1) translate(0, 0); }
  50%  { transform: scale(1.08) translate(-1%, -1%); }
  100% { transform: scale(1) translate(0, 0); }
}
.hero-media img {
  animation: kenburns 40s ease-in-out infinite;
}

/* Treatment card CTA ("Més →") animated underline */
.treatment-more { position: relative; }
.treatment-more::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1.5px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 300ms ease-out;
}
@media (hover: hover) {
  .treatment-more::after { transform: scaleX(0); }
  .treatment-card:hover .treatment-more::after { transform: scaleX(1); }
}

/* Reduced-motion overrides for this block */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero-media img { animation: none; }
  .link-arrow::after,
  .treatment-more::after {
    transition: none;
    transform: scaleX(1);
  }
}

/* === NOSALTRES — team photo placeholder === */
.team-photo-placeholder {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg-warm) 0%, #D4D6D9 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.placeholder-content { text-align: center; padding: 32px; }
.placeholder-label {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.55;
}
.placeholder-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  margin-top: 6px;
  color: var(--mute);
}

/* === MOBILE RESERVA SHIMMER === */
@keyframes mobile-reserva-shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.mobile-bar .btn-mobile-primary {
  background: linear-gradient(
    135deg,
    var(--ink) 0%,
    color-mix(in srgb, var(--ink) 88%, var(--accent-dark) 12%) 50%,
    var(--ink) 100%
  );
  background-size: 200% 200%;
  animation: mobile-reserva-shimmer 6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .mobile-bar .btn-mobile-primary {
    animation: none;
    background: var(--ink);
  }
}

/* ============================================
   RESERVAR MODAL
   ============================================ */

.reservar-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: visibility 0s 300ms, opacity 300ms ease-out;
}
.reservar-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: visibility 0s 0s, opacity 300ms ease-out;
}
.reservar-modal.widget-ready .reservar-modal-loading {
  display: none;
}
.reservar-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 300ms ease-out;
}
.reservar-modal.is-open .reservar-modal-overlay {
  opacity: 1;
}
.reservar-modal-container {
  position: relative;
  z-index: 1;
  background: var(--white, #fff);
  border-radius: 16px;
  width: 90vw;
  max-width: 720px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 300ms ease-out, opacity 300ms ease-out;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.reservar-modal.is-open .reservar-modal-container {
  transform: scale(1);
  opacity: 1;
}
.reservar-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line, #eaeaea);
  flex-shrink: 0;
}
.reservar-modal-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink, #1a1a1a);
}
.reservar-modal-close {
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink, #1a1a1a);
  transition: background-color 200ms;
}
.reservar-modal-close:hover,
.reservar-modal-close:focus-visible {
  background: rgba(0, 0, 0, 0.05);
}
.reservar-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px 28px;
}
.reservar-modal-widget-container {
  min-height: 400px;
}
.reservar-modal-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  color: var(--mute, #888);
}
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--line, #eaeaea);
  border-top-color: var(--accent, #2A72DE);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
  margin-bottom: 16px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.reservar-modal-fallback {
  margin-top: 20px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--mute, #666);
}
.reservar-modal-fallback a {
  color: var(--accent, #2A72DE);
  text-decoration: underline;
}
body.modal-open {
  overflow: hidden;
}
@media (max-width: 768px) {
  .reservar-modal-container {
    width: 95vw;
    max-height: 95vh;
    border-radius: 12px;
  }
  .reservar-modal-header { padding: 16px 20px; }
  .reservar-modal-body { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .reservar-modal-overlay,
  .reservar-modal-container {
    transition: none;
  }
  .loading-spinner { animation: none; }
}

/* === TEAM SUPPORT PHOTO (individual /equip/ pages) === */
.team-support-photo {
  max-width: 900px;
  margin: 48px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.12);
}
.team-support-photo picture,
.team-support-photo img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 768px) {
  .team-support-photo {
    margin: 32px auto;
    border-radius: 8px;
  }
}

/* === PAGE HERO IMAGE (tècniques sin treatment-hero-grid) === */
.page-hero-image {
  max-width: var(--container);
  margin: 0 auto 60px;
  padding: 0 var(--gutter);
}
.page-hero-image picture { display: block; }
.page-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  aspect-ratio: 16/10;
  object-fit: cover;
}
@media (max-width: 860px) {
  .page-hero-image {
    margin: 0 auto 40px;
  }
}

/* === CAREERS — values, job card, candidacy form === */
.careers-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.careers-value {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}
.careers-value h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--ink);
}
.careers-value p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--mute);
  margin: 0;
}

.job-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid rgba(26,26,26,0.08);
  box-shadow: 0 25px 60px -30px rgba(26,26,26,0.12);
  max-width: 920px;
  margin: 0 auto;
}
.job-card .job-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.job-card .job-tag .status-dot { background: var(--accent); }
.job-card h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--ink);
}
.job-card .job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin: 16px 0 28px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--mute);
}
.job-card .job-meta strong { color: var(--ink); font-weight: 500; }
.job-card .job-section { margin-top: 28px; }
.job-card .job-section h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 12px;
}
.job-card .job-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.job-card .job-section ul li {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  padding-left: 24px;
  position: relative;
  margin-bottom: 10px;
}
.job-card .job-section ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
}
.job-card p {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 16px;
}
.job-card .job-cta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Hero in-page action buttons (careers) */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-actions .hero-action-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-actions .hero-action-link .arrow {
  display: inline-block;
  font-size: 14px;
  transition: transform 0.2s var(--ease);
}
.hero-actions .hero-action-link:hover .arrow {
  transform: translateY(2px);
}
@media (max-width: 580px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .hero-action-link { width: 100%; justify-content: center; }
}

/* Collapsible job card */
.job-card .job-meta-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--mute);
  margin-bottom: 16px;
}
.job-card .job-meta-compact strong { color: var(--ink); font-weight: 500; }
.job-card .job-summary {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 24px;
}
.job-card .job-details {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s var(--ease);
}
.job-card .job-details[data-expanded="true"] {
  max-height: 2000px;
  margin-bottom: 8px;
}
.job-card .job-details > .job-meta { margin-top: 0; }
.job-card .job-toggle .chevron {
  display: inline-block;
  transition: transform 0.3s var(--ease);
  margin-left: 6px;
  font-size: 12px;
  line-height: 1;
}
.job-card .job-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.job-card .job-toggle .label-expanded { display: none; }
.job-card .job-toggle[aria-expanded="true"] .label-collapsed { display: none; }
.job-card .job-toggle[aria-expanded="true"] .label-expanded { display: inline; }
@media (prefers-reduced-motion: reduce) {
  .job-card .job-details { transition: none; }
  .job-card .job-toggle .chevron { transition: none; }
}

.candidacy-form {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid rgba(26,26,26,0.06);
}
.candidacy-form .field {
  margin-bottom: 24px;
}
.candidacy-form label {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 8px;
}
.candidacy-form .req { color: var(--accent); margin-left: 4px; }
.candidacy-form input[type="text"],
.candidacy-form input[type="email"],
.candidacy-form input[type="tel"],
.candidacy-form select,
.candidacy-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid rgba(26,26,26,0.12);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.candidacy-form input:focus,
.candidacy-form select:focus,
.candidacy-form textarea:focus,
.candidacy-form input[type="file"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(42,114,222,0.15);
}
.candidacy-form textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.55;
}
.candidacy-form input[type="file"] {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--mute);
  background: var(--bg);
  border: 1px dashed rgba(26,26,26,0.18);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
}
.candidacy-form input[type="file"]::-webkit-file-upload-button,
.candidacy-form input[type="file"]::file-selector-button {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  background: var(--ink);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  margin-right: 14px;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.candidacy-form input[type="file"]::-webkit-file-upload-button:hover,
.candidacy-form input[type="file"]::file-selector-button:hover {
  background: var(--accent);
}
.candidacy-form .field-hint {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--mute);
  margin-top: 6px;
}
.candidacy-form .cv-notice {
  background: rgba(42,114,222,0.06);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  border-radius: 4px;
  margin: 0 0 24px;
  font-family: var(--font-body);
}
.candidacy-form .cv-notice strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.candidacy-form .cv-notice p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--mute);
  margin: 0;
}
.candidacy-form .cv-notice a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.candidacy-form .field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}
.candidacy-form .field-checkbox input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}
.candidacy-form .field-checkbox label {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--mute);
  line-height: 1.5;
  cursor: pointer;
}
.candidacy-form .field-checkbox label a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.candidacy-form .form-submit {
  width: 100%;
  margin-top: 8px;
  position: relative;
}
.candidacy-form .form-submit[disabled] {
  opacity: 0.7;
  cursor: wait;
}
.candidacy-form .form-submit .spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: candidacy-spin 0.8s linear infinite;
  margin-left: 10px;
  vertical-align: middle;
}
.candidacy-form .form-submit.is-loading .spinner { display: inline-block; }
@keyframes candidacy-spin { to { transform: rotate(360deg); } }

.candidacy-success {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
  border: 1px solid rgba(42,114,222,0.18);
}
.candidacy-success .check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 28px;
}
.candidacy-success h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--ink);
}
.candidacy-success p {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--mute);
  margin: 0 0 28px;
}

@media (max-width: 860px) {
  .careers-values { grid-template-columns: 1fr; gap: 16px; }
  .job-card { padding: 32px 24px; }
  .job-card .job-cta { flex-direction: column; }
  .job-card .job-cta .btn { width: 100%; text-align: center; justify-content: center; }
  .candidacy-form { padding: 32px 24px; }
  .candidacy-success { padding: 40px 24px; }
}

/* ============================================
   PROMO POPUP (Dia de la Mare campaign)
   ============================================ */

.promo-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}

.promo-popup.is-open {
  opacity: 1;
  visibility: visible;
}

.promo-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
}

.promo-popup-content {
  position: relative;
  background: var(--white);
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  text-align: center;
  padding: 0;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.4);
  transform: scale(0.92);
  transition: transform 0.4s var(--ease);
}

.promo-popup.is-open .promo-popup-content {
  transform: scale(1);
}

.promo-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  font-size: 24px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-weight: 300;
  line-height: 1;
}

.promo-popup-close:hover {
  background: var(--white);
  transform: scale(1.05);
}

.promo-popup-content picture,
.promo-popup-content img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px 16px 0 0;
}

.promo-popup-cta {
  margin: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 480px) {
  .promo-popup-content {
    max-width: 100%;
  }
  .promo-popup-cta {
    margin: 20px;
    width: calc(100% - 40px);
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .promo-popup,
  .promo-popup-content {
    transition: none;
  }
}

/* ============ /regala/ — bonos index ============ */
.section-bonos-list { padding: 40px 0 120px; }

.bonos-list-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.bono-list-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  text-decoration: none;
  color: inherit;
}

.bono-list-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px -15px rgba(15, 23, 42, 0.18);
}

.bono-list-card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-cool);
}

.bono-list-card-image picture { display: block; width: 100%; height: 100%; }
.bono-list-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.bono-list-card:hover .bono-list-card-image img { transform: scale(1.04); }

.bono-list-card-body {
  padding: 36px 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

.bono-list-card-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.bono-list-card-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
  line-height: 1.1;
}

.bono-list-card-description {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--mute);
  margin: 0;
}

.bono-list-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 12px;
}

.bono-list-card-price { display: flex; flex-direction: column; gap: 4px; }

.bono-list-card-price-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bono-list-card-price-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1;
}

.bono-list-card-cta {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bono-list-card-cta .arrow { transition: transform 0.3s var(--ease); display: inline-block; }
.bono-list-card:hover .bono-list-card-cta .arrow { transform: translateX(4px); }

@media (max-width: 720px) {
  .bono-list-card { grid-template-columns: 1fr; }
  .bono-list-card-image { aspect-ratio: 3/2; }
  .bono-list-card-body { padding: 24px; }
  .bono-list-card-title { font-size: 24px; }
  .section-bonos-list { padding: 24px 0 80px; }
}

/* ============ /regala/[bono]/ — bono detail ============ */
.bono-detail-hero {
  padding: 40px var(--gutter) 80px;
}

.bono-detail-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "breadcrumb breadcrumb"
    "media info";
  column-gap: 64px;
  row-gap: 32px;
  align-items: start;
}

.bono-detail-breadcrumb { grid-area: breadcrumb; margin: 0; }
.bono-detail-media { grid-area: media; align-self: start; }
.bono-detail-info { grid-area: info; align-self: center; }

.bono-detail-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-cool);
  box-shadow: 0 20px 60px -25px rgba(15, 23, 42, 0.25);
}

.bono-detail-media picture { display: block; }
.bono-detail-media img { width: 100%; height: auto; display: block; }

.bono-detail-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bono-detail-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.bono-detail-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0;
  line-height: 1.05;
}

.bono-detail-lede {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  color: var(--mute);
  margin: 0;
  max-width: 520px;
}

.pack-selector {
  border: none;
  padding: 0;
  margin: 12px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pack-selector-legend {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  padding: 0;
}

.pack-option {
  display: block;
  cursor: pointer;
  position: relative;
}

.pack-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pack-option-content {
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 18px 22px;
  background: var(--white);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.pack-option:hover .pack-option-content {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.pack-option input[type="radio"]:checked + .pack-option-content {
  border-color: var(--accent);
  background: rgba(42, 114, 222, 0.04);
}

.pack-option input[type="radio"]:focus-visible + .pack-option-content {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.pack-option-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 6px;
}

.pack-option-sessions {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.pack-option-price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.pack-option-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--mute);
}

.bono-detail-info .btn {
  margin-top: 8px;
  align-self: flex-start;
}

.bono-detail-payment-info {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--mute);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .bono-detail-hero { padding: 24px var(--gutter) 60px; }
  .bono-detail-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "breadcrumb"
      "media"
      "info";
    column-gap: 0;
    row-gap: 28px;
  }
  .bono-detail-info .btn { width: 100%; justify-content: center; }
}

/* "Què inclou" section */
.section-bono-info {
  background: var(--bg-cool);
  padding: 100px 0;
}

.section-bono-info h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0;
  line-height: 1.05;
}

.bono-info-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
}

.bono-info-list li {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--mute);
  padding-left: 28px;
  position: relative;
}

.bono-info-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 14px;
  height: 1px;
  background: var(--accent);
}

.bono-info-list li strong {
  color: var(--ink);
  font-weight: 500;
}

/* "Com funciona" section */
.section-com-funciona { padding: 120px 0; }

.section-com-funciona h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0;
  line-height: 1.05;
}

.com-funciona-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.paso { display: flex; flex-direction: column; gap: 12px; }

.paso-numero {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
}

.paso-titulo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.paso-texto {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--mute);
  margin: 0;
}

@media (max-width: 860px) {
  .section-bono-info { padding: 64px 0; }
  .section-com-funciona { padding: 64px 0; }
  .com-funciona-grid { grid-template-columns: 1fr; gap: 28px; margin-top: 40px; }
}
