/* ==========================================================================
   Grupo Vektra — Landing (tema claro)
   Paleta de marca: blanco · azul #13315C · gris #8E9499  (acento vivo #2f6bd6)
   ========================================================================== */

:root {
  --white: #ffffff;
  --soft: #f5f8fc;
  --soft-2: #eaf1f9;
  --navy: #13315C;          /* azul del logo */
  --navy-deep: #0d2444;     /* secciones oscuras */
  --blue: #2f6bd6;          /* acento vivo */
  --blue-dark: #1f57b8;
  --gray: #8E9499;          /* gris del logo */

  --ink: #13315C;           /* títulos */
  --body: #51607a;          /* texto legible */
  --muted: #8E9499;         /* gris del logo para apoyos */
  --line: #e4eaf2;
  --line-strong: #d2dceb;

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 18px 50px rgba(19, 49, 92, 0.12);
  --shadow-soft: 0 8px 24px rgba(19, 49, 92, 0.08);

  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--blue); }

/* ================================= Nav ================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.35s var(--ease), border-color 0.35s;
}
.nav.scrolled { box-shadow: var(--shadow-soft); border-bottom-color: transparent; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 96px; }
.nav__logo { display: inline-flex; align-items: center; }
.nav__logo-img { height: 50px; width: auto; transition: transform 0.25s var(--ease); }
.nav__logo:hover .nav__logo-img { transform: scale(1.03); }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a { font-size: 0.96rem; color: var(--body); font-weight: 500; transition: color 0.25s; }
.nav__links a:hover { color: var(--navy); }
.nav__cta {
  padding: 11px 22px; border-radius: 999px;
  background: var(--blue); color: #fff !important; font-weight: 600 !important;
  box-shadow: 0 10px 24px rgba(47, 107, 214, 0.25);
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s;
}
.nav__cta:hover { transform: translateY(-2px); background: var(--blue-dark); box-shadow: 0 14px 30px rgba(47, 107, 214, 0.38); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================ Buttons =============================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 30px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  font-family: var(--font-head); cursor: pointer; border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s, color 0.25s;
}
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 12px 30px rgba(47, 107, 214, 0.3); }
.btn--primary:hover { transform: translateY(-3px); background: var(--blue-dark); box-shadow: 0 18px 40px rgba(47, 107, 214, 0.42); }
.btn--light { background: #fff; color: var(--navy); border-color: var(--line-strong); }
.btn--light:hover { transform: translateY(-3px); border-color: var(--navy); box-shadow: var(--shadow-soft); }
.btn--block { width: 100%; }

/* ================================= Hero ================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  padding: 130px 0 90px;
  background: var(--soft);
}
.hero .container { max-width: 100%; padding-left: clamp(28px, 4.5vw, 68px); }
.hero__media { position: absolute; inset: -8% -14% 0 14%; z-index: 0; will-change: transform; }
.hero__media img { width: 100%; height: 122%; object-fit: cover; object-position: center 38%; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,0.94) 40%, rgba(255,255,255,0.45) 54%, rgba(255,255,255,0.05) 72%, transparent 100%),
    linear-gradient(0deg, rgba(255,255,255,0.36) 0%, transparent 26%);
}
.hero__content { position: relative; z-index: 2; max-width: 560px; }
.hero__logo { height: clamp(78px, 9.5vw, 128px); width: auto; margin-bottom: 24px; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.92rem; color: var(--navy); font-weight: 600; margin-bottom: 20px;
}
.hero__kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(47,107,214,0.2); animation: pulse 2s infinite; flex-shrink: 0; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(47,107,214,0); } }
.hero__title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.2rem, 4.8vw, 3.9rem); line-height: 1.04; letter-spacing: -0.02em;
  margin-bottom: 20px; color: var(--ink);
}
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--body); max-width: 470px; margin-bottom: 38px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; }
.hero__mouse { display: block; width: 26px; height: 42px; border: 2px solid rgba(19,49,92,0.45); border-radius: 14px; position: relative; }
.hero__mouse::before { content: ""; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; background: var(--navy); border-radius: 2px; transform: translateX(-50%); animation: scroll 1.8s infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 14px); } }

/* =============================== Trust bar ============================= */
.trust { background: var(--navy); }
.trust__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 26px 24px; }
.trust__item { display: flex; align-items: center; gap: 14px; padding: 8px 18px; color: #fff; }
.trust__item + .trust__item { border-left: 1px solid rgba(255,255,255,0.14); }
.trust__ico { font-size: 1.6rem; }
.trust__item strong { display: block; font-family: var(--font-head); font-size: 1rem; }
.trust__item span { font-size: 0.82rem; color: #b7c7dd; }

/* =============================== Sections =============================== */
.section { padding: 104px 0; position: relative; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--navy-deep); color: #d6e2f2; }
.section__head { max-width: 760px; margin: 0 auto 60px; text-align: center; }
.eyebrow { display: inline-block; font-family: var(--font-head); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.eyebrow--light { color: #7fb0ff; }
.section__title { font-family: var(--font-head); font-size: clamp(1.9rem, 4.3vw, 3.1rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; color: var(--ink); margin-bottom: 16px; }
.section--dark .section__title { color: #fff; }
.section__sub { font-size: 1.1rem; color: var(--body); }
.section__sub--light { color: #a9c0dd; }

/* ============================== Comparación ============================ */
.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch; max-width: 940px; margin: 0 auto; }
.compare__col { padding: 36px 34px; border-radius: var(--radius); }
.compare__col h3 { font-family: var(--font-head); font-size: 1.25rem; margin-bottom: 20px; }
.compare__col ul { list-style: none; }
.compare__col li { position: relative; padding: 11px 0 11px 32px; font-size: 0.98rem; }
.compare__col li + li { border-top: 1px solid; }
.compare__col--old { background: var(--soft); color: var(--muted); }
.compare__col--old h3 { color: var(--body); }
.compare__col--old li { border-color: var(--line); }
.compare__col--old li::before { content: "✕"; position: absolute; left: 0; color: #b04a4a; font-weight: 700; }
.compare__col--new { background: var(--navy); color: #cfe0f4; box-shadow: var(--shadow); }
.compare__col--new h3 { color: #fff; }
.compare__col--new li { border-color: rgba(255,255,255,0.14); color: #eaf1fb; }
.compare__col--new li::before { content: "✓"; position: absolute; left: 0; color: #7fb0ff; font-weight: 700; }
.compare__vs { display: grid; place-items: center; align-self: center; font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; color: #fff; background: var(--blue); width: 52px; height: 52px; border-radius: 50%; margin: 0 -14px; z-index: 2; box-shadow: 0 10px 24px rgba(47,107,214,0.35); }

/* =============================== Servicios ============================= */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service__ico {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 15px;
  font-size: 1.6rem; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(19,49,92,0.08), rgba(47,107,214,0.14));
}
.service h3 { font-family: var(--font-head); font-size: 1.2rem; color: var(--ink); margin-bottom: 9px; }
.service p { color: var(--body); font-size: 0.97rem; }

/* ============================== Tecnología ============================= */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tech {
  position: relative; overflow: hidden; padding: 32px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius);
  transition: transform 0.35s var(--ease), background 0.35s, border-color 0.35s;
}
.tech:hover { transform: translateY(-6px); background: rgba(255,255,255,0.09); border-color: rgba(127,176,255,0.5); }
.tech__badge { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; color: #9ec2ff; background: rgba(47,107,214,0.18); border: 1px solid rgba(127,176,255,0.4); margin-bottom: 18px; }
.tech__num { position: absolute; top: 22px; right: 26px; font-family: var(--font-head); font-size: 3rem; font-weight: 700; color: rgba(255,255,255,0.06); }
.tech h3 { font-family: var(--font-head); font-size: 1.25rem; color: #fff; margin-bottom: 10px; }
.tech p { color: #a9c0dd; }
.quote { text-align: center; font-family: var(--font-head); font-style: italic; font-size: clamp(1.15rem, 2.5vw, 1.6rem); color: #cfe0f4; max-width: 760px; margin: 52px auto 0; }

/* ============================ Terreno + equipo ========================= */
.terreno-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.cycle ol { list-style: none; position: relative; }
.cycle li { display: flex; gap: 20px; padding-bottom: 26px; position: relative; }
.cycle li::before { content: ""; position: absolute; left: 22px; top: 46px; bottom: 0; width: 2px; background: var(--line-strong); }
.cycle li:last-child { padding-bottom: 0; }
.cycle li:last-child::before { display: none; }
.cycle__num { flex-shrink: 0; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: #fff; background: var(--navy); }
.cycle h4 { font-family: var(--font-head); font-size: 1.12rem; color: var(--ink); margin-bottom: 3px; padding-top: 10px; }
.cycle p { color: var(--body); font-size: 0.95rem; }

.team { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-soft); }
.team__lead { text-align: center; padding: 22px; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; margin-bottom: 26px; }
.team__lead span { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }
.team__lead small { color: #d6e2f2; font-size: 0.9rem; }
.team__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.team__node { padding: 20px; border-radius: var(--radius-sm); background: var(--soft); text-align: center; transition: transform 0.3s var(--ease); }
.team__node:hover { transform: translateY(-4px); }
.team__node span { font-size: 1.5rem; }
.team__node h4 { font-family: var(--font-head); font-size: 1.02rem; color: var(--ink); margin: 8px 0 4px; }
.team__node p { color: var(--body); font-size: 0.85rem; }

/* ================================ Aliados ============================== */
.allies { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.ally { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; text-align: center; transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.ally:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.ally__logo { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 16px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: #fff; background: linear-gradient(135deg, var(--navy), var(--blue)); }
.ally h3 { font-family: var(--font-head); font-size: 1.1rem; color: var(--ink); margin-bottom: 8px; }
.ally p { color: var(--body); font-size: 0.9rem; }

/* =============================== Contacto ============================== */
.contact__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 30px; align-items: stretch; }
.contact__info { padding: 40px; border-radius: var(--radius); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); }
.contact__info h3 { font-family: var(--font-head); font-size: 1.4rem; color: #fff; margin-bottom: 24px; }
.contact__list { list-style: none; margin-bottom: 28px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.contact__ico { font-size: 1.3rem; }
.contact__label { display: block; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; color: #8fa6c6; margin-bottom: 2px; }
.contact__list a, .contact__list span:not(.contact__label):not(.contact__ico) { color: #eaf1fb; font-weight: 500; transition: color 0.25s; }
.contact__list a:hover { color: #9ec2ff; }

.contact__form { padding: 40px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--body); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm);
  background: var(--soft); border: 1px solid var(--line-strong);
  color: var(--ink); font-family: var(--font-body); font-size: 0.98rem;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,107,214,0.16); background: #fff; }
.field textarea { resize: vertical; min-height: 108px; }
.contact__form .btn { margin-top: 6px; }
.form-status { margin-top: 16px; font-size: 0.92rem; text-align: center; min-height: 1.2em; color: var(--body); }
.form-status.ok { color: #1f9d55; }
.form-status.err { color: #c0392b; }

/* ================================ Footer =============================== */
.footer { background: var(--soft); color: var(--body); padding-top: 60px; border-top: 1px solid var(--line); }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer__logo { height: 60px; width: auto; margin-bottom: 20px; }
.footer__brand p { max-width: 320px; font-size: 0.95rem; }
.footer__col h4 { font-family: var(--font-head); font-size: 0.95rem; color: var(--ink); margin-bottom: 16px; }
.footer__col a, .footer__col p { display: block; color: var(--body); font-size: 0.95rem; margin-bottom: 10px; transition: color 0.25s; }
.footer__col a:hover { color: var(--blue); }
.footer__bottom { border-top: 1px solid var(--line); padding: 20px 0; }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.82rem; color: var(--muted); }

/* ============================== Reveal anim ============================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =============================== Responsive =========================== */
@media (max-width: 960px) {
  .services, .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .allies { grid-template-columns: repeat(2, 1fr); }
  .terreno-grid, .contact__grid { grid-template-columns: 1fr; gap: 32px; }
  .trust__inner { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .trust__item:nth-child(3) { border-left: 0; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav__inner { height: 78px; }
  .nav__logo-img { height: 48px; }
  .hero { padding-top: 110px; }
  .hero .container { padding-left: 24px; }
  .hero__media { inset: -6% 0 0 0; }
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.88) 42%, rgba(255,255,255,0.45) 66%, rgba(255,255,255,0) 92%),
      linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,0.8) 55%, rgba(255,255,255,0.2) 100%);
  }
  .hero__logo { height: clamp(70px, 17vw, 96px); }
  .nav__links {
    position: fixed; top: 78px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 12px 24px 24px;
    transform: translateY(-160%); transition: transform 0.4s var(--ease);
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__cta { text-align: center; margin-top: 14px; }
  .nav__toggle { display: flex; }
  .compare { grid-template-columns: 1fr; gap: 16px; }
  .compare__vs { margin: -8px auto; }
}
@media (max-width: 560px) {
  .services, .tech-grid, .allies, .team__grid { grid-template-columns: 1fr; }
  .trust__inner { grid-template-columns: 1fr; }
  .trust__item + .trust__item { border-left: 0; border-top: 1px solid rgba(255,255,255,0.14); padding-top: 16px; }
  .footer__inner { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .section { padding: 72px 0; }
  .contact__info, .contact__form { padding: 26px 22px; }
  .nav__logo-img { height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__media { transform: none !important; }
  html { scroll-behavior: auto; }
}
