/* AVC Venture Capital · estilos base de las páginas nuevas (Contacto y siguientes)
   Tomados de la inscripción de Fenixia1 (evento 25/11). Tokens del Kit de Marca AVC v1.0. Solo paleta oficial. */

:root {
  --violeta: #6262FF;          /* Violeta Vortex: color de marca */
  --vortex-700: #4B4BE0;       /* links y botones sobre claro y oscuro */
  --vortex-300: #8C8CFF;       /* acentos sobre oscuro */
  --bruma: #E8E8FF;            /* Bruma Alevín: destacados */
  --luz: #F4F4FA;              /* Luz Cuásar: base clara */
  --espacio: #0C0C1D;          /* Espacio Profundo: base oscura y texto */
  --ambar: #F2A93B;            /* Ámbar Cuásar: solo para marcar un dato */
  --blanco: #FFFFFF;

  --texto: var(--espacio);
  --texto-suave: rgba(12, 12, 29, .7);
  --texto-claro: var(--luz);
  --texto-claro-suave: rgba(244, 244, 250, .74);
  --linea: rgba(12, 12, 29, .12);
  --linea-oscura: rgba(244, 244, 250, .16);

  --f-titulo: "Manrope", Arial, sans-serif;
  --f-texto: "IBM Plex Sans", Arial, sans-serif;
  --f-dato: "IBM Plex Mono", ui-monospace, monospace;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-pill: 999px;
  --toque: 48px;
  --ancho: 1120px;
  --lectura: 62ch;
  --sombra: 0 1px 2px rgba(12, 12, 29, .06), 0 8px 24px rgba(12, 12, 29, .06);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--f-texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--texto);
  background: var(--luz);
  font-size-adjust: from-font;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--vortex-700); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-titulo); line-height: 1.1; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--vortex-300); outline-offset: 3px; border-radius: 4px; }
.oscuro :focus-visible { outline-color: var(--ambar); }

.saltar {
  position: absolute; left: var(--s-4); top: -60px; z-index: 50;
  background: var(--blanco); color: var(--espacio); padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm); font-weight: 600;
}
.saltar:focus { top: var(--s-4); }

.contenedor { width: min(100% - 2 * var(--s-5), var(--ancho)); margin-inline: auto; }
.visualmente-oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Etiquetas y datos en mono */
.etiqueta {
  font-family: var(--f-dato); font-size: .78rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--vortex-700);
}
.oscuro .etiqueta { color: var(--vortex-300); }

/* Botones */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--toque); padding: 0 var(--s-5);
  border-radius: var(--r-pill); border: 1.5px solid transparent;
  font-family: var(--f-titulo); font-weight: 700; font-size: 1rem; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.boton svg { width: 20px; height: 20px; flex: none; }
.boton-principal { background: var(--vortex-700); color: var(--blanco); }
@media (hover: hover) { .boton-principal:hover { box-shadow: 0 0 0 4px rgba(98, 98, 255, .28); } }
.boton-principal:active { transform: scale(.98); }
.boton-secundario { background: transparent; color: var(--vortex-700); border-color: currentColor; }
@media (hover: hover) { .boton-secundario:hover { background: var(--bruma); } }
.oscuro .boton-secundario { color: var(--luz); border-color: var(--linea-oscura); }
@media (hover: hover) { .oscuro .boton-secundario:hover { background: rgba(244, 244, 250, .08); border-color: rgba(244, 244, 250, .4); } }
.boton-bloque { width: 100%; }
@media (prefers-reduced-motion: reduce) { .boton { transition: none; } }

