/* Guía rápida de Mi Ranchito (versión web). El teléfono está en phone.css; el PDF usa pdf.css. */
@font-face {
  font-family: 'Manrope';
  src: url('fonts/manrope-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --papel: #ffffff;
  --niebla: #f2f5f3;
  --linea: #dce5e0;
  --tinta: #0f1f18;
  --tinta-2: #4b5c54;
  --pino: #0b4a35;
  --noche: #062a1e;
  --turquesa: #13a39b;
  --turquesa-t: #0b7a74;
  --arete: #f4c430;
  --verde: #0d6e46;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 64px;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font: 500 1.0625rem/1.5 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img,
svg {
  max-width: 100%;
}
h1,
h2,
p,
ol,
dl,
dd {
  margin: 0;
}
b {
  font-weight: 750;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--turquesa);
  outline-offset: 3px;
  border-radius: 6px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.saltar {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--pino);
  color: #fff;
  font-weight: 700;
}
.saltar:focus {
  top: 10px;
}

/* ---------- Barra local (vidrio esmerilado) ---------- */
.localnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgb(15 31 24 / 0.08);
}
.localnav-in {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 1120px;
  height: 56px;
  margin: 0 auto;
  padding: 0 20px;
}
.marca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.marca svg {
  width: 30px;
  height: 30px;
}
.localnav-t {
  margin-left: auto;
  color: var(--tinta-2);
  font-size: 0.95rem;
}
.pill-btn {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 99px;
  background: var(--pino);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}
.pill-btn:hover {
  background: #0e5c42;
}

