/* ============================================================
   PAGES — TECNICAS (Premium / Apple-like)
   Archivo: public/css/pages/tecnicas.css
   ============================================================ */

/* ============================================================
   Tokens tech (scopeado a páginas técnicas)
   ============================================================ */
.page-fisioterapia-clinica,
.page-podologia,
[class*="page-fisioterapia-"]{
  --tech-card-radius: 22px;
  --tech-card-border: rgba(15, 23, 42, 0.10);
  --tech-card-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --tech-soft-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  --tech-accent: var(--primary-500);
  --tech-accent-2: var(--primary-600);
}

/* Fondos suaves en páginas concretas */
.page-fisioterapia-clinica{ background: var(--grey-50); }
.page-podologia{ background: var(--grey-50); }

/* ============================================================
   HERO — base (para páginas tech SIN franja eléctrica)
   ============================================================ */
.section.section--tech-hero{
  padding-block: clamp(72px, 9vw, 120px);
  background: linear-gradient(180deg, var(--color-brand), var(--color-brand-dark));
  border-bottom: 0;
}

.section.section--tech-hero .section-header{
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(16px, 2.2vw, 24px);
}

.section.section--tech-hero .section-title{
  color: #fff;
  letter-spacing: 1px;
}

.section.section--tech-hero .section-title::after{
  content: "";
  display: block;
  width: 92px;
  height: 3px;
  margin: 14px auto 0 auto;
  border-radius: 999px;
  background: rgba(255,255,255,0.65);
}

.section.section--tech-hero .section-intro{
  color: rgba(255,255,255,0.92);
  max-width: 70ch;
  margin-inline: auto;
}

/* ============================================================
   Split reverse (no está en sections.css)
   ============================================================ */
.section-split--reverse > *:first-child{ order: 2; }
.section-split--reverse > *:last-child{ order: 1; }

@media (max-width: 880px){
  .section-split--reverse > *{ order: initial; }
}

/* ============================================================
   Cards premium (si existen en otras páginas)
   ============================================================ */
.section--soft .cards-grid .card,
.cards-grid.services-grid .card{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(38,199,213,0.14);
  box-shadow: 0 12px 26px rgba(15,23,42,0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.section--soft .cards-grid .card::after,
.cards-grid.services-grid .card::after{
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-500), rgba(38,199,213,0.14));
  opacity: 0.85;
}

.section--soft .cards-grid .card__title,
.cards-grid.services-grid .card__title{
  margin: 0;
  padding: 14px 16px 22px 16px;
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 0.35px;
  font-weight: 700;
  color: var(--neutral-900);
}

@media (hover: hover){
  .section--soft .cards-grid .card:hover,
  .cards-grid.services-grid .card:hover{
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(15,23,42,0.10);
    border-color: rgba(38,199,213,0.30);
  }

  .section--soft .cards-grid .card:hover::after,
  .cards-grid.services-grid .card:hover::after{
    opacity: 1;
  }
}

/* ============================================================
   Responsive (solo padding de componentes)
   ============================================================ */
@media (max-width: 880px){
  .split-spotlight{ padding: 16px; }
  .split-feature{ padding: 14px; }
}

/* ============================================================
   HERO ELÉCTRICO (GLOBAL técnicas)
   Requisitos:
   - El HTML debe incluir .tech-banner
   - <main> debe llevar class="page-tech--electric"
   ============================================================ */
.page-tech--electric .section.section--tech-hero{
  background: transparent;
  padding-block: 0;
}

.page-tech--electric .tech-banner{
  position: relative;
  width: 100%;
  background: #26C7D5;
  padding-top: clamp(18px, 3vw, 36px);
  padding-bottom: clamp(24px, 3.8vw, 48px);
}

.page-tech--electric .tech-banner__header{
  max-width: none;
  margin: 0;
  text-align: center;
}

.page-tech--electric .tech-banner .section-title,
.page-tech--electric .tech-banner .section-intro{
  color: #fff;
}

.page-tech--electric .tech-banner .section-title::after{
  background: rgba(255,255,255,0.70);
}

.page-tech--electric .tech-banner .section-title{
  text-shadow: 0 0 1px rgba(15, 23, 42, 0.25);
  letter-spacing: 1px;
}

/* ============================================================
   Bloque indicaciones / contraindicaciones (alineación superior)
   (Solo si usas split-feature--top y safety-col)
   ============================================================ */