/* Cabecera */
.cabecera { position: relative; z-index: 5; }
.cabecera-fila {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  min-height: 72px;
}
.marcas { display: flex; align-items: center; gap: var(--s-4); min-height: 44px; text-decoration: none; color: inherit; }
.marcas .logo-avc { width: 104px; height: auto; }
.marcas .separador { width: 1px; height: 28px; background: currentColor; opacity: .35; }
.marcas .logo-aliado { width: auto; height: 24px; }
@media (max-width: 419px) {
  .marcas { gap: var(--s-3); }
  .marcas .logo-avc { width: 84px; }
  .marcas .logo-aliado { height: 19px; }
  .marcas .separador { height: 24px; }
  .cabecera-cta { display: none; }
  .volver { justify-content: center; min-width: 44px; }
  .volver svg { width: 22px; height: 22px; }
  .volver-texto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.cabecera .boton { min-height: 44px; padding: 0 var(--s-4); font-size: .95rem; }
.volver {
  flex: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px;
  font-weight: 600; text-decoration: none; color: var(--vortex-700);
}
.volver svg { width: 18px; height: 18px; }

/* Portada del evento */
.oscuro { background: var(--espacio); color: var(--texto-claro); }
.portada { position: relative; overflow: hidden; padding-bottom: var(--s-7); }
.portada::before {
  /* luz de marca, plana y contenida */
  content: ""; position: absolute; inset: auto -20% 18% auto; width: 70vmax; height: 70vmax;
  background: radial-gradient(closest-side, rgba(98, 98, 255, .22), transparent 70%);
  pointer-events: none;
}
.portada-cuerpo { position: relative; padding-top: var(--s-6); }
.portada .etiqueta { display: block; margin-bottom: var(--s-4); }
.portada h1 { font-size: clamp(2.5rem, 9.5vw, 5.25rem); font-weight: 800; max-width: 13ch; }
.portada h1 em { font-style: normal; color: var(--vortex-300); }
.portada .bajada {
  margin-top: var(--s-5); max-width: 46ch; font-size: clamp(1.0625rem, 2.4vw, 1.25rem);
  color: var(--texto-claro-suave);
}

/* Horizonte: el único momento animado de la página */
.horizonte { position: relative; height: 1px; margin-block: var(--s-6); background: var(--linea-oscura); overflow: hidden; }
.horizonte::after {
  content: ""; position: absolute; inset: 0; width: 40%;
  background: linear-gradient(90deg, transparent, var(--violeta), var(--vortex-300), transparent);
  transform: translateX(-100%);
  animation: horizonte 2.8s var(--ease) .4s 1 forwards;
}
@keyframes horizonte { to { transform: translateX(260%); } }
@media (prefers-reduced-motion: reduce) {
  .horizonte::after { animation: none; transform: none; width: 100%; opacity: .5; }
}

.datos-evento { display: grid; gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.datos-evento li { display: flex; align-items: baseline; gap: var(--s-3); }
.datos-evento .dato-k {
  flex: none; width: 5.2em; font-family: var(--f-dato); font-size: .75rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--vortex-300);
}
.datos-evento .dato-v { font-weight: 500; }
.datos-evento .dato-fecha { font-family: var(--f-titulo); font-weight: 800; font-size: 1.35rem; color: var(--ambar); line-height: 1.2; }

.acciones { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
.nota-cierre { margin-top: var(--s-4); font-size: .9rem; color: var(--texto-claro-suave); }

@media (min-width: 560px) {
  .acciones { display: flex; flex-wrap: wrap; }
}
@media (min-width: 900px) {
  .portada-cuerpo { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--s-8); align-items: end; padding-top: var(--s-8); }
  .portada-lateral { padding-bottom: var(--s-2); }
  .portada .horizonte { grid-column: 1 / -1; order: 2; }
}

/* Secciones */
.seccion { padding-block: var(--s-8); }
.seccion + .seccion { border-top: 1px solid var(--linea); }
.seccion-cabeza { max-width: var(--lectura); margin-bottom: var(--s-6); }
.seccion-cabeza .etiqueta { display: block; margin-bottom: var(--s-3); }
.seccion h2 { font-size: clamp(1.7rem, 5.2vw, 2.6rem); font-weight: 800; }
.seccion-cabeza p { margin-top: var(--s-4); color: var(--texto-suave); }

/* Por qué PILL.AR */
.ideas { display: grid; gap: var(--s-5); margin: 0; padding: 0; list-style: none; counter-reset: idea; }
.idea { display: grid; grid-template-columns: auto 1fr; gap: var(--s-2) var(--s-4); }
.idea::before {
  counter-increment: idea; content: "0" counter(idea);
  font-family: var(--f-dato); font-size: .8rem; color: var(--vortex-700);
  padding-top: .28em; grid-row: span 2;
}
.idea h3 { font-size: 1.2rem; font-weight: 800; }
.idea p { color: var(--texto-suave); }
@media (min-width: 760px) {
  .ideas { grid-template-columns: repeat(2, 1fr); gap: var(--s-6) var(--s-7); }
}

/* Agenda */
.agenda { margin: 0; padding: 0; list-style: none; max-width: 720px; }
.agenda li {
  position: relative; display: grid; grid-template-columns: 4.2rem 1fr; gap: var(--s-4);
  padding-block: var(--s-4); border-bottom: 1px solid var(--linea);
}
.agenda li:last-child { border-bottom: 0; }
.agenda .hora { font-family: var(--f-dato); font-size: .85rem; color: var(--vortex-700); padding-top: .2em; }
.agenda .punto::before { content: ""; display: block; width: 7px; height: 7px; margin-top: .45em; border-radius: 50%; background: var(--vortex-300); }
.agenda h3 { font-size: 1.08rem; font-weight: 700; }
.agenda p { margin-top: var(--s-1); font-size: .95rem; color: var(--texto-suave); }

/* Fenixia1 */
.fenixia { background: var(--bruma); }
.seccion.fenixia { border-top: 0; }
.fenixia-caja { display: grid; gap: var(--s-6); }
.fenixia h2 { color: var(--espacio); }
.fenixia .lema { margin-top: var(--s-4); font-size: clamp(1.1rem, 2.6vw, 1.35rem); font-weight: 500; max-width: 40ch; }
.ventajas { display: grid; gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.ventajas li { background: var(--blanco); border-radius: var(--r-md); padding: var(--s-4) var(--s-5); box-shadow: var(--sombra); }
.ventajas b { display: block; font-family: var(--f-titulo); font-weight: 800; margin-bottom: 2px; }
.ventajas span { color: var(--texto-suave); font-size: .97rem; }
.fenixia .aclaracion { margin-top: var(--s-5); font-size: .95rem; color: var(--texto-suave); max-width: 52ch; }
.fenixia .enlace-flecha { display: inline-flex; align-items: center; gap: var(--s-2); margin-top: var(--s-4); min-height: 44px; font-weight: 600; }
.enlace-flecha svg { width: 18px; height: 18px; }
@media (min-width: 900px) {
  .fenixia-caja { grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: start; }
}

/* Ficha */
.ficha { display: grid; gap: 0; margin: 0 0 var(--s-6); max-width: 720px; }
.ficha div { display: grid; grid-template-columns: 7.5rem 1fr; gap: var(--s-4); padding-block: var(--s-3); border-bottom: 1px solid var(--linea); }
.ficha dt { font-family: var(--f-dato); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--texto-suave); padding-top: .2em; }
.ficha dd { margin: 0; font-weight: 500; }
.ficha-acciones { display: grid; gap: var(--s-3); max-width: 720px; }
@media (min-width: 560px) { .ficha-acciones { display: flex; flex-wrap: wrap; } }

/* Barra fija en celular */
.barra-fija {
  position: fixed; inset: auto 0 0 0; z-index: 20;
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-4) calc(var(--s-3) + env(safe-area-inset-bottom));
  background: rgba(12, 12, 29, .94); color: var(--luz);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--linea-oscura);
  transform: translateY(110%); transition: transform .3s var(--ease);
}
.barra-fija.visible { transform: none; }
.barra-fija .barra-texto { flex: 1; min-width: 0; font-size: .85rem; line-height: 1.3; }
.barra-fija .barra-texto b { display: block; font-family: var(--f-titulo); font-size: .95rem; }
.barra-fija .boton { flex: none; }
@media (prefers-reduced-motion: reduce) { .barra-fija { transition: none; } }
@media (min-width: 900px) { .barra-fija { display: none; } }
body.con-barra { padding-bottom: 88px; }
@media (min-width: 900px) { body.con-barra { padding-bottom: 0; } }

