/* MIVTEC — hoja de estilos del sitio estático.
   Paleta plana, sin degradados de fondo en el contenido.
   Fuente propia (Geist) servida desde este dominio. */

@font-face {
  font-family: 'Geist';
  src: url('fonts/geist-latin.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b1c38;
  --bg-2: #081428;
  --panel: #112444;
  --panel-2: #16294d;
  --line: rgb(120 170 220 / 0.18);
  --line-strong: rgb(120 170 220 / 0.34);
  --text: #f7f7f7;
  --muted: #aebfd6;
  --blue: #0076fa;
  --cyan: #57b8ff;
  --green: #17ba71;
  --radius: 14px;
  --wrap: 1180px;
  --header-h: 76px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(var(--wrap), 100% - 2.75rem);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  background: var(--cyan);
  color: #04121f;
  font-weight: 700;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 0;
}

/* ---------- Barra superior ---------- */

.topbar {
  background: #0c1325;
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
  color: #aab7cc;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  gap: 1rem;
}

.topbar strong {
  color: #75caff;
  font-weight: 700;
}

/* ---------- Encabezado ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgb(11 28 56 / 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  transition: box-shadow 0.2s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.35);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 232px;
  height: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  font-size: 0.8rem;
  color: #b5c0d2;
}

.nav__links a {
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease);
}

.nav__links a:hover,
.nav__links a.is-active {
  color: #fff;
  border-bottom-color: var(--cyan);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #101a30;
  cursor: pointer;
}

.menu-btn svg {
  width: 20px;
  height: 20px;
}

.menu-btn .icon-close {
  display: none;
}

.menu-btn[aria-expanded='true'] .icon-menu {
  display: none;
}

.menu-btn[aria-expanded='true'] .icon-close {
  display: block;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 1rem 0 1.25rem;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.mobile-nav a {
  display: block;
  padding: 0.7rem 0.25rem;
  font-size: 0.95rem;
  color: #d8e3f0;
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
}

.mobile-nav .btn {
  margin-top: 0.9rem;
  width: 100%;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.25rem;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

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

.btn svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.btn--primary {
  background: var(--blue);
  color: #fff;
}

.btn--primary:hover {
  background: #2b8bff;
}

.btn--wa {
  background: var(--green);
  color: #032719;
}

.btn--wa:hover {
  background: #21cd88;
}

.btn--ghost {
  border-color: var(--line-strong);
  background: rgb(255 255 255 / 0.03);
  color: #f3f6fb;
}

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

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

.hero {
  padding: clamp(2.75rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4.25rem);
  background:
    radial-gradient(ellipse 70% 60% at 82% 35%, rgb(0 118 250 / 0.18), transparent 70%),
    var(--bg);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #6bcaff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
}

.kicker::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--cyan);
}

.hero h1 {
  margin: 1rem 0 1.1rem;
  font-size: clamp(2.25rem, 5.2vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 18ch;
  text-wrap: balance;
}

.hero h1 span {
  color: var(--cyan);
}

.hero__lead {
  margin: 0 0 1.6rem;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  color: #c2d2e6;
  font-size: 0.8rem;
}

.hero__points li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero__points li::before {
  content: '✓';
  color: var(--cyan);
  font-weight: 700;
}

.hero__figure {
  margin: 0;
}

.hero__figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.45);
}

.hero__figure figcaption {
  margin-top: 0.6rem;
  color: #93a8c0;
  font-size: 0.75rem;
}

/* ---------- Barra rápida ---------- */

.quickbar {
  background: var(--bg-2);
  border-block: 1px solid rgb(255 255 255 / 0.07);
}

.quickbar ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 0;
  padding: 1.15rem 0;
  list-style: none;
}

.quick {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #bdc8d8;
  font-size: 0.8rem;
}

.quick strong {
  display: block;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.quick__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid rgb(87 197 255 / 0.35);
  border-radius: 10px;
  background: #0f2444;
  color: var(--cyan);
}

.quick__icon svg {
  width: 18px;
  height: 18px;
}

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

.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section--alt {
  background: var(--bg-2);
}

.section__head {
  max-width: 680px;
  margin: 0 auto clamp(1.75rem, 4vw, 2.75rem);
  text-align: center;
}

.section__head h2 {
  margin: 0.85rem 0 0.7rem;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.section__head > p:not(.kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- Servicios ---------- */

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

.service {
  display: flex;
  flex-direction: column;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition:
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.service:hover {
  border-color: rgb(87 197 255 / 0.5);
  transform: translateY(-3px);
}

.service__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgb(87 197 255 / 0.32);
  border-radius: 10px;
  background: #10294d;
  color: var(--cyan);
}

.service__icon svg {
  width: 20px;
  height: 20px;
}

.service h3 {
  margin: 0.9rem 0 0.45rem;
  font-size: 1rem;
  line-height: 1.3;
}

.service p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.65;
}

.service__link {
  margin-top: auto;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 700;
}

.service__link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  padding: 1.1rem 1.35rem;
  border-left: 2px solid var(--blue);
  border-radius: 0 10px 10px 0;
  background: linear-gradient(90deg, rgb(22 34 58 / 0.9), transparent);
}

