/* Mejoras de interfaz (30 de septiembre de 2026): acciones de cita unificadas,
   barra fija en móvil, tratamientos agrupados, portada compacta y accesibilidad. */

/* Acciones de cita: WhatsApp (principal) y llamada (secundaria) en toda la web */
.phone-icon { display: block; width: 20px; height: 20px; flex: 0 0 20px; }
.button-call { background: white; color: var(--navy); border-color: #c5d4df; gap: 10px; }
.button-call:hover { border-color: var(--navy); }
.button-gold { gap: 10px; }
.study-request .study-request-actions { gap: 12px; }
.study-price-card .study-request-note { color: #d4e0eb; }
.contact-section .button-call, .biomechanics .button-call, .study-price-card .button-call { background: transparent; color: white; border-color: #58789a; }
.contact-section .button-call:hover, .biomechanics .button-call:hover, .study-price-card .button-call:hover { border-color: white; }
.visit-card .study-request-actions { flex-direction: column; align-items: stretch; }
.visit-card .study-request-actions .button { width: 100%; }
.site-dialog .button { gap: 10px; }

/* Barra fija inferior en móvil */
.mobile-actions { display: none; }

/* Tratamientos agrupados por necesidad (portada) */
.treatment-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.treatment-group { background: var(--pale); border-radius: var(--radius); padding: 30px 32px 18px; }
.treatment-group h3 { font-size: 1.45rem; margin-bottom: 8px; }
.treatment-group > p { color: var(--muted); font-size: .9375rem; margin: 0 0 14px; }
.treatment-group ul { list-style: none; margin: 0; padding: 0; }
.treatment-group li + li { border-top: 1px solid #d3e1eb; }
.treatment-group a { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 48px; font-size: 1rem; color: var(--navy); }
.treatment-group a:hover { color: var(--blue); }
.treatment-group a span { font-size: 1.1rem; color: var(--blue); }
.all-treatments-link { margin-top: 18px; }

/* Página de tratamientos agrupada */
.catalog-group + .catalog-group { margin-top: 64px; }
.catalog-group-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.catalog-group-heading h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
.catalog-group-heading p { color: var(--muted); margin: 0; max-width: 420px; }

/* Proceso y precios de plantillas (portada) */
.process-steps { list-style: none; margin: 0 0 36px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.process-steps li { border-top: 1px solid var(--rule); padding-top: 20px; }
.process-steps .care-number { margin-bottom: 14px; }
.process-steps h3 { font-size: 1.3rem; margin-bottom: 8px; }
.process-steps p { color: var(--muted); font-size: .9375rem; margin: 0; }
.process-prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 12px; }
.process-price { display: flex; flex-direction: column; gap: 6px; padding: 24px 26px; border: 1px solid var(--rule); border-top: 3px solid var(--gold); border-radius: 16px; background: white; }
.process-price:hover { border-color: var(--gold); }
.process-price span { font-size: 1rem; color: var(--navy); }
.process-price strong { font-size: 2.2rem; font-weight: 500; letter-spacing: -.04em; color: var(--navy); }
.process-price small { font-size: .875rem; color: var(--muted); line-height: 1.5; }

/* Equipo compacto y colaboraciones (portada) */
.team-compact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 14px; }
.team-card { display: grid; grid-template-columns: 170px 1fr; gap: 24px; align-items: start; background: white; border-radius: var(--radius); padding: 22px; }
.team-card-photo.photo { aspect-ratio: 1; border-radius: 16px; }
.team-card h3 { font-size: 1.45rem; margin: 0 0 10px; }
.team-card p:not(.member-role) { color: var(--muted); font-size: .9375rem; margin: 0; }
.team-card .team-card-meta { margin-top: 10px; font-size: .875rem; }
.collaborations-strip { margin-top: 40px; padding-top: 26px; border-top: 1px solid #d3e1eb; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.collaborations-strip h3 { font-size: 1rem; letter-spacing: 0; margin: 0; color: var(--muted); font-weight: 500; }
.collaborations-strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.collaborations-strip li { background: white; border: 1px solid var(--rule); border-radius: 100px; padding: 8px 16px; font-size: .9375rem; color: var(--navy); }
.collaborations-strip li span { color: var(--blue); margin-right: 8px; font-size: .875rem; }

/* Zonas táctiles de al menos 24 px (WCAG 2.2) */
.price-list tbody th a { display: inline-block; padding-block: 4px; }
.contact-inner address a, .clinic-hours > a { display: inline-flex; align-items: center; min-height: 32px; }

@media (max-width: 1000px) {
  .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-compact { grid-template-columns: 1fr; }
}

@media (max-width: 750px) {
  /* La barra inferior sustituye al botón de la cabecera */
  .site-header .header-booking { display: none; }
  .mobile-actions { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--rule); box-shadow: 0 -6px 20px rgba(18, 52, 82, .08); }
  .mobile-actions .button { width: auto; margin: 0; min-height: 50px; padding: 12px 14px; font-size: 1rem; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

  /* Portada: la foto entra en la primera pantalla */
  .hero .hero-photo { order: -1; }
  .hero-photo.photo { aspect-ratio: 16 / 10; }
  .hero { padding-top: 20px; gap: 22px; }

  .treatment-groups, .process-prices { grid-template-columns: 1fr; }
  .treatment-group { padding: 24px 22px 12px; }
  .team-card { grid-template-columns: 110px 1fr; gap: 16px; padding: 16px; }
  .catalog-group-heading { display: block; }
  .catalog-group-heading p { margin-top: 10px; }
}

@media (max-width: 480px) {
  .process-steps { grid-template-columns: 1fr; gap: 20px; }
}

/* Marca: franja «por qué HS», promesa en el pie y enlace a aseguradoras en las fichas */
.why-hs { padding-block: 34px 6px; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.why-list li { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border-radius: 16px; background: var(--pale); border-left: 3px solid var(--gold); }
.why-list strong { font-size: 1.125rem; font-weight: 500; color: var(--navy); letter-spacing: -.02em; }
.why-list span { font-size: .9375rem; color: var(--muted); }
.footer-navigation .footer-promise { color: var(--navy); font-size: .9375rem; line-height: 1.5; max-width: 260px; margin-top: 4px; }
.visit-card .visit-insurance { margin: 18px 0 20px; }
.visit-card .visit-insurance a { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-size: .9375rem; font-weight: 500; color: var(--navy); }
.visit-card .visit-insurance a:hover { color: var(--blue); }
.biomechanics h2 { line-height: 1.12; }
@media (max-width: 1000px) { .why-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .why-list { gap: 10px; } .why-list li { padding: 14px 14px; } .why-list strong { font-size: 1rem; } .why-list span { font-size: .875rem; } }

/* Enlaces dentro del texto (SEO interno): visibles como enlace sin romper la lectura */
.treatment-prose p a, .member-copy p a, .editorial-split p a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.treatment-prose p a:hover, .member-copy p a:hover, .editorial-split p a:hover { color: var(--navy); }