.safety-col{
  display: flex;
  flex-direction: column;
}

.safety-col h3{
  margin-top: 0;
  margin-bottom: 14px;
}

.split-feature--top{
  align-items: flex-start;
}

/* ============================================================
   SPOTLIGHT (vídeo + texto)
   ============================================================ */
.split-spotlight{
  margin-top: 26px;
  padding: clamp(18px, 2.8vw, 28px);
  border-radius: var(--tech-card-radius);
  border: 1px solid var(--tech-card-border);
  background:
    radial-gradient(700px 260px at 0% 0%,
      rgba(38,199,213,0.20),
      rgba(38,199,213,0.00) 60%),
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.88));
  box-shadow: var(--tech-card-shadow);
}

.split-spotlight .media-video{ margin: 0; }

.split-spotlight .media-video video{
  border-radius: 18px;
  box-shadow: var(--tech-soft-shadow);
}

/* Separación limpia VIDEO / CONTENIDO */
.split-spotlight > .split-content{
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  padding-left: clamp(20px, 3vw, 32px);
}

.split-spotlight > .split-content::before{
  content: "";
  position: absolute;
  left: 0;
  top: 14%;
  bottom: 14%;
  width: 1px;
  background: rgba(15, 23, 42, 0.12);
}

@media (max-width: 880px){
  .split-spotlight > .split-content{
    padding-left: 0;
    align-self: auto;
    display: block;
  }

  .split-spotlight > .split-content::before{
    display: none;
  }
}

/* ============================================================
   LISTAS — premium tech (GLOBAL técnicas)
   - NO cambia tamaños tipográficos (solo markers/espaciado/skin)
   - Scopeado a .section-prose para no tocar UI
   ============================================================ */
.page-tech--electric{
  --list-accent: var(--color-brand);
  --list-accent-soft: rgba(38,199,213,0.18);
  --list-ink: rgba(15,23,42,0.92);
  --list-border: rgba(15,23,42,0.10);
}

