/* ===== SofIA Labs — estilos ===== */
:root {
  --navy: #131c4f;
  --navy-2: #0c1238;
  --ink: #1c2233;
  --muted: #5b6275;
  --paper: #f6f4ef;
  --white: #ffffff;
  --cyan: #3cc8f5;
  --violet: #a35cf2;
  --grad: linear-gradient(100deg, var(--cyan), var(--violet));
  --radius: 18px;
  --shadow: 0 10px 30px rgba(19, 28, 79, .08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1140px, 100% - 32px); margin-inline: auto; }

h1, h2, h3 { color: var(--navy); line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--violet); margin-bottom: .8rem;
}
.eyebrow--light { color: var(--cyan); }

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.6rem; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--white);
  background: var(--grad); box-shadow: 0 8px 24px rgba(163, 92, 242, .28);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(163, 92, 242, .38); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--cyan); outline-offset: 3px;
}
.btn--ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--violet); color: var(--violet); }
.btn--sm { padding: .55rem 1.1rem; font-size: .9rem; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 239, .85); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(19, 28, 79, .06);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav__brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.25rem; color: var(--navy); }
.nav__brand img { width: 40px; height: 40px; object-fit: contain; }
.nav__brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav__links { display: flex; align-items: center; gap: 1.8rem; font-weight: 600; font-size: .95rem; }
.nav__links a:not(.btn):hover { color: var(--violet); }
.nav__toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 6px auto; transition: transform .25s; }
.nav.open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 64px 0 96px; text-align: center; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 300px at 15% 20%, rgba(60, 200, 245, .18), transparent 70%),
    radial-gradient(600px 320px at 85% 70%, rgba(163, 92, 242, .16), transparent 70%);
}
.hero__inner { display: flex; flex-direction: column; align-items: center; }
.hero__logo { width: min(640px, 100%); height: auto; margin-bottom: 2.5rem; }
.hero h1 { max-width: 880px; }
.hero__lead { max-width: 680px; margin: 1.3rem auto 2rem; font-size: 1.15rem; color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.hero__tags { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 2.2rem; }
.hero__tags li {
  padding: .4rem 1rem; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--navy);
  background: var(--white); border: 1px solid rgba(19, 28, 79, .1);
}

/* ===== Secciones ===== */
.section { position: relative; padding: 96px 0; overflow: hidden; }
.section__head { max-width: 720px; margin-bottom: 3rem; }
.section--soft { background: var(--white); padding: 64px 0; }
.section--dark { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #cfd5ee; }
.section--dark h2, .section--dark h3 { color: var(--white); }

/* Patrón de circuito sutil (evoca el logo) */
.circuit {
  position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image:
    linear-gradient(90deg, transparent 49.5%, rgba(60, 200, 245, .5) 49.5%, rgba(60, 200, 245, .5) 50.5%, transparent 50.5%),
    radial-gradient(circle, rgba(163, 92, 242, .9) 2px, transparent 3px);
  background-size: 120px 120px, 120px 120px;
  background-position: 0 0, 60px 60px;
  mask-image: radial-gradient(ellipse at 80% 20%, #000 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse at 80% 20%, #000 0%, transparent 60%);
}

/* ===== Objetivo ===== */
.objetivo { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
.objetivo__text p { color: var(--muted); font-size: 1.05rem; margin-top: 1rem; }
.objetivo__text h2 { margin-bottom: .4rem; }
.objetivo__pillars { display: grid; gap: 1rem; }
.pillar {
  display: grid; grid-template-columns: auto 1fr; column-gap: 1.2rem;
  background: var(--white); padding: 1.4rem 1.6rem; border-radius: var(--radius); box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.pillar::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--cyan), var(--violet)); }
.pillar__n { grid-row: span 2; font-weight: 800; font-size: 1.4rem; color: var(--violet); }
.pillar p { color: var(--muted); font-size: .97rem; }

/* ===== Servicios ===== */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; position: relative; }
.service {
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius); padding: 2rem; transition: transform .25s, border-color .25s, background .25s;
}
.service:hover { transform: translateY(-6px); border-color: rgba(60, 200, 245, .5); background: rgba(255, 255, 255, .07); }
.service__icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.4rem;
  background: var(--grad); color: var(--white); box-shadow: 0 0 24px rgba(60, 200, 245, .35);
}
.service__icon svg { width: 28px; height: 28px; }
.service h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.service > p { margin-bottom: 1.2rem; }
.service ul { list-style: none; display: grid; gap: .6rem; }
.service li { position: relative; padding-left: 1.4rem; font-size: .95rem; }
.service li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
}

/* ===== Método ===== */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 9px; left: 10px; right: 10px; height: 2px; background: var(--grad); opacity: .5;
}
.step { position: relative; }
.step__dot {
  display: block; width: 20px; height: 20px; border-radius: 50%; margin-bottom: 1.4rem;
  background: var(--paper); border: 4px solid var(--violet); position: relative;
}
.step:nth-child(odd) .step__dot { border-color: var(--cyan); }
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .97rem; }

/* ===== Beneficios ===== */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.benefit strong { display: block; color: var(--navy); font-size: 1.1rem; margin-bottom: .3rem; }
.benefit strong::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 4px; background: var(--grad); margin-bottom: .9rem; }
.benefit span { color: var(--muted); font-size: .95rem; }

/* ===== Contacto ===== */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; position: relative; }
.contact__text p:last-child { margin-top: 1rem; font-size: 1.08rem; }
.contact__form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius); padding: 2rem;
}
.contact__form label { display: grid; gap: .35rem; font-size: .88rem; font-weight: 600; color: #e3e7f7; }
.contact__form .full { grid-column: 1 / -1; }
.contact__form input, .contact__form select, .contact__form textarea {
  font: inherit; font-weight: 500; color: var(--white); background: rgba(12, 18, 56, .6);
  border: 1px solid rgba(255, 255, 255, .15); border-radius: 10px; padding: .75rem .9rem; resize: vertical;
}
.contact__form select option { color: var(--ink); }
.contact__form input:focus, .contact__form select:focus, .contact__form textarea:focus { border-color: var(--cyan); outline: none; }
.form__note { font-size: .9rem; color: var(--cyan); min-height: 1.2em; }

/* ===== Footer ===== */
.footer { background: var(--navy-2); color: #9aa3c7; padding: 40px 0; font-size: .9rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer .nav__brand { color: var(--white); font-size: 1.1rem; }
.footer .nav__brand img { width: 32px; height: 32px; }

/* ===== Animación de entrada ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .objetivo, .contact { grid-template-columns: 1fr; gap: 2.5rem; }
  .services { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .benefits { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 1.2rem;
    padding: 1.5rem 16px 2rem; background: var(--paper); border-bottom: 1px solid rgba(19, 28, 79, .08);
    display: none;
  }
  .nav.open .nav__links { display: flex; }
  .section { padding: 72px 0; }
  .hero { padding: 40px 0 72px; }
  .steps, .benefits, .contact__form { grid-template-columns: 1fr; }
  .contact__form { padding: 1.4rem; }
  .footer__inner { flex-direction: column; text-align: center; }
}
