/* TECHLOGIC · Estilos complementarios a Tailwind */
:root {
  --ink: #0b1528;
  --brand: #2563eb;
  --cyan: #4de0e9;
  --header-height: 76px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  min-width: 320px;
}

::selection {
  background: #a5f3fc;
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid #06b6d4;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 12px;
  background: white;
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

.hero-bg {
  background: linear-gradient(
    135deg,
    #4282dd 0%,
    #0741a5 55%,
    #80a6ee 100%
  );
}

.section-padding {
  padding-top: clamp(5rem, 9vw, 8rem);
  padding-bottom: clamp(5rem, 9vw, 8rem);
}

.section-title {
  font-size: clamp(2.15rem, 4vw, 3.5rem);
  line-height: 1.13;
  font-weight: 800;
  letter-spacing: -.055em;
  color: var(--ink);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

.nav-link {
  position: relative;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  transition: color .2s;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 0;
  height: 2px;
  width: 0;
  border-radius: 2px;
  background: var(--brand);
  transition: width .2s;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.mobile-link {
  padding: 12px 10px;
  border-radius: 10px;
  color: #334155;
  font-weight: 600;
}

.mobile-link:hover,
.mobile-link:focus-visible {
  background: #eff6ff;
  color: var(--brand);
}

.social-link {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #64748b;
  transition: background .2s, color .2s, transform .2s;
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link:hover {
  color: var(--brand);
  background: #eff6ff;
  transform: translateY(-2px);
}

.btn-primary,
.btn-accent,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 700;
  transition: background .2s, transform .2s, box-shadow .2s;
}

.btn-primary {
  background: var(--brand);
  color: white;
}

.btn-primary:hover {
  background: #1d4ed8;
  box-shadow: 0 12px 22px rgba(37, 99, 235, .18);
  transform: translateY(-2px);
}

.btn-primary:disabled {
  opacity: .65;
  cursor: wait;
  transform: none;
}

.btn-accent {
  background: var(--cyan);
  color: var(--ink);
}

.btn-accent:hover {
  background: #a5f3fc;
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, .32);
  color: white;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .1);
  transform: translateY(-2px);
}

.feature-icon,
.contact-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #eaf2ff;
  color: var(--brand);
}

.feature-icon svg,
.contact-icon svg {
  width: 23px;
  height: 23px;
}

.purpose-card {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: white;
  padding: clamp(24px, 4vw, 42px);
  transition: transform .25s, box-shadow .25s;
}

.purpose-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 35px rgba(15, 23, 42, .07);
}

.purpose-number,
.service-index {
  color: #2563eb;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

.service-card {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: white;
  transition: transform .3s, box-shadow .3s;
}

.service-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 35px rgba(15, 23, 42, .09);
}

.service-image {
  height: 188px;
  overflow: hidden;
  background: #dbeafe;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.service-card:hover .service-image img {
  transform: scale(1.055);
}

.form-label {
  display: block;
  margin-bottom: 9px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
}

.form-label span {
  color: #dc2626;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: white;
  color: #0f172a;
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.form-input::placeholder {
  color: #94a3b8;
}

.form-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .10);
}

.form-input[aria-invalid="true"] {
  border-color: #dc2626;
}

.field-error {
  min-height: 0;
  margin-top: 5px;
  color: #b91c1c;
  font-size: 12px;
}

.field-error:empty {
  display: none;
}

.whatsapp-float {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 2px solid white;
  border-radius: 50%;
  background: #25d366;
  color: white;
  box-shadow: 0 8px 25px rgba(15, 23, 42, .22);
  transition: background .2s, transform .2s, box-shadow .2s;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.04);
  background: #18b957;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .26);
}

/* Activado por JS solo cuando IntersectionObserver está disponible. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

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

@media (max-width: 640px) {
  .service-image {
    height: 205px;
  }

  .whatsapp-float {
    width: 54px;
    height: 54px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
/* Formulario corporativo conectado con Resend + Turnstile */
.hp-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.contact-success-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(92vw, 560px);
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid #dbe4ee;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 90px rgba(11,21,40,.26);
  padding: 0;
  color: #0b1528;
}
.contact-success-dialog::backdrop { background: rgba(11,21,40,.68); backdrop-filter: blur(3px); }
.contact-success-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 15px 20px;
  font-size: 14px;
  font-weight: 700;
  color: #0b1528;
  background: #fff;
  transition: border-color .2s, background .2s;
}
.contact-success-secondary:hover { background: #eff6ff; border-color: #93c5fd; }
@media (max-width: 425px) { .contact-success-dialog .btn-primary, .contact-success-secondary { min-width: 100%; } }
