/* ============================================================
   Pablo Juliano · sistema visual «Tinta roja» (opción B, 24/10/2026)

   La estética de «La Argentina que vivimos», más amable: fondo blanco,
   el rojo como tinta (títulos, botones, trazos y la etiqueta de la ciudad)
   y el marino para todo lo que se lee.

   Rojo responsable:
   - Títulos rojos: uno por bloque. El texto corrido nunca va en rojo.
   - Letra roja sobre blanco solo con --rojo (5,9:1) o --rojo-hondo.
     --rojo-afiche (#DA141A) es para trazos y etiquetas, no para letra chica.
   - Blanco sobre rojo solo en botones y etiquetas (letra grande y gruesa).
   - Los errores de los formularios van en marino con ícono, no en rojo:
     el rojo quiere decir «tocá acá».
   - Ninguna pieza pide el voto.

   Lo usa la portada (index.html). Las otras páginas siguen con site.css
   hasta que se pasen a este archivo.
   ============================================================ */

:root {
  /* Rojos */
  --rojo: #C8141C;          /* títulos, botones. Blanco encima 5,9:1 */
  --rojo-hondo: #A30F17;    /* hover y letra roja chica */
  --rojo-afiche: #DA141A;   /* el del flyer: trazos y etiquetas */

  /* Tinta */
  --marino: #031336;        /* texto y trazo bajo títulos rojos (18:1) */
  --texto-2: #2D3A55;       /* citas */
  --texto-3: #4A5568;       /* textos secundarios (7,5:1) */
  --azul: #0B509E;          /* solo en la marca de los encuentros */

  /* Fondos */
  --blanco: #FFFFFF;
  --niebla: #F4F6FA;        /* bandas de sección */
  --rosa: #FDF0EF;          /* formularios para sumarse */
  --linea: rgba(3, 19, 54, 0.12);
  --linea-fuerte: rgba(3, 19, 54, 0.22);

  /* Letra */
  --titulos: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --texto: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radio: 10px;
  --radio-grande: 16px;
  --ancho: 1160px;
  --margen: 20px;

  color-scheme: light;
}

@media (min-width: 860px) {
  :root { --margen: 40px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--blanco);
  color: var(--marino);
  font-family: var(--texto);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: var(--marino); text-underline-offset: 4px; }
a:hover { color: var(--rojo-hondo); }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; border-radius: 4px; }

.contenedor {
  width: 100%;
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 0 var(--margen);
}

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

/* ---------- Trazo: la raya inclinada del afiche ---------- */
.trazo {
  display: block;
  width: 64px;
  height: 5px;
  background: var(--marino);
  transform: rotate(-3deg);
  transform-origin: left center;
}
.trazo-rojo { background: var(--rojo-afiche); }

/* ---------- Firma: PABLO / JULIANO con trazo rojo ---------- */
.firma {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--marino);
  font-family: var(--titulos);
  font-weight: 800;
  font-size: 27px;
  line-height: 0.86;
  text-transform: uppercase;
}
.firma:hover { color: var(--marino); }
.firma .trazo { width: 58px; height: 4px; margin-top: 7px; background: var(--rojo-afiche); transform: rotate(-4deg); }

/* ---------- Títulos ---------- */
.titulo-rojo {
  margin: 0;
  font-family: var(--titulos);
  font-weight: 800;
  line-height: 0.95;
  color: var(--rojo);
  letter-spacing: -0.005em;
}
.titulo-rojo + .trazo { margin-top: 12px; }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--radio);
  background: var(--rojo);
  color: var(--blanco);
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.boton:hover { background: var(--rojo-hondo); color: var(--blanco); }
.boton:active { transform: translateY(1px); }
.boton[disabled] { opacity: 0.7; cursor: progress; }
.boton-borde {
  background: transparent;
  color: var(--marino);
  box-shadow: inset 0 0 0 2px var(--marino);
}
.boton-borde:hover { background: var(--marino); color: var(--blanco); }
.boton-ancho { width: 100%; }

.enlace {
  font-weight: 600;
  color: var(--marino);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--rojo-afiche);
}

