/* Andesfyr: hoja de estilos única del sitio. */

:root {
  --fondo: #0B0D10;
  --fondo-2: #11151A;
  --superficie: #161B21;
  --borde: rgba(242, 241, 236, 0.10);
  --texto: #F2F1EC;
  --texto-2: #A9AEB6;
  --ambar: #F5B544;
  --ambar-suave: rgba(245, 181, 68, 0.14);
  --glaciar: #8FB8D6;
  --radio: 22px;
  --ancho: 1120px;
  --fuente: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--fuente);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

::selection { background: var(--ambar); color: #14110A; }

:focus-visible {
  outline: 2px solid var(--ambar);
  outline-offset: 3px;
  border-radius: 6px;
}

.saltar {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ambar);
  color: #14110A;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}
.saltar:focus { top: 12px; }

.contenedor {
  width: 100%;
  max-width: var(--ancho);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

/* Cabecera */

.cabecera {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 16, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--borde);
}

.cabecera .contenedor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.14em;
  font-size: 0.875rem;
}
.marca img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 0 0 1px var(--borde); }

.nav { display: flex; gap: clamp(14px, 3vw, 32px); }
.nav a {
  font-size: 0.875rem;
  color: var(--texto-2);
  text-decoration: none;
  transition: color .2s ease;
}
.nav a:hover { color: var(--texto); }

/* Hero */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(70% 55% at 57% 100%, rgba(245, 181, 68, 0.07), transparent 70%);
}

.hero-texto {
  position: relative;
  z-index: 2;
  padding-top: clamp(64px, 9vh, 104px);
  text-align: center;
}

.antetitulo {
  display: inline-block;
  margin: 0 0 22px;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ambar);
  font-weight: 600;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.1rem, 13vw, 9.5rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-transform: uppercase;
  background: linear-gradient(180deg, #FFFFFF 0%, #F2F1EC 55%, #C9C6BC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lema {
  margin: 22px auto 0;
  max-width: 24ch;
  text-wrap: balance;
  font-size: clamp(1.6rem, 4.4vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.lema span { color: var(--ambar); }

.bajada {
  margin: 22px auto 0;
  max-width: 34rem;
  color: var(--texto-2);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
}

.acciones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 26px;
  margin-top: 36px;
}

.boton {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--ambar);
  color: #14110A;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
  box-shadow: 0 8px 30px -10px rgba(245, 181, 68, 0.55);
}
.boton:hover { transform: translateY(-1px); background: #F8C463; box-shadow: 0 12px 38px -10px rgba(245, 181, 68, 0.7); }

.enlace {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  color: var(--texto);
  font-weight: 500;
  text-decoration: none;
}
.enlace .flecha { transition: transform .25s ease; color: var(--ambar); }
.enlace:hover .flecha { transform: translateX(4px); }

.nota-fyr {
  margin: 30px 0 0;
  font-size: 0.875rem;
  color: var(--texto-2);
}
.nota-fyr em { font-style: normal; color: var(--texto); }

.hero-arte {
  position: relative;
  height: clamp(280px, 34vw, 500px);
  margin-top: clamp(8px, 2vw, 24px);
  z-index: 1;
  pointer-events: none;
}
.hero-arte svg { width: 100%; height: 100%; }
.hero-arte::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(11, 13, 16, 0), var(--fondo));
}

.haz {
  transform-box: view-box;
  transform-origin: 820px 170px;
  animation: barrido 9s ease-in-out infinite alternate;
}
.halo { transform-box: fill-box; transform-origin: center; animation: pulso 4.5s ease-in-out infinite; }

@keyframes barrido {
  from { transform: rotate(-7deg); }
  to { transform: rotate(9deg); }
}
@keyframes pulso {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.18); }
}

/* Secciones */

.seccion { padding-block: clamp(88px, 13vw, 160px); }
.seccion + .seccion { border-top: 1px solid var(--borde); }

.titulo-seccion {
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.titulo-seccion span { color: var(--texto-2); }

.intro-seccion {
  margin: 18px 0 0;
  max-width: 38rem;
  color: var(--texto-2);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
}

/* Tarjeta de app */

.app {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(24px, 5vw, 56px);
  border-radius: calc(var(--radio) + 8px);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(200, 245, 96, 0.10), transparent 55%),
    linear-gradient(180deg, var(--superficie), var(--fondo-2));
  border: 1px solid var(--borde);
}

.app-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 340px;
  width: 100%;
  justify-self: center;
  border-radius: 26%;
  background: #000;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 30px 80px -30px rgba(200, 245, 96, 0.35);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.app-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 70% 30%, rgba(200, 245, 96, 0.22), transparent 70%);
}
.app-visual img { position: relative; width: 78%; height: auto; }
.app:hover .app-visual { transform: translateY(-4px) rotate(-1.5deg); }

