/* ============================================================
   MAIN.CSS — Sanados por Amor
   Layout de secciones: hero, VSL, problema, solución,
   timeline, testimonios, quiénes somos, programas, FAQ, CTA
   ============================================================ */

/* ============================================================
   SECCIÓN BASE
   ============================================================ */

section {
  position: relative;
  overflow: hidden;
}

.section-pad {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}

.section-pad-sm {
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
}

/* ============================================================
   1. HERO
   ============================================================ */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;        /* subtítulo/CTAs al fondo */
  padding-top: 100px;
  padding-bottom: var(--space-16);
  background: url('../assets/images/imagenhero.png') center center / cover no-repeat;
  color: var(--color-white);
  overflow: hidden;
}

/* Overlay degradado — separado para poder animarlo con GSAP */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(125, 10, 25, 0.82) 0%, rgba(26, 10, 11, 0.90) 100%);
  pointer-events: none;
  z-index: 0;
  will-change: opacity;
}

/* ---- SCROLL STORY: estados iniciales de las líneas del hero ---- */

/* Cada línea del h1 arranca invisible — GSAP las anima */
.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  will-change: transform, opacity;
}

/* Subtítulo y CTAs también arrancan invisibles */
.hero-subheadline,
.hero-actions {
  opacity: 0;
  transform: translateY(30px);
  will-change: transform, opacity;
}

/* En mobile se muestran de inmediato — la clase .story-mobile-visible
   la agrega scroll-story.js cuando detecta pantalla pequeña */

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.story-mobile-visible .hero-phrase,
.story-mobile-visible .hero-subheadline,
.story-mobile-visible .hero-actions {
  animation: heroFadeUp 0.55s ease forwards;
  opacity: 0; /* parte invisible hasta que animation la revela */
}

/* Textura sutil de grano — z-index encima del overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 1; /* encima de .hero-overlay (z:0), debajo del contenido (z:2+) */
}

/* Partículas de luz — encima del overlay y la textura */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 85%, rgba(212, 168, 83, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(212, 168, 83, 0.05) 0%, transparent 35%);
  pointer-events: none;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 5;                       /* encima de frases (z:3) */
  max-width: 780px;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(var(--text-4xl), 7vw, var(--text-7xl));
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--color-white);
}

.hero-headline em {
  font-style: italic;
  color: var(--color-gold);
}

.hero-subheadline {
  font-size: clamp(var(--text-base), 2.5vw, var(--text-xl));
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.78);
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  margin-top: var(--space-2);
}

.hero-divider {
  width: 1px;
  height: 48px;
  background: rgba(212, 168, 83, 0.40);
  margin-top: var(--space-8);
}

/* Contenedor de frases emocionales */
.hero-phrases {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
  padding: 0 var(--space-8);
}

.hero-phrase {
  position: absolute;
  width: 100%;
  max-width: 900px;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(var(--text-4xl), 7vw, var(--text-7xl));
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--color-white);
  opacity: 0;
  transform: translateY(24px);
  will-change: transform, opacity;
  padding: 0 var(--space-4);
}

/* Mobile: frases visibles apiladas, sin pin */
.story-mobile-visible .hero-phrase {
  position: relative;
  opacity: 1 !important;
  transform: none !important;
  margin-bottom: var(--space-5);
  font-size: clamp(var(--text-2xl), 7vw, var(--text-4xl));
  text-align: center;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Partículas Canvas — encima del overlay, debajo del contenido */
#hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255,255,255,0.40);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  animation: scroll-bounce 2s ease-in-out infinite;
}