/* Pie */
.pie { padding-block: var(--s-6); font-size: .9rem; }
.pie-fila { display: grid; gap: var(--s-3); }
.pie a { color: inherit; }
.pie .suave { color: var(--texto-claro-suave); }
@media (min-width: 760px) { .pie-fila { grid-template-columns: 1fr auto; align-items: end; } }

/* ---------- Inscripción ---------- */
.cabecera-clara { background: var(--luz); border-bottom: 1px solid var(--linea); }
@media (min-width: 420px) { .cabecera-clara .logo-avc { width: 96px; } }

.insc-intro { padding-block: var(--s-6) var(--s-5); }
.insc-intro h1 { font-size: clamp(2rem, 7.5vw, 3.25rem); font-weight: 800; margin-top: var(--s-3); max-width: 18ch; }
.insc-intro .bajada { margin-top: var(--s-4); color: var(--texto-suave); max-width: 52ch; }

.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-5) 0 0; padding: 0; list-style: none; }
.chips li {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 36px; padding: 0 var(--s-3); border-radius: var(--r-pill);
  background: var(--blanco); border: 1px solid var(--linea); font-size: .92rem; font-weight: 500;
}
.chips svg { width: 16px; height: 16px; color: var(--vortex-700); }
.chips .chip-fecha { background: var(--espacio); color: var(--luz); border-color: var(--espacio); }
.chips .chip-fecha svg { color: var(--ambar); }