/* ---------- Tipografía ---------- */
h1 {
  font-size: clamp(2.7rem, 1.4rem + 5vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 800;
  text-wrap: balance;
}
h2 {
  font-size: clamp(2.1rem, 1.3rem + 2.9vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
  text-wrap: balance;
}
.lead {
  margin-top: 14px;
  max-width: 34ch;
  color: var(--tinta-2);
  font-size: clamp(1.15rem, 1rem + 0.55vw, 1.4rem);
  line-height: 1.38;
  text-wrap: pretty;
}

/* ---------- Pasos numerados ---------- */
.pasos {
  list-style: none;
  padding: 0;
  margin-top: 22px;
  counter-reset: paso;
  display: grid;
  gap: 14px;
  max-width: 40ch;
}
.pasos li {
  position: relative;
  padding-left: 42px;
  overflow-wrap: break-word;
  counter-increment: paso;
  line-height: 1.42;
}
.pasos li::before {
  content: counter(paso);
  position: absolute;
  left: 0;
  top: -2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e2efe9;
  color: var(--pino);
  font-weight: 700;
  font-size: 0.9rem;
}
.mas {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  margin-top: 14px;
  color: var(--turquesa-t);
  font-weight: 700;
  text-decoration: none;
}
.mas::after {
  content: '';
  width: 7px;
  height: 7px;
  margin-left: 4px;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
}
.mas:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Arete que se balancea ---------- */
.arete {
  display: inline-block;
  flex: none;
  transform-origin: 50% 11%;
  animation: balanceo 3.4s ease-in-out infinite alternate;
}
.arete svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
@keyframes balanceo {
  from {
    transform: rotate(-7deg);
  }
  to {
    transform: rotate(7deg);
  }
}

/* ---------- Bienvenido ---------- */
.hero {
  background: linear-gradient(180deg, #fff 0%, var(--niebla) 100%);
  overflow: hidden;
}
.hero-in {
  display: grid;
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 20px 0;
}
.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--pino);
  font-weight: 700;
  font-size: 1.1rem;
}
.arete-s {
  width: 26px;
}
.temas ol {
  list-style: none;
  padding: 0;
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.temas a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 99px;
  background: #fff;
  border: 1px solid var(--linea);
  color: var(--pino);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}
.temas a:hover {
  background: #e9f3ef;
  border-color: #b9d3c8;
}
.hero-fig {
  position: relative;
  height: 380px;
  display: flex;
  justify-content: center;
}
.hero-fig::before {
  content: '';
  position: absolute;
  inset: 8% -10% -20%;
  background: radial-gradient(50% 45% at 50% 45%, rgb(19 163 155 / 0.22), transparent 70%);
}
.phone-hero {
  --pw: 250px;
  position: relative;
}

/* ---------- Recorridos con el teléfono fijo ---------- */
.tour-in {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.tour-stage {
  display: none;
}
.step {
  padding: 56px 0 8px;
  border-bottom: 1px solid var(--linea);
}
.tour .step:last-child {
  border-bottom: 0;
}
.step-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}
.m-fig {
  margin-top: 22px;
}
.phone-m {
  --pw: clamp(132px, 38vw, 180px);
}

/* ---------- Sin señal ---------- */
.oscuro {
  background: var(--noche);
  color: #eef5f1;
}
.oscuro-in {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 20px;
}
.oscuro .lead {
  color: #b5ccc1;
}
.oscuro .pasos li::before {
  background: rgb(255 255 255 / 0.12);
  color: #7fe0d8;
}
.oscuro .mas {
  color: #7fe0d8;
}
.senal-fig {
  display: none;
}
.indicador {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.ind-pill {
  display: inline-grid;
  place-items: center start;
  height: 60px;
  width: 270px;
  padding: 0 24px;
  border-radius: 99px;
  background: rgb(255 255 255 / 0.07);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14);
  font-weight: 700;
  font-size: 1.3rem;
}
.ind {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.6s var(--ease);
}
.ind svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.st-off {
  color: var(--arete);
}
.st-sync {
  color: #4fd3c9;
}
.st-ok {
  color: #8fe3b5;
}
.gira {
  animation: gira 1.1s linear infinite;
}
@keyframes gira {
  to {
    transform: rotate(360deg);
  }
}
.indicador[data-state='off'] .st-off,
.indicador[data-state='sync'] .st-sync,
.indicador[data-state='ok'] .st-ok {
  opacity: 1;
  transform: none;
}
.ind-pasos {
  display: flex;
  gap: 4px;
  padding-left: 8px;
}
.ip {
  padding: 4px 10px;
  border-radius: 99px;
  color: #9db7ab;
  font-size: 0.85rem;
  transition: background-color 0.4s, color 0.4s;
}
.indicador[data-state='off'] .ip-off,
.indicador[data-state='sync'] .ip-sync,
.indicador[data-state='ok'] .ip-ok {
  background: rgb(255 255 255 / 0.12);
  color: #fff;
}
.dato {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding: 16px 20px;
  border-radius: 22px;
  background: rgb(255 255 255 / 0.06);
  max-width: 460px;
}
.dato .num {
  color: var(--arete);
  font-size: 3.4rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  min-width: 2ch;
}
.dato span:last-child {
  color: #c9dbd2;
  line-height: 1.35;
}

/* ---------- Cifras ---------- */
.cifras {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 22px;
  max-width: 480px;
}
.cifras div {
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--niebla);
}
.cifras dt {
  color: var(--tinta-2);
  font-size: 0.85rem;
}
.cifras dd {
  font-weight: 700;
  font-size: clamp(1.15rem, 0.9rem + 1vw, 1.75rem);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cifras .saldo {
  background: #e3f2ea;
}
.cifras .saldo dd {
  color: var(--verde);
}

/* ---------- Equipo, plan y ayuda ---------- */
.trio {
  background: var(--niebla);
}
.trio-in {
  display: grid;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 20px;
}
.tarjeta {
  position: relative;
  overflow: hidden;
  padding: 30px 26px 26px;
  border-radius: 28px;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.tarjeta h2 {
  font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.4rem);
  max-width: 12ch;
}
.tarjeta > p {
  margin-top: 10px;
  color: var(--tinta-2);
  font-size: 1.08rem;
  line-height: 1.4;
}
.tarjeta .pasos {
  margin-top: 18px;
  gap: 10px;
  font-size: 1rem;
}
.tarjeta .mas {
  margin-top: auto;
  padding-top: 12px;
}
.asoma {
  height: 210px;
  margin: 20px -26px -26px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  background: linear-gradient(180deg, #fff, #eef4f1);
  padding-top: 18px;
}
.phone-asoma {
  --pw: 236px;
}
.asoma-oscura {
  background: linear-gradient(180deg, var(--pino), #08382a);
}
.t-plan {
  background: var(--pino);
  color: #fff;
}
.t-plan > p {
  color: #cfe3da;
}
.t-plan h2 {
  max-width: 9ch;
}
.t-plan .pasos li::before {
  background: rgb(255 255 255 / 0.14);
  color: #fff;
}
.t-plan .mas {
  color: #8ee6de;
}
.arete-l {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 92px;
  filter: drop-shadow(0 10px 14px rgb(0 0 0 / 0.25));
}
.precio {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 16px !important;
  color: #fff !important;
  font-size: 1.05rem;
}
.precio b {
  font-size: 2.3rem;
  letter-spacing: -0.035em;
  margin-right: 4px;
}
.iva {
  margin-top: 2px !important;
  font-size: 0.95rem !important;
}
.ajustes {
  list-style: none;
  margin: 20px 0 6px;
  padding: 6px 0;
  border-radius: 18px;
  background: var(--niebla);
}
.ajustes li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--pino);
}
.ajustes li + li {
  border-top: 1px solid var(--linea);
}
.ajustes svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ajustes .principal {
  color: var(--tinta);
}

/* ---------- Cierre ---------- */
.cierre-in {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 20px;
  text-align: center;
}
.cierre .lead {
  margin: 14px auto 0;
}
.botones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 99px;
  font-weight: 700;
  text-decoration: none;
}
.btn-1 {
  background: var(--pino);
  color: #fff;
}
.btn-1:hover {
  background: #0e5c42;
}
.btn-2 {
  box-shadow: inset 0 0 0 1.5px var(--pino);
  color: var(--pino);
}
.btn-2:hover {
  background: #e9f3ef;
}
.pie {
  padding: 24px 20px 40px;
  border-top: 1px solid var(--linea);
  text-align: center;
  color: var(--tinta-2);
  font-size: 0.9rem;
}