/* ---------- Etiqueta de la ciudad (la del flyer) ---------- */
.etiqueta-ciudad {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 36px 10px 18px;
  background: var(--rojo);
  color: var(--blanco);
  font-family: var(--titulos);
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
}
.etiqueta-ciudad svg { width: 22px; height: 22px; flex-shrink: 0; }

/* ---------- Marca de los encuentros ---------- */
.marca-encuentros {
  margin: 0;
  font-family: var(--titulos);
  font-weight: 800;
  font-size: 50px;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--marino);
}
.marca-encuentros span { display: block; color: var(--azul); }
.marca-encuentros + .trazo { width: 250px; height: 7px; margin-top: 10px; background: var(--rojo-afiche); transform: rotate(-2deg); }

/* ---------- Formularios ---------- */
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo label { font-size: 15px; font-weight: 600; }
.campo .opcional { font-weight: 400; color: var(--texto-3); }
.campo input,
.campo select {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 2px solid var(--linea-fuerte);
  border-radius: var(--radio);
  background: var(--blanco);
  color: var(--marino);
  font-family: var(--texto);
  font-size: 17px;
  appearance: none;
  -webkit-appearance: none;
}
.campo select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23031336' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
}
.campo input:focus,
.campo select:focus { outline: none; border-color: var(--marino); box-shadow: 0 0 0 3px rgba(11, 80, 158, 0.25); }
.campo input[aria-invalid="true"] { border-color: var(--marino); }

.tilde {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.45;
  cursor: pointer;
}
.tilde input {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--rojo);
}

.aviso-error {
  display: none;
  gap: 8px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radio);
  background: var(--blanco);
  box-shadow: inset 0 0 0 2px var(--marino);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
.aviso-error.visible { display: flex; }
.aviso-error svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }

.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pie ---------- */
.pie {
  border-top: 1px solid var(--linea);
  padding: 36px 0 44px;
}
.pie .contenedor { display: flex; flex-direction: column; gap: 22px; }
.pie .firma { font-size: 24px; }
.redes { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.redes a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 22px;
  box-shadow: inset 0 0 0 2px var(--linea-fuerte);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.redes a:hover { box-shadow: inset 0 0 0 2px var(--marino); color: var(--marino); }
.redes svg { width: 18px; height: 18px; }
.pie-texto { margin: 0; font-size: 14px; color: var(--texto-3); }

/* ---------- «Contanos un poco de vos»: bloque opcional que se despliega ---------- */
.mas-datos {
  border-radius: var(--radio);
  background: var(--blanco);
  box-shadow: inset 0 0 0 2px var(--linea-fuerte);
}
.mas-datos summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.mas-datos summary::-webkit-details-marker { display: none; }
.mas-datos summary::after {
  content: '';
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--marino);
  border-bottom: 2.5px solid var(--marino);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.15s ease;
}
.mas-datos[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.mas-datos .opcional { font-weight: 400; color: var(--texto-3); }
.mas-datos > .campo { margin: 0; padding: 4px 16px 18px; border: 0; min-width: 0; }
.mas-datos legend { padding: 0; margin-bottom: 10px; font-size: 15px; font-weight: 600; }
.opciones { display: flex; flex-wrap: wrap; gap: 8px; }
.opcion { position: relative; margin: 0; }
.opcion input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opcion span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 22px;
  background: var(--blanco);
  box-shadow: inset 0 0 0 2px var(--linea-fuerte);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}
.opcion input:checked + span { background: var(--marino); color: var(--blanco); box-shadow: none; }
.opcion input:focus-visible + span { outline: 3px solid var(--azul); outline-offset: 2px; }
.campo textarea {
  width: 100%;
  min-height: 110px;
  padding: 12px 14px;
  border: 2px solid var(--linea-fuerte);
  border-radius: var(--radio);
  background: var(--blanco);
  color: var(--marino);
  font-family: var(--texto);
  font-size: 17px;
  line-height: 1.5;
  resize: vertical;
}
.campo textarea:focus { outline: none; border-color: var(--marino); box-shadow: 0 0 0 3px rgba(11, 80, 158, 0.25); }
