/* =========================================================
   Cari Tech Dominicana Jr. SRL — estilos
   Paleta: azul #1E71B8 · verde #A6CD3B · navy #0c2a4a
   ========================================================= */

:root {
  --blue: #1E71B8;
  --blue-dark: #155a94;
  --green: #A6CD3B;
  --navy: #0c2a4a;
  --navy-deep: #071d35;
  --ink: #0f2238;
  --ink-soft: #3b4d60;
  --muted: #5a6b7d;
  --soft: #f5f8fb;
  --line: #e3e9f0;
  --line-strong: #d6dee7;

  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --container: 1280px;
  --pad-x: 72px;
  --pad-y: 90px;
  --radius: 16px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.02em; margin: 0; }
h2 { font-size: 40px; font-weight: 800; line-height: 1.1; }

img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
input, textarea, button { font-family: inherit; font-size: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.section { padding: var(--pad-y) 0; background: #fff; }
.section--soft { background: var(--soft); }

.section__head { margin-bottom: 44px; }
.section__head--center { text-align: center; max-width: 620px; margin-left: auto; margin-right: auto; margin-bottom: 54px; }

.eyebrow {
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.eyebrow--green { color: var(--green); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(166, 205, 59, .5);
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 15px 26px; border-radius: 10px; font-size: 16px; }
.btn--accent { background: var(--green); color: var(--navy); }
.btn--accent:hover { background: #b6d95a; color: var(--navy); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); font-weight: 600; }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; }
.btn--block { width: 100%; padding: 15px; border-radius: 10px; font-size: 16px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: #fff;
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand:hover { color: #fff; }
.brand__word { font: 800 22px var(--font-display); letter-spacing: .06em; }
.brand__accent { color: var(--green); }

.nav__links { display: flex; gap: 34px; font-size: 15px; font-weight: 500; }
.nav__links a { color: rgba(255, 255, 255, .85); transition: color .18s ease; }
.nav__links a:hover { color: #fff; }
.nav__links a.is-active { color: var(--green); }
.nav__cta-mobile { display: none; }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s ease, opacity .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 {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding: 70px 0 90px;
}
.hero__glow {
  position: absolute;
  right: -120px;
  top: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 113, 184, .55), rgba(30, 113, 184, 0) 70%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-size: 60px;
  font-weight: 800;
  line-height: 1.05;
  margin: 22px 0 20px;
}
.hero__copy p {
  font-size: 19px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .78);
  margin: 0 0 34px;
  max-width: 540px;
  text-wrap: pretty;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.hcard {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.hcard--wide { grid-column: 1 / -1; }
.hcard--blue { background: var(--blue); border-color: var(--blue); }
.hcard__label { font-size: 13px; color: rgba(255, 255, 255, .6); margin-bottom: 8px; }
.hcard__num { font: 800 36px var(--font-display); }
.hcard__num--green { color: var(--green); }
.hcard__text { font-size: 14px; color: rgba(255, 255, 255, .8); }

.bar { height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .15); margin-bottom: 8px; overflow: hidden; }
.bar--short { width: 60%; margin-bottom: 0; }
.bar__fill { height: 100%; border-radius: 5px; }
.bar__fill--green { background: var(--green); }
.bar__fill--blue { background: var(--blue); }

/* ---------- Servicios (lista numerada, estilo 1b) ---------- */
.services {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 70px;
}
.services__intro { position: sticky; top: 110px; align-self: start; }
.services__intro h2 { margin-bottom: 16px; color: var(--navy); }
.services__intro p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }

.services__list { display: flex; flex-direction: column; border-bottom: 1px solid var(--line-strong); }
.service {
  display: grid;
  grid-template-columns: 60px 1fr 1.3fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line-strong);
  align-items: start;
  transition: background-color .18s ease;
}
.service:hover { background: #fff; box-shadow: 0 0 0 16px #fff; }
.service__num { font: 800 15px var(--font-display); color: var(--green); padding-top: 4px; }
.service__title { font: 700 20px/1.25 var(--font-display); color: var(--navy); }
.service__desc { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ---------- Nosotros ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.about__visual {
  position: relative;
  height: 420px;
  border-radius: 20px;
  background: var(--navy);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .5);
  font-size: 14px;
}
.about__visual-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 70%);
}
.about__visual-hint { position: relative; }
.about__badge {
  position: absolute;
  bottom: 28px;
  left: 28px;
  right: 28px;
  background: var(--green);
  color: var(--navy);
  padding: 18px 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
}
.about h2 { margin-bottom: 22px; }
.about__lead { font-size: 17px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 18px; }
.mission {
  padding: 22px 26px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 28px;
}
.mission__label { color: var(--blue); font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.mission p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink); }

.values { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.value { display: flex; gap: 12px; align-items: flex-start; }
.value__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); margin-top: 6px; flex: none; }
.value__title { font-weight: 700; font-size: 15px; }
.value__desc { font-size: 14px; color: var(--muted); line-height: 1.45; }

/* ---------- Industrias ---------- */
.industries { background: var(--navy); color: #fff; padding: 60px 0; }
.industries__inner { display: flex; align-items: center; gap: 50px; }
.industries__head { flex: none; max-width: 300px; }
.industries__head .eyebrow { margin-bottom: 10px; }
.industries__head h3 { font: 700 24px/1.25 var(--font-display); letter-spacing: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: 15px;
  font-weight: 500;
  transition: border-color .18s ease, background-color .18s ease;
}
.chip:hover { border-color: var(--green); background: rgba(166, 205, 59, .08); }

/* ---------- Proceso ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.steps__line {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 26px;
  height: 2px;
  background: var(--line);
}
.step { text-align: center; padding: 0 20px; position: relative; }
.step__num {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--green);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font: 800 18px var(--font-display);
  border: 6px solid #fff;
  box-sizing: content-box;
}
.step__title { font: 700 19px var(--font-display); margin-bottom: 8px; }
.step__desc { font-size: 14.5px; line-height: 1.5; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.5fr; gap: 70px; }
.faq__intro h2 { margin-bottom: 16px; }
.faq__intro p { color: var(--muted); font-size: 16px; line-height: 1.55; margin: 0; }
.faq__intro a { font-weight: 600; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .18s ease;
}
.faq-item:hover, .faq-item.is-open { border-color: var(--blue); }
.faq-item__btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font: 700 17px var(--font-display);
  color: var(--ink);
}
.faq-item__sign { color: var(--blue); font-size: 22px; font-weight: 400; line-height: 1; flex: none; width: 16px; text-align: center; }
.faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .25s ease;
}
.faq-item.is-open .faq-item__panel { grid-template-rows: 1fr; }
.faq-item__panel > div { overflow: hidden; }
.faq-item__panel p {
  margin: 0;
  padding: 0 26px 22px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ---------- Contacto ---------- */
.contact { background: var(--navy); color: #fff; padding: var(--pad-y) 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 70px; }
.contact__info h2 { margin-bottom: 20px; }
.contact__lead { color: rgba(255, 255, 255, .72); font-size: 16px; line-height: 1.55; margin: 0 0 36px; }
.contact__items { display: flex; flex-direction: column; gap: 22px; }
.contact__items li { display: flex; gap: 16px; }
.contact__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-weight: 700;
}
.contact__k { font-size: 13px; color: rgba(255, 255, 255, .55); }
.contact__v { font-size: 17px; font-weight: 600; line-height: 1.4; color: #fff; }
a.contact__v:hover { color: var(--green); }

.form {
  background: #fff;
  border-radius: 20px;
  padding: 36px;
  color: var(--ink);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-content: start;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field textarea {
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 113, 184, .15);
}
.field input.is-invalid, .field textarea.is-invalid { border-color: #d9534f; }
.form__status { margin: 0; font-size: 14px; min-height: 1.2em; color: var(--muted); }
.form__status:empty { display: none; }
.form__status.is-ok, .form__status.is-error, .form__status.is-info {
  padding: 14px 16px;
  border-radius: 10px;
  line-height: 1.5;
}
.form__status.is-ok { background: #eef6d9; color: #3d6b0a; border: 1px solid #cfe49a; }
.form__status.is-error { background: #fdecec; color: #a93a36; border: 1px solid #f3c2c0; }
.form__status.is-info { background: var(--soft); color: var(--muted); border: 1px solid var(--line); }

/* Honeypot: fuera de la vista, sin display:none para que los bots lo llenen */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Estado de envío del botón */
.btn[disabled] { opacity: .7; cursor: wait; }
.btn__spinner {
  display: none;
  width: 16px;
  height: 16px;
  margin-left: 10px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn.is-loading .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: rgba(255, 255, 255, .55); font-size: 13px; }
.footer__inner { padding-top: 28px; padding-bottom: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Animaciones de entrada ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  :root { --pad-x: 40px; --pad-y: 72px; }
  h2 { font-size: 34px; }
  .hero h1 { font-size: 48px; }
  .hero__grid { gap: 40px; }
  .services, .about__grid, .faq, .contact__grid { gap: 48px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps__line { display: none; }
}

@media (max-width: 860px) {
  :root { --pad-x: 24px; --pad-y: 64px; }
  .nav__inner { padding-top: 16px; padding-bottom: 16px; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 4px;
    padding: 12px var(--pad-x) 20px;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 16px 30px rgba(0, 0, 0, .25);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav__cta-mobile { display: inline-flex; margin-top: 12px; border-bottom: 0 !important; justify-content: center; }

  .hero { padding: 56px 0 64px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
  .hero__copy p { font-size: 17px; }

  .services { grid-template-columns: 1fr; }
  .services__intro { position: static; }
  .service { grid-template-columns: 44px 1fr; gap: 10px 16px; }
  .service__desc { grid-column: 2; }

  .about__grid { grid-template-columns: 1fr; }
  .about__visual { height: 320px; }
  .values { grid-template-columns: 1fr; }

  .industries__inner { flex-direction: column; align-items: flex-start; gap: 28px; }
  .industries__head { max-width: none; }

  .faq { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .form { padding: 24px; grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
}

@media (max-width: 480px) {
  h2 { font-size: 30px; }
  .hero h1 { font-size: 34px; }
  .hero__actions .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .brand__word { font-size: 20px; }
  .footer__inner { flex-direction: column; }
}