.estado {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(200, 245, 96, 0.10);
  border: 1px solid rgba(200, 245, 96, 0.28);
  color: #DDF8A0;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
}
.estado::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #C8F560;
  box-shadow: 0 0 10px #C8F560;
}

.app h3 {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.app .resumen {
  margin: 12px 0 0;
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 600;
}
.app .detalle { margin: 16px 0 0; color: var(--texto-2); max-width: 32rem; }
.app .pronto { margin: 10px 0 0; color: var(--texto-2); font-size: 0.9375rem; }

.boton-lima {
  margin-top: 28px;
  background: #C8F560;
  color: #0E1405;
  box-shadow: 0 8px 30px -12px rgba(200, 245, 96, 0.6);
}
.boton-lima:hover { background: #D6FA82; box-shadow: 0 12px 38px -12px rgba(200, 245, 96, 0.75); }

/* Qué hacemos */

.pilares {
  margin: clamp(40px, 6vw, 64px) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pilar {
  padding: 32px 28px 34px;
  border-radius: var(--radio);
  background: linear-gradient(180deg, var(--superficie), var(--fondo-2));
  border: 1px solid var(--borde);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), border-color .4s ease;
}
.pilar:hover { transform: translateY(-4px); border-color: rgba(245, 181, 68, 0.35); }

.pilar-icono {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--ambar-suave);
  color: var(--ambar);
  margin-bottom: 22px;
}
.pilar-icono svg { width: 22px; height: 22px; }

.pilar h3 { margin: 0; font-size: 1.375rem; letter-spacing: -0.015em; line-height: 1.2; }
.pilar p { margin: 10px 0 0; color: var(--texto-2); }

/* Contacto */

.contacto { text-align: center; position: relative; overflow: hidden; }
.contacto::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(900px, 140vw);
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 0%, rgba(245, 181, 68, 0.16), transparent 70%);
  pointer-events: none;
}
.contacto .contenedor { position: relative; }
.contacto .intro-seccion { margin-inline: auto; }

.correo {
  display: inline-block;
  margin-top: 34px;
  font-size: clamp(1.5rem, 6vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--texto);
  text-decoration: none;
  overflow-wrap: anywhere;
  border-bottom: 2px solid rgba(245, 181, 68, 0.5);
  line-height: 1.25;
  transition: border-color .25s ease, color .25s ease;
}
.correo:hover { color: var(--ambar); border-color: var(--ambar); }

.contacto .acciones { margin-top: 30px; }

/* Pie */

.pie {
  border-top: 1px solid var(--borde);
  padding-block: 36px 44px;
  font-size: 0.875rem;
  color: var(--texto-2);
}
.pie .contenedor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}
.pie .marca { color: var(--texto); }
.pie p { margin: 0; }
.pie nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.pie nav a { color: var(--texto-2); text-decoration: none; }
.pie nav a:hover { color: var(--texto); text-decoration: underline; text-underline-offset: 3px; }

/* Páginas legales */

.legal { padding-block: clamp(64px, 10vw, 120px) clamp(72px, 10vw, 128px); }
.legal .contenedor { max-width: 780px; }
.legal h1 {
  margin: 0;
  font-size: clamp(2.25rem, 6.5vw, 3.75rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.legal .actualizado { margin: 14px 0 0; color: var(--texto-2); font-size: 0.9375rem; }
.legal h2 {
  margin: 48px 0 0;
  font-size: 1.375rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.legal p, .legal li { color: #C9CCD1; }
.legal p { margin: 12px 0 0; }
.legal ul { margin: 12px 0 0; padding-left: 1.2em; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--ambar); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal .volver { margin-top: 56px; }
.legal .volver a { color: var(--texto); text-decoration: none; }

/* 404 */

.error {
  min-height: calc(100svh - 60px - 120px);
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 80px;
}
.error .codigo {
  margin: 0;
  font-size: clamp(5rem, 22vw, 11rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(242, 241, 236, 0.35);
}
.error h1 { text-wrap: balance; margin: 18px 0 0; font-size: clamp(1.75rem, 5vw, 2.5rem); letter-spacing: -0.02em; line-height: 1.15; }
.error p { margin: 12px auto 0; color: var(--texto-2); max-width: 28rem; }
.error .boton { margin-top: 30px; }

/* Aparición al desplazarse (solo con JavaScript activo) */

.js .aparece {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--retraso, 0s);
}
.js .aparece.visible { opacity: 1; transform: none; }

.entrada { animation: entrada 1.1s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--retraso, 0s); }
@keyframes entrada {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

/* Responsivo */

@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .app-visual { max-width: 220px; }
  .pilares { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .nav .opcional { display: none; }
  .pie .contenedor { flex-direction: column; align-items: flex-start; }
}

/* Movimiento reducido */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .haz, .halo { animation: none; }
  .js .aparece { opacity: 1; transform: none; }
}
