/* Ruta JaveBlockchain 2026-II: estilos compartidos.
   Estructura inspirada en la plantilla Stagefy (titulares grandes con palabras
   resaltadas en bloque, etiquetas con cuadrito, botones en píldora con flecha).
   Solo modo claro. Paleta del kit de Stellar: negro #0F0F0F, amarillo #FDDA24,
   blanco #F6F7F8, lavanda #B7ACE8 (emprendimiento) y verde azulado #00A7B5 (técnica). */
:root {
  --bg: #FFFFFF;
  --soft: #F6F7F8;
  --soft-2: #EEF0F3;
  --fg: #0F0F0F;
  --muted: #5B5F6B;
  --line: #E3E5EA;
  --yellow: #FDDA24;
  --lav: #B7ACE8;
  --emp: #EEEBFB; --emp-ink: #4B3F8F;
  --teal: #00A7B5;
  --tec: #DDF3F4; --tec-ink: #006B74;
  --fun: #FFF6CC; --fun-ink: #7A5C00;
  --ok: #1E7A43; --warn: #A26A00; --bad: #B42318;
  --display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 14px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 15.5px; line-height: 1.55; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 6px; }
code { font-family: var(--mono); font-size: .88em; background: var(--soft-2); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
pre { font-family: var(--mono); font-size: 13px; line-height: 1.5; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 14px; overflow-x: auto; margin: 0; white-space: pre; }
pre code { background: none; padding: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 40px; }

/* Barra superior */
.site { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site.scrolled { border-bottom-color: var(--line); }
.site .wrap { display: flex; align-items: center; gap: 24px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -.02em; white-space: nowrap; }
.brand img { height: 26px; width: auto; }
.site nav { display: flex; gap: 2px; margin-left: auto; }
.site nav a { text-decoration: none; font-size: 14px; font-weight: 500; padding: 7px 12px; border-radius: 999px; color: var(--muted); white-space: nowrap; }
.site nav a:hover { color: var(--fg); background: var(--soft); }
.site nav a[aria-current="page"] { color: var(--fg); background: var(--soft-2); }
/* Menús desplegables, como «Pages +» de la plantilla */
.drop { position: relative; }
.drop > button { font: inherit; font-size: 14px; font-weight: 500; padding: 7px 12px; border-radius: 999px; color: var(--muted); background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.drop > button span { font-size: 16px; line-height: 1; transition: transform .2s ease; }
.drop > button:hover, .drop.open > button { color: var(--fg); background: var(--soft); }
.drop.actual > button { color: var(--fg); background: var(--soft-2); }
.drop .sub { position: absolute; top: 100%; left: 0; margin-top: 8px; min-width: 220px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 6px; display: none; gap: 2px; box-shadow: 0 18px 40px -24px rgba(15, 15, 15, .35); }
.drop .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.drop:hover .sub, .drop:focus-within .sub, .drop.open .sub { display: grid; }
.drop:hover > button span, .drop.open > button span { transform: rotate(45deg); }
.site nav .sub a { display: block; padding: 9px 12px; border-radius: 8px; }
.menu-btn { display: none; margin-left: auto; font: inherit; font-size: 14px; font-weight: 600; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; color: var(--fg); }

/* Botones en píldora con flecha */
.btn { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 5px 5px 5px 18px; border: 1px solid var(--fg); background: var(--bg); color: var(--fg); white-space: nowrap; transition: transform .2s ease; }
.btn i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--fg); color: var(--yellow); transition: transform .2s ease; }
.btn i svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover i { transform: translateX(3px) rotate(-45deg); }
.btn.solid { background: var(--fg); color: #fff; }
.btn.solid i { background: var(--yellow); color: var(--fg); }
.btn.sm { font-size: 12px; padding: 4px 4px 4px 14px; gap: 10px; }
.btn.sm i { width: 28px; height: 28px; }
.cta { display: inline-flex; align-items: center; gap: 8px; background: var(--fg); color: #fff; font-weight: 600; text-decoration: none; border-radius: 999px; padding: 10px 20px; }

/* Tipografía */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(40px, 6.6vw, 88px); line-height: 1; letter-spacing: -.045em; }
h2 { font-size: clamp(30px, 4.2vw, 52px); }
h3 { font-size: 22px; letter-spacing: -.02em; }
h4 { font-size: 17px; letter-spacing: -.01em; }
p { margin: 0; max-width: 70ch; }
.mark { background: var(--yellow); color: var(--fg); padding: 0 .14em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.mark.lav { background: var(--lav); }
.mark.teal { background: var(--teal); }
.hl { background: var(--yellow); padding: 0 .14em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--fg); }
.eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--yellow); outline: 1px solid var(--fg); flex: 0 0 auto; }
.eyebrow .chip { letter-spacing: 0; text-transform: none; }
.lead { color: var(--muted); font-size: 18px; line-height: 1.55; }
.muted { color: var(--muted); }

