/* Conresi · página provisional de conresimx.com.
   Sin recursos externos: Bitter (títulos) y Fira Sans (texto) van servidas desde /fuentes (licencia OFL).
   Las doce fibras del encabezado siguen el código de colores TIA-598. */

@font-face {
  font-family: "Bitter";
  src: url("/fuentes/bitter-700.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Fira Sans";
  src: url("/fuentes/fira-sans-400.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Fira Sans";
  src: url("/fuentes/fira-sans-500.woff") format("woff");
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --fondo: #eef1f4;
  --tinta: #15233a;
  --tenue: #56637a;
  --marca: #1f5fa8;
  --funda: #15233a;
  --leyenda: #c3cede;
  --borde-fibra: #15233a;
  --negro-fibra: #111418;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #101826;
    --tinta: #e6ebf2;
    --tenue: #9aa8bb;
    --marca: #7db0ee;
    --funda: #2a3a55;
    --leyenda: #8798b0;
    --borde-fibra: #4a5b77;
    --negro-fibra: #05070a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  font: 400 1.0625rem/1.6 "Fira Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.pagina {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 8vh, 96px) 0;
}

/* ---------- el cable ---------- */
.cable {
  display: block;
  width: 100%;
  height: clamp(150px, 24vw, 290px);
  overflow: visible;
}
.funda { fill: none; stroke: var(--funda); stroke-width: 30; }
.leyenda {
  fill: var(--leyenda);
  font: 500 11px "Fira Sans", sans-serif;
  letter-spacing: .14em;
}
.bota { fill: var(--funda); }
@media (max-width: 640px) { .leyenda { display: none; } }
.fibras-borde path,
.fibras path { fill: none; stroke-linecap: round; }
.fibras-borde path { stroke: var(--borde-fibra); stroke-width: 5.6; }
.fibras path { stroke-width: 3.2; }

.f1  { stroke: #1f6fd1; } /* azul */
.f2  { stroke: #f07f1a; } /* naranja */
.f3  { stroke: #2e9b4e; } /* verde */
.f4  { stroke: #8a5a2e; } /* café */
.f5  { stroke: #7d8b99; } /* pizarra */
.f6  { stroke: #ffffff; } /* blanco */
.f7  { stroke: #d7262e; } /* rojo */
.f8  { stroke: var(--negro-fibra); } /* negro */
.f9  { stroke: #f2c230; } /* amarillo */
.f10 { stroke: #7c4dba; } /* violeta */
.f11 { stroke: #f08db4; } /* rosa */
.f12 { stroke: #2fc1c8; } /* aqua */

/* Un solo momento de movimiento: el cable se tiende al cargar. */
.trazo {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: tender 1.1s cubic-bezier(.45, 0, .2, 1) forwards;
}
.funda.trazo { animation-duration: .7s; }
.fibras-borde path:nth-child(n), .fibras path:nth-child(n) { animation-delay: .55s; }
.fibras-borde path:nth-child(2),  .fibras path:nth-child(2)  { animation-delay: .59s; }
.fibras-borde path:nth-child(3),  .fibras path:nth-child(3)  { animation-delay: .63s; }
.fibras-borde path:nth-child(4),  .fibras path:nth-child(4)  { animation-delay: .67s; }
.fibras-borde path:nth-child(5),  .fibras path:nth-child(5)  { animation-delay: .71s; }
.fibras-borde path:nth-child(6),  .fibras path:nth-child(6)  { animation-delay: .75s; }
.fibras-borde path:nth-child(7),  .fibras path:nth-child(7)  { animation-delay: .79s; }
.fibras-borde path:nth-child(8),  .fibras path:nth-child(8)  { animation-delay: .83s; }
.fibras-borde path:nth-child(9),  .fibras path:nth-child(9)  { animation-delay: .87s; }
.fibras-borde path:nth-child(10), .fibras path:nth-child(10) { animation-delay: .91s; }
.fibras-borde path:nth-child(11), .fibras path:nth-child(11) { animation-delay: .95s; }
.fibras-borde path:nth-child(12), .fibras path:nth-child(12) { animation-delay: .99s; }
@keyframes tender { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .trazo { animation: none; stroke-dashoffset: 0; }
}

/* ---------- el texto ---------- */
.contenido {
  padding: 0 clamp(24px, 9vw, 132px);
  max-width: calc(36rem + 2 * clamp(24px, 9vw, 132px));
}

h1 {
  margin: clamp(8px, 2vh, 24px) 0 0;
  font: 700 clamp(3.25rem, 10vw, 6.5rem)/1 "Bitter", Georgia, serif;
  letter-spacing: -.015em;
}

.giro {
  margin: .5rem 0 0;
  font-weight: 500;
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  color: var(--tenue);
}

.texto { margin: 1.75rem 0 0; max-width: 34em; font-size: 1.125rem; }
.lugar { margin: .75rem 0 0; color: var(--tenue); }

.pronto {
  margin: 2.5rem 0 0;
  font-weight: 500;
  color: var(--marca);
}

a { color: var(--marca); text-underline-offset: .2em; }
a:focus-visible { outline: 2px solid var(--marca); outline-offset: 3px; border-radius: 2px; }
