/* Landing de joindivy.com (Figma «Landing beta», revisión 8). Colores y tipos del sistema de Divy
   (consolidacion-figma-2026-10-15/tokens.json). */
@font-face { font-family: Anton; src: url(/fuentes/anton.ttf) format('truetype'); font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url(/fuentes/instrument-sans.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url(/fuentes/instrument-sans-500.ttf) format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url(/fuentes/instrument-sans-600.ttf) format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url(/fuentes/geist-mono-500.ttf) format('truetype'); font-weight: 500; font-display: swap; }

:root {
  --app: #080a0b; --hundido: #0f1214; --superficie: #15191c; --elevado: #22282c;
  --texto: #f3f4f4; --secundario: #a3a9ad; --tenue: #7a8287; --dato: #8cc6c9;
  --sutil: #2a3034; --defecto: #3e454a; --fuerte: #7a8287; --foco: #4fa6ab;
  --accion: #ff5a1f; --presionado: #e8470e; --sobre-accion: #080a0b; --error: #e25c57;
  --lado: 64px;
}
* { box-sizing: border-box; }
html { background: var(--app); color: var(--texto); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/25px 'Instrument Sans', -apple-system, 'Segoe UI', Roboto, sans-serif; overflow-x: hidden; }
a { color: inherit; }
h1, h2 { margin: 0; font-weight: 400; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--foco); outline-offset: 3px; border-radius: 4px; }

.marca { display: inline-flex; align-items: center; gap: 8px; height: 56px; }
.marca .simbolo { width: 32px; height: 32px; fill: var(--accion); }
.marca .logotipo { height: 56px; width: auto; fill: var(--texto); }
.icono { width: 28px; height: 28px; fill: currentColor; display: block; }

.boton { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 20px; border-radius: 6px; border: 1px solid transparent; font: 500 15px/18px 'Instrument Sans', sans-serif; text-decoration: none; cursor: pointer; transition: background-color .15s; }
.boton.principal { background: var(--accion); color: var(--sobre-accion); }
.boton.principal:hover { background: var(--presionado); }
.boton.principal:disabled { opacity: .6; cursor: default; }
.boton.secundario { background: var(--elevado); border-color: var(--defecto); color: var(--texto); }
.boton.secundario:hover { background: var(--superficie); }

/* Cabecera */
.cabecera { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px var(--lado); max-width: 1440px; margin: 0 auto; }
.inicio { display: inline-flex; border-radius: 6px; }
.acciones { display: flex; align-items: center; gap: 16px; }
.idioma { display: inline-flex; border: 1px solid var(--defecto); border-radius: 6px; padding: 1px; }
.idioma a { width: 44px; height: 44px; display: grid; place-items: center; font-size: 12px; line-height: 16px; color: var(--secundario); text-decoration: none; border-radius: 4px; }
.idioma a[aria-current] { background: var(--elevado); color: var(--texto); }

