/* HUELLA · fotos de actos. Misma base que estilos.css; los detalles tiernos (Fredoka, manchas de color) solo viven en estas pantallas. */
:root { --a-azul: #03456B; --a-azul2: #205AB0; --a-rojo: #CB152D; --a-sol: #FFD45C; --a-crema: #FBF8F2; }
.fre, #s-acto h1, #s-elegir h1, #s-album h2, #s-resumen h2, #s-abuscar h2, #s-descarga h1, #s-descarga h2 { font-family: 'Fredoka', 'Inter', sans-serif; font-weight: 700; letter-spacing: -.01em; }

/* portada: qué hace HUELLA */
.que-hay { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; }
.que-hay > div { background: var(--blanco); border: 1.5px solid var(--linea); border-radius: 12px; padding: 14px; }
.que-hay span.ic { font-size: 24px; line-height: 1; display: block; margin-bottom: 8px; }
.que-hay b { display: block; font-size: 13.5px; letter-spacing: .06em; }
.que-hay p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.38; color: var(--gris); }

/* tarjeta del colegio con los dos estados */
.est-caja { width: 100%; border: 1.5px solid var(--linea); border-radius: 10px; padding: 3px 8px; display: block; }
.est-fila { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 5px 0; font-size: 12.5px; font-weight: 650; color: var(--tinta); }
.est-fila + .est-fila { border-top: 1px solid var(--linea); }
.est-fila .pill { font-style: normal; font-size: 10px; padding: 3px 6px; letter-spacing: 0; }

