/* Semana del Colaborador Joya 2026 · Hospital Joya Marina
   Paleta y tipografía del deck del programa: navy + menta, Inter. */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113; }

:root {
  --navy: #0d2a52;
  --navy-hondo: #081d3a;
  --menta: #8fd9c9;
  --menta-tinta: #17705f;
  --menta-suave: #dff3ee;
  --bruma: #f4f8f9;
  --blanco: #ffffff;
  --tinta: #10233f;
  --gris: #47566e;
  --linea: #d5e0e6;
  --linea-navy: rgba(143, 217, 201, .28);

  --ancho: 1120px;
  --borde: clamp(20px, 5vw, 48px);
  --alto-dias: 68px;
  --suave: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--navy); color-scheme: light; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--alto-dias); }
body { margin: 0; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 18px; line-height: 1.5;
  color: var(--tinta); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--menta); outline-offset: 3px; border-radius: 6px; }
.agenda :focus-visible, .pasaporte :focus-visible, .areas :focus-visible { outline-color: var(--menta-tinta); }
.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Lienzo 3D: fijo detrás de todo; las secciones claras lo tapan. */
#lienzo { position: fixed; inset: 0 0 auto 0; width: 100%; height: 100lvh; z-index: -1; pointer-events: none;
  opacity: 0; transition: opacity .8s ease; }
.con-3d #lienzo { opacity: 1; }

/* ---------- Barra ---------- */
.barra { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: var(--ancho); margin: 0 auto; padding: 22px var(--borde) 0; color: var(--blanco); }
.barra-logo img { height: 46px; width: auto; }
.barra-nav { display: flex; gap: 22px; font-size: 16px; font-weight: 600; }
.barra-nav a { text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; }
.barra-nav a:hover { border-bottom-color: var(--menta); }

/* ---------- Hero ---------- */
.hero { color: var(--blanco); max-width: var(--ancho); margin: 0 auto; padding: 12px var(--borde) 56px;
  min-height: calc(100svh - 68px); display: grid; align-content: center; gap: 8px; }
.hero-figura { width: min(64vw, 300px); aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; }
.hero-figura img { width: 46%; opacity: .95; transition: opacity .5s ease; }
.con-3d .hero-figura img { opacity: 0; }
.hero-fecha { font-size: 17px; font-weight: 600; color: var(--menta); letter-spacing: .01em; }
.hero-fecha span { display: block; }
.hero-fecha span + span { color: rgba(255, 255, 255, .8); font-weight: 500; }
.hero h1 { font-size: clamp(42px, 11.6vw, 104px); line-height: .96; letter-spacing: -.035em; font-weight: 800; margin-top: 10px; text-wrap: balance; }
.hero h1 .menta { color: var(--menta); }
.hero-lema { margin-top: 20px; max-width: 34ch; font-size: clamp(18px, 2.2vw, 21px); line-height: 1.45; color: rgba(255, 255, 255, .86); }

.estado { margin-top: 28px; padding: 18px 0 0; border-top: 1px solid var(--linea-navy); display: grid; gap: 4px; max-width: 520px; }
.estado-etiqueta { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: var(--menta); }
.estado-pulso { width: 10px; height: 10px; border-radius: 50%; background: var(--menta); flex: none; }
.estado[data-fase='en-curso'] .estado-pulso { animation: pulso 1.8s ease-out infinite; }
.estado-principal { font-size: clamp(24px, 6vw, 34px); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
.estado-secundario { font-size: 17px; color: rgba(255, 255, 255, .8); }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(143, 217, 201, .7); } 100% { box-shadow: 0 0 0 14px rgba(143, 217, 201, 0); } }

.boton { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; margin-top: 26px; justify-self: start;
  background: var(--menta); color: var(--navy-hondo); font-weight: 800; font-size: 18px; text-decoration: none; border-radius: 999px;
  transition: transform .25s var(--suave), background .2s ease; }
