/* Vórtice Tech — hoja de estilos
   Una sola familia (Archivo, variable en peso y ancho) y dos colores:
   ultramar y blanco. El eje de ancho es el recurso expresivo del sitio. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --ultramar: #0D1DAB;
  --hondo: #090977;
  --luz: #1A34CC;
  --tinta: #0B163F;
  --suave: #48577A;
  --filete: #D1DBEF;
  --celeste: #AFD5FE;
  --blanco: #FFFFFF;

  --margen: clamp(1.25rem, 4vw, 4rem);
  --aire: clamp(4.5rem, 10vw, 9rem);

  --t-chico: 0.9375rem;
  --t-base: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --t-medio: clamp(1.2rem, 1.08rem + 0.55vw, 1.6rem);

  --curva: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: var(--t-base);
  font-stretch: 100%;
  line-height: 1.5;
  color: var(--tinta);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

p { margin: 0; }
a { color: inherit; }

::selection { background: var(--ultramar); color: var(--blanco); }
.portada ::selection,
.cabecera ::selection,
.cierre ::selection { background: var(--blanco); color: var(--ultramar); }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 2px;
}

.salto {
  position: absolute;
  left: var(--margen);
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 0.9rem;
  background: var(--blanco);
  color: var(--ultramar);
  font-weight: 600;
  text-decoration: none;
}
.salto:focus { top: 0.75rem; }

/* ---------- Cabecera ---------- */

.cabecera {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 3;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.1rem, 2.2vw, 1.75rem) var(--margen);
  color: var(--blanco);
}

.marca {
  font-size: 1.1875rem;
  font-weight: 700;
  font-stretch: 125%;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.cabecera nav {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2.25rem);
  font-size: var(--t-chico);
  font-weight: 500;
}

.cabecera nav a {
  text-decoration: none;
  padding-block: 0.25rem;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.35s var(--curva);
}
.cabecera nav a:hover,
.cabecera nav a:focus-visible { background-size: 100% 1px; }

/* ---------- Portada ---------- */

.portada {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.5rem;
  padding: 7rem var(--margen) clamp(1.5rem, 3.5vw, 3rem);
  color: var(--blanco);
  background:
    radial-gradient(110% 85% at 70% 40%, var(--luz) 0%, var(--ultramar) 44%, var(--hondo) 100%);
}

.flujo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  display: block;
}

/* Sombra propia del texto: asegura lectura sobre las líneas de flujo */
.portada::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(9, 9, 119, 0.78) 0%, rgba(9, 9, 119, 0.32) 34%, rgba(9, 9, 119, 0) 62%);
}

.portada h1 {
  margin: 0;
  white-space: nowrap;
  font-size: clamp(2.25rem, 7.1vw, 8.25rem);
  line-height: 0.94;
  font-weight: 680;
  font-stretch: 125%;
  letter-spacing: -0.03em;
  animation: abrir 1.8s var(--curva) 0.12s both;
}

.portada h1 br.m { display: none; }

@keyframes abrir {
  0% {
    font-stretch: 62%;
    font-weight: 240;
    letter-spacing: 0.01em;
    opacity: 0;
  }
  22% { opacity: 1; }
  100% {
    font-stretch: 125%;
    font-weight: 680;
    letter-spacing: -0.03em;
    opacity: 1;
  }
}

.bajada {
  margin-top: clamp(1.25rem, 2.4vw, 2rem);
  max-width: 34rem;
  font-size: var(--t-medio);
  line-height: 1.35;
  font-weight: 400;
  animation: asomar 1s ease 0.9s both;
}

.lugar {
  font-size: var(--t-chico);
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
  animation: asomar 1s ease 1.1s both;
}

@keyframes asomar {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Franjas de contenido ---------- */

.franja {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2vw, 2rem);
  padding: var(--aire) var(--margen) 0;
}
.franja:last-of-type { padding-bottom: var(--aire); }

.franja > h2,
.cierre > h2 {
  margin: 0;
  font-size: var(--t-medio);
  line-height: 1.2;
  font-weight: 620;
  font-stretch: 114%;
  letter-spacing: -0.015em;
}

.franja > h2 { grid-column: 1 / span 3; }
.franja-cuerpo { grid-column: 4 / -1; }

/* ---------- Productos ---------- */

.producto {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: clamp(1rem, 2vw, 1.75rem) clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  padding-block: clamp(2.25rem, 4.5vw, 4rem);
  border-top: 1px solid var(--filete);
}
.producto:first-child { padding-top: 0; border-top: 0; }
.producto:last-child { padding-bottom: 0; }

.producto h3 {
  grid-column: 1 / -1;
  margin: 0;
  font-size: clamp(2.2rem, 5.3vw, 5.25rem);
  line-height: 0.98;
  font-weight: 640;
  font-stretch: 106%;
  letter-spacing: -0.03em;
}