.atajos { display: flex; gap: var(--s-2); margin-top: var(--s-4); flex-wrap: wrap; }
.atajos a {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-3);
  font-weight: 600; font-size: .95rem; text-decoration: none; border-radius: var(--r-sm);
}
@media (hover: hover) { .atajos a:hover { background: var(--bruma); } }
.atajos svg { width: 18px; height: 18px; }

.insc-grilla { display: grid; gap: var(--s-6); padding-bottom: var(--s-8); }
@media (min-width: 960px) {
  .insc-grilla { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--s-7); align-items: start; }
  .llegar { position: sticky; top: var(--s-5); }
}

.tarjeta { background: var(--blanco); border-radius: var(--r-lg); box-shadow: var(--sombra); padding: var(--s-5); }
@media (min-width: 560px) { .tarjeta { padding: var(--s-6); } }
.tarjeta h2 { font-size: 1.45rem; font-weight: 800; }
.tarjeta .sub { margin-top: var(--s-2); color: var(--texto-suave); font-size: .97rem; }

/* Formulario */
.form-gmx { display: block; width: 100%; min-height: 680px; border: 0; margin-top: var(--s-4); background: transparent; }
.campos { display: grid; gap: var(--s-4); margin-top: var(--s-5); }
@media (min-width: 560px) { .campos .par { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); } }
.campos .par { display: grid; gap: var(--s-4); }
.campo label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.campo .opcional { font-weight: 400; color: var(--texto-suave); }
.campo input {
  width: 100%; min-height: 52px; padding: 0 var(--s-4);
  font: inherit; font-size: 1rem; color: var(--texto);
  background: var(--luz); border: 1.5px solid transparent; border-radius: var(--r-sm);
  transition: border-color .15s, background-color .15s;
}
.campo input:hover { border-color: var(--linea); }
.campo input:focus { outline: none; border-color: var(--vortex-700); background: var(--blanco); box-shadow: 0 0 0 4px rgba(98, 98, 255, .18); }
.campo input[aria-invalid="true"] { border-color: #B3261E; }
.campo .error { display: none; margin-top: 6px; font-size: .88rem; color: #B3261E; }
.campo .error.visible { display: block; }
.consentimiento { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-3); align-items: start; padding: var(--s-3); border-radius: var(--r-sm); background: var(--luz); }
.consentimiento input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--vortex-700); }
.consentimiento label { font-size: .92rem; line-height: 1.45; }
.form-estado { font-size: .95rem; }
.form-estado:empty { display: none; }
.form-estado.ok { color: var(--vortex-700); font-weight: 600; }
.credito { margin-top: var(--s-4); font-size: .82rem; color: var(--texto-suave); }
.credito a { color: inherit; }
.cierre-insc { display: flex; gap: var(--s-2); align-items: center; margin-top: var(--s-4); font-size: .9rem; color: var(--texto-suave); }
.cierre-insc svg { width: 16px; height: 16px; color: var(--vortex-700); flex: none; }

