/* ============================================================
   Launchpad de MFW: fondo de noche azul con la luz de MFW y las curvas
   de nivel de la entrada de Norte, y cuatro tarjetas con su dibujo.
   El cursor enciende la tarjeta por debajo y su borde. Sin librerías ni build.
   Fraunces en el saludo (la de títulos de MFW) y Geist en el resto,
   servidas desde aquí.
   ============================================================ */
@font-face { font-family: "Fraunces"; font-weight: 400 700; font-display: swap;
  src: url(assets/fuentes/fraunces-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-weight: 400 700; font-display: swap;
  src: url(assets/fuentes/fraunces-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; font-weight: 400 700; font-display: swap;
  src: url(assets/fuentes/geist-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-weight: 400 700; font-display: swap;
  src: url(assets/fuentes/geist-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --noche: #021a31;
  --carta: #06223d;
  --texto: #f2f6fb;
  --suave: rgba(226, 236, 248, .68);
  --linea: rgba(255, 255, 255, .10);
  --azul: #005191;
  --teal: #2f8ba3;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--noche);
  color: var(--texto);
  font: 16px/1.5 "Geist", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- Fondo: luces que derivan, curvas de nivel y puntos (los de la entrada de Norte) y grano ---- */
.fondo { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.fondo::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1440' height='900' viewBox='0 0 1440 900' fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Cg stroke-opacity='.10'%3E%3Cpath d='M-80 640C180 520 360 760 640 600S1120 420 1520 520'/%3E%3Cpath d='M-80 680C190 560 380 800 660 640S1130 460 1520 560'/%3E%3Cpath d='M-80 720C200 600 400 840 680 680S1140 500 1520 600'/%3E%3Cpath d='M-80 760C210 640 420 880 700 720S1150 540 1520 640'/%3E%3C/g%3E%3Cg stroke-opacity='.07'%3E%3Cpath d='M-80 180C220 60 520 260 820 140S1260 40 1520 120'/%3E%3Cpath d='M-80 220C230 100 530 300 830 180S1270 80 1520 160'/%3E%3Cpath d='M-80 260C240 140 540 340 840 220S1280 120 1520 200'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(rgba(255,255,255,.12) 1px, transparent 1.3px);
  background-size: cover, 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, #000 35%, transparent 100%);
          mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, #000 35%, transparent 100%);
}
.fondo::after {
  content: ""; position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
.aurora {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
  animation: deriva 26s ease-in-out infinite alternate;
}
.a1 { width: 52rem; height: 34rem; left: 50%; top: -18rem; margin-left: -26rem; background: radial-gradient(closest-side, #0a6bc2, transparent); }
.a2 { width: 34rem; height: 30rem; left: -10rem; top: 30%; background: radial-gradient(closest-side, var(--teal), transparent); opacity: .32; animation-duration: 32s; }
.a3 { width: 36rem; height: 30rem; right: -12rem; bottom: -10rem; background: radial-gradient(closest-side, var(--azul), transparent); opacity: .42; animation-duration: 38s; animation-direction: alternate-reverse; }
@keyframes deriva {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(6%, 4%) scale(1.08); }
  100% { transform: translate(-5%, 7%) scale(.95); }
}

/* ---- Cabecera ---- */
.cabecera {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1180px; width: 100%; margin: 0 auto; padding: 24px 28px;
}
.marca img { height: 38px; width: auto; display: block; }
.ayuda { color: var(--suave); text-decoration: none; font-size: 15px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.ayuda:hover { color: #fff; border-bottom-color: rgba(255,255,255,.5); }
.ayuda:focus-visible, .carta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---- Saludo ---- */
main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 64px 28px 48px; }
.portada { animation: entra .8s cubic-bezier(.2,.8,.2,1) both; }
h1 {
  margin: 0; font-family: "Fraunces", Georgia, serif; font-weight: 500;
  font-size: clamp(48px, 7vw, 88px); line-height: 1.02; letter-spacing: -.01em; color: #fff;
}
.lema { margin: 18px 0 0; max-width: 36ch; font-size: clamp(18px, 2vw, 21px); line-height: 1.45; color: var(--suave); }

/* ---- Rejilla de tarjetas ---- */
.rejilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 56px; }

.carta {
  --x: 50%; --y: 50%;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; min-height: 340px;
  border-radius: 14px; color: inherit; text-decoration: none;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
  border: 1px solid var(--linea);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  animation: entra .8s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: calc(.12s + var(--i) * .08s);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s, background .3s;
}
/* La luz que sigue al cursor, por debajo del contenido. */
.carta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--x) var(--y), color-mix(in srgb, var(--acento) 18%, transparent), transparent 55%);
}
/* El borde que se enciende donde está el cursor. */
.carta::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  opacity: 0; transition: opacity .35s;
  background: radial-gradient(260px circle at var(--x) var(--y), var(--acento), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
a.carta:hover { transform: translateY(-4px); background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.02)); }
a.carta:hover::before, a.carta:hover::after, a.carta:focus-visible::before { opacity: 1; }
/* Huellas y Reporting: se ven igual, pero aún no se pueden pulsar. */
.carta.pronto { cursor: default; }

.arte { flex: 1; display: grid; place-items: center; padding: 28px 24px 0; color: var(--acento); }
.arte svg { width: 100%; max-width: 360px; height: auto; overflow: visible; }

.pie { position: relative; padding: 0 28px 26px; }
.norma { display: block; margin-bottom: 8px; font-size: 13px; color: color-mix(in srgb, var(--acento) 75%, #fff); }
.carta h2 { margin: 0; font-size: 30px; font-weight: 600; letter-spacing: -.025em; line-height: 1.1; }
.carta p { margin: 8px 0 0; max-width: 40ch; color: var(--suave); font-size: 15.5px; line-height: 1.45; }
.abrir {
  position: absolute; right: 26px; bottom: 26px;
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500;
  color: #fff; opacity: .7; transition: opacity .25s, gap .25s;
}
.abrir svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
a.carta:hover .abrir { opacity: 1; gap: 10px; }

/* ---- Los dibujos: líneas finas del color de cada app ---- */
.arte svg * { vector-effect: non-scaling-stroke; }

/* Norte: una botella y un tarro; la botella flota. */
.arte-norte path, .arte-norte rect { stroke: color-mix(in srgb, var(--acento) 75%, #fff); stroke-width: 1.3; stroke-linejoin: round; }
.arte-norte .cuerpo { fill: color-mix(in srgb, var(--acento) 12%, var(--carta)); }
.arte-norte .tapa { fill: color-mix(in srgb, var(--acento) 40%, var(--carta)); }
.arte-norte .etiqueta-envase { fill: color-mix(in srgb, var(--acento) 28%, var(--carta)); }
.arte-norte .brillo { fill: none; stroke: rgba(255,255,255,.45); stroke-width: 2; stroke-linecap: round; }
.arte-norte .marca-envase { fill: none; stroke-width: 2; stroke-linecap: round; }
.arte-norte .suelo { fill: none; stroke-dasharray: 2 5; opacity: .5; }
.arte-norte .tarro { opacity: .7; }
.arte-norte .botella { animation: flota 5s ease-in-out infinite; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
a.carta:hover .arte-norte .botella { transform: translateY(-6px); }
@keyframes flota { 50% { translate: 0 -4px; } }

/* Sur: un bosque sobre una loma; las copas se mecen. */
.arte-sur .loma { fill: none; stroke: currentColor; stroke-width: 1.3; opacity: .55; }
.arte-sur .copa { fill: color-mix(in srgb, var(--acento) 22%, var(--carta)); stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round;
  transform-box: fill-box; transform-origin: 50% 100%; animation: mece 6s ease-in-out infinite; }
.arte-sur .tronco { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.arte-sur .atras { opacity: .5; }
.arte-sur .arbol:nth-child(2) .copa { animation-delay: -1.5s; }
.arte-sur .arbol:nth-child(3) .copa { animation-delay: -3s; }
.arte-sur .arbol:nth-child(4) .copa { animation-delay: -4.5s; }
.arte-sur .delante .copa { fill: color-mix(in srgb, var(--acento) 30%, var(--carta)); }
a.carta:hover .arte-sur .copa { animation-duration: 2.4s; }
@keyframes mece { 0%, 100% { rotate: -1.5deg; } 50% { rotate: 1.5deg; } }

/* Huellas: la curva de emisiones que baja, con su punto que late. */
.arte-huellas .reglas path { fill: none; stroke: rgba(255,255,255,.18); stroke-dasharray: 2 6; }
.arte-huellas .relleno { fill: url(#area); }
.arte-huellas .linea { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.arte-huellas .punto { fill: currentColor; transform-box: fill-box; transform-origin: center; animation: late 2.4s ease-in-out infinite; }
@keyframes late { 50% { scale: 1.5; } }

/* Reporting: tres hojas en abanico; las de atrás respiran. */
.arte-reporting .hoja { fill: var(--carta); stroke: currentColor; stroke-width: 1.2; }
.arte-reporting .atras1 { transform-box: fill-box; transform-origin: 50% 100%; transform: rotate(-8deg) translateX(-10px); opacity: .6; animation: abanico 6s ease-in-out infinite; }
.arte-reporting .atras2 { transform-box: fill-box; transform-origin: 50% 100%; transform: rotate(8deg) translateX(10px); opacity: .35; animation: abanico 6s ease-in-out infinite reverse; }
.arte-reporting .texto { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; opacity: .55; }
.arte-reporting .barras { fill: none; stroke: currentColor; stroke-width: 8; opacity: .8; }
@keyframes abanico { 50% { rotate: -2deg; } }

/* ---- Pie ---- */
.pie-pagina { padding: 24px 28px 32px; text-align: center; font-size: 13px; color: rgba(226,236,248,.45); }

@keyframes entra { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---- Móvil ---- */
@media (max-width: 760px) {
  .cabecera { padding: 18px 16px; }
  .marca img { height: 30px; }
  main { padding: 36px 16px 32px; }
  .rejilla { grid-template-columns: 1fr; gap: 14px; margin-top: 40px; }
  .carta { min-height: 0; }
  .arte { padding: 22px 16px 0; }
  .arte svg { max-width: 300px; }
  .pie { padding: 4px 20px 22px; }
  .carta h2 { font-size: 26px; }
  .abrir { position: static; margin-top: 14px; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
