@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Oswald:wght@400;600;700&display=swap');

:root {
  --salud-canvas: #fcfbf8;
  --salud-ink: #121518;
  --salud-surface: #f2efe9;
  --salud-surface-dark: #1a1d21;
  --salud-accent: #c85a32;
  --salud-accent-hover: #aa4622;
  --salud-subtle: #656d75;
  --salud-border: #d8d3c8;
  --salud-banner-grad: linear-gradient(135deg, #121518 0%, #2c323a 100%);
  --salud-accent-grad: linear-gradient(90deg, #c85a32 0%, #e07a5f 100%);
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--salud-canvas);
  color: var(--salud-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

body {
  overflow-x: hidden;
}

/* Scroll progress indicator */
.estilo-progress-line {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--salud-accent);
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 10000;
  animation: scroll-progress auto linear;
  animation-timeline: scroll();
}

@keyframes scroll-progress {
  to { transform: scaleX(1); }
}

/* Scroll-driven view reveal */
.segmento-reveal {
  animation: fade-in-up auto linear both;
  animation-timeline: view();
  animation-range: entry 10% cover 30%;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header & Navigation (Preset H) */
.estilo-header-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--salud-border);
  position: sticky;
  top: 0;
  z-index: 900;
  padding: 1.2rem 2rem;
}

.estilo-header-holder {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.marca-emblema {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--salud-ink);
}

.marca-icono {
  width: 32px;
  height: 32px;
  fill: var(--salud-accent);
}

.marca-nombre {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1;
}

.rutina-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.rutina-links a {
  text-decoration: none;
  color: var(--salud-ink);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: color 0.2s ease;
}

.rutina-links a:hover {
  color: var(--salud-accent);
}

/* Hamburger CSS-only */
.menu-toggle-input {
  display: none;
}

.menu-toggle-label {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle-label span {
  width: 26px;
  height: 2px;
  background-color: var(--salud-ink);
}

/* Buttons */
.accion-trigger {
  display: inline-block;
  background: var(--salud-ink);
  color: #ffffff;
  padding: 1rem 2.2rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--salud-ink);
  transition: all 0.25s ease;
  cursor: pointer;
  border-radius: 0;
}

.accion-trigger:hover {
  background: var(--salud-accent);
  border-color: var(--salud-accent);
  color: #ffffff;
}

.accion-ghost {
  background: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
}

.accion-ghost:hover {
  background: #ffffff;
  color: var(--salud-ink);
}

/* Index Page Elements */
.vital-intro-stage {
  position: relative;
  padding: 8dvh 2rem 10dvh;
  max-width: 1300px;
  margin: 0 auto;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vital-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('img/bg.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  z-index: -1;
  pointer-events: none;
}

.linea-palabra {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 8rem);
  line-height: 0.9;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.linea-palabra:nth-child(1) {
  margin-left: 0;
}

.linea-palabra:nth-child(2) {
  margin-left: 15%;
  color: var(--salud-accent);
}

.linea-palabra:nth-child(3) {
  margin-left: 30%;
  text-decoration: underline;
  text-decoration-color: var(--salud-accent);
  text-underline-offset: 8px;
}

.vital-sub-lead {
  margin-top: 3.5rem;
  max-width: 520px;
  margin-left: auto;
}

.vital-sub-lead p {
  font-size: 1.15rem;
  color: var(--salud-subtle);
  margin-bottom: 2rem;
}

/* 3-col masonry text */
.masonry-text-wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 10dvh 2rem;
}

.masonry-columns {
  columns: 3;
  column-gap: 3rem;
  column-rule: 1px solid var(--salud-border);
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 2rem;
}

.masonry-item h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.masonry-item p {
  color: var(--salud-subtle);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.masonry-item svg {
  width: 24px;
  height: 24px;
  fill: var(--salud-accent);
}

.full-banner-stage {
  position: relative;
  width: 100%;
  height: 50vh;
  background-image: url('img/bg2.webp');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 0 2rem;
}

.full-banner-stage::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 21, 24, 0.65);
}

.full-banner-content {
  position: relative;
  z-index: 2;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  color: #ffffff;
}