.boton:hover { background: #a9e6d8; transform: translateY(-2px); }
.boton:active { transform: translateY(0) scale(.98); }

/* ---------- Programa ---------- */
.programa { position: relative; }

.dias { position: sticky; top: 0; z-index: 5; background: var(--navy-hondo); border-block: 1px solid var(--linea-navy); }
.dias-lista { max-width: var(--ancho); margin: 0 auto; padding: 0 calc(var(--borde) - 8px); height: var(--alto-dias);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: stretch; position: relative; }
.dia-boton { position: relative; z-index: 1; display: grid; place-content: center; justify-items: center; gap: 0; background: none; border: 0; cursor: pointer;
  color: rgba(255, 255, 255, .72); padding: 0 4px; line-height: 1.1; transition: color .3s ease; -webkit-tap-highlight-color: transparent; }
.dia-boton b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dia-boton span { font-size: 14px; font-weight: 600; }
.dia-boton[aria-selected='true'] { color: var(--navy-hondo); }
.dia-boton[data-hoy]::after { content: ''; position: absolute; top: 9px; right: calc(50% - 26px); width: 7px; height: 7px; border-radius: 50%; background: var(--menta); }
.dia-boton[data-hoy][aria-selected='true']::after { background: var(--menta-tinta); }
.dias-marca { position: absolute; z-index: 0; top: 8px; bottom: 8px; left: 0; width: 0; border-radius: 14px; background: var(--menta);
  transition: transform .55s var(--suave), width .55s var(--suave); }

.escenario { color: var(--blanco); max-width: var(--ancho); margin: 0 auto; padding: 34px var(--borde) 38px;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
.escenario-fecha { font-size: 17px; font-weight: 600; color: var(--menta); }
.escenario h2 { font-size: clamp(34px, 8.6vw, 68px); line-height: 1; letter-spacing: -.03em; font-weight: 800; margin-top: 6px; text-wrap: balance; }
.escenario-areas { margin-top: 12px; font-size: 17px; color: rgba(255, 255, 255, .84); max-width: 30ch; }
.escenario-numero { width: clamp(104px, 28vw, 240px); aspect-ratio: 4 / 5; display: grid; place-items: center; }
.escenario-numero span { font-size: clamp(110px, 30vw, 250px); font-weight: 800; line-height: .8; color: transparent; -webkit-text-stroke: 2px var(--menta); transition: opacity .5s ease; }
.con-3d .escenario-numero span { opacity: 0; }

.agenda { background: var(--bruma); }
.agenda-caja { max-width: var(--ancho); margin: 0 auto; padding: 30px var(--borde) 64px; display: grid; gap: 44px; }

.turno + .turno { margin-top: 34px; }
.turno-titulo { font-size: 15px; font-weight: 700; color: var(--menta-tinta); padding-bottom: 10px; border-bottom: 2px solid var(--navy); display: flex; justify-content: space-between; gap: 12px; }
.turno-titulo span { color: var(--gris); font-weight: 600; font-variant-numeric: tabular-nums; }

.evento { position: relative; display: grid; grid-template-columns: 74px 30px 1fr; align-items: center; min-height: 66px; padding: 12px 0;
  border-bottom: 1px solid var(--linea); }
.evento-hora { font-size: 21px; font-weight: 800; letter-spacing: -.02em; color: var(--navy); font-variant-numeric: tabular-nums; }
.evento-icono { width: 22px; height: 22px; color: var(--menta-tinta); }
.evento-icono svg { width: 100%; height: 100%; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.evento-titulo { font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--tinta); }
.evento-nota { display: block; font-size: 16px; font-weight: 400; color: var(--gris); margin-top: 2px; }
.evento[data-tipo='pausa'] .evento-titulo { font-weight: 400; color: var(--gris); }
.evento[data-tipo='pausa'] .evento-icono { color: var(--gris); }
.evento[data-estado='pasado'] { opacity: .5; }
.evento[data-estado='ahora'] { background: var(--menta-suave); margin-inline: calc(var(--borde) * -1); padding-inline: var(--borde); border-bottom-color: transparent; }
.evento[data-estado='ahora'] .evento-titulo { font-weight: 800; color: var(--navy); }
.evento-ahora { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 14px; font-weight: 800; color: var(--menta-tinta); }
.evento-ahora i { width: 8px; height: 8px; border-radius: 50%; background: var(--menta-tinta); animation: pulso-tinta 1.8s ease-out infinite; }
.evento[data-estado='sigue'] .evento-titulo::after { content: 'Sigue'; margin-left: 10px; padding: 2px 10px; border-radius: 999px; border: 1.5px solid var(--menta-tinta);
  color: var(--menta-tinta); font-size: 13px; font-weight: 700; vertical-align: 2px; white-space: nowrap; }
@keyframes pulso-tinta { 0% { box-shadow: 0 0 0 0 rgba(23, 112, 95, .5); } 100% { box-shadow: 0 0 0 10px rgba(23, 112, 95, 0); } }

.destacados-foto { border-radius: 18px; overflow: hidden; background: var(--menta-suave); aspect-ratio: 16 / 10; }
.destacados-foto img { width: 100%; height: 100%; object-fit: cover; }
.destacados h3 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--navy); margin-top: 22px; }
.destacados-lista { margin-top: 10px; counter-reset: d; }
.destacados-lista li { counter-increment: d; display: grid; grid-template-columns: 34px 1fr; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--linea);
  font-size: 18px; font-weight: 600; }
