/* =========================================================
   Aigin Labs — Landing page
   Tokens, layout y componentes. CSS puro, sin frameworks.
   ========================================================= */

:root {
  /* Color */
  --navy-950: #081527;
  --navy-900: #0B1E3A;
  --navy-800: #14294D;
  --blue-600: #2A5FCB;
  --blue-500: #3B74E0;
  --blue-100: #EAF1FF;
  --gray-50:  #F6F8FB;
  --gray-200: #E3E8F0;
  --gray-400: #97A2B4;
  --gray-500: #6B7686;
  --white:    #FFFFFF;

  /* Tipografía */
  --font-display: 'Manrope', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;

  /* Radio y sombra */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 8px 24px rgba(11, 30, 58, 0.07);
  --shadow-lift: 0 16px 36px rgba(11, 30, 58, 0.12);

  /* Layout */
  --container-w: 1180px;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body, h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; }

body {
  font-family: var(--font-body);
  color: var(--navy-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.2;
  font-weight: 700;
}

h2 { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.25rem); }
h3 { font-size: 1.2rem; font-weight: 700; }

p { color: var(--gray-500); max-width: 62ch; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-900);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 3px;
}

.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
}

section { padding-block: 96px; }

.section-head { max-width: 640px; margin-bottom: 48px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--blue-600);
  color: var(--white);
}
.btn--primary:hover { background: var(--blue-500); }

.btn--ghost {
  background: transparent;
  color: var(--navy-900);
  border: 1px solid var(--gray-200);
}
.btn--ghost:hover { background: var(--blue-100); border-color: var(--blue-100); }

.btn--small { padding: 10px 18px; font-size: 0.875rem; }
.btn--large { padding: 16px 34px; font-size: 1rem; }

/* =========================================================
   Header / navegación
   ========================================================= */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: var(--header-h);
  z-index: 500;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--gray-200);
  box-shadow: 0 6px 20px rgba(11, 30, 58, 0.05);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy-800);
  position: relative;
  padding-block: 4px;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--blue-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-link:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 501;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero { padding-top: calc(var(--header-h) + 72px); padding-bottom: 96px; }

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.hero__title {
  font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3.4rem);
  letter-spacing: -0.015em;
  max-width: 16ch;
}

.hero__subtitle {
  margin-top: 22px;
  font-size: 1.08rem;
  max-width: 46ch;
}

.hero__actions {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* --- Ilustración del hero: onda de voz transformándose en venta --- */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 380px;
}

.visual-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 380px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  padding: 40px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.waveform {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 84px;
}
.waveform span {
  width: 6px;
  border-radius: 4px;
  background: var(--blue-600);
  animation: wave 1.6s ease-in-out infinite;
}
.waveform span:nth-child(1) { height: 22px; animation-delay: 0s; }
.waveform span:nth-child(2) { height: 46px; animation-delay: 0.1s; }
.waveform span:nth-child(3) { height: 70px; animation-delay: 0.2s; }
.waveform span:nth-child(4) { height: 34px; animation-delay: 0.3s; }
.waveform span:nth-child(5) { height: 58px; animation-delay: 0.4s; }
.waveform span:nth-child(6) { height: 28px; animation-delay: 0.5s; }
.waveform span:nth-child(7) { height: 44px; animation-delay: 0.6s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.55); opacity: 0.75; }
  50% { transform: scaleY(1); opacity: 1; }
}

.visual-flow {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.visual-flow__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gray-400);
  display: block;
}

.receipt { width: 92px; height: auto; flex-shrink: 0; }

.visual-blob {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
  filter: blur(2px);
}
.visual-blob--a {
  width: 150px; height: 150px;
  background: var(--blue-100);
  top: -30px; right: 10%;
}
.visual-blob--b {
  width: 90px; height: 90px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  bottom: -20px; left: 6%;
}

/* =========================================================
   Productos
   ========================================================= */
.products { background: var(--gray-50); }