/* Encabezado de sección: línea, etiqueta y titular */
.sec { padding-block: 96px 0; }
.sec-head { border-top: 1px solid var(--line); padding-top: 22px; display: grid; gap: 28px; margin-bottom: 44px; }
.sec-head.split { grid-template-columns: 1fr 1fr; align-items: end; }
.sec-head.split .eyebrow { grid-column: 1 / -1; }
.sec-head p { color: var(--muted); }

/* Páginas internas */
.hero { padding-block: 72px 48px; display: grid; gap: 22px; }
.hero h1 { font-size: clamp(40px, 6vw, 76px); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 14px; }
.facts b { color: var(--fg); font-weight: 600; }
main section { padding-block: 64px 0; display: grid; gap: 22px; scroll-margin-top: 80px; }
main { padding-bottom: 96px; }
main section > .eyebrow, main section > h2 { justify-self: start; }
main section > .eyebrow { border-top: 1px solid var(--line); padding-top: 22px; width: 100%; }
.stack { display: grid; gap: 12px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.box { background: var(--soft); border-radius: var(--r); padding: 24px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.box.link { text-decoration: none; transition: background .15s; }
.box.link:hover { background: var(--soft-2); }
.box .go { font-size: 14px; font-weight: 600; }
ul.clean, ol.clean { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; }
.subnav a { text-decoration: none; font-size: 13.5px; font-weight: 500; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; background: var(--bg); }
.subnav a:hover { border-color: var(--fg); }

/* Chips de ruta y nivel */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.chip.emp { background: var(--emp); color: var(--emp-ink); }
.chip.tec { background: var(--tec); color: var(--tec-ink); }
.chip.fun { background: var(--fun); color: var(--fun-ink); }
.chip.ple { background: var(--soft-2); color: var(--fg); }

/* Encabezado de sesión en páginas internas */
.ses-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 16px; border-top: 1px solid var(--line); padding-top: 22px; }
.ses-head > div { display: grid; gap: 14px; }
.ses-head .when { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; }
.objetivo { border-left: 4px solid var(--yellow); padding-left: 14px; }

/* Tablas */
.tw { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
.tw.wide table { min-width: 760px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--soft); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
td.num { font-weight: 600; }

/* Pasos numerados */
ol.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
ol.steps > li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
ol.steps > li::before { content: counter(s); font-weight: 700; font-size: 13px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--fg); color: var(--yellow); }

/* Minuto a minuto de un bloque */
.minutos { display: grid; border-top: 1px solid var(--line); }
.minutos > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.minutos .m { font-variant-numeric: tabular-nums; font-size: 14px; color: var(--fg); font-weight: 600; }
.minutos .a { display: grid; gap: 3px; min-width: 0; }
.minutos .a small { color: var(--muted); font-size: 14px; }

/* Tarea de la semana */
.tarea { background: var(--fun); border-radius: var(--r); padding: 22px 24px; display: grid; gap: 10px; }
.tarea .eyebrow::before { background: var(--fg); outline: 0; }
.tarea .vence { font-variant-numeric: tabular-nums; font-weight: 700; }

/* Plantillas copiables */
details.plantilla { background: var(--soft); border-radius: var(--r); }
details.plantilla > summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details.plantilla > summary::-webkit-details-marker { display: none; }
details.plantilla > summary::after { content: "+"; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--fg); color: var(--yellow); font-size: 18px; font-weight: 500; }
details.plantilla[open] > summary::after { content: "−"; }
details.plantilla .in { padding: 0 20px 20px; display: grid; gap: 10px; }
details.plantilla pre { background: var(--bg); }
.copy { justify-self: start; font: inherit; font-size: 13px; font-weight: 600; border: 1px solid var(--fg); background: var(--bg); color: var(--fg); border-radius: 999px; padding: 5px 14px; cursor: pointer; }
.copy:hover { background: var(--yellow); }