.step small {
  display: block;
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.step h3 {
  margin: 0.5rem 0 0.4rem;
  font-size: 1rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.65;
}

/* ---------- Trabajos ---------- */

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

.work {
  margin: 0;
}

.work img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.work figcaption {
  margin-top: 0.6rem;
  color: #c9d8ea;
  font-size: 0.8rem;
  line-height: 1.5;
}

.work figcaption span {
  display: block;
  color: #8fa4bd;
  font-size: 0.72rem;
  margin-top: 0.15rem;
}

.works__note {
  margin: 1.5rem 0 0;
  color: #93a8c0;
  font-size: 0.8rem;
}

/* ---------- Preguntas ---------- */

.faq {
  max-width: 820px;
  margin-inline: auto;
  display: grid;
  gap: 0.65rem;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 0 1.1rem;
}

.faq details[open] {
  border-color: rgb(87 197 255 / 0.4);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  color: var(--cyan);
  font-size: 1.25rem;
  line-height: 1;
  flex: 0 0 auto;
}

.faq details[open] summary::after {
  content: '−';
}

.faq details p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

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

.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

.contact__intro h2 {
  margin: 0.85rem 0 0.7rem;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.contact__intro > p:not(.kicker) {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.coordination {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  margin-bottom: 1.25rem;
}

.coordination__role {
  margin: 0;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coordination__name {
  margin: 0.25rem 0 0.15rem;
  font-size: 1rem;
  font-weight: 700;
}

.coordination__note {
  margin: 0;
  color: #93a8c0;
  font-size: 0.8rem;
}

.contact__points {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact__points li {
  color: #d5dfec;
  font-size: 0.85rem;
}

.contact__points b {
  color: var(--cyan);
  margin-right: 0.5rem;
}

/* ---------- Formulario ---------- */

.form-card {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--panel-2);
  box-shadow: 0 22px 60px rgb(0 0 0 / 0.3);
}

.form-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}

.form-card__head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.form-card__badge {
  padding: 0.3rem 0.6rem;
  border-radius: 30px;
  background: #103a32;
  color: #64d3a8;
  font-size: 0.7rem;
  font-weight: 600;
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  color: #c4cfdd;
  font-size: 0.75rem;
  font-weight: 600;
}

.field label span {
  color: #8fa4bd;
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 1px solid #34435d;
  border-radius: 8px;
  background: #0a1426;
  color: var(--text);
  font-size: 0.875rem;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6f8098;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgb(0 118 250 / 0.22);
  outline: none;
}

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

.form-card__submit {
  width: 100%;
  margin-top: 1rem;
}

.form-note {
  margin: 0.8rem 0 0;
  color: #93a8c0;
  font-size: 0.75rem;
  line-height: 1.6;
}

.form-note a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Otras soluciones ---------- */

.other {
  padding: clamp(2rem, 4vw, 3rem) 0;
  background: var(--bg-2);
  border-top: 1px solid rgb(255 255 255 / 0.07);
}

.other__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.other h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.other p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  max-width: 52ch;
}

.other__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.other__tags li {
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  color: #c4d0df;
  font-size: 0.75rem;
}

/* ---------- Pie ---------- */

.site-footer {
  border-top: 1px solid rgb(255 255 255 / 0.08);
  padding: 1.75rem 0 2.25rem;
  color: #93a3b9;
  font-size: 0.8rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 1.5rem;
  align-items: start;
}

.footer__brand {
  color: #eaf4ff;
  font-weight: 700;
}

.footer__tagline {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}

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

.footer__meta {
  text-align: right;
  font-size: 0.78rem;
}

.footer__meta a {
  color: var(--cyan);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(255 255 255 / 0.07);
  font-size: 0.75rem;
}

/* ---------- CTA flotante ---------- */

.floating {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 20;
  display: none;
}

.floating .btn {
  border-radius: 40px;
  padding: 0.8rem 1.1rem;
  box-shadow: 0 12px 34px rgb(0 0 0 / 0.45);
}

/* ---------- Movimiento ---------- */

.has-motion .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}

.has-motion .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .has-motion .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .has-motion .reveal {
    opacity: 1;
    transform: none;
  }

  .floating,
  .menu-btn,
  .topbar {
    display: none;
  }
}

/* ---------- Adaptación ---------- */

@media (max-width: 1000px) {
  .nav__links {
    gap: 1.1rem;
  }

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

@media (max-width: 880px) {
  :root {
    --header-h: 68px;
  }

  .nav__links,
  .nav__actions .btn {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  .brand img {
    width: 200px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .hero h1 {
    max-width: none;
  }

  .hero__figure {
    order: 2;
  }

  .quickbar ul {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    padding: 1rem 0;
  }

  .quick {
    justify-content: flex-start;
  }

  .steps,
  .works {
    grid-template-columns: 1fr;
  }

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

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

  .footer__meta {
    text-align: left;
  }

  .floating {
    display: block;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: calc(100% - 1.75rem);
  }

  .topbar .wrap {
    justify-content: center;
  }

  .topbar .wrap span:last-child {
    display: none;
  }

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

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

  .field--full {
    grid-column: auto;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .floating {
    right: 0.7rem;
    bottom: 0.7rem;
  }

  .floating .btn {
    padding: 0.7rem 0.9rem;
    font-size: 0.75rem;
  }

  .other__inner {
    display: block;
  }

  .other__tags {
    margin-top: 1rem;
  }
}
