/* =========================================================
   PRIoT.tech — Landing profesional
   Colores: navy #001B3A · azul #0080FF
========================================================= */

:root {
  --navy: #001b3a;
  --navy-deep: #000f22;
  --navy-soft: #0a2748;
  --blue: #0080ff;
  --blue-bright: #1a9bff;
  --blue-soft: #4db3ff;
  --green: #25d366;
  --green-dark: #16b852;
  --white: #ffffff;
  --mist: #e8eef6;
  --muted: #9db0c7;

  --font-display: "Sora", "Outfit", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;

  --page-max: 1500px;
  --wrap: min(1120px, calc(100% - 2.5rem));
  --radius: 30px;
  --radius-input: 12px;
  --ease: 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--white);
  background: var(--navy-deep);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--blue);
  color: var(--white);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.muted {
  color: var(--muted);
}

/* ---------- NAV ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(0, 15, 34, 0.88);
  border-bottom: 1px solid rgba(0, 128, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-nav__inner {
  position: relative;
  width: min(calc(100% - 2rem), var(--page-max));
  margin: 0 auto;
  min-height: 118px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.site-nav__brand {
  justify-self: center;
  grid-column: 2;
  z-index: 2;
}

.site-nav__brand img {
  height: clamp(92px, 12vw, 128px);
  width: auto;
  filter: drop-shadow(0 6px 18px rgba(0, 128, 255, 0.28));
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.4rem);
  font-size: 0.92rem;
  font-weight: 600;
}

.site-nav__links--left {
  justify-self: start;
  grid-column: 1;
}

.site-nav__links--right {
  justify-self: end;
  grid-column: 3;
}

.site-nav__links a {
  color: var(--mist);
  opacity: 0.9;
  transition: color var(--ease), opacity var(--ease);
}

.site-nav__links a:hover {
  color: var(--blue-soft);
  opacity: 1;
}

.site-nav__cta {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white) !important;
  opacity: 1 !important;
}

.site-nav__cta:hover {
  background: var(--blue-bright);
  color: var(--white) !important;
}

/* ---------- HERO / LANDING ---------- */

.landing {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 118px);
  min-height: calc(100dvh - 118px);
  background-color: var(--navy-deep);
  background-image:
    linear-gradient(
      100deg,
      rgba(0, 15, 34, 0.52) 0%,
      rgba(0, 27, 58, 0.28) 40%,
      rgba(0, 27, 58, 0.12) 68%,
      rgba(0, 15, 34, 0.28) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 15, 34, 0.12) 0%,
      rgba(0, 15, 34, 0.06) 45%,
      rgba(0, 15, 34, 0.42) 100%
    ),
    url("../img/hero-desktop.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow-x: hidden;
}

.hero {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 48px), var(--page-max));
  min-height: calc(100vh - 118px);
  min-height: calc(100dvh - 118px);
  margin: 0 auto;
  padding: clamp(28px, 5vh, 56px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.hero-content {
  min-width: 0;
  animation: rise 800ms var(--ease) both;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero-kicker {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-soft);
}

.hero-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  font-family: var(--font-display);
}

.hero-title__neon {
  display: inline-block;
  margin: 0 0 clamp(10px, 1.8vh, 18px);
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--blue-bright);
  text-shadow: 0 0 28px rgba(0, 128, 255, 0.35);
}

.hero-title__line {
  font-size: clamp(1.85rem, 3.8vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
}

.hero-title__line--accent {
  color: var(--mist);
}

.hero-lede {
  margin: 1.15rem 0 0;
  max-width: 32rem;
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  line-height: 1.55;
  color: var(--mist);
}

.trust-points {
  margin: 1.35rem 0 0;
  display: grid;
  gap: 0.55rem;
}

.trust-points li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--mist);
  font-size: 0.98rem;
  line-height: 1.4;
}

.trust-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 10px rgba(0, 128, 255, 0.55);
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-actions--center {
  justify-content: center;
}

.btn-primary,
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform var(--ease), background var(--ease);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-bright);
  transform: translateY(-1px);
}

.btn-whatsapp {
  background: var(--green);
  border: 0;
  color: var(--white);
}

.btn-whatsapp:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

/* ---------- FORM ---------- */

.lead-form {
  background: rgba(0, 27, 58, 0.88);
  border: 1px solid rgba(0, 128, 255, 0.3);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.85rem);
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
  animation: rise 900ms var(--ease) 100ms both;
}

.lead-form h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 700;
  color: var(--blue-soft);
}

.lead-form > p {
  margin: 0 0 1.1rem;
  color: var(--mist);
  font-size: 0.95rem;
}

.form-field {
  margin-bottom: 0.75rem;
}

.form-field input {
  width: 100%;
  border: 0;
  border-radius: var(--radius-input);
  padding: 0.95rem 1rem;
  background: var(--white);
  color: var(--navy);
  outline: none;
}

.form-field input:focus {
  box-shadow: 0 0 0 3px rgba(0, 128, 255, 0.45);
}

.form-field input.is-invalid {
  box-shadow: 0 0 0 3px rgba(220, 60, 60, 0.45);
}

.field-error {
  margin: 0.35rem 0 0;
  min-height: 1.1em;
  font-size: 0.8rem;
  color: #ff8f8f;
  opacity: 0;
}

.field-error.is-visible {
  opacity: 1;
}

.legal {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0.85rem 0 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
}

.legal input {
  margin-top: 0.15rem;
  accent-color: var(--blue);
}

