/* ---------- Web general: estilos propios ---------- */

/* HERO */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: 34px 0 30px; min-height: calc(100svh - 72px - 98px - var(--tabbar-h)); display: flex; align-items: center; }
.hero::before { /* rayas de la camiseta */
  content: ""; position: absolute; inset: 0; z-index: -2; opacity: .07;
  background: repeating-linear-gradient(90deg, #fff 0 34px, transparent 34px 68px);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero::after { /* luz celeste + oro */
  content: ""; position: absolute; inset: -20% -30% auto; height: 120%; z-index: -1;
  background:
    radial-gradient(50% 40% at 50% 26%, rgba(92, 200, 242, .32), transparent 70%),
    radial-gradient(40% 30% at 85% 70%, rgba(232, 173, 90, .16), transparent 70%);
}
.hero .wrap { text-align: center; }
.hero-photo { position: absolute; inset: 0; z-index: -3; background: url("../fotos/festejo-blanca.jpg") center 25% / cover no-repeat; opacity: .32;
  mask-image: linear-gradient(180deg, #000 30%, transparent 95%); -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 95%); }
.hero-ghost {
  position: absolute; left: 50%; top: 4px; transform: translateX(-50%); z-index: -1;
  font-family: var(--f-display); font-size: 31vw; line-height: .8; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .07);
}
@media (min-width: 560px) { .hero-ghost { font-size: 170px; } }
.hero-crest {
  width: min(340px, 86vw); height: auto; margin: 0 auto 14px;
  filter: drop-shadow(0 18px 40px rgba(92, 200, 242, .45)) drop-shadow(0 0 30px rgba(232, 173, 90, .35));
  animation: floaty 6s ease-in-out infinite;
}
.hero h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(58px, 17vw, 92px); line-height: .86; margin: 14px 0 0; letter-spacing: .01em; }
.hero h1 em { font-style: normal; color: var(--celeste); }
.hero-sub { margin: 14px auto 0; max-width: 340px; color: #c9d1e6; font-size: 15.5px; }
.hero-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.chip svg { width: 15px; height: 15px; color: var(--celeste); }

.hero-cta { display: grid; gap: 10px; margin: 20px auto 0; max-width: 380px; }

/* 120 AÑOS */
.aniv { position: relative; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(160deg, #191304, #0b0a07 55%); border: 1px solid rgba(232, 173, 90, .3); }
.aniv-num {
  font-family: var(--f-display); font-size: 168px; line-height: .78; letter-spacing: -.01em; margin: 26px 0 0 18px;
  background: linear-gradient(180deg, var(--oro-2), var(--oro) 60%, #9a6a2a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.aniv-body { padding: 10px 20px 22px; }
.aniv-body h3 { font-family: var(--f-display); font-weight: 400; font-size: 34px; line-height: .95; margin: 0 0 10px; }
.aniv-body p { margin: 0; color: #d8d0bf; font-size: 15px; }
.aniv-stripes { position: absolute; top: 0; right: 0; width: 44%; height: 190px; opacity: .9;
  background: repeating-linear-gradient(90deg, #f4f4f4 0 16px, #0b0b0b 16px 32px);
  mask-image: linear-gradient(225deg, #000 20%, transparent 75%); -webkit-mask-image: linear-gradient(225deg, #000 20%, transparent 75%); }

/* Foto del plantel */
.photo { position: relative; margin: 12px 0 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 2; background: var(--card-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; font-size: 12.5px; color: #cfd6e8; background: linear-gradient(180deg, transparent, rgba(4,5,13,.92)); }
.photo figcaption b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 26px; line-height: 1; color: #fff; }

/* Galería tipo "Historias" (ACB) */
.stories { display: flex; gap: 10px; overflow-x: auto; padding: 0 var(--gutter) 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.stories figure { position: relative; flex: none; height: min(228px, 60vw); margin: 0; border-radius: 14px; overflow: hidden; scroll-snap-align: start; cursor: zoom-in; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--celeste); }
.stories figure.h { aspect-ratio: 3 / 2; }
.stories figure.v { aspect-ratio: 2 / 3; }
.stories img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.stories figure:hover img, .stories figure:focus-visible img { transform: scale(1.04); }
.stories figcaption { position: absolute; inset: auto 0 0 0; padding: 30px 12px 10px; font-size: 13px; font-weight: 800; background: linear-gradient(180deg, transparent, rgba(0,0,0,.85)); }

/* Visor de fotos a pantalla completa */
.visor { border: 0; padding: 0; margin: auto; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(4,5,13,.96); color: #fff; }
.visor::backdrop { background: rgba(0,0,0,.8); }
.visor[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.visor img { max-width: 96vw; max-height: 84vh; object-fit: contain; border-radius: 10px; }
.visor p { margin: 0; font-weight: 800; font-size: 15px; }
.visor-x { position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 30px; line-height: 1; }

/* EQUIPOS */
.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.team { position: relative; overflow: hidden; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); padding: 18px 14px 16px; text-align: center; }
.team::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.team .crest { --s: 84px; margin: 0 auto 12px; }
.team b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 27px; line-height: 1; }
.team span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.3; }
.team.home { border-color: rgba(92, 200, 242, .45); background: linear-gradient(170deg, rgba(92, 200, 242, .16), var(--card) 55%); }
.team .pill { position: absolute; top: 10px; left: 10px; padding: 3px 8px; font-size: 9.5px; }

/* ENTRADA */
.ticket {
  position: relative; border-radius: 22px; overflow: hidden; color: #1a1205;
  background:
    radial-gradient(circle at 0 64%, var(--bg) 13px, transparent 14px),
    radial-gradient(circle at 100% 64%, var(--bg) 13px, transparent 14px),
    linear-gradient(140deg, #fbe2b0, var(--oro) 55%, #c9893a);
  box-shadow: 0 30px 60px -25px rgba(232, 173, 90, .6);
  transform: rotate(-2deg);
}
.ticket-top { padding: 20px 20px 18px; position: relative; }
.ticket-top::after { content: ""; position: absolute; right: -10px; top: -30px; width: 150px; height: 190px; opacity: .14; background: repeating-linear-gradient(90deg, #000 0 12px, transparent 12px 24px); transform: rotate(18deg); }
.ticket-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ticket .t-k { font-size: 10.5px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.ticket .t-title { font-family: var(--f-display); font-size: 40px; line-height: .9; margin: 6px 0 0; }
.ticket .t-crest { width: 62px; flex: none; background: #fff; border-radius: 12px; padding: 6px 4px; }
.ticket .t-data { display: flex; gap: 18px; margin-top: 14px; font-size: 12.5px; font-weight: 700; }
.ticket .t-data small { display: block; font-size: 9.5px; letter-spacing: .14em; opacity: .7; text-transform: uppercase; }
.ticket-bottom { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 18px; border-top: 2px dashed rgba(26, 18, 5, .35); }
.ticket .t-num { font-family: var(--f-clock); font-weight: 700; font-size: 22px; letter-spacing: .06em; }
.ticket .t-price { font-family: var(--f-display); font-size: 40px; line-height: 1; }

.benefits { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.benefits li { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; font-size: 14.5px; }
.benefits li svg { width: 22px; height: 22px; flex: none; color: var(--oro); margin-top: 1px; }
.benefits b { display: block; font-size: 15px; }

.prize { position: relative; margin-top: 14px; border-radius: var(--r-lg); overflow: hidden; padding: 22px 20px; isolation: isolate;
  background: linear-gradient(160deg, #0d3a52, #0a1a2e 60%); border: 1px solid rgba(92, 200, 242, .35); }
.prize::before { content: ""; position: absolute; inset: auto -40px -60px auto; width: 220px; height: 220px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(232, 173, 90, .45), transparent 65%); }
.prize .display { font-size: 44px; margin-top: 8px; }
.prize .display em { font-style: normal; color: var(--oro-2); }
.prize p { margin: 10px 0 0; color: #c9d8e6; font-size: 14.5px; }
.prize-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* HOSPITALIDAD */
.hosp { display: grid; gap: 10px; }
.hosp .card { display: flex; gap: 14px; align-items: center; }
.hosp .ico { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--celeste-soft); color: var(--celeste); }
.hosp .ico svg { width: 24px; height: 24px; }
.hosp b { display: block; font-size: 15px; }
.hosp span { font-size: 13.5px; color: var(--muted); }

/* SEDE */
.map { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--card); }
.map iframe { width: 100%; height: 100%; border: 0; filter: invert(.92) hue-rotate(180deg) saturate(.8) contrast(.9); }
.venue { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; }
.venue b { font-family: var(--f-display); font-weight: 400; font-size: 30px; line-height: 1; display: block; }
.venue span { font-size: 13px; color: var(--muted); }
.venue .btn { flex: none; white-space: nowrap; padding: 0 18px; }

/* OCTUBRE CULTURAL */
.cultural { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 24px 20px; isolation: isolate;
  background: linear-gradient(150deg, #3a0f4d, #12081f 60%); border: 1px solid rgba(255, 255, 255, .1); }
.cultural::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: radial-gradient(60% 50% at 90% 10%, rgba(255, 92, 170, .45), transparent 70%), radial-gradient(50% 40% at 0 100%, rgba(255, 190, 70, .35), transparent 70%); }
.cultural .display { font-size: 58px; }
.cultural p { color: #e2d6ee; margin: 12px 0 18px; font-size: 15px; }

/* SPONSORS */
.sponsors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sponsor { display: flex; flex-direction: column; border-radius: var(--r-sm); overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: transform .2s var(--ease), border-color .2s; }
.sponsor:hover, .sponsor:focus-visible { transform: translateY(-3px); border-color: var(--celeste); }
.sponsor img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #fff; }
.sponsor span { padding: 7px 8px 8px; font-size: 10.5px; line-height: 1.25; color: var(--muted); overflow-wrap: anywhere; }
.sponsor span b { display: block; font-size: 12px; color: var(--text); }

@keyframes floaty { 50% { transform: translateY(-8px); } }

/* ---------- Escritorio ---------- */
@media (min-width: 960px) {
  .hero { min-height: calc(100vh - 84px - 110px); padding: 70px 0 60px; }
  .hero-ghost { font-size: 340px; top: 0; }
  .hero-crest { width: 460px; }
  .hero h1 { font-size: 132px; }
  .hero-sub { max-width: 560px; font-size: 19px; }
  .countdown { max-width: 560px; }
  .cd-grid b { font-size: 46px; }
  .hero-cta { grid-template-columns: 1fr 1fr; max-width: 560px; }

  #sarmiento .wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; align-items: stretch; }
  #sarmiento .photo { margin: 0; aspect-ratio: auto; min-height: 100%; }
  /* Galería justificada: cada fila ocupa todo el ancho respetando la proporción de cada foto */
  .stories { flex-wrap: wrap; gap: 12px; overflow: visible; max-width: 1180px; margin: 0 auto; padding: 0 32px; }
  .stories::after { content: ""; flex-grow: 999; }
  .stories figure { height: 250px; aspect-ratio: auto !important; }
  .stories figure.h { flex: 1.5 1 360px; }
  .stories figure.v { flex: .667 1 160px; }

  .teams { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .team .crest { --s: 120px; }
  .team b { font-size: 36px; }

  #posiciones .card { max-width: 820px; }

  #entradas .wrap { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; grid-template-areas: "h h" "t p" "b c"; align-items: start; }
  #entradas .section-head { grid-area: h; }
  #entradas .ticket { grid-area: t; margin-top: 10px; }
  #entradas .benefits { grid-area: b; }
  #entradas .prize { grid-area: p; margin-top: 0; }
  #entradas .hero-cta { grid-area: c; margin-top: 26px; }

  .hosp { grid-template-columns: repeat(3, 1fr); gap: 16px; }

  #sede .wrap { display: grid; grid-template-columns: 1.6fr 1fr; column-gap: 32px; grid-template-areas: "h h" "m v"; align-items: center; }
  #sede .section-head { grid-area: h; }
  #sede .map { grid-area: m; aspect-ratio: 16 / 9; }
  #sede .venue { grid-area: v; flex-direction: column; align-items: flex-start; gap: 18px; margin: 0; }
  #sede .venue b { font-size: 46px; }

  .cultural { padding: 40px; }
  .cultural .display { font-size: 92px; }
  .cultural p { max-width: 760px; font-size: 17px; }

  .sponsors { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .sponsor span { font-size: 12px; padding: 10px 12px 12px; }
  .sponsor span b { font-size: 14px; }
  #sponsors .btn-line { max-width: 420px; }
}
.ticket .t-logo { width: 96px; flex: none; filter: drop-shadow(0 4px 8px rgba(0,0,0,.25)); }

/* Precios de entradas */
.precios { display: grid; gap: 10px; }
.precio { position: relative; padding: 16px 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; }
.precio .pill { grid-column: 1; justify-self: start; }
.precio .monto { grid-column: 2; grid-row: 1 / span 3; font-family: var(--f-display); font-size: 44px; line-height: 1; }
.precio p { grid-column: 1; margin: 8px 0 0; font-size: 14.5px; font-weight: 600; }
.precio small { grid-column: 1; font-size: 12.5px; color: var(--muted); }
.precio.destacado { border-color: rgba(232, 173, 90, .55); background: linear-gradient(150deg, rgba(232, 173, 90, .22), var(--card) 65%); }
.precio.destacado .monto { color: var(--oro-2); }
.aviso { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 26px; padding: 12px 14px; border-radius: var(--r); background: var(--oro-soft); border: 1px solid rgba(232, 173, 90, .35); font-size: 14px; }
.aviso svg { width: 20px; height: 20px; flex: none; color: var(--oro); margin-top: 1px; }
@media (min-width: 960px) {
  .precios { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .precio { grid-template-columns: 1fr; padding: 22px; }
  .precio .monto { grid-column: 1; grid-row: auto; font-size: 64px; margin-top: 12px; }
  #entradas .wrap { grid-template-areas: "h h" "pr pr" "av av" "t p" "b c"; }
  #entradas .precios { grid-area: pr; }
  #entradas .aviso { grid-area: av; }
}
.sponsor span i { display: block; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