.scroll-indicator svg {
  width: 20px;
  height: 20px;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   2. VSL — Video Sales Letter
   ============================================================ */

.vsl {
  background: var(--color-light);
  text-align: center;
}

.vsl-content {
  max-width: 1100px;
  margin-inline: auto;
}

.vsl-header {
  margin-bottom: var(--space-10);
}

.vsl-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.vsl-subtitle {
  font-size: var(--text-lg);
  color: rgba(26, 10, 11, 0.65);
  line-height: var(--leading-relaxed);
}

.vsl-video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.vsl-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.vsl-footer {
  margin-top: var(--space-12);
}

/* Card VSL — ancho completo */
.vsl-card {
  width: 100%;
  aspect-ratio: 16/9;
}


/* ============================================================
   3. EL PROBLEMA
   ============================================================ */

.problema {
  background: linear-gradient(160deg, #1A0A0B 0%, #7D0A19 100%);
  color: var(--color-white);
  text-align: center;
}

.problema-header {
  margin-bottom: var(--space-16);
}

.problema-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 900;
  letter-spacing: var(--tracking-tight);
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.problema-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-16);
}

.problema-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-8);
  text-align: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: transform var(--duration-normal) var(--ease-out);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Overlay oscuro sobre la imagen */
.problema-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 10, 11, 0.92) 0%,
    rgba(125, 10, 25, 0.70) 50%,
    rgba(26, 10, 11, 0.40) 100%
  );
  transition: background var(--duration-normal);
  z-index: 0;
}

.problema-card:hover::before {
  background: linear-gradient(
    to top,
    rgba(26, 10, 11, 0.98) 0%,
    rgba(125, 10, 25, 0.80) 50%,
    rgba(26, 10, 11, 0.50) 100%
  );
}

.problema-card:hover {
  transform: translateY(-6px);
}

/* Zoom sutil en la imagen al hover */
.problema-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
  z-index: -1;
}

.problema-card:hover {
  transform: translateY(-6px);
}

/* Todo el contenido sobre el overlay */
.problema-card > * {
  position: relative;
  z-index: 1;
}

.problema-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-6);
  background: rgba(212, 168, 83, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.problema-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: var(--leading-snug);
  color: var(--color-white);
  margin-bottom: var(--space-3);
}

.problema-card p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: rgba(255,255,255,0.60);
  font-style: italic;
}

.problema-transition {
  max-width: 640px;
  margin-inline: auto;
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.80);
  position: relative;
}

.problema-transition::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 120px;
  color: rgba(212, 168, 83, 0.10);
  position: absolute;
  top: -40px;
  left: -20px;
  line-height: 1;
  pointer-events: none;
}

/* ============================================================
   4. SOLUCIÓN
   ============================================================ */

.solucion {
  background: var(--color-white);
  text-align: center;
}

.solucion-header {
  margin-bottom: var(--space-16);
}

.solucion-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

/* ============================================================
   5. CÓMO FUNCIONA — TIMELINE
   ============================================================ */

.como-funciona {
  background: var(--color-light);
  text-align: center;
}

.como-funciona-header {
  margin-bottom: var(--space-16);
}

/* Desktop: timeline horizontal */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: var(--space-2);
  align-items: start;
}

/* Línea dorada conectora */
.timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(100% / 18);
  right: calc(100% / 18);
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-gold) 10%,
    var(--color-gold) 90%,
    transparent
  );
  z-index: 0;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  position: relative;
  z-index: 1;
  padding: 0 var(--space-1);
}

.timeline-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(190, 18, 38, 0.35);
  flex-shrink: 0;
  border: 3px solid var(--color-light);
  transition: all var(--duration-normal) var(--ease-out);
}

.timeline-step:hover .timeline-number {
  background: var(--color-dark);
  transform: scale(1.1);
  box-shadow: var(--shadow-red);
}

.timeline-label {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  line-height: var(--leading-snug);
}

.timeline-desc {
  font-size: var(--text-xs);
  color: rgba(26, 10, 11, 0.55);
  text-align: center;
  line-height: var(--leading-relaxed);
}

/* ============================================================
   6b. DETALLE DEL TRATAMIENTO
   ============================================================ */

.tratamiento {
  background: var(--color-light);
}