/* elegir: anuario o acto */
.opc { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--blanco); border: 0; border-radius: 16px; box-shadow: var(--sombra); padding: 20px 16px; margin-top: 12px; cursor: pointer; position: relative; overflow: hidden; }
.opc:hover { box-shadow: var(--sombra-alta); } .opc:active { transform: scale(.985); }
.opc-ico { font-size: 30px; flex: none; position: relative; }
.opc-txt { flex: 1; min-width: 0; position: relative; } .opc-txt b { display: block; font-size: 18px; line-height: 1.2; } .opc-txt span { font-size: 14.5px; color: var(--gris); }
.opc .pill { font-style: normal; flex: none; position: relative; }
.opc-acto { background: #FFF6DC; }
.opc-acto b { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 21px; color: var(--a-azul); }
.opc-acto::before, .opc-acto::after { content: ""; position: absolute; border-radius: 46% 54% 60% 40% / 50% 44% 56% 50%; }
.opc-acto::before { width: 92px; height: 70px; left: -44px; top: -38px; background: var(--a-rojo); }
.opc-acto::after { width: 120px; height: 74px; right: -52px; bottom: -50px; background: var(--a-azul2); }

/* presentación del acto */
.ac-hero { position: relative; overflow: hidden; background: var(--a-crema); border-radius: 18px; box-shadow: var(--sombra); text-align: center; padding: 34px 18px 30px; }
.ac-hero i { position: absolute; border-radius: 46% 54% 60% 40% / 50% 44% 56% 50%; }
.ac-hero i:nth-child(1) { width: 150px; height: 104px; left: -62px; top: -52px; background: var(--a-azul); }
.ac-hero i:nth-child(2) { width: 120px; height: 120px; right: -70px; top: -58px; background: var(--a-rojo); }
.ac-hero i:nth-child(3) { width: 90px; height: 110px; left: -58px; bottom: -32px; background: var(--a-sol); }
.ac-hero i:nth-child(4) { width: 130px; height: 90px; right: -62px; bottom: -46px; background: var(--a-azul2); }
.ac-hero > *:not(i) { position: relative; }
.ac-hero .eyebrow { color: var(--a-azul); margin-bottom: 6px; }
.ac-hero h1 { font-size: 38px; line-height: 1; color: var(--a-azul); margin: 0 0 14px; }
.ac-grupo { display: inline-block; background: var(--a-rojo); color: #fff; font: 600 18px/1 'Fredoka', sans-serif; padding: 10px 18px 11px; border-radius: 99px; }
.ac-fecha { display: block; margin-top: 12px; font-weight: 650; font-size: 16px; } .ac-fecha::first-letter { text-transform: uppercase; }
.ac-aviso { margin-top: 14px; background: var(--a-sol); border-radius: 16px; padding: 18px; text-align: center; color: #3D2E00; }
.ac-aviso b { display: block; font: 700 25px/1.1 'Fredoka', sans-serif; color: var(--a-azul); } .ac-aviso span { display: block; margin-top: 6px; font-size: 16.5px; text-wrap: balance; }
.ac-aviso strong { font-weight: 800; }
.ac-reloj { text-align: center; margin: 10px auto 0; font-size: 15px; color: var(--gris); font-variant-numeric: tabular-nums; } .ac-reloj b { color: var(--tinta); }
.ac-clave { background: var(--blanco); border-radius: 16px; box-shadow: var(--sombra); padding: 18px; margin-top: 14px; }
.ac-clave .input { text-align: center; font-size: 20px; font-weight: 700; letter-spacing: .04em; }
.ac-clave .campo > span { text-align: center; font-size: 17px; }
.ac-cierra { text-align: center; margin: 12px 0 0; font-size: 15.5px; }
.ac-tit { font: 700 23px/1.15 'Fredoka', sans-serif; color: var(--a-azul); text-align: center; margin: 28px 0 4px; }
.ac-sub { text-align: center; font-size: 15.5px; margin: 0 auto 14px; max-width: 340px; text-wrap: balance; color: var(--gris); }
.pk-galeria { background: var(--a-sol); border-radius: 16px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pk-galeria b { display: block; font: 700 21px/1.1 'Fredoka', sans-serif; color: var(--a-azul); } .pk-galeria span { font-size: 14px; color: #3D2E00; }
.pk-galeria strong { font: 700 27px/1 'Fredoka', sans-serif; color: var(--a-rojo); }
.pk-grilla { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.pk { background: var(--blanco); border-radius: 14px; box-shadow: var(--sombra); padding: 13px 14px; }
.pk b { display: block; font: 600 16px/1.1 'Fredoka', sans-serif; color: var(--a-azul2); } .pk strong { display: block; font: 700 23px/1.2 'Fredoka', sans-serif; color: var(--a-azul); } .pk span { font-size: 13.5px; line-height: 1.3; display: block; color: var(--gris); }
.pk-sueltas { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; margin-top: 14px; font-size: 15px; } .pk-sueltas b { font: 700 18px 'Fredoka', sans-serif; color: var(--a-azul); }

/* álbum */
#alAlumnos { margin-bottom: 14px; } #alAlumnos .chip { padding: 8px 14px; min-height: 40px; } .chip-mas { border-style: dashed; color: var(--gris); }
#s-album h2, #s-resumen h2, #s-abuscar h2 { color: var(--a-azul); font-size: 29px; }
.al-ayuda { font-size: 15px; color: var(--gris); margin: 0 0 14px; }
.al-grilla { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; } .al-grilla > .buscando { grid-column: 1 / -1; }
.af { margin: 0; background: var(--blanco); border-radius: 12px; overflow: hidden; box-shadow: var(--sombra); outline: 3px solid transparent; transition: outline-color .12s; }
.af.on { outline-color: var(--c); }
.af-foto { display: block; width: 100%; aspect-ratio: 4 / 5; border: 0; padding: 0; background: #EDE8DF; cursor: zoom-in; }
.af-foto img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; -webkit-touch-callout: none; user-select: none; -webkit-user-drag: none; }
.af-btns { display: grid; grid-template-columns: 1fr 1fr; }
.af-btns button { border: 0; background: none; min-height: 48px; padding: 4px 2px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 12px; font-weight: 700; color: var(--gris); cursor: pointer; white-space: nowrap; }
.af-btns button + button { border-left: 1px solid var(--linea); } .af-btns svg { width: 20px; height: 20px; }
.af-btns button.on { background: var(--c); color: #fff; }
.al-regalo { text-align: center; background: #FFF6DC; border-radius: 12px; padding: 13px 14px; font-size: 15px; margin: 18px 0 0; }
.tip { position: sticky; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 15; display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 16px; background: var(--a-sol); color: #2E2300; border: 0; border-radius: 14px; padding: 11px 14px; font-size: 14.5px; line-height: 1.32; box-shadow: 0 8px 24px rgba(27, 26, 23, .2); text-align: left; }
.tip span { flex: 1; } .tip button, .tip em { flex: none; border: 0; background: var(--a-azul); color: #fff; font-style: normal; font-weight: 700; font-size: 14px; border-radius: 99px; padding: 10px 14px; cursor: pointer; }
.tip-resumen { position: static; box-shadow: none; cursor: pointer; margin-top: 10px; }
body:has(#s-album:not([hidden])) .wa-flota, body:has(#s-resumen:not([hidden])) .wa-flota, body:has(#visor:not([hidden])) .wa-flota { display: none !important; }

/* foto grande */
.visor { position: fixed; inset: 0; z-index: 60; background: #14130F; display: flex; flex-direction: column; color: #fff; }
.visor-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; font-size: 14px; font-weight: 650; }
.visor-top button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 22px; cursor: pointer; }
.visor-foto { flex: 1; min-height: 0; display: grid; place-items: center; position: relative; }
.visor-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; -webkit-touch-callout: none; user-select: none; -webkit-user-drag: none; }
.visor-foto button { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .45); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
#vAnt { left: 10px; } #vSig { right: 10px; }
.visor-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); max-width: 520px; width: 100%; margin: 0 auto; }
.visor-btns button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .5); background: none; color: #fff; font-weight: 700; font-size: 16.5px; cursor: pointer; }
.visor-btns svg { width: 22px; height: 22px; } .visor-btns button.on { background: #fff; color: #14130F; border-color: #fff; }

/* resumen */
.oferta { background: var(--a-sol); border-radius: 16px; padding: 18px; text-align: center; color: #2E2300; margin-top: 10px; }
.oferta-t { font: 600 21px/1.1 'Fredoka', sans-serif; color: var(--a-azul); } .oferta-t b { font-size: 31px; color: var(--a-rojo); font-weight: 700; } .oferta-s { margin: 5px 0 14px; font-size: 16px; text-wrap: balance; }
.res-al { margin-top: 14px; padding: 16px; } .res-tit { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; } .res-tit b { display: block; font-size: 17px; line-height: 1.2; } .res-tit span { font-size: 14px; color: var(--gris); } .res-tit .link { font-size: 14px; flex: none; padding: 0; }
.res-gal { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #FFF6DC; border-radius: 10px; padding: 11px 13px; margin-top: 12px; font-size: 14.5px; } .res-gal .link { font-size: 14px; }
.res-f { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--linea); position: relative; } .res-f:last-child { border-bottom: 0; padding-bottom: 0; }
.res-f > img { width: 84px; height: 105px; object-fit: cover; object-position: center 35%; border-radius: 8px; flex: none; background: #EDE8DF; }
.res-op { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.tog { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--linea); background: var(--blanco); color: var(--gris); border-radius: 99px; padding: 6px 12px; font-weight: 700; font-size: 13.5px; cursor: pointer; } .tog svg { width: 17px; height: 17px; } .tog.on { background: var(--c); border-color: var(--c); color: #fff; }
.res-inc { font-size: 14px; font-weight: 650; color: var(--ok); } .res-imp { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stepper.mini { padding: 2px; } .stepper.mini button { width: 32px; height: 32px; font-size: 18px; } .stepper.mini output { width: 24px; font-size: 16px; }
.tam { display: inline-flex; background: var(--crema-2); border-radius: 10px; padding: 3px; } .tam button { border: 0; background: none; border-radius: 8px; padding: 6px 10px; font-size: 13px; font-weight: 700; color: var(--gris); cursor: pointer; } .tam button.on { background: var(--blanco); color: var(--tinta); box-shadow: 0 1px 3px rgba(27, 26, 23, .16); } .tam small { font-weight: 600; font-size: 11.5px; }
.res-x { position: absolute; right: -6px; top: 8px; width: 34px; height: 34px; border: 0; background: none; color: var(--gris-claro); font-size: 22px; cursor: pointer; }
.res-falta { margin: 12px 0 10px; }
#rNota { font-size: 15px; text-align: center; margin: 12px 0 0; color: var(--gris); } #rEntrega { margin-top: 14px; display: block; } #rEntrega b { display: block; }

/* descarga */
#s-descarga h1 { color: var(--a-azul); } #s-descarga h2 { color: var(--a-azul); font-size: 24px; }
.bajar { position: relative; overflow: hidden; margin-top: 10px; min-height: 62px; font-size: 18px; } .bajar .av { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(255, 255, 255, .28); transition: width .25s; } .bajar .tx { position: relative; } .bajar.hecho { background: var(--ok); } .bajar[disabled] { opacity: .85; }
.dg-ayuda { font-size: 14.5px; color: var(--gris); text-align: center; margin: 10px 0 14px; text-wrap: balance; }
.dg-grilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.df { position: relative; border: 0; padding: 0; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: #EDE8DF; cursor: pointer; } .df img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.df i { position: absolute; right: 6px; bottom: 6px; width: 32px; height: 32px; border-radius: 50%; background: rgba(20, 19, 15, .62); color: #fff; display: grid; place-items: center; } .df i svg { width: 18px; height: 18px; } .df.hecha i { background: var(--ok); } .df.bajando img { opacity: .5; }
.dg-regalo { background: #FFF6DC; border-radius: 16px; padding: 20px 16px; text-align: center; } .dg-regalo h2 { margin-top: 0; } .dg-regalo p { margin: 0 0 12px; }
@media (min-width: 700px) { .tip { bottom: 96px; } .al-grilla { grid-template-columns: repeat(3, 1fr); } }
.late .tip-regalo { animation: late .45s ease-in-out 4; } @keyframes late { 50% { transform: scale(1.035); } }