.products__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.product-card {
  border-radius: var(--radius-lg);
  padding: 44px;
}

.product-card--featured {
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-soft);
  display: flex;
  gap: 28px;
}

.product-card__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--blue-100);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card__icon img { width: 26px; height: 26px; }

.product-card__tagline {
  margin-top: 10px;
  font-size: 1.02rem;
  color: var(--navy-800);
  max-width: 52ch;
}

.product-card__features {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}
.product-card__features li {
  position: relative;
  padding-left: 22px;
  font-size: 0.94rem;
  color: var(--navy-800);
}
.product-card__features li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue-600);
}

.product-card__body .btn { margin-top: 28px; }

.product-card--ghost {
  border: 1px dashed var(--gray-400);
  display: flex;
  align-items: center;
  color: var(--gray-500);
}
.product-card--ghost h3 { color: var(--gray-500); }
.product-card--ghost p { font-size: 0.95rem; }

/* =========================================================
   Propuesta de valor
   ========================================================= */
.value__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 32px;
}

.value-item {
  padding-top: 22px;
  border-top: 2px solid var(--gray-200);
}

.value-item__icon {
  color: var(--blue-600);
  margin-bottom: 18px;
}

.value-item h3 { margin-bottom: 8px; }
.value-item p { font-size: 0.95rem; }

/* =========================================================
   Sobre Aigin Labs
   ========================================================= */
.about { background: var(--gray-50); }

.about__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: start;
}

.about__text h2 { margin-bottom: 20px; }
.about__text p { font-size: 1.02rem; }

.about__focus {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 32px;
}

.about__focus-label {
  display: block;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 16px;
}

.about__focus ul { display: flex; flex-direction: column; gap: 12px; }
.about__focus li {
  font-size: 0.95rem;
  color: var(--navy-800);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}
.about__focus li:last-child { border-bottom: none; padding-bottom: 0; }

/* =========================================================
   Contacto
   ========================================================= */
.contact {
  background: var(--navy-900);
  color: var(--white);
  text-align: center;
}
.contact h2 { color: var(--white); }
.contact p { color: #B9C6E0; margin-inline: auto; margin-top: 14px; }

.contact__details {
  display: flex;
  justify-content: center;
  gap: 56px;
  margin-block: 40px;
  flex-wrap: wrap;
}
.contact__item { text-align: left; }
.contact__label {
  display: block;
  font-size: 0.82rem;
  color: #8FA1C7;
  margin-bottom: 6px;
}
.contact__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--gray-200);
  padding-block: 40px;
}
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.brand--footer { font-size: 1.05rem; }
.site-footer__brand p {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 2px;
}
.site-footer__links {
  display: flex;
  gap: 24px;
}
.site-footer__links a {
  font-size: 0.9rem;
  color: var(--navy-800);
}
.site-footer__links a:hover { color: var(--blue-600); }
.site-footer__copy {
  font-size: 0.82rem;
  color: var(--gray-400);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  section { padding-block: 72px; }

  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-soft);
    padding: 8px 24px 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .site-nav[data-state="open"] { max-height: 340px; }

  .site-nav__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
  }
  .nav-link { display: block; padding-block: 12px; width: 100%; }
  .site-nav__cta { margin-top: 12px; width: 100%; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; min-height: 300px; }
  .hero__title, .hero__subtitle { max-width: none; }

  .products__grid { grid-template-columns: 1fr; }
  .product-card--featured { flex-direction: column; }

  .value__grid { grid-template-columns: repeat(2, 1fr); }

  .about__inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { padding-inline: 20px; }
  section { padding-block: 56px; }

  .hero { padding-top: calc(var(--header-h) + 40px); }

  .product-card { padding: 30px; }
  .product-card__features { grid-template-columns: 1fr; }

  .value__grid { grid-template-columns: 1fr; gap: 28px; }

  .contact__details { gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .waveform span { animation: none; transform: scaleY(0.8); }
  .btn, .nav-link::after, .site-header, .site-nav { transition: none; }
}