.destacados-lista li::before { content: counter(d); font-size: 15px; font-weight: 800; color: var(--menta-tinta); font-variant-numeric: tabular-nums; }

/* ---------- Pasaporte (experiencias de la semana) ---------- */
.pasaporte { background: var(--blanco); }
.pasaporte-caja { max-width: var(--ancho); margin: 0 auto; padding: 68px var(--borde) 76px; }
.seccion-titulo { font-size: clamp(34px, 8vw, 60px); line-height: 1; letter-spacing: -.03em; font-weight: 800; color: var(--navy); text-wrap: balance; }
.seccion-bajada { margin-top: 14px; font-size: 19px; color: var(--gris); max-width: 46ch; }
.sellos { margin-top: 40px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
.sello { text-align: center; display: grid; justify-items: center; align-content: start; }
.sello-tinta { width: min(100%, 168px); aspect-ratio: 1; color: var(--navy); transform: rotate(var(--giro, -6deg)); }
.sello:nth-child(even) .sello-tinta { color: var(--menta-tinta); }
.sello-tinta svg { width: 100%; height: 100%; display: block; overflow: visible; }
.sello-tinta .aro { fill: none; stroke: currentColor; stroke-width: 2.4; }
.sello-tinta .aro-fino { fill: none; stroke: currentColor; stroke-width: 1; stroke-dasharray: 2 4; }
.sello-tinta text { fill: currentColor; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 10.4px; letter-spacing: .16em; }
.sello-tinta .glifo { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.sello h3 { margin-top: 14px; font-size: 20px; font-weight: 800; letter-spacing: -.01em; color: var(--navy); line-height: 1.2; }
.sello p { margin-top: 6px; font-size: 16px; line-height: 1.45; color: var(--gris); max-width: 28ch; }

/* ---------- Áreas ---------- */
.areas { background: var(--bruma); border-top: 1px solid var(--linea); }
.areas-caja { max-width: var(--ancho); margin: 0 auto; padding: 60px var(--borde) 68px; display: grid; gap: 28px; }
.areas-foto { border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--menta-suave); }
.areas-foto img { width: 100%; height: 100%; object-fit: cover; }
.areas-lista { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.areas-lista li { font-size: 17px; font-weight: 600; color: var(--navy); padding: 7px 16px; border: 1.5px solid var(--navy); border-radius: 999px; }

/* ---------- Pie ---------- */
.pie { color: rgba(255, 255, 255, .8); background: var(--navy-hondo); }
.pie-caja { max-width: var(--ancho); margin: 0 auto; padding: 40px var(--borde) 48px; display: grid; gap: 16px; font-size: 16px; }
.pie img { height: 52px; width: auto; }
.pie strong { color: var(--blanco); font-weight: 700; }

.sin-js { background: var(--bruma); padding: 32px var(--borde); font-size: 18px; }

/* ---------- Escritorio ---------- */
@media (min-width: 860px) {
  body { font-size: 19px; }
  .barra { padding-top: 30px; }
  .hero { grid-template-columns: 1.15fr .85fr; grid-template-areas: 'texto figura'; align-items: center; gap: 24px; padding-bottom: 80px; min-height: calc(100svh - 76px); }
  .hero-texto { grid-area: texto; }
  .hero-figura { grid-area: figura; width: min(36vw, 440px); }
  .escenario { padding-block: 56px 60px; }
  .escenario-areas { max-width: none; }
  .agenda-caja { grid-template-columns: 1.5fr 1fr; gap: 64px; padding-top: 48px; padding-bottom: 96px; align-items: start; }
  .destacados { position: sticky; top: calc(var(--alto-dias) + 28px); }
  .evento { grid-template-columns: 96px 38px 1fr; min-height: 70px; }
  .evento-hora { font-size: 24px; }
  .evento-titulo { font-size: 20px; }
  .evento[data-estado='ahora'] { margin-inline: -20px; padding-inline: 20px; border-radius: 14px; }
  .sellos { grid-template-columns: repeat(3, 1fr); gap: 56px 32px; margin-top: 56px; }
  .sello-tinta { width: 196px; }
  .pasaporte-caja { padding-block: 104px 112px; }
  .areas-caja { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-block: 88px; }
}

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