@font-face {
  font-family: "Libre Franklin";
  src: url("/fonts/libre-franklin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #faf9f6;
  --paper-2: #f1efe8;
  --card: #ffffff;
  --ink: #1f1e1d;
  --muted: #5f5e5a;
  --line: #e2e0d8;
  --teal: #1d9e75;
  --teal-ink: #0f6e56;
  --teal-soft: #e1f5ee;
  --atalaya: #534ab7;
  --atalaya-ink: #3c3489;
  --atalaya-soft: #eeedfe;
  --danger: #a32d2d;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(31 30 29 / 6%), 0 12px 32px rgb(31 30 29 / 8%);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141413;
    --paper-2: #1c1b1a;
    --card: #201f1d;
    --ink: #f1efe8;
    --muted: #b4b2a9;
    --line: #34332f;
    --teal: #3fbd92;
    --teal-ink: #5dcaa5;
    --teal-soft: #11352a;
    --atalaya: #8f87e6;
    --atalaya-ink: #afa9ec;
    --atalaya-soft: #26224d;
    --danger: #f09595;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 16px 40px rgb(0 0 0 / 35%);
    color-scheme: dark;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Libre Franklin", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 750;
}

h3 {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.wrap {
  width: min(1140px, 100% - 32px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--card);
  padding: 8px 12px;
  border-radius: 8px;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.eyebrow {
  color: var(--teal-ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.lead {
  color: var(--muted);
  font-size: 1.12rem;
  margin-top: 18px;
  max-width: 62ch;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.92rem;
}

.btn-atalaya {
  background: var(--atalaya);
  border-color: var(--atalaya);
  color: #fff;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* Encabezado */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand img {
  height: 30px;
  width: auto;
}

.logo-dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .logo-light {
    display: none;
  }
  .logo-dark {
    display: block;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.95rem;
  font-weight: 550;
}

.nav a:not(.btn) {
  text-decoration: none;
  color: var(--muted);
}

.nav a:not(.btn):hover {
  color: var(--ink);
}

@media (max-width: 760px) {
  .nav a:not(.btn) {
    display: none;
  }
}

/* Portada */
.hero {
  padding: 72px 0 40px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
}

.hero-copy strong {
  color: var(--atalaya-ink);
}

.hero-visual {
  position: relative;
  padding-bottom: 40px;
}

.frame {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.frame-bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.frame-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.frame-phone {
  position: absolute;
  right: -12px;
  bottom: 0;
  width: 27%;
  border-radius: 22px;
  border-width: 6px;
  border-color: var(--ink);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .frame-phone {
    right: 0;
  }
}

/* Dos caminos */
.paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.path {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  text-decoration: none;
  color: var(--muted);
  transition: border-color 0.15s ease;
}

.path strong {
  display: block;
  color: var(--ink);
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.path img {
  width: 48px;
  flex: none;
}

.path-atalaya:hover {
  border-color: var(--atalaya);
}

.path-dev:hover {
  border-color: var(--teal);
}

@media (max-width: 700px) {
  .paths {
    grid-template-columns: 1fr;
  }
}

/* Secciones */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--paper-2);
}

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

.product-logo {
  height: 40px;
  width: auto;
  margin-bottom: 22px;
}


.features,
.services {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.features li,
.services li {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.features h3::before {
  content: "";
  display: block;
  width: 28px;
  height: 4px;
  border-radius: 4px;
  background: var(--atalaya);
  margin-bottom: 14px;
}

.services h3::before {
  content: "";
  display: block;
  width: 28px;
  height: 4px;
  border-radius: 4px;
  background: var(--teal);
  margin-bottom: 14px;
}

.features p,
.services p,
.steps p {
  color: var(--muted);
  margin-top: 8px;
  font-size: 0.97rem;
}

@media (max-width: 900px) {
  .features,
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .features,
  .services {
    grid-template-columns: 1fr;
  }
}

.atalaya {
  background: linear-gradient(180deg, var(--atalaya-soft), var(--paper) 420px);
}

.atalaya .eyebrow {
  color: var(--atalaya-ink);
}

.showcase {
  margin-top: 48px;
}

.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--atalaya);
}

.callout p {
  max-width: 60ch;
  color: var(--muted);
}

.callout strong {
  color: var(--ink);
}

/* Proceso */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: paso;
}

.steps li {
  counter-increment: paso;
  padding: 24px;
  border-top: 3px solid var(--teal);
  background: var(--card);
  border-radius: 0 0 var(--radius) var(--radius);
}

.steps li::before {
  content: "0" counter(paso);
  display: block;
  color: var(--teal-ink);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.values {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  color: var(--muted);
}

.values strong {
  display: block;
  color: var(--ink);
}

@media (max-width: 760px) {
  .values {
    grid-template-columns: 1fr;
  }
}

/* Contacto */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.channels {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 12px;
}

.channel {
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  text-decoration: none;
}

.channel span {
  color: var(--muted);
  font-size: 0.95rem;
}

.channel:hover {
  border-color: var(--teal);
}

.form {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 6px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

label {
  font-weight: 600;
  font-size: 0.93rem;
}

.opt {
  color: var(--muted);
  font-weight: 400;
}

input,
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 0;
  border-color: transparent;
}

[aria-invalid="true"] {
  border-color: var(--danger);
}

textarea {
  resize: vertical;
}

.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form .btn {
  justify-self: start;
}

.form-status {
  min-height: 1.6em;
  font-size: 0.95rem;
}

.form-status.ok {
  color: var(--teal-ink);
}

.form-status.error {
  color: var(--danger);
}

/* Pie */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.footer-inner img {
  width: 32px;
}

.footer-inner p:last-child {
  margin-left: auto;
}

.footer-inner a {
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--ink);
}
