/* Mi Escuela Tiene un Héroe — landing posconcurso.
   Sin build ni dependencias: este archivo se sirve tal cual desde Cloudflare Pages. */

@font-face {
  font-family: "Inter Tight";
  src: url("/assets/fonts/inter-tight.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Libre Baskerville";
  src: url("/assets/fonts/libre-baskerville.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Libre Baskerville";
  src: url("/assets/fonts/libre-baskerville-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --cream: #faf7f3;
  --ink: #382d38;
  --ink-soft: #5a4e5a;
  --plum: #9c2a6f;
  --teal: #2ad2c9;
  --magenta: #e93cac;
  --line: rgba(56, 45, 56, 0.12);
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Libre Baskerville", Georgia, serif;
  /* Degradado del hero (el mismo que el sitio del concurso). */
  --grad-hero: linear-gradient(45deg, #2ad2c9 15%, #e93cac 85%);
  /* Degradado del isotipo de la marca: mismos extremos con pasos intermedios,
     para que el texto con degradado no se "ensucie" a mitad de camino. */
  --grad-brand: linear-gradient(
    45deg,
    #2ad2c9 15%,
    #32cac7 22%,
    #4bb7c3 34%,
    #7398bd 49%,
    #aa6db5 67%,
    #e93cac 85%
  );
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.lb-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.hero :focus-visible,
.site-footer :focus-visible,
.lightbox :focus-visible {
  outline-color: #fff;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  top: 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow {
  max-width: 1120px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--plum);
}

.serif-italic {
  font-family: var(--serif);
  font-style: italic;
}

.lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 700px;
}
.section-title {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.section-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
}

/* ───────── Botones ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 30px;
  font-family: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn--dark {
  background: var(--ink);
  color: #fff;
  padding: 18px 36px;
  font-size: 18px;
}
.btn--dark:hover {
  background: rgba(56, 45, 56, 0.88);
}
.btn--light {
  background: #fff;
  color: var(--ink);
  padding: 18px 36px;
  font-size: 18px;
}
.btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 9px 22px;
  font-size: 14px;
}
.btn--outline:hover {
  background: rgba(255, 255, 255, 0.16);
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

/* ───────── Hero ───────── */
.hero {
  background: var(--grad-hero);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0;
}
.site-nav__logo {
  line-height: 0;
}
.site-nav__logo img {
  height: 52px;
  width: auto;
}
.site-nav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  font-size: 14px;
  font-weight: 600;
  list-style: none;
  padding: 0;
}
.site-nav__links a {
  color: #fff;
  text-underline-offset: 4px;
}
.site-nav__links .btn {
  text-decoration: none;
}

.hero__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 32px;
  padding-top: 40px;
}
.hero__copy {
  flex: 1 1 440px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 72px;
}
.hero__art {
  flex: 1 1 440px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.hero__art img {
  width: 100%;
  max-width: 640px;
  height: auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--teal);
}

.hero h1 {
  font-size: clamp(42px, 6vw, 70px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 580px;
  color: #fff;
}

/* "héroes": caja blanca con el texto en degradado de marca. */
.hl {
  display: inline-block;
  background: #fff;
  border-radius: 14px;
  padding: 0 0.14em 0.02em 0.1em;
  line-height: 1.1;
}
.hl__text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  padding-right: 0.08em;
}

.hero__lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.65;
  max-width: 480px;
  color: rgba(255, 255, 255, 0.85);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
  margin-top: 8px;
}
.hero__actions .text-link {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-underline-offset: 4px;
}
.hero__logos {
  width: 100%;
  max-width: 380px;
  height: auto;
  margin-top: 20px;
}

/* ───────── Ganadores ───────── */
.winners {
  padding: 96px 0 88px;
}
.winners__inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.winners .section-head {
  align-self: center;
  align-items: center;
  text-align: center;
}
.winners .section-head .lede {
  text-wrap: balance;
}

