/* ConTiPe — landing
   Paleta compartida con sigvus.com: paper, ink, deep, mint.
   En ConTiPe manda el deep (navy); el mint queda para acciones y para Sigvus. */

:root {
  --ink: #07151A;
  --deep: #0b2028;
  --paper: #f6f9f7;
  --white: #ffffff;
  --mint: #01BAB6;
  --mint-hover: #05d5ce;
  --sky: #caeef0;
  --slate: #5e7175;
  --line: #d9e5e1;
  --radius: 14px;
  --wrap: 1160px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'DM Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--deep); color: var(--white); padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border-radius: 10px; border: 2px solid transparent;
  font: 700 16px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn--sm { min-height: 42px; padding: 0 16px; font-size: 15px; }
/* Mint con texto ink: el blanco sobre mint no alcanza contraste suficiente */
.btn--mint { background: var(--mint); color: var(--ink); }
.btn--mint:hover { background: var(--mint-hover); }
.btn--ghost { border-color: var(--line); color: var(--deep); background: var(--white); }
.btn--ghost:hover { border-color: var(--deep); }
.btn--deep { background: var(--deep); color: var(--white); }
.btn--deep:hover { background: var(--ink); }

/* ---------- Barra superior ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 249, 247, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.topbar__logo img { height: 34px; width: auto; }
.topbar__nav { display: flex; gap: 28px; margin-left: auto; }
.topbar__nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--slate); }
.topbar__nav a:hover { color: var(--deep); }

/* ---------- A. Hero ---------- */
.hero { padding: 72px 0 88px; }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px; align-items: center;
}
.hero h1 {
  font-size: clamp(2.1rem, 3.8vw, 3.1rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.08;
  color: var(--deep); max-width: 19ch;
}
.hero__lead { margin-top: 24px; font-size: 19px; color: #2a3b37; max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__since {
  display: flex; align-items: center; gap: 10px;
  margin-top: 36px; font-weight: 600; font-size: 15px; color: var(--slate);
}
.node { width: 10px; height: 10px; border-radius: 2.5px; background: var(--mint); flex: none; }

.hero__map { margin: 0; }
.hero__map svg { width: 100%; height: auto; overflow: visible; }
.links line { stroke: #c7d4d1; stroke-width: 2; }
.flow line {
  stroke: var(--mint); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 2 14; opacity: .9;
}
.svc > rect { fill: var(--white); stroke: var(--deep); stroke-width: 1.5; }
.svc .ico { fill: none; stroke: var(--deep); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.svc--mint > rect { fill: var(--mint); stroke: var(--mint); }
.svc--mint .ico { stroke: var(--ink); }
.lbl { font: 600 14px var(--font); fill: var(--slate); text-anchor: middle; }

/* El único movimiento automático de la página: datos que viajan por la red */
@media (prefers-reduced-motion: no-preference) {
  .flow line { animation: travel 2.4s linear infinite; }
  @keyframes travel { to { stroke-dashoffset: -32; } }
}

/* ---------- B. Servicios ---------- */
.services { background: var(--white); border-top: 1px solid var(--line); }
.services > .wrap { padding-top: 96px; padding-bottom: 96px; }
.services__title {
  font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; color: var(--deep);
  max-width: 22ch;
}
.services__list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 48px; row-gap: 0; margin-top: 56px;
}
/* subgrid: foto, ícono, título, texto y nota quedan en la misma fila en las tres columnas */
.service { display: grid; grid-row: span 5; grid-template-rows: subgrid; align-content: start; }
/* Foto de cada servicio. Sin foto queda un fondo con retícula de puntos (se ve bien mientras llegan las imágenes) */
.service__photo {
  position: relative; margin: 0; aspect-ratio: 3 / 2; border-radius: var(--radius);
  background-color: #e7f3ef;
  background-image: radial-gradient(#b9cec9 1.2px, transparent 1.3px);
  background-size: 18px 18px;
  overflow: hidden;
}
.service__photo img { width: 100%; height: 100%; object-fit: cover; }
.service__icon {
  width: 56px; height: 56px; padding: 12px; margin: -28px 0 0 20px; position: relative;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  fill: none; stroke: var(--deep); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.service h3 { margin-top: 20px; font-size: 21px; font-weight: 800; color: var(--deep); }
.service p { margin-top: 12px; color: #2a3b37; font-size: 16px; }
/* La "dolencia" de cada servicio; margin-top auto la alinea abajo en las tres columnas */
.service p.service__note {
  margin-top: 0; padding: 14px 16px; border-radius: 10px; align-self: start;
  background: #e7f3ef; color: var(--deep); font-size: 15px; font-weight: 600;
}
.service p:not(.service__note) { margin-bottom: 18px; }

.band { position: relative; min-height: 380px; display: flex; align-items: flex-end; overflow: hidden; background: var(--deep); }
/* Reemplace img/infraestructura.jpg por su foto; sin foto, la franja queda en navy */
.band__photo {
  position: absolute; inset: 0;
  background: url("img/infraestructura.jpg") center / cover no-repeat;
}
.band__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(11, 32, 40, .92) 0%, rgba(11, 32, 40, .55) 55%, rgba(11, 32, 40, .25) 100%);
}
.band__inner { position: relative; padding-top: 64px; padding-bottom: 64px; }
.band__text {
  color: var(--white); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15;
  font-size: clamp(1.6rem, 3vw, 2.4rem); max-width: 24ch;
}

/* ---------- C. Sigvus (el único bloque mint) ---------- */
.sigvus { background: var(--mint); color: var(--ink); }
.sigvus__inner {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px;
}
.sigvus__brand { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.sigvus__brand img {
  width: 120px; height: 120px; object-fit: contain;
  background: var(--deep); border-radius: 26px; padding: 12px;
}
.sigvus__by { font: 500 13px var(--mono); color: var(--deep); }
.sigvus h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; max-width: 26ch; }
.sigvus__copy p { margin-top: 14px; max-width: 60ch; font-size: 17px; }

/* ---------- D. Contacto ---------- */
.contact { padding: 96px 0; }
.contact__grid {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 64px; align-items: start;
}
.contact h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; color: var(--deep); }
.contact__intro > p { margin-top: 16px; color: #2a3b37; }
.contact__ways { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.contact__ways li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.contact__ways li::before { content: ""; width: 10px; height: 10px; border-radius: 2.5px; background: var(--mint); flex: none; }
.contact__ways a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact__ways a:hover { border-color: var(--deep); }

.form {
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  padding: 32px; display: grid; gap: 18px;
}
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field label { font-weight: 700; font-size: 14px; color: var(--deep); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid #c7d4d1; border-radius: 10px; background: var(--white);
  font: 500 16px var(--font); color: var(--ink);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--deep); box-shadow: 0 0 0 3px var(--sky); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #2a3b37; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--deep); flex: none; }
.check a { color: var(--deep); font-weight: 700; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }

/* ---------- Pie ---------- */
.footer { background: var(--deep); color: #b9cec9; padding: 64px 0 28px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: start; }
.footer__grid img { height: 32px; width: auto; }
.footer__name { margin-top: 14px; font-size: 14px; max-width: 34ch; }
.footer__legal { margin: 0; display: grid; gap: 12px; font-size: 14px; }
.footer__legal div { display: grid; grid-template-columns: 92px auto; gap: 12px; }
.footer__legal dt { font-family: var(--mono); color: #98aaa7; }
.footer__legal dd { margin: 0; color: var(--white); }
.footer__legal a { text-decoration: none; }
.footer__legal a:hover { text-decoration: underline; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 13px;
}
.footer__bottom a { color: #b9cec9; }
.footer__bottom a:hover { color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__map { max-width: 460px; }
  .services__list { grid-template-columns: 1fr; }
  .service { margin-bottom: 48px; }
  .service:last-child { margin-bottom: 0; }
  .sigvus__inner { grid-template-columns: 1fr; gap: 28px; justify-items: start; }
  .sigvus__brand { flex-direction: row; }
  .sigvus__brand img { width: 84px; height: 84px; border-radius: 20px; padding: 8px; }
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .topbar__nav { display: none; }
  .topbar__inner { justify-content: space-between; gap: 12px; }
  .topbar__logo img { height: 28px; }
  .hero { padding: 48px 0 64px; }
  .hero__lead { font-size: 17px; }
  .services > .wrap, .contact { padding-top: 72px; padding-bottom: 72px; }
  .band { min-height: 300px; }
  .hero__map { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .topbar .btn--sm { padding: 0 12px; font-size: 14px; }
}

/* ---------- Página legal (política de datos) ---------- */
.legal { padding: 64px 0 96px; }
.legal__doc { max-width: 760px; }
.legal__back { display: inline-block; margin-bottom: 28px; font-weight: 700; font-size: 15px; color: var(--slate); text-decoration: none; }
.legal__back:hover { color: var(--deep); }
.legal h1 { font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 800; color: var(--deep); letter-spacing: -0.03em; }
.legal__meta { margin-top: 12px; color: var(--slate); font-size: 15px; }
.legal h2 { margin-top: 48px; font-size: 22px; font-weight: 800; color: var(--deep); }
.legal h3 { margin-top: 28px; font-size: 17px; font-weight: 800; color: var(--deep); }
.legal p, .legal li { color: #2a3b37; }
.legal p { margin-top: 14px; }
.legal ul, .legal ol { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.legal a { color: var(--deep); font-weight: 700; }
.legal__box { margin-top: 18px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.legal__box dl { margin: 0; display: grid; gap: 10px; }
.legal__box div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; }
.legal__box dt { font-weight: 700; color: var(--deep); }
.legal__box dd { margin: 0; color: #2a3b37; }
@media (max-width: 720px) { .legal__box div { grid-template-columns: 1fr; gap: 2px; } }