.producto h3 a {
  text-decoration: none;
  transition: font-stretch 0.55s var(--curva), color 0.3s ease;
}
.producto h3 a:hover,
.producto h3 a:focus-visible {
  font-stretch: 125%;
  color: var(--ultramar);
}

.producto-texto { max-width: 34rem; }
.producto-texto p + p { margin-top: 0.75rem; }

.lema-producto {
  font-weight: 600;
  color: var(--ultramar);
}

.producto-dato {
  display: grid;
  gap: 0.6rem;
  font-weight: 500;
}

.estado {
  display: flex;
  align-items: center;
  gap: 0.6em;
}
.estado::before {
  content: "";
  flex: none;
  width: 0.62em;
  height: 0.62em;
  border-radius: 50%;
  border: 1.5px solid var(--ultramar);
}
.estado-activo::before { background: var(--ultramar); }

.enlace {
  color: var(--ultramar);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: text-decoration-thickness 0.2s ease;
}
.enlace:hover,
.enlace:focus-visible { text-decoration-thickness: 2px; }

/* ---------- La sociedad ---------- */

.presentacion {
  max-width: 44rem;
  font-size: var(--t-medio);
  line-height: 1.38;
  text-wrap: pretty;
}

.ficha {
  display: grid;
  grid-template-columns: minmax(8rem, 15rem) minmax(0, 1fr);
  margin: clamp(2.5rem, 5vw, 4.5rem) 0 0;
}
.ficha dt,
.ficha dd {
  margin: 0;
  padding-block: 1.05rem;
  border-top: 1px solid var(--filete);
}
.ficha dt { color: var(--suave); padding-right: 1.5rem; }
.ficha dd {
  font-weight: 520;
  font-variant-numeric: tabular-nums;
}

/* ---------- Cierre: contacto y pie ---------- */

.cierre {
  position: relative;
  isolation: isolate;
  padding: var(--aire) var(--margen) clamp(1.5rem, 3vw, 2.5rem);
  color: var(--blanco);
  background: var(--ultramar);
  overflow: hidden;
}
.cierre .flujo { z-index: -1; }

.cierre-nota {
  margin-top: 0.75rem;
  max-width: 30rem;
  color: var(--celeste);
}

.correo {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-top: clamp(2rem, 5vw, 4.5rem);
  font-size: clamp(1.05rem, 5.4vw, 5.9rem);
  line-height: 1.05;
  font-weight: 480;
  font-stretch: 80%;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-decoration: none;
}
.correo span { display: inline-block; }

.cierre-accion {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  min-height: 3rem;
}

.copiar {
  appearance: none;
  padding: 0.8rem 1.35rem;
  border: 1.5px solid var(--blanco);
  border-radius: 999px;
  background: transparent;
  color: var(--blanco);
  font: inherit;
  font-weight: 560;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.copiar:hover,
.copiar:focus-visible {
  background: var(--blanco);
  color: var(--ultramar);
}
.copiar:focus-visible { outline-color: var(--blanco); }

.aviso { color: var(--celeste); font-weight: 500; }

.junto { white-space: nowrap; }

.pie {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: clamp(3.5rem, 8vw, 7rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  font-size: var(--t-chico);
}

/* ---------- Pantallas angostas ---------- */

@media (max-width: 52rem) {
  .portada {
    grid-template-columns: minmax(0, 1fr);
    background:
      radial-gradient(130% 70% at 66% 30%, var(--luz) 0%, var(--ultramar) 46%, var(--hondo) 100%);
  }
  .portada { align-content: end; }
  .portada h1 { font-size: clamp(2rem, 10.2vw, 5rem); }
  .portada h1 br.m { display: inline; }
  .portada h1 br.d { display: none; }
  .lugar { text-align: left; }

  .franja > h2,
  .franja-cuerpo { grid-column: 1 / -1; }
  .franja > h2 { margin-bottom: 2rem; }

  .producto { grid-template-columns: minmax(0, 1fr); }

  /* Sin puntero no hay efecto: la dirección va angosta y firme, a todo el ancho */
  .correo {
    font-size: clamp(1.2rem, 8.3vw, 4.25rem);
    font-weight: 620;
    font-stretch: 66%;
    letter-spacing: -0.01em;
  }
}

@media (max-width: 34rem) {
  .cabecera nav .sec { display: none; }
  .ficha { grid-template-columns: minmax(0, 1fr); }
  .ficha dt { padding-bottom: 0.2rem; }
  .ficha dd { border-top: 0; padding-top: 0; }
}

/* ---------- Movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .portada h1,
  .bajada,
  .lugar { animation: none; }
  .producto h3 a,
  .cabecera nav a,
  .copiar,
  .enlace { transition: none; }
}