#submit-button,
.whatsapp-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  border: 0;
  border-radius: var(--radius-input);
  padding: 0.95rem 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform var(--ease), background var(--ease);
}

#submit-button {
  background: var(--blue);
  color: var(--white);
  margin-bottom: 0.65rem;
}

#submit-button:hover {
  background: var(--blue-bright);
  transform: translateY(-1px);
}

.whatsapp-cta {
  background: var(--green);
  color: var(--white);
}

.whatsapp-cta:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.form-message {
  margin: 0.75rem 0 0;
  min-height: 1.2em;
  font-size: 0.88rem;
  color: var(--blue-soft);
  text-align: center;
}

/* ---------- SECTIONS ---------- */

.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-lede,
.about-lead {
  margin: 0 0 2rem;
  max-width: 46rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.about {
  background: var(--navy);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.about-block {
  padding-top: 1rem;
  border-top: 2px solid rgba(0, 128, 255, 0.35);
}

.about-block h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--blue-soft);
}

.about-block p {
  margin: 0;
  color: var(--mist);
  line-height: 1.55;
  font-size: 0.98rem;
}

.certs,
.team {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 128, 255, 0.18);
}

.certs h3,
.team h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.certs-note {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.certs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.certs-list li {
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 128, 255, 0.3);
  background: rgba(0, 128, 255, 0.08);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--mist);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.team-card {
  padding: 1rem;
  border-radius: 16px;
  background: rgba(0, 15, 34, 0.45);
  border: 1px solid rgba(0, 128, 255, 0.16);
}

.team-photo {
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 0.85rem;
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(0, 128, 255, 0.18), rgba(0, 27, 58, 0.8));
}

.team-card h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.team-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.services {
  background: var(--navy-deep);
}

.service-groups {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.service-group {
  padding: 1.25rem 0 0;
  border-top: 2px solid rgba(0, 128, 255, 0.35);
}

.service-group h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--blue-soft);
}

.service-group li {
  margin-bottom: 0.45rem;
  color: var(--mist);
  font-size: 0.95rem;
  line-height: 1.4;
}

.cta-band {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(0, 128, 255, 0.22), transparent 55%),
    var(--navy-soft);
  text-align: center;
}

.cta-band__inner {
  max-width: 42rem;
}

.cta-band p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.footer {
  padding: 2.5rem 0 2rem;
  background: #000a16;
  border-top: 1px solid rgba(0, 128, 255, 0.15);
}

.footer-inner {
  display: grid;
  gap: 0.5rem;
  justify-items: center;
  text-align: center;
}

.footer-logo {
  width: 140px;
  filter: drop-shadow(0 4px 14px rgba(0, 128, 255, 0.2));
}

.footer-tag,
.footer-meta,
.footer-legal {
  margin: 0;
  color: var(--muted);
}

.footer-tag {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-meta,
.footer-legal {
  font-size: 0.85rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- TABLET ---------- */

@media (min-width: 768px) and (max-width: 1180px) {
  .landing {
    background-image:
      linear-gradient(
        180deg,
        rgba(0, 15, 34, 0.28) 0%,
        rgba(0, 27, 58, 0.18) 40%,
        rgba(0, 15, 34, 0.55) 100%
      ),
      url("../img/hero-tablet.webp");
    background-size: cover;
    background-position: center top;
  }

  .hero {
    width: min(calc(100% - 42px), 820px);
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 36px 0 48px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-title,
  .trust-points {
    align-items: center;
  }

  .hero-title {
    width: 100%;
  }

  .hero-lede,
  .trust-points {
    margin-inline: auto;
  }

  .trust-points li {
    text-align: left;
  }

  .hero-actions {
    justify-content: center;
  }

  .lead-form {
    width: min(100%, 620px);
    align-self: center;
  }

  .about-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .service-groups {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- MOBILE ---------- */

@media (max-width: 767px) {
  .site-nav__inner {
    min-height: 108px;
    grid-template-columns: 1fr auto 1fr;
  }

  .site-nav__brand img {
    height: clamp(84px, 18vw, 110px);
  }

  .site-nav__links--left {
    display: none;
  }

  .landing {
    background-image:
      linear-gradient(
        180deg,
        rgba(0, 15, 34, 0.22) 0%,
        rgba(0, 27, 58, 0.2) 35%,
        rgba(0, 15, 34, 0.72) 100%
      ),
      url("../img/hero-mobile.webp");
    background-size: 100% auto;
    background-position: center top;
  }

  .hero {
    width: calc(100% - 28px);
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: clamp(150px, 38vw, 210px) 0 28px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-title {
    width: 100%;
    align-items: center;
  }

  .hero-title__neon {
    font-size: clamp(2.5rem, 12vw, 3.6rem);
  }

  .hero-title__line {
    font-size: clamp(1.55rem, 8vw, 2.2rem);
  }

  .hero-lede {
    margin-inline: auto;
    font-size: 0.95rem;
  }

  .trust-points {
    margin-inline: auto;
    text-align: left;
    max-width: 22rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .lead-form {
    width: 100%;
    padding: 25px 21px;
    border-radius: 23px;
  }

  .about-grid,
  .team-grid,
  .service-groups {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 2.75rem 0;
  }
}

@media (max-width: 390px) {
  .hero {
    padding-top: 140px;
  }

  .site-nav__cta {
    padding: 0.45rem 0.8rem;
    font-size: 0.78rem;
  }
}