/* Listas dentro de prosa */
.page-tech--electric .section-prose ul,
.page-tech--electric .section-prose ol{
  margin-top: 0.9rem;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

/* Items “píldora” (solo cuando NO están en split-feature) */
.page-tech--electric .section-prose li{
  position: relative;
  padding: 10px 12px 10px 44px;
  border: 1px solid var(--list-border);
  border-radius: 14px;
  background: rgba(255,255,255,0.70);
  color: var(--list-ink);
  line-height: 1.6;
  box-shadow: 0 10px 22px rgba(15,23,42,0.06);
}

@media (hover:hover){
  .page-tech--electric .section-prose li:hover{
    border-color: rgba(38,199,213,0.32);
    box-shadow: 0 14px 28px rgba(15,23,42,0.08);
    transform: translateY(-1px);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  }
}

/* UL bullets */
.page-tech--electric .section-prose ul li::before{
  content: "";
  position: absolute;
  left: 14px;
  top: 0.95em;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #fff 0%, rgba(255,255,255,0.15) 70%);
  border: 2px solid rgba(38,199,213,0.70);
  box-shadow: 0 6px 16px rgba(38,199,213,0.22);
}

/* OL numeración */
.page-tech--electric .section-prose ol{
  counter-reset: techStep;
}

.page-tech--electric .section-prose ol li{
  counter-increment: techStep;
}

.page-tech--electric .section-prose ol li::before{
  content: counter(techStep);
  position: absolute;
  left: 12px;
  top: 0.7em;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(180deg, var(--color-brand), var(--color-brand-dark));
  box-shadow: 0 10px 22px rgba(38,199,213,0.22);
  border: 1px solid rgba(255,255,255,0.35);
}

/* Strong dentro de listas */
.page-tech--electric .section-prose li strong{
  color: rgba(15,23,42,0.98);
}

/* Mobile: suaviza el look */
@media (max-width: 640px){
  .page-tech--electric .section-prose li{
    padding: 10px 12px 10px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(15,23,42,0.05);
  }

  .page-tech--electric .section-prose ul li::before{
    left: 12px;
  }
}

/* ============================================================
   LISTAS COMPACTAS en SPLIT-FEATURE (para no descompensar imagen)
   ============================================================ */
.page-tech--electric .split-feature .section-prose ul,
.page-tech--electric .split-feature .section-prose ol{
  gap: 8px;
}

.page-tech--electric .split-feature .section-prose li{
  padding: 6px 0 6px 34px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.page-tech--electric .split-feature .section-prose ul li::before{
  left: 0;
  top: 0.95em;
  width: 10px;
  height: 10px;
  border-width: 2px;
  box-shadow: 0 4px 10px rgba(38,199,213,0.18);
}

.page-tech--electric .split-feature .section-prose ol li::before{
  left: 0;
  top: 0.72em;
  width: 18px;
  height: 18px;
  font-size: 0.8rem;
  box-shadow: 0 6px 14px rgba(38,199,213,0.18);
}

@media (hover:hover){
  .page-tech--electric .split-feature .section-prose li:hover{
    box-shadow: none;
    transform: none;
  }
}

/* ============================================================
   PROSE — micro-detalles consistentes (sin tocar tipografías)
   ============================================================ */
.page-tech--electric .section-prose h3{
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
}

.page-tech--electric .section-prose h3 + ul,
.page-tech--electric .section-prose h3 + ol{
  margin-top: 0.5rem;
}

.page-tech--electric .section-prose ul + h3,
.page-tech--electric .section-prose ol + h3{
  margin-top: 1.6rem;
}

/* ============================================================
   CONTRAINDICACIONES — layout limpio sin imagen
   ============================================================ */
.page-tech--electric .tech-contra{
  align-items: flex-start;
  gap: clamp(28px, 4vw, 48px);
}

/* Cada columna */
.page-tech--electric .tech-contra__block{
  max-width: 520px;
}

/* Títulos de grupo */
.page-tech--electric .tech-contra__block h3{
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Diferenciación visual sutil */
.page-tech--electric .tech-contra__block:first-child h3{
  color: #9b1c1c;
}

.page-tech--electric .tech-contra__block:last-child h3{
  color: var(--color-brand-dark);
}

/* En móvil: apilado limpio */
@media (max-width: 880px){
  .page-tech--electric .tech-contra{
    gap: 24px;
  }
}

/* ============================================================
   CONTRAINDICACIONES — 2 columnas limpias (GLOBAL TECNICAS)
   Uso: .tech-columns-2 > .section-prose
   ============================================================ */
.page-tech--electric .tech-columns-2{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  align-items: flex-start;
  margin-top: clamp(20px, 3vw, 32px);
}

/* Ajuste fino de títulos internos */
.page-tech--electric .tech-columns-2 .section-prose h3{
  margin-top: 1rem;
  margin-bottom: 0.75rem;
  text-align: center;
  font-weight: 600;
}

/* Evita que las listas “crezcan” demasiado aquí */
.page-tech--electric .tech-columns-2 .section-prose ul{
  margin-top: 0.5rem;
}

/* Responsive: apilar en móvil */
@media (max-width: 880px){
  .page-tech--electric .tech-columns-2{
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ============================================================
   PROSE CENTRADA — bloques editoriales largos
   ============================================================ */
.prose-centered{
  margin-inline: auto;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 22px;
  background: linear-gradient(
    180deg,
    rgba(38,199,213,0.08),
    rgba(38,199,213,0.03)
  );
  box-shadow: 0 18px 40px rgba(15,23,42,0.06);
}

/* Mantener lectura cómoda */
.prose-centered p{
  margin-left: auto;
  margin-right: auto;
}

/* En móvil: menos “card feeling” */
@media (max-width: 640px){
  .prose-centered{
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(15,23,42,0.05);
  }
}

/* ============================================================
   SPLIT FEATURE — versión con imagen más alta
   ============================================================ */
.split-feature--tall .media-placeholder{
  min-height: 540px;
}

.split-feature--tall .media-placeholder img{
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* ============================================================
   SPLIT FEATURE — versión más alta (solo bloques clave)
   ============================================================ */
.split-feature--hero .media-placeholder{
  min-height: 600px;
}

.split-feature--hero .media-placeholder img{
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* ============================================================
   LISTA LIMPIA (sin estilo card/píldora tech)
   ============================================================ */
.page-tech--electric .list-clean{
  list-style: disc;
  padding-left: 1.2rem;
  display: block;
}

.page-tech--electric .list-clean li{
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  margin-bottom: 0.6rem;
}

.page-tech--electric .list-clean li::before{
  display: none;
}

/* ============================================================
   Centrar títulos dentro de bloque de contraindicaciones
   ============================================================ */
.contra-block .section-prose h3{
  text-align: center;
  margin-bottom: 1rem;
}

/* ============================================================
   PROSE CENTRADA — versión limpia (SIN caja) para esta página
   Usa en HTML: class="section-prose prose-centered-plain"
   ============================================================ */
.prose-centered-plain{
  max-width: 1200px;
  margin: clamp(28px, 4vw, 60px) auto;
  text-align: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.prose-centered-plain p{
  font-size: clamp(1.08rem, 1.2vw, 1.18rem);
  line-height: 1.9;
  color: var(--neutral-800);
  font-weight: 400;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   Intro de lista alineada como los items pero sin marcador
   ============================================================ */
.page-tech--electric .list-intro{
  padding-left: 44px;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: var(--color-text-soft);
  border: 0;
  background: transparent;
  box-shadow: none;
}

.page-tech--electric .list-intro::before{
  display: none;
}

.prose-compact{
  margin: 24px auto 0 auto;
}

/* ============================================================
   MENOPAUSIA — 3 columnas
   ============================================================ */
.page-tech--electric .tech-columns-3{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 40px);
  align-items: start;
  margin-top: clamp(18px, 3vw, 28px);
}

/* Responsive */
@media (max-width: 1024px){
  .page-tech--electric .tech-columns-3{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px){
  .page-tech--electric .tech-columns-3{
    grid-template-columns: 1fr;
  }
}
/* ============================================================
   SPLIT FEATURE — versión MEGA alta (migrar a tecnicas.css)
   ============================================================ */
.split-feature--mega .media-placeholder {
  min-height: 820px;
}
 
.split-feature--mega .media-placeholder img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
/* ============================================================
   TECH TAGS (migrar a tecnicas.css)
   ============================================================ */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}
 
.tech-tag {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(38,199,213,0.10);
  border: 1px solid rgba(38,199,213,0.25);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--neutral-900);
  text-align: center;
  transition: all 160ms ease;
}
 
@media (hover: hover) {
  .tech-tag:hover {
    background: rgba(38,199,213,0.18);
    border-color: rgba(38,199,213,0.40);
    transform: translateY(-1px);
  }
}
 
.section-prose h5 {
  color: var(--color-text-soft);
  font-weight: 600;
}

/* =========================================
   TARIFAS — sección footer / técnica
   ========================================= */

.section-footer {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.tarifa--footer {
  position: relative;
  width: 100%;
  margin: 2.5rem auto 0;
  padding: 2rem 2rem 1.8rem;
  border: 1px solid rgba(48, 165, 176, 0.45);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.tarifa--footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 84px;
  height: 4px;
  background: #30a5b0;
  border-radius: 999px;
  transform: translateX(-50%);
}

.tarifa--footer .tarifa__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.2rem;
}

.tarifa--footer .tarifa__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--color-heading);
}

.tarifa--footer .tarifa__badge {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.tarifa--footer .tarifa__badge-price {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-heading);
}

.tarifa--footer .tarifa__badge-sub {
  font-size: 1.1rem;
  color: var(--color-text-soft);
}

.tarifa--footer .tarifa__lines {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.tarifa--footer .tarifa__line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.05rem;
}

.tarifa--footer .tarifa__label {
  color: var(--color-text);
  white-space: nowrap;
}

.tarifa--footer .tarifa__dots {
  flex: 1;
  height: 1px;
  background: rgba(15, 23, 42, 0.12);
}

.tarifa--footer .tarifa__value {
  font-weight: 700;
  color: var(--color-heading);
  white-space: nowrap;
}
.tarifas-fullbleed {
  position: relative;
  isolation: isolate;
}

.tarifas-fullbleed::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--grey-50);
  z-index: -1;
}

@media (max-width: 640px) {
  .tarifa--footer {
    padding: 1.5rem 1.25rem 1.35rem;
    border-radius: 18px;
  }

  .tarifa--footer .tarifa__title {
    font-size: 1.05rem;
  }

  .tarifa--footer .tarifa__badge-price {
    font-size: 2.1rem;
  }

  .tarifa--footer .tarifa__line {
    font-size: 0.98rem;
  }
}
@media (max-width: 640px) {
  .tarifa--footer .tarifa__line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem;
  align-items: start;
}

  .tarifa--footer .tarifa__label {
    white-space: normal;
    line-height: 1.4;
  }

  .tarifa--footer .tarifa__dots {
    display: none;
  }

  .tarifa--footer .tarifa__value {
    align-self: flex-end;
    margin-top: 0.1rem;
  }
}