/* ============================================================
   EFITECH — Landing page
   Tema: claro corporativo (blanco / gris / azul)
   ============================================================ */

:root {
  --azul: #0b57d0;
  --azul-oscuro: #0842a0;
  --azul-suave: #e8f0fe;
  --texto: #161a20;
  --texto-suave: #5b6470;
  --fondo: #ffffff;
  --gris: #f5f7fa;
  --borde: #e3e8ef;
  --sombra: 0 10px 30px rgba(16, 24, 40, 0.08);
  --sombra-sm: 0 2px 8px rgba(16, 24, 40, 0.06);
  --radio: 14px;
  --header-h: 72px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--texto);
  background: var(--fondo);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--azul);
  text-decoration: none;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

section {
  scroll-margin-top: calc(var(--header-h) + 8px);
}

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

.container--narrow {
  width: min(820px, 100% - 40px);
}

.text-accent {
  color: var(--azul);
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

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

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--azul);
  color: #fff;
  box-shadow: 0 6px 18px rgba(11, 87, 208, 0.28);
}

.btn--primary:hover {
  background: var(--azul-oscuro);
}

.btn--ghost {
  background: #fff;
  color: var(--texto);
  border-color: var(--borde);
}

.btn--ghost:hover {
  border-color: var(--azul);
  color: var(--azul);
}

.btn--lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header.is-scrolled {
  border-color: var(--borde);
  box-shadow: var(--sombra-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--texto);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.logo__text {
  font-weight: 800;
}

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

.nav__list {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav__link {
  color: var(--texto-suave);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 0;
  position: relative;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--azul);
  transition: width 0.2s ease;
}

.nav__link:hover {
  color: var(--texto);
}

.nav__link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--borde);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--texto);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(48px, 7vw, 90px) 0 clamp(56px, 7vw, 96px);
  background:
    radial-gradient(900px 400px at 85% -10%, var(--azul-suave), transparent 60%),
    linear-gradient(180deg, #fbfcfe 0%, #fff 100%);
  overflow: hidden;
}

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

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--azul);
  background: var(--azul-suave);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero__title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 18px;
}

.hero__subtitle {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--texto-suave);
  max-width: 54ch;
  margin-bottom: 28px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.hero__points {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero__points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--texto-suave);
  font-size: 0.95rem;
}

.hero__points svg {
  color: var(--azul);
  flex-shrink: 0;
}

.hero__art {
  display: grid;
  gap: 18px;
  align-content: center;
}

.hero-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 18px 20px;
  width: min(320px, 88%);
  box-shadow: var(--sombra);
}

.hero-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--azul-suave);
  color: var(--azul);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.hero-card__title {
  font-weight: 700;
  margin-bottom: 4px;
}

.hero-card__text {
  font-size: 0.88rem;
  color: var(--texto-suave);
  margin: 0;
}

.hero-card--1 {
  justify-self: start;
}

.hero-card--2 {
  justify-self: end;
  animation: float 6s ease-in-out infinite;
}

.hero-card--3 {
  justify-self: start;
  margin-left: 8%;
  animation: float 7s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- Secciones ---------- */

.section {
  padding: clamp(56px, 7vw, 96px) 0;
}

.section--gray {
  background: var(--gris);
}

.section__head {
  max-width: 660px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}

.section__title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 800;
}

.section__lead {
  color: var(--texto-suave);
  font-size: 1.05rem;
  margin: 0;
}

/* ---------- Grid / Cards ---------- */

.grid {
  display: grid;
  gap: 24px;
}

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

.card {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 28px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sombra);
  border-color: #cddbf5;
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--azul-suave);
  color: var(--azul);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.card__title {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.card__text {
  color: var(--texto-suave);
  font-size: 0.95rem;
  margin: 0;
}

.card__link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.93rem;
}

.card__link:hover {
  text-decoration: underline;
}

.card--cta {
  background: linear-gradient(135deg, var(--azul) 0%, var(--azul-oscuro) 100%);
  border: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.card--cta .card__title,
.card--cta .card__text {
  color: #fff;
}

.card--cta .card__text {
  opacity: 0.9;
  margin-bottom: 18px;
}

.card--cta:hover {
  border: none;
}

.card--cta .btn--primary {
  background: #fff;
  color: var(--azul);
  box-shadow: none;
}

.card--cta .btn--primary:hover {
  background: var(--azul-suave);
}

/* ---------- Por qué nosotros ---------- */

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.split .section__title,
.split .section__lead {
  text-align: left;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.checklist__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--azul);
  color: #fff;
  display: grid;
  place-items: center;
  margin-top: 2px;
}