/* ---------- Aparición escalonada (solo con JS y con movimiento) ---------- */
.js .rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .rv.in {
  opacity: 1;
  transform: none;
}

/* ---------- Escritorio ---------- */
@media (min-width: 900px) {
  body {
    font-size: 1.125rem;
  }
  .hero-in {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 40px;
    padding: 56px 32px 0;
  }
  .hero-txt {
    padding-bottom: 56px;
  }
  .hero-fig {
    height: 600px;
    align-self: end;
  }
  .phone-hero {
    --pw: 330px;
    margin-top: 10px;
  }
  .tour-in {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 48px;
    padding: 0 32px;
  }
  .tour-stage {
    display: block;
  }
  .sticky {
    position: sticky;
    top: calc(56px + (100vh - 56px - min(660px, 100vh - 120px)) / 2);
    display: flex;
    justify-content: center;
    padding: 24px 0;
  }
  .phone-stage {
    --pw: min(300px, calc((100vh - 120px) * 0.448));
  }
  .step {
    min-height: min(60vh, 560px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 0;
    border-bottom: 0;
  }
  .step-body {
    display: block;
  }
  .m-fig {
    display: none;
  }
  .oscuro-in {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 48px;
    align-items: center;
    padding: 80px 32px;
  }
  .senal-fig {
    display: flex;
    justify-content: center;
  }
  .trio-in {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding: 80px 32px;
  }
  .tarjeta {
    padding: 34px 32px 30px;
  }
  .asoma {
    margin: 22px -32px -30px;
  }
  .cierre-in {
    padding: 88px 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .arete,
  .gira {
    animation: none;
  }
  .js .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .ind,
  .ip {
    transition: none;
  }
}