/* Presentación */
.presentacion { position: relative; display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 608px); justify-content: space-between; align-items: center; gap: 64px; max-width: 1440px; margin: 0 auto; padding: 64px var(--lado); min-height: 1032px; }
.fauna-capa { position: absolute; inset: 0; pointer-events: none; }
.fauna { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); opacity: var(--o); animation: flotar 5s ease-in-out var(--r, 0s) infinite alternate; will-change: transform; }
.fauna .icono { width: 100%; height: 100%; }
.c-tenue { color: var(--secundario); } .c-dato { color: var(--dato); } .c-texto { color: var(--texto); }
/* Cada animal se mueve a su manera (Luka, 15 oct: que la fauna dé personalidad). Sin movimiento con «reducir movimiento». */
@keyframes flotar { from { transform: translate(0, 0) rotate(0); } to { transform: translate(10px, -16px) rotate(5deg); } }
@keyframes nadar { 0% { transform: translate(-28px, 6px) rotate(-6deg); } 50% { transform: translate(0, -10px) rotate(2deg); } 100% { transform: translate(28px, 4px) rotate(8deg); } }
@keyframes banco { 0% { transform: translate(-18px, 4px); } 50% { transform: translate(6px, -8px); } 100% { transform: translate(22px, 2px); } }
@keyframes latir { 0%, 100% { transform: translateY(0) scale(1, 1); } 40% { transform: translateY(-14px) scale(.92, 1.08); } 70% { transform: translateY(-6px) scale(1.06, .94); } }
@keyframes cabeceo { from { transform: translateY(6px) rotate(-6deg); } to { transform: translateY(-12px) rotate(6deg); } }
@keyframes girar { from { transform: rotate(-14deg) scale(.96); } to { transform: rotate(14deg) scale(1.04); } }
@keyframes planear { 0% { transform: translate(0, 0) rotate(-3deg); } 50% { transform: translate(-14px, -12px) rotate(4deg); } 100% { transform: translate(12px, -4px) rotate(-2deg); } }
.a-delfin { animation: nadar 6s ease-in-out var(--r, 0s) infinite alternate; }
.a-banco { animation: banco 4.5s ease-in-out var(--r, 0s) infinite alternate; }
.a-medusa { animation: latir 3.2s ease-in-out var(--r, 0s) infinite; }
.a-caballito { animation: cabeceo 2.8s ease-in-out var(--r, 0s) infinite alternate; }
.a-estrella { animation: girar 5.5s ease-in-out var(--r, 0s) infinite alternate; }
.a-pulpo { animation: latir 4s ease-in-out var(--r, 0s) infinite; }
.a-tortuga, .a-raya { animation: planear 7s ease-in-out var(--r, 0s) infinite alternate; }
.valor { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.valor h1 { font: 84px/96px Anton, Impact, sans-serif; text-transform: uppercase; }
.entrada { font-size: 20px; line-height: 30px; color: var(--secundario); max-width: 540px; }
.valor .boton { width: 260px; margin-top: 0; }
.nota { font-size: 13px; line-height: 18px; color: var(--secundario); margin-top: -12px; }

.vista { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.vista .tortuga { left: 8px; top: 96px; width: 80px; height: 80px; opacity: .55; }
.vista .raya { left: 486px; top: 540px; width: 116px; height: 116px; opacity: .4; }
.telefono { position: relative; width: 342px; aspect-ratio: 342 / 765; cursor: pointer; }
.telefono img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .25s ease-in-out; }
.telefono img.activa { opacity: 1; }
figcaption { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-top: 8px; }
.vista-pie { font-size: 13px; line-height: 18px; color: var(--secundario); }

/* Funciones */
.funciones { background: var(--hundido); display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 64px max(var(--lado), calc((100% - 1312px) / 2)); }
.funciones h2 { font: 400 22px/28px 'Instrument Sans', sans-serif; margin: 12px 0; }
.funciones p { font-size: 15px; line-height: 22px; color: var(--secundario); }

/* Beta y formulario */
.beta { display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 608px); justify-content: space-between; gap: 64px; max-width: 1440px; margin: 0 auto; padding: 64px var(--lado); }
.invitacion { display: flex; flex-direction: column; gap: 24px; }
.invitacion h2 { font: 48px/60px Anton, Impact, sans-serif; text-transform: uppercase; }
.invitacion p { color: var(--secundario); max-width: 520px; }
.invitacion p.clara { color: var(--texto); font-size: 15px; line-height: 22px; }
.formulario { display: flex; flex-direction: column; gap: 16px; align-self: start; }
.formulario label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 16px; color: var(--secundario); }
.formulario input:not([type=checkbox]) { height: 56px; padding: 0 14px; border-radius: 4px; border: 1px solid var(--defecto); background: var(--hundido); color: var(--texto); font: 17px 'Instrument Sans', sans-serif; }
.formulario select { height: 56px; padding: 0 44px 0 14px; border-radius: 4px; border: 1px solid var(--defecto); background: var(--hundido) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%23A3A9AD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center; color: var(--texto); font: 17px 'Instrument Sans', sans-serif; appearance: none; -webkit-appearance: none; cursor: pointer; }
.formulario select:invalid { color: var(--tenue); }
.formulario select:focus { outline: none; border-color: var(--foco); }
.formulario select option { color: var(--texto); background: var(--hundido); }
.formulario input::placeholder { color: var(--tenue); }
.formulario input:focus { outline: none; border-color: var(--foco); }
.formulario .casilla { flex-direction: row; align-items: flex-start; gap: 12px; line-height: 18px; cursor: pointer; }
.casilla input { appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border-radius: 4px; border: 1.5px solid var(--fuerte); background: var(--hundido); display: grid; place-items: center; cursor: pointer; }
.casilla input:checked { background: var(--accion); border-color: var(--accion); }
.casilla input:checked::after { content: ''; width: 10px; height: 6px; border: solid var(--sobre-accion); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.casilla a { color: var(--texto); }
.trampa { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulario .boton { width: 100%; }
.formulario .nota { margin-top: 0; }
.error { color: var(--error); font-size: 13px; line-height: 18px; }

/* Confirmación (Figma «Solicitud recibida») */
.hecho { max-width: 640px; margin: 0 auto; padding: 48px 24px 64px; display: flex; flex-direction: column; gap: 24px; }
.hecho .grande { width: 88px; height: 88px; color: var(--texto); }
.hecho h1 { font: 48px/60px Anton, Impact, sans-serif; text-transform: uppercase; outline: none; }
.hecho .destacado { font-size: 22px; line-height: 28px; }
.hecho p { color: var(--secundario); }
.hecho .destacado { color: var(--texto); }
.hecho .boton { width: 100%; }
.hecho .enviada { font-size: 13px; line-height: 18px; color: var(--tenue); }
.hecho .enviada strong { color: var(--texto); font-weight: 500; word-break: break-all; }
.hecho .nota-puente { font-size: 13px; line-height: 18px; color: var(--tenue); }

/* Pie */
.pie { background: var(--hundido); display: flex; align-items: center; justify-content: space-between; padding: 64px max(var(--lado), calc((100% - 1312px) / 2)); }
.pie .marca { height: 33px; } .pie .marca .logotipo { height: 33px; } .pie .marca .simbolo { width: 32px; height: 32px; }
.pie a { font-size: 13px; line-height: 18px; color: var(--secundario); text-decoration: none; }
.pie .enlaces { display: flex; flex-wrap: wrap; justify-content: flex-end; column-gap: 24px; }
/* Aviso legal */
.legal { max-width: 720px; margin: 0 auto; padding: 48px var(--lado) 80px; }
.legal h1 { font: 40px/1.1 Anton, sans-serif; text-transform: uppercase; margin: 0 0 8px; }
.legal .fecha { color: var(--secundario); font-size: 13px; margin: 0 0 32px; }
.legal h2 { font: 600 18px/1.3 'Instrument Sans', sans-serif; margin: 32px 0 8px; }
.legal p { color: var(--secundario); font-size: 15px; line-height: 1.6; margin: 0; }
.legal p strong { color: var(--texto); font-weight: 600; }
.legal a { color: var(--texto); }
.pie .enlaces a { padding: 15px 0; }

@media (max-width: 1100px) {
  .valor h1 { font-size: 64px; line-height: 76px; }
  .vista .raya { left: auto; right: -16px; }
}
/* Móvil (Figma 390 px) */
@media (max-width: 860px) {
  :root { --lado: 24px; }
  .cabecera { padding: 16px var(--lado); }
  .cabecera .marca { height: 31px; gap: 6px; } .cabecera .logotipo { height: 31px; } .cabecera .simbolo { width: 25px; height: 25px; }
  .acciones { gap: 8px; }
  .acciones .boton { min-height: 52px; padding: 0 14px; white-space: nowrap; }
  .presentacion { grid-template-columns: 1fr; gap: 32px; min-height: 0; padding: 24px var(--lado); }
  .fauna { left: var(--mx); top: var(--my); width: var(--ms); height: var(--ms); }
  .solo-escritorio { display: none; }
  .valor h1 { font-size: 48px; line-height: 58px; }
  .entrada { font-size: 17px; line-height: 25px; }
  .valor .boton { width: 100%; }
  .vista .tortuga { left: -16px; top: 24px; width: 44px; height: 44px; }
  .vista .raya { left: auto; right: -12px; top: 440px; width: 44px; height: 44px; }
  .a-delfin { opacity: .3; }
  .telefono { width: min(300px, 78vw); }
  .funciones { grid-template-columns: 1fr; padding: 24px var(--lado); }
  .beta { grid-template-columns: 1fr; gap: 32px; padding: 24px var(--lado) 32px; }
  .invitacion h2 { font-size: 32px; line-height: 42px; }
  .invitacion .marca { height: 31px; } .invitacion .logotipo { height: 31px; } .invitacion .simbolo { width: 25px; height: 25px; }
  .hecho h1 { font-size: 40px; line-height: 54px; }
  .pie { padding: 24px var(--lado); }
}
/* Móviles estrechos: la cabecera cabe sin desplazamiento lateral. */
@media (max-width: 400px) {
  :root { --lado: 20px; }
  .idioma a { width: 36px; }
  .acciones { gap: 6px; }
  .acciones .boton { padding: 0 12px; font-size: 14px; }
}
@media (max-width: 350px) { .cabecera .logotipo { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fauna { animation: none; }
  .telefono img { transition: none; }
}