.checklist strong {
  display: block;
  font-size: 1.02rem;
}

.checklist span:not(.checklist__icon) {
  color: var(--texto-suave);
  font-size: 0.94rem;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.stat {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--sombra-sm);
}

.stat__num {
  display: block;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--azul);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat__label {
  font-size: 0.87rem;
  color: var(--texto-suave);
}

/* ---------- Proceso ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 28px 24px;
  position: relative;
}

.step__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--azul);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.step__title {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.step__text {
  color: var(--texto-suave);
  font-size: 0.93rem;
  margin: 0;
}

/* ---------- Testimonios ---------- */

.quote {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 28px 26px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--sombra-sm);
}

.quote blockquote {
  margin: 0;
  font-size: 0.98rem;
  color: var(--texto);
}

.quote figcaption {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--borde);
  padding-top: 14px;
  font-size: 0.9rem;
}

.quote figcaption span {
  color: var(--texto-suave);
  font-size: 0.85rem;
}

/* ---------- FAQ ---------- */

.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq__item[open] {
  border-color: #cddbf5;
  box-shadow: var(--sombra-sm);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--azul-suave);
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--azul);
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.faq__icon::before {
  width: 10px;
  height: 2px;
}

.faq__icon::after {
  width: 2px;
  height: 10px;
}

.faq__item[open] .faq__icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq__a {
  padding: 0 22px 20px;
}

.faq__a p {
  margin: 0;
  color: var(--texto-suave);
  font-size: 0.96rem;
}

/* ---------- Contacto ---------- */

.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: flex-start;
}

.contact__info .section__title,
.contact__info .section__lead {
  text-align: left;
}

.contact__list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 30px 0;
}

.contact__list li {
  display: flex;
  gap: 14px;
  align-items: center;
}

.contact__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--azul-suave);
  color: var(--azul);
  display: grid;
  place-items: center;
}

.contact__label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--texto-suave);
  font-weight: 600;
}

.contact__list a,
.contact__list span:not(.contact__icon):not(.contact__label) {
  font-weight: 600;
  color: var(--texto);
}

.contact__list a:hover {
  color: var(--azul);
}

.contact__form-wrap {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: 18px;
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--sombra);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

.field label {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 0.97rem;
  color: var(--texto);
  padding: 12px 14px;
  border: 1.5px solid var(--borde);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(11, 87, 208, 0.15);
}

.field input.is-invalid,
.field textarea.is-invalid {
  border-color: #d93025;
}

.field__error {
  color: #d93025;
  font-size: 0.8rem;
  margin-top: 5px;
  min-height: 1em;
}

.form__note {
  font-size: 0.86rem;
  color: var(--texto-suave);
  text-align: center;
  margin: 14px 0 0;
}

.form__note.is-success {
  color: #0f8a44;
  font-weight: 600;
}

/* ---------- Footer ---------- */

.footer {
  background: #101725;
  color: #c3cbda;
  padding-top: 56px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}

.logo--light {
  color: #fff;
  margin-bottom: 14px;
}

.footer__brand p {
  font-size: 0.92rem;
  max-width: 34ch;
}

.footer__nav h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer__nav a {
  color: #c3cbda;
  font-size: 0.9rem;
}

.footer__nav a:hover {
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
}

.footer__bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: #8b95a9;
}

/* ---------- WhatsApp flotante ---------- */

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55);
}

/* ---------- Animaciones de entrada ---------- */

/* Solo ocultos si JS está activo: sin JS todo el contenido es visible */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-card--2,
  .hero-card--3 {
    animation: none;
  }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 980px) {
  .hero__inner,
  .split,
  .contact {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__art {
    max-width: 520px;
    margin-inline: auto;
    width: 100%;
  }

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

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

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

@media (max-width: 820px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--borde);
    box-shadow: var(--sombra);
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 18px 20px 24px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav__link {
    display: block;
    padding: 12px 4px;
    font-size: 1.02rem;
    border-bottom: 1px solid var(--borde);
  }

  .nav__link::after {
    display: none;
  }

  .nav__cta {
    margin-top: 10px;
    text-align: center;
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 640px) {
  .grid--3,
  .steps,
  .form__row,
  .stats,
  .footer__inner {
    grid-template-columns: 1fr;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__art {
    display: none;
  }

  .wa-float {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }
}
