/* Web de Flow — home provisoria y páginas internas.
   Sale de _bocetos/r6-copy.html, la versión aprobada por Julieta el 10/11 (detalle en
   ../_bocetos/README.md). Colores: la paleta de Flow en Canva; tipografías: las de la identidad
   base 2025. Las dos, en web.md → Diseño. */

/* Tipografías: originales en Drive; acá, solo woff2 */
@font-face { font-family: "Izmir"; src: url("/assets/fuentes/izmirregular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Izmir"; src: url("/assets/fuentes/izmirmedium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Izmir"; src: url("/assets/fuentes/izmirbold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Izmir"; src: url("/assets/fuentes/izmirblack.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Andale Mono"; src: url("/assets/fuentes/andalemono.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --crema: #F7F6F2;         /* bg */
  --negro: #1D1D1B;         /* text / dark-bg */
  --blanco: #F7F6F2;        /* white */
  --gris: #777776;          /* text-60 */
  --texto-suave: #5F5E5A;
  --linea: rgba(29, 29, 27, .12);
  --azul: #0E66EB;  --azul-30: #B6D1F9;
  --amarillo: #E5C438;
  /* Grano: ruido fractal en gris, como textura encima del difuminado */
  --grano: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Izmir", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.5;
  color: var(--negro);
  background: var(--crema);
  -webkit-font-smoothing: antialiased;
}
p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--azul); outline-offset: 3px; border-radius: 3px; }

/* El logo es flow.svg usado como máscara: toma el color del texto */
.logo {
  display: block;
  width: clamp(84px, 8.5vw, 104px);
  aspect-ratio: 109.074 / 64.4861;
  background: var(--negro);
  -webkit-mask: url("/assets/img/flow.svg") center / contain no-repeat;
          mask: url("/assets/img/flow.svg") center / contain no-repeat;
}

/* Etiqueta rellena, la de la web de Julieta */
.etiqueta {
  display: inline-block;
  margin: 0 0 24px;
  padding: 5px 9px 4px;
  border-radius: 3px;
  background: var(--negro);
  color: var(--blanco);
  font-family: "Andale Mono", ui-monospace, Menlo, monospace;
  font-size: .72rem;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ───────────── Home ───────────── */

.home {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(16px, 2.4vw, 32px);
}
.claro { display: grid; grid-template-rows: auto 1fr; padding: clamp(8px, 2vw, 24px) clamp(8px, 3vw, 48px); }
.principal { align-self: center; padding: 64px 0; }

.titulo {
  margin: 0;
  font-weight: 900;
  font-size: clamp(2.3rem, 4.6vw, 4rem);
  line-height: 1.06;
  letter-spacing: -.01em;
  text-wrap: balance;
}
/* Resaltador plano: el criterio en blue-30, la IA en amarillo */
.titulo mark {
  color: inherit;
  background: linear-gradient(transparent 58%, var(--amarillo) 58%, var(--amarillo) 90%, transparent 90%);
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}
.titulo mark.azul { background-image: linear-gradient(transparent 58%, var(--azul-30) 58%, var(--azul-30) 90%, transparent 90%); }

.bajada {
  max-width: 34rem;
  margin-top: 24px;
  font-size: 1.18rem;
  color: var(--texto-suave);
  text-wrap: pretty;
}

/* Credenciales: los logos en gris (text-60) usados como máscara, sin tarjeta.
   Ancho fijo = alto × proporción del SVG: si dependiera del rótulo, en el celular el logo de
   Meta, más ancho que "TECH PROVIDER", quedaba recortado. */
.sellos {
  list-style: none; margin: 48px 0 0; padding: 28px 0 0;
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px 44px;
  border-top: 1px solid rgba(29, 29, 27, .1);
  max-width: 34rem;
}
.sellos li { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex-shrink: 0; }
.sello {
  --alto: 20px;
  display: block; flex-shrink: 0;
  height: var(--alto); width: calc(var(--alto) * var(--proporcion));
  background: var(--gris);
  -webkit-mask: var(--src) left center / contain no-repeat;
          mask: var(--src) left center / contain no-repeat;
}
.sello--meta { --src: url("/assets/sellos/meta.svg"); --proporcion: 4.963; }             /* 948 / 191 */
.sello--tiendanube { --src: url("/assets/sellos/tiendanube.svg"); --proporcion: 5.934; } /* 1620 / 273 */
.sello--kommo { --src: url("/assets/sellos/kommo.svg"); --proporcion: 4.714; }           /* 132 / 28 */
.sello__rotulo {
  font: .66rem/1 "Andale Mono", ui-monospace, Menlo, monospace;
  letter-spacing: .08em; text-transform: uppercase; color: var(--gris);
}

/* El bloque oscuro, con difuminado y grano (la variante "noche" de los bocetos) */
.oscuro {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-rows: 1fr auto; gap: 48px;
  padding: clamp(28px, 4vw, 56px);
  border-radius: 20px;
  background: var(--negro); color: var(--blanco);
}
.oscuro::before {
  content: ""; position: absolute; inset: -20%; z-index: -2;
  background:
    linear-gradient(to top, rgba(29, 29, 27, .6), transparent 40%),
    radial-gradient(80% 60% at 80% 20%, var(--azul), transparent 72%),
    radial-gradient(70% 50% at 15% 85%, var(--amarillo), transparent 72%),
    radial-gradient(50% 40% at 95% 65%, var(--azul-30), transparent 72%),
    radial-gradient(70% 55% at 20% 30%, var(--negro), transparent 72%);
  filter: blur(42px);
}
.oscuro::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: var(--grano); opacity: .6; mix-blend-mode: overlay;
}

.contacto { align-self: center; }
.previa { margin-bottom: 8px; font-size: 1.05rem; color: rgba(247, 246, 242, .78); }
.mail-grande {
  display: block; margin-bottom: 28px;
  font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.15;
  overflow-wrap: anywhere; text-decoration: none;
}
.mail-grande:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.boton {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 8px;
  background: var(--blanco);
  color: var(--negro);
  font-weight: 500;
  text-decoration: none;
  transition: background .15s ease;
}
.boton:hover { background: var(--amarillo); }

/* Pie: la línea legal tenue, los links más claros, la firma al final */
.pie { display: grid; gap: 14px; padding-top: 20px; font-size: .82rem; line-height: 1.5; }
.pie nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.pie a { text-decoration: none; }
.pie a:hover, .pie a:focus-visible { text-decoration: underline; }
.oscuro .pie { border-top: 1px solid rgba(247, 246, 242, .2); }
.oscuro .pie p { color: rgba(247, 246, 242, .55); }
.oscuro .pie nav a { color: rgba(247, 246, 242, .85); }
.oscuro .pie nav a:hover { color: var(--blanco); }
.oscuro .pie .firma { margin-top: 6px; font-size: .74rem; color: rgba(247, 246, 242, .42); }

@media (max-width: 820px) {
  /* En el celular la página no se estira a la pantalla: sin aire muerto */
  .home { grid-template-columns: 1fr; min-height: 0; align-content: start; }
  .claro { grid-template-rows: auto auto; }
  .principal { padding: 40px 0 24px; }
  .oscuro { grid-template-rows: auto auto; gap: 40px; }
}
@media (max-width: 480px) {
  .pie { gap: 16px; }
  .oscuro .pie nav { flex-direction: column; gap: 12px; }
  .sellos { gap: 16px 24px; flex-wrap: nowrap; }
  .sello { --alto: 15px; }
  .sello__rotulo { font-size: .56rem; letter-spacing: .04em; white-space: nowrap; }
}

/* ───────────── Páginas internas (legales, asistentes de WhatsApp, 404) ───────────── */
/* Centradas, con el logo arriba, el título y el texto: texto plano, sin más (Julieta, 10/11) */

.interna {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 64px) 20px 0;
}
.interna > header { display: flex; justify-content: center; margin-bottom: clamp(40px, 7vw, 72px); }
.interna h1 {
  margin: 0 0 12px;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  text-align: center;
  text-wrap: balance;
}
.interna .fecha { margin-bottom: clamp(32px, 6vw, 48px); text-align: center; color: var(--gris); font-size: .9rem; }
.interna .fecha strong { font-weight: 400; }

.texto-largo { color: #2E2E2B; }
.texto-largo > :first-child { margin-top: 0; }
.texto-largo h2 { margin: 2.4em 0 .6em; font-weight: 700; font-size: 1.35rem; line-height: 1.25; }
.texto-largo h3 { margin: 1.8em 0 .5em; font-weight: 700; font-size: 1.08rem; line-height: 1.3; }
.texto-largo p, .texto-largo ul, .texto-largo ol, .texto-largo blockquote, .texto-largo table { margin: 0 0 1em; }
.texto-largo ul, .texto-largo ol { padding-left: 1.3em; }
.texto-largo li { margin-bottom: .45em; }
.texto-largo strong { font-weight: 700; }
.texto-largo a { color: var(--azul); }
.texto-largo blockquote {
  padding: 14px 18px; border-left: 3px solid var(--amarillo);
  background: rgba(229, 196, 56, .1); border-radius: 0 6px 6px 0;
}
.tabla { overflow-x: auto; margin: 0 0 1em; }
.texto-largo table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 0; }
.texto-largo th, .texto-largo td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--linea); }
.texto-largo th { font-weight: 700; border-bottom-color: rgba(29, 29, 27, .3); }
.texto-largo .destacado { font-size: 1.2rem; font-weight: 500; color: var(--negro); text-align: center; text-wrap: balance; }
.texto-largo .accion { text-align: center; margin-top: 1.5em; }
.texto-largo .accion a {
  display: inline-block; padding: 14px 24px; border-radius: 8px;
  background: var(--negro); color: var(--blanco); font-weight: 500; text-decoration: none;
}
.texto-largo .accion a:hover { background: #292927; }

.interna > .pie {
  margin-top: clamp(56px, 9vw, 96px);
  padding: 24px 0 32px;
  border-top: 1px solid var(--linea);
  justify-items: center;
  text-align: center;
  color: var(--gris);
}
.interna > .pie nav { justify-content: center; }
.interna > .pie nav a { color: var(--texto-suave); }
.interna > .pie nav a:hover { color: var(--negro); }
.interna > .pie .firma { margin-top: 6px; font-size: .74rem; }
@media (max-width: 480px) {
  .interna > .pie nav { flex-direction: column; gap: 12px; }
}