/* Semáforo */
.pill { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 10px; border: 1.5px solid currentColor; white-space: nowrap; }
.pill.ok { color: var(--ok); } .pill.warn { color: var(--warn); } .pill.bad { color: var(--bad); }

.note { font-size: 14px; color: var(--muted); border-left: 3px solid var(--line); padding-left: 12px; }

/* ===== Inicio ===== */

/* Hero */
.home-hero { padding-block: 56px 0; }
.home-hero .top { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: end; }
.home-hero h1 { font-size: clamp(46px, 8.2vw, 116px); }
.home-hero .side { display: grid; gap: 18px; padding-bottom: 10px; }
.home-hero .side p { color: var(--muted); font-size: 15.5px; }
.home-hero .bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 44px; padding-block: 18px; border-top: 1px solid var(--line); }
.home-hero .bar .d { font-weight: 600; font-variant-numeric: tabular-nums; }
.home-hero .bar .lugar { background: var(--yellow); padding: 3px 10px; font-size: 14px; font-weight: 500; }
.home-hero .foto { margin-top: 8px; border-radius: var(--r); overflow: hidden; aspect-ratio: 21 / 9; background: var(--soft); }
.home-hero .foto img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }

/* Sobre la Ruta y cifras */
.about h2 { max-width: 20ch; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 56px; }
.stat { display: grid; gap: 14px; align-content: start; }
.stat b { font-family: var(--display); font-size: clamp(48px, 6vw, 80px); font-weight: 500; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { border-top: 1px solid var(--line); padding-top: 14px; color: var(--muted); font-size: 14.5px; }

/* Tarjetas de las rutas */
.rutas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ruta { display: grid; grid-template-rows: auto 1fr auto; gap: 18px; min-height: 300px; padding: 24px; border-radius: var(--r); text-decoration: none; color: var(--fg); transition: transform .25s ease; }
.ruta:hover { transform: translateY(-4px); }
.ruta svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.ruta h3 { font-size: 24px; align-self: end; }
.ruta p { font-size: 14px; border-top: 1px solid rgba(15, 15, 15, .2); padding-top: 14px; }
.ruta.emp { background: var(--lav); }
.ruta.fun { background: var(--yellow); }
.ruta.tec { background: var(--teal); }
.ruta.demo { background: var(--soft-2); }

/* Collage de fotos alrededor de un titular */
.collage { position: relative; min-height: 540px; display: grid; place-items: center; text-align: center; padding-block: 40px; }
.collage .txt { position: relative; z-index: 2; display: grid; gap: 26px; justify-items: center; max-width: 640px; }
.collage h2 { font-size: clamp(38px, 5.6vw, 76px); letter-spacing: -.045em; }
.collage .ph { position: absolute; z-index: 1; border-radius: 10px; overflow: hidden; box-shadow: 0 24px 48px -28px rgba(15, 15, 15, .45); }
.collage .ph img { width: 100%; height: 100%; object-fit: cover; }
.collage .p1 { width: 210px; aspect-ratio: 3 / 4; left: 0; top: 0; }
.collage .p2 { width: 230px; aspect-ratio: 4 / 3; right: 2%; top: 2%; }
.collage .p3 { width: 180px; aspect-ratio: 4 / 3; left: 6%; bottom: 0; }
.collage .p4 { width: 280px; aspect-ratio: 4 / 3; right: 0; bottom: 0; }
.collage .p5 { width: 140px; aspect-ratio: 1; left: 22%; top: 0; }
.collage .p6 { width: 200px; aspect-ratio: 4 / 3; left: 34%; bottom: 3%; }

/* Agenda por sesión, como el «schedule» de la plantilla */
.regla { display: flex; flex-wrap: wrap; gap: 10px 28px; background: var(--soft); border-radius: var(--r); padding: 16px 20px; font-size: 14.5px; margin-bottom: 24px; }
.regla b { font-weight: 600; }
.dias { display: grid; }
.dia { display: grid; grid-template-columns: 260px 220px 1fr; gap: 32px; padding-block: 28px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.dia .ph { border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--soft); }
.dia .ph img { width: 100%; height: 100%; object-fit: cover; }
.dia .cab { display: grid; gap: 8px; align-content: start; }
.dia .cab .n { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.dia .cab .n::before { content: ""; width: 7px; height: 7px; background: var(--fg); }
.dia .cab h3 { font-size: 26px; }
.dia .cab .f { color: var(--muted); font-size: 14px; }
.dia .estado { justify-self: start; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: 3px 10px; margin-top: 6px; display: none; }
.dia.proxima .estado.prox { display: inline-block; background: var(--yellow); }
.dia.pasada .estado.hecha { display: inline-block; background: var(--soft-2); color: var(--muted); }
.dia .filas { display: grid; align-content: start; }
.dia .fila { display: grid; grid-template-columns: 70px 1fr; gap: 20px; padding-block: 12px; border-bottom: 1px solid var(--line); font-size: 15px; }
.dia .fila:first-child { padding-top: 0; }
.dia .fila .h { font-weight: 600; font-variant-numeric: tabular-nums; }
.dia .fila .par { display: grid; gap: 4px; }
.dia .fila .par span { display: flex; gap: 8px; align-items: baseline; }
.dia .fila .par .chip { font-size: 11.5px; padding: 1px 8px; }
.dia .vence { margin-top: 14px; font-size: 14px; color: var(--muted); }
.dia .vence b { color: var(--fg); }
.dia .mas { margin-top: 16px; }

/* Premios, como los «tickets» de la plantilla */
.premios { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.premio { border-radius: var(--r); padding: 28px; display: grid; gap: 18px; align-content: start; background: var(--soft); }
.premio.uno { background: var(--yellow); }
.premio .t { font-weight: 600; }
.premio .v { font-family: var(--display); font-size: clamp(44px, 5vw, 64px); font-weight: 500; letter-spacing: -.04em; line-height: 1; padding-bottom: 20px; border-bottom: 1px dashed rgba(15, 15, 15, .35); }
.premio ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14.5px; }
.premio li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.premio li::before { content: "✓"; font-weight: 700; }

/* Aliados */
.aliados { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.aliado { background: var(--soft); border-radius: var(--r); min-height: 120px; display: grid; place-items: center; text-align: center; padding: 18px; font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -.02em; line-height: 1.2; color: #2A2C33; }
.aliado small { display: block; font-family: var(--body); font-weight: 500; font-size: 12.5px; letter-spacing: 0; color: var(--muted); margin-top: 4px; }

/* Nosotros */
.equipo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.persona { background: var(--soft); border-radius: var(--r); padding: 22px; display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; }
.persona .ini { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--fg); color: var(--yellow); font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -.02em; }
.persona b { display: block; font-size: 16.5px; font-weight: 600; }
.persona span { color: var(--muted); font-size: 14px; line-height: 1.4; display: block; }
.mosaico { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 12px; margin-top: 12px; }
.mosaico figure { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--soft); }
.mosaico figure:first-child { grid-row: span 2; }
.mosaico img { width: 100%; height: 100%; object-fit: cover; }
.pie-foto { margin-top: 12px; font-size: 13.5px; color: var(--muted); }

/* Preguntas frecuentes */
.faq { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
.faq .lista { display: grid; gap: 10px; }
.faq details { background: var(--soft); border-radius: var(--r); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-weight: 600; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--fg); color: var(--yellow); font-size: 19px; font-weight: 500; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; color: var(--muted); font-size: 15px; }

/* Galería de fotos (sesión 1) */
.galeria { columns: 3 260px; column-gap: 12px; }
.galeria figure { margin: 0 0 12px; break-inside: avoid; border-radius: 10px; overflow: hidden; background: var(--soft); }
.galeria img { width: 100%; height: auto; }

/* Cronograma de la sesión 1 */
.s1-foto { border-radius: var(--r); overflow: hidden; aspect-ratio: 21 / 9; background: var(--soft); }
.s1-foto img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.linea { display: grid; border-top: 1px solid var(--line); }
.bloque { display: grid; grid-template-columns: 90px 1fr 280px; gap: 28px; padding-block: 24px; border-bottom: 1px solid var(--line); align-items: start; }
.bloque .hora { font-variant-numeric: tabular-nums; }
.bloque .hora b { display: block; font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.bloque .hora small { color: var(--muted); font-size: 13px; }
.bloque .txt { display: grid; gap: 10px; justify-items: start; }
.bloque h3 { font-size: 22px; }
.bloque ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--muted); }
.bloque figure { margin: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--soft); }
.bloque figure img { width: 100%; height: 100%; object-fit: cover; }

