/* Presentación del Consejo Consultivo Académico · vecinosbuenosaires.com.ar
   Paleta y tipografía tomadas del flyer oficial. */

:root {
  --night: #1F0D3A;      /* fondo del flyer */
  --night-2: #261143;
  --violet: #6C2C94;     /* círculo y bloque de fecha */
  --violet-dk: #4E1E6E;
  --lilac: #CBB0EE;      /* "ACADÉMICO" */
  --gold: #E2B551;       /* dorado del flyer */
  --gold-lt: #F6D98B;
  --paper: #F7F3FB;
  --ink: #1D0B33;
  --muted: #5E4F72;
  --text-lt: #FFFFFF;
  --line: #E2D8EE;
  --radius: 14px;
  --f-display: "Montserrat", "Arial", system-ui, sans-serif;
  --f-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-script: "Cormorant Garamond", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--text-lt); font-family: var(--f-body); font-size: 17px; line-height: 1.55; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }

/* ---------- Barra superior ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(29, 11, 51, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(205, 167, 101, .25); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 12px; }
.brand { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 1.05rem; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand b { color: var(--lilac); font-weight: 700; }
.topbar-cta { flex: none; font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .95rem; text-decoration: none; color: var(--night); background: var(--gold); padding: .5rem 1rem; border-radius: 999px; transition: background .2s; }
.topbar-cta:hover { background: var(--gold-lt); }

/* ---------- Hero (diseño del flyer: 7 de noviembre, 24 distritos) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding: 34px 0 40px;
  background:
    radial-gradient(60rem 40rem at 50% 18%, rgba(98, 44, 150, .55), transparent 70%),
    radial-gradient(50rem 40rem at 100% 60%, rgba(70, 30, 120, .55), transparent 70%),
    linear-gradient(180deg, #2B1350 0%, #22103F 45%, #1B0C33 100%);
}
/* Haces de luz dorados en las esquinas, como en el flyer */
.streaks { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.streaks span {
  position: absolute; height: 2px; width: 46vw; max-width: 620px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 214, 120, .95) 55%, rgba(255, 244, 210, 1) 70%, transparent);
  box-shadow: 0 0 18px 2px rgba(240, 190, 80, .55);
  filter: blur(.3px); opacity: .9;
}
.streaks .s1 { top: 60px; left: -12vw; transform: rotate(-24deg); animation: shine 6s ease-in-out infinite; }
.streaks .s2 { top: 130px; left: -16vw; transform: rotate(-24deg); width: 34vw; opacity: .55; animation: shine 6s 1.2s ease-in-out infinite; }
.streaks .s3 { bottom: 140px; right: -12vw; transform: rotate(-24deg); animation: shine 6s .6s ease-in-out infinite; }
.streaks .s4 { bottom: 70px; right: -16vw; transform: rotate(-24deg); width: 34vw; opacity: .55; animation: shine 6s 1.8s ease-in-out infinite; }
@keyframes shine { 0%, 100% { opacity: .35; } 50% { opacity: .95; } }

.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.cca-mapa { display: block; width: clamp(130px, 22vw, 200px); height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); animation: rise .8s .1s both; }
.hero-distrito {
  margin: .9rem 0 0; font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.3rem, 9vw, 4.4rem); line-height: .98; letter-spacing: .005em; animation: rise .8s .2s both;
}