/* Cómo llegar */
.direccion { margin-top: var(--s-4); padding: var(--s-4); border-radius: var(--r-md); background: var(--espacio); color: var(--luz); }
.direccion .lugar { font-family: var(--f-titulo); font-weight: 800; font-size: 1.15rem; line-height: 1.25; }
.direccion address { -webkit-user-select: all; user-select: all; font-style: normal; margin-top: var(--s-1); color: var(--texto-claro-suave); }
.mapa-acciones { display: grid; gap: var(--s-2); margin-top: var(--s-4); }
.mapa-secundarias { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.mapa-secundarias > * { flex: 1 1 auto; }
.mapa-secundarias .boton { padding: 0 var(--s-3); font-size: .95rem; white-space: nowrap; }
.ayuda-mapa { margin: -2px 0 var(--s-2); font-size: .85rem; color: var(--texto-suave); text-align: center; }
.pasos { margin: var(--s-5) 0 0; padding: 0; list-style: none; display: grid; gap: var(--s-4); }
.pasos li { display: grid; grid-template-columns: 32px 1fr; gap: var(--s-3); }
.pasos .n {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--bruma); color: var(--vortex-700); font-family: var(--f-dato); font-size: .85rem; font-weight: 500;
}
.pasos b { display: block; font-family: var(--f-titulo); font-weight: 700; }
.pasos span { color: var(--texto-suave); font-size: .95rem; }
.agendar { margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--linea); }
.agendar h3 { font-size: 1.05rem; font-weight: 800; }
.agendar .mapa-secundarias { margin-top: var(--s-3); }

.aviso-copia {
  position: fixed; left: 50%; bottom: calc(var(--s-5) + env(safe-area-inset-bottom)); z-index: 30;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  width: max-content; max-width: calc(100% - 2 * var(--s-4)); text-align: center;
  background: var(--espacio); color: var(--luz); padding: var(--s-3) var(--s-4); border-radius: var(--r-md);
  font-size: .92rem; font-weight: 500; transition: opacity .2s, transform .2s var(--ease);
}
.aviso-copia.visible { opacity: 1; transform: translate(-50%, 0); }

.pie-claro { border-top: 1px solid var(--linea); color: var(--texto-suave); }
.pie-claro .suave { color: var(--texto-suave); }

@media print {
  .barra-fija, .acciones, .ficha-acciones, .mapa-acciones, .atajos { display: none !important; }
  .oscuro { background: none; color: #000; }
}

/* ---------- Contacto ---------- */
.contacto-intro h1 { max-width: 14ch; }
.chips .chip-correo { background: var(--espacio); color: var(--luz); border-color: var(--espacio); }
.chips .chip-correo a { color: inherit; text-decoration: none; }
.chips .chip-correo svg { color: var(--vortex-300); }

.ref-persona {
  display: flex; align-items: center; gap: var(--s-4);
  margin-top: var(--s-5); padding: var(--s-3) var(--s-5) var(--s-3) var(--s-3);
  width: fit-content; max-width: 100%;
  background: var(--blanco); border-radius: var(--r-pill); box-shadow: var(--sombra);
}
.ref-persona img { width: 56px; height: 56px; border-radius: 50%; flex: none; }
.ref-persona .ref-k { display: block; font-family: var(--f-dato); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--vortex-700); }
.ref-persona b { display: block; font-family: var(--f-titulo); font-weight: 800; font-size: 1.05rem; line-height: 1.25; }
.ref-persona .ref-cargo { display: block; font-size: .88rem; color: var(--texto-suave); line-height: 1.35; }

.gmx-form-box { margin-top: var(--s-4); }

.canales { margin-top: var(--s-5); padding: var(--s-4); border-radius: var(--r-md); background: var(--espacio); color: var(--luz); display: grid; gap: var(--s-4); }
.canal .canal-k { display: block; font-family: var(--f-dato); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--vortex-300); }
.canal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--luz); font-family: var(--f-titulo); font-weight: 700; font-size: 1.08rem; text-decoration: none; overflow-wrap: anywhere; }
@media (hover: hover) { .canal a:hover { text-decoration: underline; } }
.canal p { font-size: .9rem; color: var(--texto-claro-suave); }
.canales .boton-secundario { justify-self: start; min-height: 44px; font-size: .92rem; padding: 0 var(--s-4); }
.canales .boton-secundario { color: var(--luz); border-color: var(--linea-oscura); }
@media (hover: hover) { .canales .boton-secundario:hover { background: rgba(244, 244, 250, .08); border-color: rgba(244, 244, 250, .4); } }