.tratamiento-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.tratamiento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.trat-card {
  background: var(--color-white);
  border: 1px solid rgba(26, 10, 11, 0.10);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--duration-normal), box-shadow var(--duration-normal);
}

.trat-card:hover {
  border-color: rgba(190, 18, 38, 0.20);
  box-shadow: var(--shadow-md, 0 4px 20px rgba(26,10,11,0.10));
}

.trat-card--gold {
  border-color: rgba(212, 168, 83, 0.45);
  background: rgba(212, 168, 83, 0.06);
}

.trat-week {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.trat-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trat-num--gold {
  background: var(--color-gold);
  color: var(--color-deep);
}

.trat-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-primary);
}

.trat-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-deep);
  line-height: var(--leading-tight);
}

.trat-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.trat-items li {
  font-size: var(--text-sm);
  color: rgba(26, 10, 11, 0.70);
  padding-left: var(--space-4);
  position: relative;
  line-height: var(--leading-snug);
}

.trat-items li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

.trat-card--gold .trat-items li::before {
  background: var(--color-gold);
}

.trat-sessions {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(26, 10, 11, 0.08);
  margin-top: auto;
}

.trat-sessions span {
  font-size: var(--text-xs);
  color: rgba(26, 10, 11, 0.45);
  line-height: var(--leading-snug);
}

@media (max-width: 1024px) {
  .tratamiento-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .tratamiento-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   6. TESTIMONIOS
   ============================================================ */

.testimonios {
  background: var(--color-light);
  color: var(--color-deep);
  text-align: center;
}

.testimonios-header {
  margin-bottom: var(--space-16);
}

.testimonios-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--color-deep);
  margin-bottom: var(--space-4);
}

.testimonios-subtitle {
  font-size: var(--text-lg);
  color: rgba(26,10,11,0.60);
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

/* ============================================================
   7. QUIÉNES SOMOS
   ============================================================ */

.quienes-somos {
  background: var(--color-white);
}

.quienes-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-12), 6vw, var(--space-20));
  align-items: center;
}

.founder-photo-wrapper {
  position: relative;
}

.founder-photo {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-xl);
  object-fit: cover;
  background: var(--color-primary-10);
  /* placeholder si no hay imagen */
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(26,10,11,0.25);
  font-size: var(--text-sm);
  /* La imagen real va aquí — PLACEHOLDER */
}

/* Decoración dorada del frame de la foto */
.founder-photo-wrapper::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  right: 16px;
  bottom: 16px;
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-xl);
  opacity: 0.40;
  pointer-events: none;
}

.founder-photo-wrapper::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--color-primary-10);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.quienes-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.quienes-text p {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: rgba(26, 10, 11, 0.70);
}

.quienes-text p.lead {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--color-text);
  opacity: 1;
}

/* ============================================================
   IMAGEN SEPARADORA
   ============================================================ */

.separador-imagen {
  width: 100%;
  overflow: hidden;
}

.separador-imagen img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ============================================================
   8. PROGRAMAS
   ============================================================ */

.programas {
  background: var(--color-light);
  text-align: center;
}

.programas-header {
  margin-bottom: var(--space-16);
}

.programas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: stretch;
}

/* ============================================================
   9. FAQ
   ============================================================ */

.faq {
  background: var(--color-white);
}

.faq-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(var(--space-12), 6vw, var(--space-20));
  align-items: start;
}

.faq-sidebar {
  position: sticky;
  top: 100px;
}

.faq-sidebar-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.faq-sidebar-text {
  font-size: var(--text-base);
  color: rgba(26, 10, 11, 0.65);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
}

/* ============================================================
   10. CTA FINAL
   ============================================================ */

.cta-final {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decoración de fondo */
.cta-final::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-final::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(125, 10, 25, 0.40) 0%, transparent 70%);
  pointer-events: none;
}

.cta-final-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.cta-final-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
}

.cta-final-text {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  opacity: 0.85;
}