/* Pie de página */
footer.pie { background: var(--soft); margin-top: 96px; padding-top: 64px; overflow: hidden; }
footer.pie .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
footer.pie .intro { display: grid; gap: 20px; align-content: start; }
footer.pie .intro p { color: var(--muted); font-size: 14.5px; max-width: 42ch; }
footer.pie h4 { font-family: var(--body); font-size: 14px; font-weight: 600; letter-spacing: 0; margin-bottom: 12px; }
footer.pie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
footer.pie ul a { text-decoration: none; color: var(--muted); }
footer.pie ul a:hover { color: var(--fg); }
footer.pie .marca { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); padding-block: 28px 8px; }
footer.pie .marca img { width: clamp(52px, 9vw, 120px); height: auto; flex: 0 0 auto; }
footer.pie .marca span { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 9.4vw, 124px); letter-spacing: -.055em; line-height: .9; white-space: nowrap; }
footer.pie .legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-block: 18px 28px; color: var(--muted); font-size: 13px; }

/* Aparición al hacer scroll (solo si el navegador lo permite) */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .js .rev { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .js .rev.in { opacity: 1; transform: none; }
}

/* Redes y Luma */
.redes { display: flex; flex-wrap: wrap; gap: 8px; }
.redes a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--fg); color: var(--fg); background: var(--bg); transition: background .15s, transform .15s; }
.redes a:hover { background: var(--yellow); transform: translateY(-2px); }
.redes svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.home-hero .cuando { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.nav-extra { display: none; }
footer.pie .acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.comunidad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.red { display: grid; grid-template-columns: 44px 1fr 32px; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r); background: var(--soft); text-decoration: none; color: var(--fg); transition: transform .2s ease, background .2s ease; }
.red:hover { transform: translateY(-3px); background: var(--soft-2); }
.red.luma { grid-column: 1 / -1; background: var(--yellow); padding: 22px 24px; }
.red.luma:hover { background: #F6CF0F; }
.red.luma b { font-family: var(--display); font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.03em; }
.red .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--fg); }
.red.luma .ico { color: var(--yellow); }
.red .ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.red .ico.wa { background: #25D366; }
.red .ico.ig { background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FD5949 45%, #D6249F 60%, #285AEB 90%); }
.red .ico.li { background: #0A66C2; }
.red .ico.gh { background: #24292F; }
.red .t { display: grid; gap: 2px; min-width: 0; }
.red b { font-size: 16px; font-weight: 600; }
.red small { color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.red.luma small { color: var(--fg); }
.red > i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--fg); color: var(--yellow); transition: transform .2s ease; }
.red > i svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.red:hover > i { transform: rotate(-45deg); }
@media (max-width: 1080px) { .comunidad { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  .nav-extra { display: grid; gap: 14px; justify-items: start; padding: 14px 12px 4px; margin-top: 6px; border-top: 1px solid var(--line); }
  .site nav .nav-extra a { padding: 0; }
  .site nav .nav-extra .btn { display: inline-flex; padding: 5px 5px 5px 18px; font-size: 13px; color: #fff; }
  .site nav .redes a { padding: 0; }
}
@media (max-width: 560px) { .comunidad { grid-template-columns: 1fr; } }

@media (max-width: 1080px) {
  .rutas { grid-template-columns: 1fr 1fr; }
  .dia { grid-template-columns: 200px 1fr; }
  .dia .filas { grid-column: 1 / -1; }
  .equipo { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .wrap { padding-inline: 20px; }
  .site nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 12px 14px; }
  .site.open nav { display: flex; }
  .site nav a { padding: 11px 12px; font-size: 16px; }
  .drop > button { width: 100%; padding: 11px 12px; font-size: 16px; color: var(--fg); pointer-events: none; }
  .drop > button span { display: none; }
  .drop.actual > button, .drop.open > button { background: none; }
  .drop .sub, .drop:hover .sub { position: static; display: grid; margin: 0 0 4px 12px; padding: 0 0 0 10px; min-width: 0; border: 0; border-left: 2px solid var(--yellow); border-radius: 0; box-shadow: none; }
  .site nav .sub a { padding: 9px 12px; font-size: 15px; }
  .site .btn { display: none; }
  .menu-btn { display: inline-block; }
  .home-hero .top { grid-template-columns: 1fr; gap: 24px; }
  .home-hero .foto { aspect-ratio: 4 / 3; }
  .home-hero .bar { margin-top: 24px; }
  .sec { padding-block: 72px 0; }
  .sec-head.split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .premios, .faq { grid-template-columns: 1fr; }
  .faq { gap: 24px; }
  .collage { min-height: 0; display: block; text-align: left; padding: 0; }
  .collage .txt { justify-items: start; margin-bottom: 28px; }
  .collage .fotos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .collage .ph { position: static; width: auto !important; aspect-ratio: 4 / 3 !important; box-shadow: none; }
  .mosaico { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 140px 140px; }
  .mosaico figure:first-child { grid-column: span 2; grid-row: auto; }
  footer.pie .cols { grid-template-columns: 1fr 1fr; }
  footer.pie .intro { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .brand span { font-size: 15px; }
  .rutas { grid-template-columns: 1fr; }
  .ruta { min-height: 220px; }
  .dia { grid-template-columns: 1fr; gap: 18px; }
  .dia .ph { aspect-ratio: 16 / 9; }
  .dia .fila { grid-template-columns: 56px 1fr; gap: 14px; }
  .minutos > div { grid-template-columns: 1fr; gap: 2px; }
  .bloque { grid-template-columns: 64px 1fr; gap: 16px; }
  .bloque figure { grid-column: 1 / -1; }
  .bloque .hora b { font-size: 21px; }
  .s1-foto { aspect-ratio: 4 / 3; }
  .persona { grid-template-columns: 48px 1fr; }
  .persona .ini { width: 48px; height: 48px; font-size: 17px; }
}
@media print { .site { position: static; } details.plantilla .in { display: grid; } .js .rev { opacity: 1; transform: none; } }
