/* =========================================================
   TurnoMiner · Página de presentación
   Paleta tomada de la app: faena oscura + oro, rosa de vacaciones, rojo de feriados
   ========================================================= */

:root {
  --noche: #0a0b0e;
  --roca: #13161c;
  --veta: #232832;
  --oro: #f5b400;
  --oro-suave: #c9a24d;
  --oro-hondo: #a47f33;
  --hueso: #efe8d8;
  --tinta: #17140c;
  --rosa: #e86bb6;
  --rojo: #e04a4a;
  --texto: #ebe8e0;
  --tenue: #9aa0ac;

  --f-titulo: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-cuerpo: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ancho: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--noche);
  color: var(--texto);
  font-family: var(--f-cuerpo);
  font-size: 1.05rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
h1, h2, h3 { font-family: var(--f-titulo); line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 1rem; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: inherit; }

.wrap { width: min(100% - 2.5rem, var(--ancho)); margin-inline: auto; }
.centrado { text-align: center; }
.sub { color: var(--tenue); max-width: 34rem; margin-inline: auto; }
.sr { position: absolute; opacity: 0; pointer-events: none; }

:focus-visible { outline: 3px solid var(--oro); outline-offset: 3px; border-radius: 6px; }

.saltar {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--oro); color: var(--tinta); padding: .6rem 1rem; border-radius: 8px; font-weight: 600;
}
.saltar:focus { top: 1rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .85rem 1.4rem; border-radius: 14px;
  font-weight: 600; text-decoration: none; line-height: 1.15;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-mini { padding: .55rem 1.1rem; border-radius: 10px; font-size: .95rem;
  background: linear-gradient(135deg, var(--oro-suave), var(--oro-hondo)); color: var(--tinta); }
.btn-play {
  background: linear-gradient(135deg, #dcb459, var(--oro-hondo)); color: var(--tinta);
  box-shadow: 0 12px 30px -12px rgba(245, 180, 0, .55);
}
.btn-play svg { width: 28px; height: 28px; flex: none; }
.btn-play span { display: block; font-size: 1.15rem; font-family: var(--f-titulo); font-weight: 700; }
.btn-play small { display: block; font-family: var(--f-cuerpo); font-size: .72rem; font-weight: 500; opacity: .75; }
.btn-play.oscuro { background: var(--noche); color: #f4efe2; box-shadow: 0 14px 30px -14px rgba(0,0,0,.7); }
.btn-ghost { border: 1.5px solid var(--veta); color: var(--texto); }
.btn-ghost:hover { border-color: var(--oro-suave); }

/* ---------- Cabecera ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 11, 14, .82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.top-in { display: flex; align-items: center; gap: 2rem; min-height: 4rem; }
.marca { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none;
  font-family: var(--f-titulo); font-weight: 700; font-size: 1.2rem; letter-spacing: .01em; }
.marca-logo { width: 34px; height: 30px; color: var(--oro); }
.nav { display: flex; gap: 1.6rem; margin-left: auto; font-size: .95rem; color: var(--tenue); }
.nav a { text-decoration: none; transition: color .2s; }
.nav a:hover { color: var(--oro); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-top: clamp(2.5rem, 6vw, 5rem);
  background:
    radial-gradient(60% 55% at 78% 30%, rgba(245, 180, 0, .13), transparent 70%),
    repeating-linear-gradient(180deg, transparent 0 54px, rgba(255,255,255,.025) 54px 55px),
    var(--noche);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; align-items: center; }
.chip-estado {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .35rem .9rem; border: 1px solid var(--veta); border-radius: 99px;
  font-size: .88rem; color: var(--tenue); margin-bottom: 1.4rem;
}
.pulso { width: 9px; height: 9px; border-radius: 50%; background: var(--oro); animation: pulso 2s ease-out infinite; }
.lead { font-size: 1.2rem; color: #cfcbc2; max-width: 33rem; }
.acciones { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.8rem 0 1.2rem; }
.nota { font-size: .92rem; color: var(--tenue); }

/* Teléfonos del hero */
.duo { display: flex; justify-content: center; padding-bottom: 3.5rem; }
.duo .phone { --pw: clamp(160px, 21vw, 250px); animation: subir 1s cubic-bezier(.2,.8,.2,1) both; }
.duo .p1 { rotate: -4deg; animation-delay: .15s; }
.duo .p2 { rotate: 4deg; margin: 3.5rem 0 0 -2.2rem; animation-delay: .4s; }

/* Cinta de turno que avanza (momento principal del hero) */
.cinta-hero {
  border-block: 1px solid rgba(255,255,255,.07);
  background: rgba(8, 9, 12, .7);
  padding: .9rem 0; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marcha { display: flex; width: max-content; animation: marcha 42s linear infinite; }
.tanda { display: flex; gap: 6px; padding-right: 6px; }
.tanda span {
  display: grid; place-items: center; width: 98px; height: 46px; border-radius: 10px;
  font-family: var(--f-titulo); font-weight: 700; font-size: .95rem;
}
.tanda .d { background: linear-gradient(180deg, var(--oro), #d99d00); color: var(--tinta); }
.tanda .r { border: 1.5px dashed #343a47; color: var(--tenue); font-weight: 500; }

/* ---------- Teléfono (marco reutilizable) ---------- */
.phone {
  --pw: 270px;
  position: relative; isolation: isolate;
  width: var(--pw); margin: 0; padding: 7px; border-radius: 38px;
  background: linear-gradient(160deg, #2b303b, #12151b);
  box-shadow: 0 40px 60px -28px rgba(0,0,0,.9), inset 0 0 0 1px rgba(255,255,255,.1);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 31px; }
.phone.mini { --pw: 190px; margin-inline: auto; }
.glow-oro::before, .glow-rosa::before {
  content: ""; position: absolute; inset: -14% -32%; z-index: -1;
  background: radial-gradient(closest-side, rgba(245,180,0,.2), transparent);
}
.glow-rosa::before { background: radial-gradient(closest-side, rgba(232,107,182,.22), transparent); }

/* ---------- Secciones genéricas ---------- */
.seccion { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }

/* Antes / Ahora */
.contraste { background: var(--roca); }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem; }
.vs-col { padding: 1.8rem 2rem; border-radius: 6px 22px 6px 22px; }
.vs-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.vs-col li { position: relative; padding-left: 1.7rem; }
.vs-col li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.antes { border: 1px dashed #353b48; color: var(--tenue); }
.antes h3 { color: #7b8190; }
.antes li::before { content: "✕"; color: var(--rojo); }
.ahora { background: linear-gradient(160deg, rgba(245,180,0,.14), rgba(245,180,0,.04)); border: 1px solid rgba(245,180,0,.45); }
.ahora h3 { color: var(--oro); }
.ahora li::before { content: "✓"; color: var(--oro); }

/* Funciones: teléfono + texto */
.feat { padding: clamp(3rem, 7vw, 5.5rem) 0; overflow: clip; }
.feat:nth-child(even) { background: var(--roca); }
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7vw, 6rem); align-items: center; }
.feat .phone { justify-self: center; --pw: min(280px, 68vw); }
.feat.rev .phone { order: 2; }
.feat-txt { max-width: 33rem; }
.feat-txt p { color: #cbc8bf; }
.leyenda { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; list-style: none; padding: 0; margin: 1.2rem 0; }
.leyenda li { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.oro { background: var(--oro); }
.dot.rosa { background: var(--rosa); }
.dot.rojo { background: var(--rojo); }

/* Cómo funciona (secuencia real: numeración justificada) */
.como { background: var(--noche); }
.pasos { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.pasos li { position: relative; text-align: center; }
.pasos .phone { margin-bottom: 1.6rem; }
.pasos .num {
  position: absolute; top: -.9rem; left: calc(50% - 130px);
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--oro); color: var(--tinta); font-family: var(--f-titulo); font-weight: 700; font-size: 1.3rem;
  box-shadow: 0 0 0 6px var(--noche);
}
.pasos p { color: var(--tenue); max-width: 20rem; margin-inline: auto; }

/* Selector de patrones (solo CSS) */
.turnos { background: var(--roca); }
.patrones { --w: 7; --r: 7; max-width: 880px; margin: 2.5rem auto 0; position: relative; }
#p77:checked ~ * { --w: 7; --r: 7; }
#p1414:checked ~ * { --w: 14; --r: 14; }
#p44:checked ~ * { --w: 4; --r: 4; }
#p43:checked ~ * { --w: 4; --r: 3; }
#p1010:checked ~ * { --w: 10; --r: 10; }
#p52:checked ~ * { --w: 5; --r: 2; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 2rem; }
.chips label {
  cursor: pointer; padding: .55rem 1.3rem; border-radius: 12px;
  border: 1.5px solid var(--veta); background: var(--noche);
  font-family: var(--f-titulo); font-weight: 700; font-size: 1.1rem;
  transition: border-color .2s, color .2s, background .2s;
}
.chips label:hover { border-color: var(--oro-suave); }
#p77:checked ~ .chips [for="p77"],
#p1414:checked ~ .chips [for="p1414"],
#p44:checked ~ .chips [for="p44"],
#p43:checked ~ .chips [for="p43"],
#p1010:checked ~ .chips [for="p1010"],
#p52:checked ~ .chips [for="p52"] { border-color: var(--oro); color: var(--oro); background: rgba(245,180,0,.1); }
#p77:focus-visible ~ .chips [for="p77"],
#p1414:focus-visible ~ .chips [for="p1414"],
#p44:focus-visible ~ .chips [for="p44"],
#p43:focus-visible ~ .chips [for="p43"],
#p1010:focus-visible ~ .chips [for="p1010"],
#p52:focus-visible ~ .chips [for="p52"] { outline: 3px solid var(--oro); outline-offset: 3px; }

.cinta-wrap { position: relative; padding-top: 2.2rem; counter-reset: w var(--w) r var(--r); }
.cinta { display: flex; gap: 8px; height: 104px; }
.blk { flex: 0 1 0%; min-width: 0; border-radius: 14px; display: grid; place-items: center; overflow: hidden;
  transition: flex-grow .6s cubic-bezier(.3,.9,.3,1); background-repeat: repeat-x; }
.blk.w { flex-grow: var(--w); background-color: var(--oro); color: var(--tinta);
  background-image: linear-gradient(90deg, transparent calc(100% - 2px), rgba(10,11,14,.55) 0);
  background-size: calc(100% / var(--w)) 100%; }
.blk.r { flex-grow: var(--r); background-color: #1d222b; color: var(--texto);
  background-image: linear-gradient(90deg, transparent calc(100% - 2px), rgba(10,11,14,.9) 0);
  background-size: calc(100% / var(--r)) 100%; }
.t { display: flex; flex-direction: column; align-items: center; line-height: 1.1; text-align: center; padding-inline: .3rem; }
.t::before { font-family: var(--f-titulo); font-weight: 700; font-size: clamp(1.6rem, 5vw, 2.6rem); }
.t::after { font-size: clamp(.7rem, 2.2vw, .95rem); font-weight: 600; }
.tw::before { content: counter(w); }
.tw::after { content: "días en faena"; }
.tr::before { content: counter(r); }
.tr::after { content: "días en casa"; }

.hoy {
  position: absolute; top: 0; left: 0; translate: -50% 0;
  background: var(--texto); color: var(--tinta); font-size: .78rem; font-weight: 700;
  padding: .1rem .55rem; border-radius: 6px; animation: hoy 14s linear infinite;
}
.hoy::after { content: ""; position: absolute; left: 50%; bottom: -5px; translate: -50% 0; border: 5px solid transparent; border-top-color: var(--texto); border-bottom: 0; }
.ciclo { text-align: center; color: var(--tenue); margin: 1.2rem 0 0; counter-reset: w var(--w) r var(--r); }
.cc::before { content: "Trabajas " counter(w) " días seguidos y descansas " counter(r) "."; }

.tipos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 3.5rem; border-top: 1px solid var(--veta); }
.tipos > div { padding: 1.6rem 1.6rem 0 0; }
.tipos > div + div { padding-left: 1.6rem; border-left: 1px solid var(--veta); }
.tipos p { color: var(--tenue); margin: 0; }
.nota-sec { margin: 2.2rem 0 0; color: #cbc8bf; }

/* Por qué elegirla (sección clara) */
.hueso { background: var(--hueso); color: var(--tinta); }
.hueso h2 { margin-bottom: 2.5rem; }
.porque { display: grid; grid-template-columns: repeat(3, 1fr); }
.porque article { padding: 0 2rem; border-left: 3px solid var(--oro); }
.porque article + article { margin-left: 0; }
.porque article:first-child { padding-left: 1.6rem; }
.porque p { color: #4a4435; margin: 0; }

/* Preguntas */
.faq-wrap { max-width: 760px; }
details { border-bottom: 1px solid var(--veta); }
summary {
  cursor: pointer; list-style: none; padding: 1.2rem 0; padding-right: 2.2rem;
  font-weight: 600; font-size: 1.1rem; position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: .2rem; top: 50%; translate: 0 -50%;
  font-size: 1.7rem; color: var(--oro); transition: rotate .25s;
}
details[open] summary::after { rotate: 45deg; }
details p { color: var(--tenue); padding-bottom: 1.2rem; margin: 0; max-width: 40rem; }

/* CTA final */
.cta {
  background: linear-gradient(135deg, #f7bd1a, var(--oro) 45%, #d99d00);
  color: var(--tinta); text-align: center; padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.cta-in { display: grid; justify-items: center; }
.cta-logo { width: 64px; height: 56px; color: var(--tinta); margin-bottom: 1rem; }
.cta h2 { max-width: 20ch; }
.cta p { font-size: 1.15rem; margin-bottom: 1.8rem; }
.registro { width: min(100%, 32rem); display: grid; gap: .55rem; text-align: left; }
.registro label { font-size: .92rem; font-weight: 600; }
.registro input { width: 100%; min-height: 2.9rem; padding: .7rem .85rem; border: 1px solid rgba(23,20,12,.35); border-radius: 9px; background: rgba(255,255,255,.75); color: var(--tinta); font: inherit; }
.registro input:focus-visible { outline-color: var(--noche); }
.registro button { justify-self: center; margin-top: .75rem; border: 0; cursor: pointer; font: inherit; }
.nota-form { margin: 1.2rem 0 0 !important; max-width: 38rem; font-size: .9rem !important; }
.nota-form a { font-weight: 600; }

/* Pie */
.pie { padding: 2.5rem 0; background: var(--noche); color: var(--tenue); font-size: .95rem; }
.pie-in { display: grid; justify-items: center; gap: .6rem; text-align: center; }
.pie .marca { color: var(--texto); }
.pie p { margin: 0; }
.pie a:not(.marca):hover { color: var(--oro); }
.copy { font-size: .8rem; margin-top: .6rem !important; }

/* ---------- Animaciones ---------- */
@keyframes subir { from { opacity: 0; translate: 0 60px; } to { opacity: 1; translate: 0 0; } }
@keyframes marcha { to { transform: translateX(-50%); } }
@keyframes hoy { from { left: 0; } to { left: 100%; } }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(245,180,0,.6); } 100% { box-shadow: 0 0 0 12px rgba(245,180,0,0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Adaptación a pantallas pequeñas ---------- */
@media (max-width: 860px) {
  .hero-grid, .feat-grid, .vs { grid-template-columns: 1fr; }
  .hero-txt { text-align: center; }
  .lead { margin-inline: auto; }
  .acciones { justify-content: center; }
  .duo .phone { --pw: clamp(150px, 38vw, 230px); }
  .feat.rev .phone { order: 0; }
  .feat-txt { margin-inline: auto; }
  .pasos { grid-template-columns: 1fr; gap: 3.5rem; }
  .pasos .num { left: calc(50% - 125px); }
  .tipos, .porque { grid-template-columns: 1fr; }
  .tipos > div, .tipos > div + div { padding: 1.3rem 0; border-left: 0; border-bottom: 1px solid var(--veta); }
  .porque { gap: 1.8rem; }
  .porque article, .porque article:first-child { padding: 0 0 0 1.4rem; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .btn-mini { margin-left: auto; }
}
@media (max-width: 480px) {
  .cinta { height: 92px; gap: 5px; }
  .tanda span { width: 84px; height: 42px; }
}