.cta-final-phone {
  font-size: var(--text-xl);
  font-weight: 600;
  color: rgba(255,255,255,0.80);
  letter-spacing: var(--tracking-wide);
}

.cta-final-phone a {
  color: inherit;
  transition: color var(--duration-fast);
}

.cta-final-phone a:hover {
  color: var(--color-white);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── 1024px — tablet landscape ─────────────────────────────── */
@media (max-width: 1024px) {
  .solucion-grid { grid-template-columns: repeat(2, 1fr); }
  .programas-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .quienes-inner { grid-template-columns: 1fr; }
  .founder-photo-wrapper { max-width: 480px; margin-inline: auto; }
  .faq-inner { grid-template-columns: 1fr; }
  .faq-sidebar { position: static; }

  .timeline { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .timeline::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; }
  .timeline-step { flex-direction: row; align-items: flex-start; text-align: left; }
  .timeline-label, .timeline-desc { text-align: left; }

  /* Tratamiento */
  .tratamiento-grid { grid-template-columns: repeat(2, 1fr); }

  /* Precio */
  .program-card.featured { padding: var(--space-8) var(--space-6); }
}

/* ── 768px — tablet portrait / móvil ───────────────────────── */
@media (max-width: 768px) {

  /* Hero mobile */
  .hero {
    justify-content: flex-start;
    padding-top: 76px;
    padding-bottom: var(--space-10);
    min-height: 100dvh;
  }

  /* Frases: siguen absolutas — el carrusel JS las muestra de una en una */
  .hero-phrase {
    font-size: clamp(var(--text-2xl), 7vw, var(--text-4xl));
  }

  .hero-content {
    max-width: 100%;
    padding-top: var(--space-4);
  }

  .hero-subheadline {
    font-size: var(--text-base);
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Grids */
  .problema-grid { grid-template-columns: 1fr; max-width: 100%; }
  .testimonios-grid { grid-template-columns: 1fr; }
  .solucion-grid { grid-template-columns: 1fr; max-width: 100%; }
  .programas-grid { max-width: 100%; }

  /* Cards */
  .problema-card { min-height: 240px; aspect-ratio: unset; }
  .testimonial-card { aspect-ratio: 16/9; }
  .vsl-card { aspect-ratio: 16/10; }

  /* CTA final */
  .cta-final-title { font-size: clamp(var(--text-2xl), 6vw, var(--text-3xl)); }
  .cta-final-text { font-size: var(--text-base); }

  /* Tratamiento — 1 columna en móvil */
  .tratamiento-grid { grid-template-columns: 1fr; }

  /* Imagen separadora — altura menor en móvil */
  .separador-imagen img { max-height: 260px; object-position: top; }

  /* Modal de agendamiento — pantalla completa en móvil */
  .booking-modal { padding: 0; align-items: flex-end; }
  .booking-modal .modal-content { border-radius: var(--radius-xl) var(--radius-xl) 0 0; max-height: 92dvh; overflow-y: auto; }
}

/* ── 480px — móvil pequeño ──────────────────────────────────── */
@media (max-width: 480px) {
  :root { --container-pad: var(--space-4); }

  .hero-phrase { font-size: clamp(var(--text-xl), 6.5vw, var(--text-3xl)); padding: 0 var(--space-2); }
  .section-pad { padding-block: var(--space-12); }
  .problema-card { min-height: 200px; }
  .whatsapp-float { bottom: var(--space-4); right: var(--space-4); }
  .hero-actions .btn { padding: var(--space-4) var(--space-5); font-size: var(--text-base); }

  /* Tratamiento — padding compacto en pantallas pequeñas */
  .trat-card { padding: var(--space-6) var(--space-4); }
  .trat-title { font-size: var(--text-xl); }

  /* Separador imagen — altura mínima */
  .separador-imagen img { max-height: 200px; }

  /* Booking submit — texto más compacto */
  .booking-submit { font-size: var(--text-sm); }
}