.pres { display: flex; align-items: center; gap: clamp(.8rem, 3vw, 1.6rem); width: 100%; max-width: 980px; margin: clamp(1.8rem, 5vw, 2.8rem) 0 .4rem; animation: rise .8s .3s both; }
.pres-line { flex: 1; height: 2px; background: linear-gradient(90deg, transparent, var(--gold) 30%, #F4D98E 70%, transparent); box-shadow: 0 0 10px rgba(240, 190, 80, .45); }
.pres-txt { font-family: var(--f-display); font-weight: 500; text-transform: uppercase; letter-spacing: .32em; margin-right: -.32em; font-size: clamp(.95rem, 3.4vw, 1.7rem); white-space: nowrap; }

.title { margin: 0; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; line-height: 1; letter-spacing: -.005em; display: flex; flex-direction: column; align-items: center; }
.t-line { display: block; font-size: clamp(1.9rem, 7.6vw, 5.1rem); text-shadow: 0 4px 24px rgba(0, 0, 0, .35); animation: rise .8s .4s both; }
.t-big { font-size: clamp(2.6rem, 11vw, 6.6rem); animation-delay: .5s; }
.ribbon {
  display: block; margin-top: .6rem; padding: .55em 1.6em; font-size: clamp(1rem, 4vw, 2.3rem); letter-spacing: .08em; color: #241040;
  background: linear-gradient(180deg, #FBE7A4 0%, #E9C46A 45%, #C8973A 100%);
  clip-path: polygon(2.5% 0, 100% 0, 97.5% 100%, 0 100%); box-shadow: 0 10px 30px -10px rgba(240, 190, 80, .6);
  animation: rise .8s .62s both;
}
.ribbon span { display: block; transform: translateY(.04em); }
.junto { margin: clamp(1.4rem, 4vw, 2.2rem) 0 0; font-family: var(--f-display); font-weight: 500; text-transform: uppercase; letter-spacing: .14em; line-height: 1.45; font-size: clamp(.95rem, 3.3vw, 1.75rem); animation: rise .8s .74s both; }
.junto b { font-weight: 800; color: #F2C94C; background: linear-gradient(180deg, #FBE29A, #E3AE36); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

/* Datos con íconos dorados */
.datos { list-style: none; margin: clamp(2rem, 6vw, 3rem) 0 0; padding: 0; display: grid; gap: clamp(1.1rem, 3vw, 1.6rem); text-align: left; width: min(100%, 640px); animation: rise .8s .86s both; }
.datos li { display: flex; align-items: center; gap: clamp(1rem, 4vw, 1.8rem); }
.ico { flex: none; width: clamp(44px, 11vw, 66px); height: auto; fill: none; stroke: #E9BE5A; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(240, 190, 80, .35)); }
.ico circle[r="1.6"] { fill: #E9BE5A; stroke: none; }
.dato { display: flex; flex-direction: column; padding-left: clamp(1rem, 4vw, 1.8rem); border-left: 2px solid rgba(233, 190, 90, .85); }
.d-k { font-family: var(--f-display); font-weight: 500; text-transform: uppercase; letter-spacing: .2em; font-size: clamp(.9rem, 3vw, 1.35rem); line-height: 1.2; }
.d-k-addr { letter-spacing: .02em; }
.d-v { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.5rem, 6vw, 2.7rem); line-height: 1.08; }

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 22px; margin-top: clamp(2rem, 6vw, 2.8rem); animation: rise .8s .98s both; }
.countdown { margin: 0; color: var(--lilac); font-weight: 500; }
.countdown b { color: var(--gold-lt); font-family: var(--f-display); font-size: 1.25em; letter-spacing: .02em; }

.logos-band { width: 100%; max-width: 980px; margin-top: clamp(2.4rem, 7vw, 3.6rem); padding: clamp(1rem, 3vw, 1.6rem) 0; border-top: 2px solid rgba(233, 190, 90, .7); border-bottom: 2px solid rgba(233, 190, 90, .45); }
.logos { display: block; width: min(100%, 760px); height: auto; margin: 0 auto; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; padding: .8rem 1.6rem; border-radius: 999px; border: 0; font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: transform .15s, background .2s, color .2s, box-shadow .2s; }
.btn:active { transform: translateY(1px); }
.btn { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.status.is-ok { color: #1E7A45; }
.btn-gold { background: linear-gradient(180deg, #FBE7A4 0%, #E9C46A 50%, #C8973A 100%); color: #241040; box-shadow: 0 12px 34px -12px rgba(240, 190, 80, .75); }
.btn-gold:hover { background: linear-gradient(180deg, #FFF0BF 0%, #F1D07A 50%, #D6A548 100%); }
.btn-outline { background: transparent; color: var(--text-lt); border: 1.5px solid rgba(255, 255, 255, .5); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-lt); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Secciones ---------- */
.band { padding: 72px 0; }
.band-light { background: var(--paper); color: var(--ink); }
.kicker { margin: 0 0 .7rem; font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: .26em; font-size: .92rem; color: var(--violet); }
.kicker-gold { color: var(--gold); }
.h2 { margin: 0; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; line-height: 1.04; font-size: clamp(1.8rem, 5.6vw, 3rem); }
.h2 em { font-style: normal; color: var(--violet); }
.h2-light em { color: var(--lilac); }

.about { display: grid; gap: 28px; }
.about-text > p { margin: 0 0 1.6rem; font-size: 1.1rem; color: #3A2B4E; max-width: 60ch; }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pillars li { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.pillars .p-n { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--gold); min-width: 2ch; }
.pillars b { display: block; font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 1.15rem; color: var(--ink); }
.pillars li span:last-child { color: var(--muted); }
@media (min-width: 900px) {
  .about { grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
}

.band-place { background: linear-gradient(120deg, var(--violet-dk), var(--violet)); }
.place { display: grid; gap: 26px; align-items: center; }
.place-when { margin: 1rem 0 0; color: #EDE3F8; font-size: 1.08rem; }
.place-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) {
  .place { grid-template-columns: 1fr auto; }
  .place-actions { flex-direction: column; }
}

/* ---------- Formulario ---------- */
.band-form { background: var(--night); position: relative; }
.form-grid { display: grid; gap: 36px; }
.form-intro > p { color: #DCCFEC; margin: 1rem 0 0; max-width: 46ch; }
.flyer { display: none; margin: 28px 0 0; }
.flyer img { display: block; width: 100%; max-width: 340px; border-radius: 10px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); transform: rotate(-2deg); }
@media (min-width: 900px) {
  .form-grid { grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; }
  .flyer { display: block; }
}

.form { background: #fff; color: var(--ink); border-radius: 20px; padding: 26px 18px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); display: grid; gap: 18px; border-top: 5px solid var(--gold); }
@media (min-width: 600px) { .form { padding: 34px 32px; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; gap: 18px; }
.hint { font-size: .85rem; color: var(--muted); }
/* Buscador de localidades */
.combo { position: relative; }
.combo-list { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 6px 0; list-style: none; background: #fff; border: 1.5px solid var(--violet); border-radius: 12px; box-shadow: 0 18px 40px -16px rgba(29, 11, 51, .45); max-height: 300px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.combo-list[hidden] { display: none; }
.combo-group { position: sticky; top: -6px; background: #F3ECFA; color: var(--violet); font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; padding: 7px 14px; }
.combo-opt { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 14px; cursor: pointer; min-height: 44px; }
.combo-opt + .combo-opt { border-top: 1px solid #F1EBF7; }
.combo-opt:hover, .combo-opt.is-active { background: #F7F1FD; }
.co-loc { font-weight: 600; color: var(--ink); }
.co-par { font-size: .82rem; color: var(--muted); text-align: right; flex: none; max-width: 45%; }
.combo-empty { padding: 12px 14px; color: var(--muted); font-size: .92rem; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
label { font-weight: 600; font-size: .95rem; }
.opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], select {
  width: 100%; min-height: 50px; padding: .7rem .9rem; border: 1.5px solid #D3C6E3; border-radius: 10px;
  background: #FBF9FD; color: var(--ink); font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s, background .2s;
}
select { appearance: none; -webkit-appearance: none; padding-right: 2.4rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236C2C94' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; }
input:focus, select:focus { outline: none; border-color: var(--violet); background-color: #fff; box-shadow: 0 0 0 4px rgba(108, 44, 148, .16); }
input[aria-invalid=true] { border-color: #B3261E; background-color: #FFF6F5; }
.check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--violet); }
.check label { font-weight: 400; font-size: .9rem; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 0; min-height: 1.5em; font-size: .95rem; font-weight: 600; }
.status:empty { min-height: 0; }
.status.is-err { color: #B3261E; }

.done { background: #fff; color: var(--ink); border-radius: 20px; padding: 34px 26px; border-top: 5px solid var(--gold); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); animation: rise .6s both; }
.done h3 { margin: 0 0 .6rem; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 2.2rem; color: var(--violet); line-height: 1; }
.done p { margin: 0 0 .8rem; }
.done .done-when { font-weight: 600; }
.done .btn { margin-top: .6rem; color: var(--night); }

/* ---------- Pie ---------- */
.footer { border-top: 1px solid rgba(205, 167, 101, .25); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); color: #BFAFD6; font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.footer p { margin: 0; }
.footer .credit { margin-left: auto; display: inline-flex; align-items: center; gap: .6rem; color: var(--lilac); text-decoration: none; font-size: .9rem; letter-spacing: .06em; transition: color .2s; }
.footer .credit img { display: block; background: #fff; border-radius: 6px; padding: 3px 5px; height: 1.9rem; width: auto; box-sizing: content-box; }
.footer .credit .cr-brand { color: var(--text-lt); font-weight: 600; letter-spacing: .22em; }
.footer .credit:hover { color: var(--text-lt); }
.footer .credit:hover .cr-brand { color: var(--gold-lt); }
@media (max-width: 600px) { .footer .credit { margin-left: 0; } }

/* ---------- Celular ---------- */
@media (max-width: 600px) {
  .streaks span { width: 80vw; }
  .junto { letter-spacing: .06em; font-size: clamp(.9rem, 4.1vw, 1.1rem); }
  .d-k-addr { font-size: .86rem; }
  .datos { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .band { padding: 56px 0; }
  .place-actions .btn { flex: 1 1 100%; }
}

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