/* Jaleco: marca Pliegue. Paleta y fuente vienen de JALECO_MARCA_PLIEGUE_V1. */
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 400; font-display: swap; src: url('assets/fonts/plus-jakarta-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 600; font-display: swap; src: url('assets/fonts/plus-jakarta-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 700; font-display: swap; src: url('assets/fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-display: swap; src: url('assets/fonts/plus-jakarta-sans-latin-800-normal.woff2') format('woff2'); }

:root {
  --petroleo: #0F5B52;
  --petroleo-oscuro: #0A403A;
  --menta: #9EE0CF;
  --menta-claro: #E4F2EE;
  --niebla: #F3F8F6;
  --grafito: #1A1F1E;
  --texto2: #3D4644;
  --borde: #DCE3E1;
  --alerta: #A23B2A;
  --alerta-fondo: #FBEDEA;
  --sobre-petroleo: #D9EFE9;
  --margen: clamp(1.25rem, 5vw, 5.5rem);
  --seccion: clamp(4.5rem, 9vw, 8.5rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--niebla);
  color: var(--grafito);
  font: 400 1.0625rem/1.6 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.028em; line-height: 1.04; text-wrap: balance; }
h2 { font-size: clamp(2.25rem, 4.6vw, 4rem); color: var(--petroleo); }
h3 { font-size: 1.25rem; letter-spacing: -.015em; line-height: 1.25; }
a { color: inherit; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--menta); color: var(--petroleo-oscuro); }
html { scrollbar-color: var(--petroleo) var(--niebla); }
:focus-visible { outline: 3px solid var(--petroleo); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .top :focus-visible, .contacto :focus-visible { outline-color: var(--menta); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  background: #fff; color: var(--petroleo); padding: .6rem 1rem; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 1rem; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.1rem; padding: .7rem 1.45rem;
  border: 0; border-radius: 12px;
  font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .2s, color .2s, transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn:not(:disabled):hover { transform: translateY(-2px); }
.btn:not(:disabled):active { transform: translateY(0); }
.btn:disabled { cursor: not-allowed; }
.btn-menta { background: var(--menta); color: var(--petroleo-oscuro); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .55); }
.btn-menta:hover { background: #B6EADC; }
.btn-petroleo { background: var(--petroleo); color: #fff; }
.btn-petroleo:not(:disabled):hover { background: var(--petroleo-oscuro); }
.btn-petroleo:disabled { background: var(--menta-claro); color: #4A6D66; }
.btn-outline { background: #fff; color: var(--petroleo); box-shadow: inset 0 0 0 2px var(--petroleo); }
.btn-outline:not(:disabled):hover { background: var(--petroleo); color: #fff; }
.btn-outline:disabled { box-shadow: inset 0 0 0 2px var(--borde); color: #5F6967; }
.link-light { color: #fff; font-weight: 700; }
.link-light:hover { color: var(--menta); }
.link-plain { background: none; border: 0; padding: .4rem 0; color: var(--petroleo); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

/* Encabezado */
.top {
  position: absolute; inset: 0 0 auto; z-index: 5;
  display: flex; align-items: center; gap: clamp(1.25rem, 2.5vw, 2.25rem);
  padding: 1.35rem var(--margen);
}
.top-logo { flex: none; border-radius: 10px; }
.top-logo img { height: 40px; width: auto; }
.top-nav { display: flex; align-items: center; gap: clamp(.9rem, 1.6vw, 1.5rem); color: #fff; font-weight: 600; font-size: .9375rem; }
.top-nav a { text-decoration: none; }
.top-nav a:hover { color: var(--menta); }
.top-cta { margin-left: auto; padding: .55rem 1rem; border-radius: 10px; background: var(--petroleo-oscuro); color: #fff; font-weight: 700; font-size: .9375rem; text-decoration: none; white-space: nowrap; }
.top-cta:hover { background: #06302B; }

/* Portada */
.hero {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  min-height: min(100svh, 62rem);
  padding: clamp(7rem, 12vh, 9.5rem) 0 clamp(3rem, 7vh, 5rem) var(--margen);
  background: var(--petroleo);
  color: #fff;
}
.hero-copy { position: relative; z-index: 3; align-self: center; max-width: 42rem; }
.hero h1 { font-size: clamp(2.6rem, 5.15vw, 5.25rem); }
.hero-lead { margin-top: clamp(1.25rem, 2.6vh, 2rem); max-width: 34rem; color: var(--sobre-petroleo); font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: clamp(1.5rem, 3.2vh, 2.5rem); }

.hero-estado { margin-top: clamp(1.25rem, 2.6vh, 2rem); font-size: .9375rem; font-weight: 600; color: var(--sobre-petroleo); }
.hero-estado a { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.hero-estado a:hover { color: #fff; text-decoration: underline; }
.hero-estado a::before { content: ''; flex: none; width: .6rem; height: .6rem; border-radius: 50%; background: var(--menta); }

.hero-stage { position: absolute; inset: 0 0 0 44%; overflow: hidden; pointer-events: none; }
.hero-lapels {
  position: absolute; z-index: 2; top: -2%; left: -2%;
  width: 62%; height: auto; overflow: visible;
}
.hero-ficha {
  /* Percent margin follows the stage width, like the lapels, so the record stays tucked under the fold. */
  position: absolute; z-index: 1; top: 0; margin-top: 23.5%; left: 33.5%; width: 130%;
  border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 40px 70px -28px rgba(3, 30, 26, .75);
  pointer-events: auto;
}
.lapel { transform-box: view-box; }

@media (prefers-reduced-motion: no-preference) {
  .lapel-left { animation: fold-left 1.3s var(--ease) both; transform-origin: 500px 420px; }
  .lapel-right { animation: fold-right 1.3s var(--ease) both; transform-origin: 500px 420px; }
  .lapel-j { stroke-dasharray: 1; animation: draw-j 1.4s .25s var(--ease) both; }
  .hero-ficha { animation: slide-out 1.5s .1s var(--ease) both; }
  @keyframes fold-left { from { transform: rotate(7deg) translateX(34px); } }
  @keyframes fold-right { from { transform: rotate(-7deg) translateX(-34px); } }
  @keyframes draw-j { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes slide-out { from { transform: translate(-7%, -9%); } }
}

/* APS */
.aps { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2.5rem, 6vw, 6rem); padding: var(--seccion) var(--margen); background: #fff; }
.aps-head p { margin-top: 1.25rem; max-width: 34rem; color: var(--texto2); font-size: 1.125rem; }
.aps-lista li { padding: 1.35rem 0; border-top: 1px solid var(--borde); }
.aps-lista li:last-child { padding-bottom: 0; }
.aps-lista p { margin-top: .35rem; color: var(--texto2); }

/* Sesión */
.sesion {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
  padding: var(--seccion) 0 var(--seccion) var(--margen);
}
.sesion-copy > p { margin-top: 1.25rem; max-width: 30rem; color: var(--texto2); font-size: 1.125rem; }
.pasos { margin-top: clamp(2rem, 4vw, 3rem); counter-reset: paso; }
.pasos li { counter-increment: paso; position: relative; padding: 1.25rem 0 1.25rem 3.5rem; border-top: 1px solid var(--borde); }
.pasos li::before {
  content: counter(paso);
  position: absolute; left: 0; top: 1rem;
  font-size: 2.25rem; font-weight: 800; line-height: 1.1; letter-spacing: -.03em; color: var(--petroleo);
  font-variant-numeric: tabular-nums;
}
.pasos h3 { color: var(--grafito); }
.pasos p { margin-top: .3rem; color: var(--texto2); max-width: 30rem; }
.sesion-img { position: sticky; top: 2rem; padding-top: .4rem; }
.sesion-img img { width: 100%; border-radius: 16px 0 0 16px; border: 1px solid var(--borde); border-right: 0; box-shadow: 0 30px 60px -36px rgba(15, 91, 82, .55); }

/* Evaluación */
.evaluacion { background: #fff; padding: var(--seccion) var(--margen); }
.eval-intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.5rem clamp(2rem, 5vw, 5rem); align-items: end; }
.eval-intro p { color: var(--texto2); font-size: 1.125rem; }

.demo {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem);
  margin-top: clamp(2rem, 4vw, 3.5rem);
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--borde);
}
.demo-main { padding: clamp(1.25rem, 2.5vw, 2.25rem); min-width: 0; }
.demo-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.demo-who { font-size: 1.25rem; font-weight: 800; letter-spacing: -.015em; line-height: 1.3; }
.demo-who span { font-weight: 400; font-size: 1rem; letter-spacing: 0; color: var(--texto2); }
.demo-case { color: var(--texto2); font-size: .9375rem; }
.btn:disabled.btn-petroleo { box-shadow: none; }

.item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 5.25rem; gap: .6rem 1.25rem; align-items: center;
  padding: 1rem 0; border-top: 1px solid var(--borde);
  transition: background-color .4s var(--ease);
}
.item.is-suggested .item-title, .item.is-suggested .item-data { color: #5F6967; }
.item-title { font-weight: 700; line-height: 1.35; }
.item-data { margin-top: .15rem; font-size: .9rem; line-height: 1.4; color: var(--texto2); }
.item-sug { margin-top: .25rem; font-size: .875rem; font-weight: 600; line-height: 1.4; color: var(--petroleo); }
.item-critica {
  display: inline-block; margin-left: .2rem; padding: .05rem .5rem; border-radius: 99px;
  background: var(--alerta-fondo); color: var(--alerta);
  font-size: .75rem; font-weight: 700; vertical-align: .1em;
}
.item-levels { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--niebla); }
.item-levels button {
  min-height: 2.5rem; padding: .3rem .7rem; border: 0; border-radius: 8px; background: transparent;
  font-size: .875rem; font-weight: 600; line-height: 1.15; white-space: nowrap; color: var(--texto2); cursor: pointer;
  transition: background-color .2s, color .2s;
}
.item-levels button:not(:disabled):hover { background: var(--menta-claro); color: var(--petroleo); }
.item-levels button.is-hint { box-shadow: inset 0 0 0 1.5px #7D9C95; border-style: dashed; color: var(--petroleo); }
.item-levels button[aria-pressed="true"] { background: var(--petroleo); color: #fff; }
.item-levels button:disabled { cursor: not-allowed; }
.item-levels button:disabled:not([aria-pressed="true"]) { color: #5F6967; }
.item-pts { text-align: right; font-size: .9375rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

.demo-side {
  display: flex; flex-direction: column; align-items: flex-start; gap: .6rem;
  padding: clamp(1.25rem, 2.5vw, 2.25rem);
  background: var(--petroleo); color: #fff;
}
.demo-label { font-weight: 700; font-size: 1.125rem; }
.demo-nota { font-size: clamp(4.5rem, 7.5vw, 6.5rem); font-weight: 800; line-height: 1; letter-spacing: -.035em; color: var(--menta); font-variant-numeric: tabular-nums; }
.demo-puntos { color: var(--sobre-petroleo); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.demo-pend { min-height: 3em; color: #fff; font-weight: 600; font-size: .9375rem; line-height: 1.45; }
.demo-alerta { padding: .75rem .9rem; border-radius: 12px; background: var(--alerta-fondo); color: #7C2A1C; font-size: .9rem; line-height: 1.4; }
.demo-side .btn-outline { width: 100%; margin-top: auto; box-shadow: none; }
.demo-side .btn-outline:not(:disabled):hover { background: var(--menta); color: var(--petroleo-oscuro); }
.demo-side .btn-outline:disabled { background: var(--petroleo-oscuro); color: var(--sobre-petroleo); }
.demo-side .link-plain { color: #fff; }
.demo-side :focus-visible { outline-color: var(--menta); }
.demo-nota-ficticia { font-size: .8125rem; line-height: 1.4; color: var(--sobre-petroleo); }

.pauta {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 5rem); align-items: center;
  margin-top: var(--seccion);
}
.pauta-img img { width: 100%; border-radius: 16px; border: 1px solid var(--borde); }
.pauta-copy h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); color: var(--petroleo); letter-spacing: -.025em; line-height: 1.08; }
.pauta-copy p { margin-top: 1rem; color: var(--texto2); }

/* Pacientes */
.pacientes { background: var(--menta); color: var(--petroleo-oscuro); padding: var(--seccion) var(--margen) clamp(6rem, 11vw, 10rem); }
.pac-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.5rem clamp(2rem, 5vw, 5rem); align-items: end; }
.pac-head h2 { color: var(--petroleo-oscuro); font-size: clamp(2.5rem, 6vw, 5.25rem); }
.pac-head p { font-size: 1.125rem; }
.pac-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: clamp(2rem, 4vw, 3.5rem); }
.seg { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--petroleo-oscuro); }
.seg button {
  min-height: 2.75rem; padding: .4rem 1.2rem; border: 0; border-radius: 10px; background: transparent;
  color: #fff; font-weight: 700; cursor: pointer; transition: background-color .2s, color .2s;
}
.seg button[aria-pressed="true"] { background: #fff; color: var(--petroleo-oscuro); }
.seg :focus-visible { outline-color: #fff; }
.filtros { display: flex; flex-wrap: wrap; gap: .4rem; }
.filtros button {
  min-height: 2.75rem; padding: .35rem .95rem; border-radius: 99px;
  border: 1.5px solid var(--petroleo-oscuro); background: transparent;
  color: var(--petroleo-oscuro); font-size: .9375rem; font-weight: 600; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.filtros button:hover { background: rgba(10, 64, 58, .1); }
.filtros button[aria-pressed="true"] { background: var(--petroleo-oscuro); color: #fff; }
.pacientes :focus-visible { outline-color: var(--petroleo-oscuro); }
.seg :focus-visible { outline-color: var(--petroleo-oscuro); }

.roster { columns: 2; column-gap: clamp(2rem, 5vw, 5rem); margin-top: 1.75rem; }
.roster li { break-inside: avoid; padding: .9rem 0; border-top: 1.5px solid rgba(10, 64, 58, .28); }
.r-name { font-size: clamp(1.25rem, 1.9vw, 1.625rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.r-meta { margin-top: .1rem; font-size: .9375rem; line-height: 1.4; }
.r-focus { margin-top: .1rem; font-size: .9375rem; line-height: 1.4; font-weight: 700; }
.pac-nota { margin-top: 2.25rem; max-width: 48rem; font-size: .9375rem; }

/* Desarrollo */
.desarrollo { padding: var(--seccion) var(--margen) clamp(7rem, 12vw, 11rem); background: #fff; }
.des-head { max-width: 52rem; }
.des-head p { margin-top: 1.25rem; max-width: 40rem; color: var(--texto2); font-size: 1.125rem; }
.des-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); margin-top: clamp(2rem, 4vw, 3.5rem); }
.des-cols h3 { padding-bottom: .9rem; border-bottom: 3px solid var(--petroleo); color: var(--petroleo); }
.des-cols li { padding: .85rem 0; border-bottom: 1px solid var(--borde); font-weight: 600; }

/* Contacto */
.contacto { position: relative; background: var(--petroleo-oscuro); color: #fff; padding: clamp(6.5rem, 12vw, 11rem) var(--margen) var(--seccion); }
.contacto-fold { position: absolute; inset: -1px 0 auto; width: 100%; height: clamp(3.5rem, 8vw, 7.5rem); }
.contacto-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contacto h2 { color: #fff; }
.contacto-copy p { margin-top: 1.25rem; max-width: 30rem; color: var(--sobre-petroleo); font-size: 1.125rem; }
.contacto-directo a { color: var(--menta); font-weight: 700; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.motivo { grid-column: 1 / -1; min-width: 0; margin: 0; padding: 0; border: 0; }
.motivo legend { padding: 0; margin-bottom: .35rem; font-weight: 600; font-size: .9375rem; }
.motivo-opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.motivo label { position: relative; display: block; cursor: pointer; }
.motivo input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.motivo span {
  display: flex; align-items: center; justify-content: center; min-height: 3rem; height: 100%; padding: .55rem .8rem;
  border: 1.5px solid var(--sobre-petroleo); border-radius: 10px;
  font-weight: 700; font-size: .9375rem; line-height: 1.25; text-align: center;
  transition: background-color .2s, color .2s, border-color .2s;
}
.motivo label:hover span { border-color: var(--menta); color: var(--menta); }
.motivo input:checked + span { background: var(--menta); border-color: var(--menta); color: var(--petroleo-oscuro); }
.motivo input:focus-visible + span { outline: 3px solid var(--menta); outline-offset: 3px; }
.campo { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.campo-ancho { grid-column: 1 / -1; }
.campo label { font-weight: 600; font-size: .9375rem; }
.campo label span { font-weight: 400; color: var(--sobre-petroleo); }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 3rem; padding: .6rem .8rem;
  border: 1.5px solid transparent; border-radius: 10px;
  background: #fff; color: var(--grafito); caret-color: var(--petroleo);
}
.campo textarea { resize: vertical; min-height: 7rem; }
.campo input:focus-visible, .campo select:focus-visible, .campo textarea:focus-visible { outline: 3px solid var(--menta); outline-offset: 2px; }
.campo [aria-invalid="true"] { border-color: #F2A793; box-shadow: 0 0 0 2px #F2A793; }
.error { color: #FFC9BA; font-size: .875rem; font-weight: 600; line-height: 1.35; }
.form-fin { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: .25rem; }
.form-ayuda { color: var(--sobre-petroleo); font-size: .9375rem; }
.form-ok { grid-column: 1 / -1; padding: .85rem 1rem; border-radius: 12px; background: var(--menta-claro); color: var(--petroleo-oscuro); font-weight: 600; }

/* Pie */
.pie { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem; padding: 2rem var(--margen); background: #06302B; color: var(--sobre-petroleo); font-size: .9375rem; }
.pie img { height: 32px; width: auto; margin-right: auto; }

/* Pantallas medianas */
@media (max-width: 1100px) {
  .item { grid-template-columns: minmax(0, 1fr) 5.25rem; }
  .item-levels { grid-row: 2; grid-column: 1 / -1; justify-self: start; }
  .item-pts { grid-column: 2; grid-row: 1; align-self: start; }
}
@media (max-width: 1180px) {
  .top-nav { display: none; }
}
@media (max-width: 960px) {
  .hero { display: block; min-height: 0; padding: 6.5rem var(--margen) 0; overflow: hidden; }
  .hero-copy { max-width: 40rem; }
  .hero h1 { font-size: clamp(2.6rem, 9.5vw, 4.5rem); }
  .hero-stage { position: relative; inset: auto; height: clamp(24rem, 82vw, 42rem); margin: 2.25rem calc(var(--margen) * -1) 0; }
  .hero-lapels { width: 60%; min-width: 0; left: -4%; top: -6%; }
  .hero-ficha { margin-top: 24%; left: 31%; width: 135%; }
  .sesion { grid-template-columns: 1fr; padding-right: var(--margen); }
  .sesion-img { position: static; margin-right: calc(var(--margen) * -1); }
  .aps, .eval-intro, .pac-head, .pauta, .contacto-inner { grid-template-columns: 1fr; }
  .demo { grid-template-columns: 1fr; }
  .demo-side .btn-outline { margin-top: .5rem; }
  .demo-pend { min-height: 0; }
}
@media (max-width: 700px) {
  .roster { columns: 1; }
  .des-cols { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .pie img { margin-right: 0; width: auto; }
  .pie { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 460px) {
  .top-logo img { height: 34px; }
  .item-levels { display: flex; width: 100%; }
  .item-levels button { flex: 1; padding-inline: .3rem; font-size: .8125rem; white-space: normal; }
  .demo-head .btn { width: 100%; }
  .hero-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