.full-banner-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.8rem);
  text-transform: uppercase;
  max-width: 700px;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.full-banner-content p {
  max-width: 500px;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Inline manifesto lines */
.manifiesto-secuencia {
  max-width: 1300px;
  margin: 0 auto;
  padding: 10dvh 2rem;
}

.manifiesto-linea {
  display: flex;
  align-items: baseline;
  padding: 2rem 0;
  border-bottom: 1px solid var(--salud-border);
  gap: 2rem;
}

.manifiesto-linea:last-child {
  border-bottom: none;
}

.manifiesto-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--salud-accent);
  font-weight: 700;
  min-width: 40px;
}

.manifiesto-head {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  text-transform: uppercase;
  min-width: 280px;
}

.manifiesto-desc {
  color: var(--salud-subtle);
  font-size: 1rem;
}

/* Rotated step-numbers */
.pasos-asimetricos {
  max-width: 1300px;
  margin: 0 auto;
  padding: 10dvh 2rem;
}

.pasos-titulo {
  font-family: var(--font-display);
  font-size: 2.8rem;
  text-transform: uppercase;
  margin-bottom: 4rem;
}

.pasos-horizontal {
  display: flex;
  gap: 4rem;
  justify-content: space-between;
}

.paso-bloque {
  position: relative;
  flex: 1;
}

.paso-bloque:nth-child(2) {
  margin-top: 3rem;
}

.paso-bloque:nth-child(3) {
  margin-top: 1rem;
}

.paso-numero-bg {
  position: absolute;
  top: -3rem;
  left: -1rem;
  font-family: var(--font-display);
  font-size: 7rem;
  font-weight: 700;
  color: var(--salud-ink);
  opacity: 0.12;
  transform: rotate(-10deg);
  user-select: none;
  pointer-events: none;
}

.paso-contenido {
  position: relative;
  z-index: 2;
}

.paso-contenido h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.paso-contenido p {
  color: var(--salud-subtle);
  font-size: 0.95rem;
}

/* CTA strip */
.franja-cta {
  background: var(--salud-ink);
  color: #ffffff;
  padding: 6rem 2rem;
}

.franja-holder {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.franja-holder h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  text-transform: uppercase;
  line-height: 1.1;
  max-width: 700px;
}

/* Expert Page Specifics */
.editorial-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  min-height: 80vh;
}

.editorial-bio {
  width: 50%;
  padding: 8dvh 4rem 8dvh 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.editorial-img-side {
  width: 50%;
  background-image: url('img/bg3.webp');
  background-size: cover;
  background-position: center;
  min-height: 500px;
}

.capitular-texto::first-letter {
  font-family: var(--font-display);
  font-size: 4.5rem;
  float: left;
  line-height: 0.8;
  margin-right: 0.75rem;
  color: var(--salud-accent);
  font-weight: 700;
}

.stats-plain-wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 6dvh 2rem 10dvh;
  display: flex;
  gap: 5rem;
  border-bottom: 1px solid var(--salud-border);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-cifra {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--salud-ink);
  line-height: 1;
}

.stat-etiqueta {
  color: var(--salud-subtle);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}

/* Reserve Page Specifics */
.reserva-stage {
  max-width: 1300px;
  margin: 0 auto;
  padding: 8dvh 2rem;
}

.reserva-titulo-magno {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 4rem;
  line-height: 1.05;
}

.formulario-limpio {
  max-width: 640px;
  margin: 0 auto 6rem;
}

.campo-linea {
  margin-bottom: 2.5rem;
  position: relative;
}

.campo-linea input[type="text"],
.campo-linea input[type="tel"],
.campo-linea input[type="email"],
.campo-linea textarea {
  width: 100%;
  border: none;
  border-bottom: 2px solid var(--salud-border);
  background: transparent;
  padding: 0.8rem 0;
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--salud-ink);
  outline: none;
  transition: border-color 0.2s;
}

.campo-linea input:focus,
.campo-linea textarea:focus {
  border-color: var(--salud-accent);
}

.campo-linea label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--salud-subtle);
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.checkbox-linea {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  font-size: 0.9rem;
  color: var(--salud-subtle);
}