.winner {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
}
.winner--first {
  flex-direction: row;
  flex-wrap: wrap;
  box-shadow: 0 24px 60px -30px rgba(156, 42, 111, 0.35);
}
.winner--first .video {
  flex: 1.4 1 480px;
  min-height: 260px;
}
.winner--first .winner__body {
  flex: 1 1 320px;
  padding: 44px 40px;
  justify-content: center;
  gap: 16px;
}
.winners__row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.winners__row .winner {
  flex: 1 1 440px;
}

.winner__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 32px 36px;
}
.place {
  align-self: flex-start;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.winner--first .place {
  background: var(--plum);
  padding: 8px 18px;
  font-size: 13px;
}
.winner__name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.25;
}
.winner--first .winner__name {
  font-size: 32px;
  line-height: 1.2;
}
.winner__school {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.winner__story {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.7;
}
/* Video de YouTube: miniatura + botón de play; el iframe se carga al hacer clic. */
.video {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #382d38 0%, #6a2a58 100%);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
}
.winners__row .winner:nth-child(1) .video {
  background: linear-gradient(135deg, #382d38 0%, #2a6a72 100%);
}
.winners__row .winner:nth-child(2) .video {
  background: linear-gradient(135deg, #382d38 0%, #7a2a62 100%);
}
.video__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video__play {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 999px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease;
}
.winner--first .video__play {
  width: 84px;
  height: 84px;
}
.video:hover .video__play {
  transform: scale(1.06);
}
.video__play svg {
  width: 24px;
  height: 24px;
  margin-left: 3px;
  fill: var(--ink);
}
.winner--first .video__play svg {
  width: 30px;
  height: 30px;
  margin-left: 4px;
}
.video__ph {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 12px;
  border-radius: 999px;
}
.video:has(.video__thumb) .video__ph {
  display: none;
}
.video--playing iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ───────── Galería (bento) ───────── */
.gallery {
  background: #fff;
  border-top: 1px solid rgba(56, 45, 56, 0.08);
  border-bottom: 1px solid rgba(56, 45, 56, 0.08);
  padding: 88px 0;
}
.gallery__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.bento {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 210px;
  gap: 14px;
  grid-auto-flow: dense;
}
.bento li {
  min-width: 0;
}
.bento .b1 {
  grid-column: span 2;
  grid-row: span 2;
}
.bento .b4,
.bento .b6 {
  grid-row: span 2;
}
.bento .b5,
.bento .b8,
.bento .b11,
.bento .b12 {
  grid-column: span 2;
}
/* Segundo bloque de 6: la foto grande va a la derecha. */
.bento .b7 {
  grid-column: 3 / span 2;
  grid-row: span 2;
}
.tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  cursor: zoom-in;
  font-family: inherit;
  text-align: left;
  background: linear-gradient(135deg, rgba(42, 210, 201, 0.28), rgba(233, 60, 172, 0.28));
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.bento li:nth-child(even) .tile {
  background: linear-gradient(135deg, rgba(233, 60, 172, 0.28), rgba(42, 210, 201, 0.28));
}
.tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -18px rgba(56, 45, 56, 0.45);
}
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tile__label {
  position: relative;
  margin: 14px;
  background: rgba(56, 45, 56, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 999px;
}
.tile:has(img) .tile__label {
  display: none;
}
.tile__icon {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tile__icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ───────── Visor de fotos ───────── */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(24, 17, 24, 0.97);
  color: #fff;
}
.lightbox[open] {
  display: flex;
  flex-direction: column;
}
.lightbox::backdrop {
  background: rgba(24, 17, 24, 0.97);
}
.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}
.lightbox__count {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.lightbox__btn {
  flex: none;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__btn:hover {
  background: rgba(255, 255, 255, 0.24);
}
.lightbox__btn svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lightbox__stage {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 12px 24px;
  touch-action: pan-y;
}
.lightbox__figure {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  max-width: 1200px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.lightbox__media {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
}
.lightbox__ph {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  background: linear-gradient(135deg, #2b6f73 0%, #6a2a58 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.lightbox__caption {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  min-height: 1.4em;
}

/* ───────── 2027 ───────── */
.next {
  padding: 88px 0;
}
.next__card {
  background: var(--ink);
  border-radius: 32px;
  padding: 64px 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}
.next__copy {
  flex: 1 1 440px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.next .eyebrow {
  /* Sobre el fondo oscuro de la tarjeta el ciruela de `.eyebrow` no se lee. */
  color: var(--teal);
  /* `.next p` da serif a 17px al párrafo del bloque y le gana por
     especificidad a `.eyebrow`, que es también un <p>. Se le devuelven acá la
     tipografía y el cuerpo, para que se lea igual que "Ceremonia de
     premiación" y los demás. El interletrado ya es relativo (0.3em), así que
     acompaña solo. */
  font-family: var(--sans);
  font-size: 12px;
}
.next h2 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}
.next h2 em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--teal);
}
.next p {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
}

/* ───────── Contacto ───────── */
.contact {
  padding: 24px 0 104px;
}
.contact__inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.contact .section-title {
  font-size: clamp(32px, 4.6vw, 48px);
}
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.field {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-size: 14px;
  font-weight: 600;
}
.field input,
.field textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1.5px solid #8a7f87;
  border-radius: 14px;
  padding: 0 16px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}
.field input {
  height: 52px;
}
.field textarea {
  min-height: 150px;
  padding: 14px 16px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: 3px solid var(--ink);
  outline-offset: 1px;
  border-color: var(--ink);
}
/* Señuelo anti-spam: los bots lo rellenan, las personas no lo ven. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.form__note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 340px;
}
.form__note a {
  color: var(--plum);
  text-underline-offset: 3px;
}
.form__status {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  border-radius: 14px;
  padding: 0;
}
.form__status:not(:empty) {
  padding: 14px 18px;
}
.form__status--ok {
  background: #e3f6f1;
  color: #0b5a4f;
}
.form__status--error {
  background: #fbe9f3;
  color: #7a1f55;
}

/* ───────── Pie ───────── */
.site-footer {
  background: var(--ink);
  padding: 36px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 28px;
}
.site-footer img {
  height: 44px;
  width: auto;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.78);
}

/* ───────── Páginas legales ───────── */
.legal-head {
  background: var(--grad-hero);
  color: #fff;
}
.legal-head .site-nav {
  padding: 22px 0;
}
.legal-main {
  padding: 72px 0 96px;
}
.legal {
  max-width: 760px;
  margin: 0 auto;
}
.legal h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 42px);
  line-height: 1.15;
  margin-bottom: 28px;
}
.legal h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
  margin: 44px 0 14px;
}
.legal p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.75;
}
.legal ul {
  margin: 0 0 16px;
  padding-left: 22px;
}
.legal li {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.75;
}
.legal a {
  color: var(--plum);
  text-underline-offset: 3px;
}
.legal .meta {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 10px;
}
.legal__head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 28px;
}
.legal__head-row h1 {
  margin: 0;
}
.legal__head-row a {
  font-size: 15px;
  font-weight: 700;
}
.pdf-frame {
  width: 100%;
  height: 70vh;
  min-height: 420px;
  border: 1px solid rgba(56, 45, 56, 0.18);
  border-radius: 16px;
  background: #fff;
}
.pdf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: center;
  margin-top: 20px;
}
.pdf-actions .btn {
  padding: 14px 28px;
  font-size: 15px;
}
.pdf-actions a:not(.btn) {
  font-size: 15px;
  font-weight: 700;
  color: var(--plum);
  text-underline-offset: 4px;
}

/* ───────── 404 ───────── */
.notfound {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px;
  text-align: center;
  background: var(--grad-hero);
  color: #fff;
}
.notfound img {
  height: 71px;
  width: auto;
}
.notfound h1 {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ───────── Móvil ───────── */
@media (max-width: 720px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 170px;
  }
  .bento .b7 {
    grid-column: span 2;
  }
  .next__card {
    padding: 44px 28px;
  }
  .winner--first .winner__body {
    padding: 32px 28px;
  }
}

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