.checkbox-linea input {
  margin-top: 0.2rem;
  accent-color: var(--salud-accent);
}

.cards-reserva-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 6rem;
}

.tarjeta-info-item {
  background: var(--salud-surface);
  padding: 2.5rem 2rem;
  border-top: 3px solid var(--salud-ink);
}

.tarjeta-info-item h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.lista-puntos-color {
  list-style: none;
  margin-top: 1.5rem;
}

.lista-puntos-color li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.dot-num {
  width: 22px;
  height: 22px;
  background: var(--salud-accent);
  color: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

.faq-bloque {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--salud-border);
  padding: 1.5rem 0;
}

.faq-pregunta {
  font-family: var(--font-display);
  font-size: 1.3rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--salud-ink);
}

.faq-respuesta {
  color: var(--salud-subtle);
  font-size: 0.95rem;
}

.contacto-mailto-wrap {
  text-align: center;
  margin: 4rem 0;
  font-size: 1.1rem;
}

.contacto-mailto-wrap a {
  color: var(--salud-accent);
  text-decoration: underline;
  font-weight: 600;
}

/* Legal Pages & Thank You */
.legal-documento {
  max-width: 900px;
  margin: 0 auto;
  padding: 8dvh 2rem 10dvh;
  min-height: 70vh;
}

.legal-documento h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.legal-documento h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  text-transform: uppercase;
  margin: 2.5rem 0 1rem;
}

.legal-documento p {
  color: var(--salud-subtle);
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

.agradecimiento-box {
  max-width: 800px;
  margin: 0 auto;
  padding: 10dvh 2rem;
  text-align: center;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.agradecimiento-box h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.agradecimiento-img {
  width: 100%;
  max-width: 500px;
  height: 250px;
  object-fit: cover;
  margin: 2rem 0;
  border-bottom: 3px solid var(--salud-accent);
}

/* Footer (Shared) */
.estilo-footer-bar {
  background: var(--salud-surface-dark);
  color: #ffffff;
  padding: 5rem 2rem 3rem;
}

.footer-holder {
  max-width: 1300px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand .marca-nombre {
  color: #ffffff;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  color: #a0a6ac;
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-disclaimer {
  border-top: 1px solid #2e343c;
  padding-top: 2rem;
  margin-bottom: 2rem;
  color: #858d95;
  font-size: 0.85rem;
  line-height: 1.5;
}

.footer-copy {
  color: #5d646d;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Cookie Banner */
.galleta-noticia {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--salud-surface-dark);
  color: #ffffff;
  padding: 1.5rem 2rem;
  z-index: 9999;
  border-top: 2px solid var(--salud-accent);
  display: none;
}

.galleta-holder {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.galleta-texto {
  font-size: 0.9rem;
  color: #d0d4d8;
  max-width: 700px;
}

.galleta-botones {
  display: flex;
  gap: 1rem;
}

.galleta-btn-ok {
  background: var(--salud-accent);
  color: #ffffff;
  border: none;
  padding: 0.6rem 1.4rem;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.galleta-btn-no {
  background: transparent;
  color: #a0a6ac;
  border: 1px solid #4a515a;
  padding: 0.6rem 1.4rem;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

/* Responsive Rules */
@media (max-width: 992px) {
  .masonry-columns {
    columns: 1;
  }
  .pasos-horizontal {
    flex-direction: column;
    gap: 3rem;
  }
  .paso-bloque:nth-child(2),
  .paso-bloque:nth-child(3) {
    margin-top: 0;
  }
  .editorial-grid {
    flex-direction: column;
  }
  .editorial-bio, .editorial-img-side {
    width: 100%;
  }
  .editorial-img-side {
    height: 350px;
  }
  .stats-plain-wrap {
    flex-direction: column;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle-label {
    display: flex;
  }
  .rutina-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--salud-border);
  }
  .menu-toggle-input:checked ~ .rutina-links {
    display: flex;
  }
  .linea-palabra:nth-child(2),
  .linea-palabra:nth-child(3) {
    margin-left: 0;
  }
  .franja-holder {
    flex-direction: column;
    align-items: flex-start;
  }
  .manifiesto-linea {
    flex-direction: column;
    gap: 0.5rem;
  }
}