:root {
  /* Colores corporativos */
  --brand-mid: #005375;
  --brand-mid-600: #00465f;
  --attention: #FF4D00;
  --attention-600: #e64600;

  /* Paleta base oscura mejor contrastada */
  --bg: #0b1220;
  /* fondo global (muy oscuro) */
  --text: #eaf1fb;
  /* texto base algo más claro */
  --muted: #b0bccb;
  /* texto atenuado con más legibilidad */

  /* Superficies en escalones para contraste entre secciones */
  --surface: #0f172a;
  /* tarjetas, cajas, footer */
  --surface-2: #0b1426;
  /* secciones alternas */
  --surface-3: #152238;
  /* tarjetas sobre surface-2, o bandas destacadas */

  /* Bordes y divisores más notorios en dark */
  --border: #223149;
  --divider: rgba(255, 255, 255, 0.08);

  --icon-surface: #1e293b;

  /* Enfoque accesible */
  --ring: rgba(0, 83, 117, 0.5);

  /* Hero */
  --hero-image: url('/s/i/hbg5.jpg');
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  /* font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"; */
  font-family: Helvetica, Arial, Roboto, ui-sans-serif, system-ui;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.5;
}

/* Utilidades */
.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.muted {
  color: var(--muted);
}

.iconat {
  stroke: var(--attention)
}

.accent {
  color: var(--attention)
}

/* Botones */
.btn {
  display: inline-block;
  padding: 0.875rem 1.25rem;
  /* border-radius: 999px; */
  text-decoration: none;
  font-weight: 600;
  background: var(--attention);
  color: #fff;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
  box-shadow: 0 8px 24px rgba(255, 77, 0, 0.35);
  border: none;
}

.btn:hover {
  background: var(--attention-600);
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}

.btn.brand {
  background: var(--brand-mid);
  box-shadow: 0 8px 24px rgba(0, 83, 117, 0.35);
}

.btn.brand:hover {
  background: var(--brand-mid-600);
}

.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--brand-mid);
  box-shadow: none;
}

.btn.secondary:hover {
  background: rgba(0, 83, 117, 0.10);
}

/* NAV */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, .85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--divider);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--text);
}

.brand .logo {
  width: 28px;
  height: 28px;
  /* border-radius: 8px; */
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand-mid);
  box-shadow: 0 6px 16px rgba(0, 83, 117, 0.35);
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  padding: .5rem .75rem;
  /* border-radius: 10px; */
}

nav a:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Mobile nav toggle (sin JS) */
#menu-toggle {
  display: none;
}

.menu-btn {
  display: none;
  /* border: 1px solid var(--border); */
  padding: .5rem .6rem;
  /* border-radius: 10px; */
  background: var(--surface);
  color: var(--text);
}

.menu-btn:focus-visible {
  outline: 3px solid var(--ring);
}

@media (max-width: 760px) {
  nav ul {
    display: none;
    position: absolute;
    top: 64px;
    right: 4%;
    background: var(--surface);
    border: 1px solid var(--border);
    /* border-radius: 14px; */
    padding: .5rem;
    flex-direction: column;
    width: calc(92% - 8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  }

  #menu-toggle:checked+label+nav ul {
    display: flex;
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
  }
}

/* HERO */
.hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  align-items: center;
  isolation: isolate;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: left;
  background-blend-mode: soft-light;
  background-color: #335;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(7, 10, 16, .88), rgba(7, 10, 16, .50));
  z-index: -1;
}

.hero .content {
  padding: clamp(2rem, 6vw, 6rem) 0;
}

.eyebrow {
  display: inline-block;
  padding: .35rem .6rem;
  /* border-radius: 999px; */
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  font-weight: 700;
  letter-spacing: .4px;
}

.hero h1 {
  font-size: clamp(2rem, 4.8vw, 3.6rem);
  line-height: 1.05;
  margin: 1rem 0 .6rem;
}

.hero p {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  opacity: .95;
  max-width: 60ch;
}

.hero .actions {
  margin-top: 1.25rem;
  display: flex;
  gap: .75rem;
  align-items: center;
}

/* SEPARADORES DE SECCIÓN (más contraste entre bloques) */
section {
  position: relative;
}

section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--divider);
}

section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--divider);
}

/* SERVICIOS – banda contrastada */
.services {
  padding: clamp(2.5rem, 5vw, 5rem) 0;
  background:
    radial-gradient(1200px 300px at 15% 0%, rgba(0, 83, 117, 0.15), transparent 60%),
    linear-gradient(180deg, #0b1426 0%, #0f172a 100%);
}

.sec-head {
  display: grid;
  gap: .5rem;
  margin-bottom: 1.25rem;
}

.sec-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0;
  color: var(--text);
}

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

@media (max-width: 960px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface-3);
  border: 1px solid var(--border);
  /* border-radius: 16px; */
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  border-color: #2b3d5a;
}

.card .icon {
  width: 44px;
  height: 44px;
  /* border-radius: 12px; */
  display: grid;
  place-items: center;
  background: var(--icon-surface);
  color: var(--brand-mid);
  margin-bottom: .75rem;
}

/* Fila icono + título */
.card-head {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .5rem;
  /* separa del listado */
}

/* Anula el margen inferior que tenía el icono cuando estaba encima del título */
.card-head .icon {
  margin: 0;
}

/* Ajusta el h3 cuando va en fila */
.card-head h3 {
  margin: 0;
  font-size: 1.1rem;
  /* igual que antes */
}

.card h3 {
  margin: 0 0 .5rem;
  font-size: 1.1rem;
  color: var(--text);
}

.card ul {
  margin: .25rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.card li {
  margin: .3rem 0;
}

/* CTA banda – mantiene diferenciación */
.cta-band {
  background: linear-gradient(180deg, rgba(0, 83, 117, .18), rgba(0, 83, 117, .10));
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  padding: clamp(2.25rem, 5vw, 4rem) 0;
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 .5rem;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  color: var(--text);
}

.cta-band p {
  margin: 0 auto;
  max-width: 70ch;
  color: var(--muted);
}

#sobre .about-proof {
  margin-top: 1rem;
}

/* Métricas */
#sobre .kpis {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}

#sobre .kpis li {
  display: grid;
  gap: .15rem;
  justify-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  /* border-radius: 12px; */
  padding: .75rem 1rem;
  min-width: 150px;
}

#sobre .kpis strong {
  font-size: 1.25rem;
  line-height: 1;
}

#sobre .kpis span {
  color: var(--muted);
  font-size: .9rem;
}

/* Logos (usa esto si prefieres logos en lugar de métricas) */
#sobre .client-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

#sobre .client-logos img {
  max-height: 28px;
  opacity: .85;
  filter: grayscale(100%) contrast(110%) brightness(95%);
  transition: filter .2s ease, opacity .2s ease, transform .15s ease;
}

#sobre .client-logos img:hover {
  opacity: 1;
  filter: none;
  transform: translateY(-1px);
}

@media (min-width: 960px) {
  #sobre .kpis {
    gap: 1.5rem;
  }

  #sobre .client-logos img {
    max-height: 32px;
  }
}

/* CONTACTO – otra banda contrastada distinta a servicios */
.contact {
  padding: clamp(2.5rem, 5vw, 5rem) 0;
  background:
    radial-gradient(900px 260px at 85% 10%, rgba(255, 77, 0, 0.12), transparent 55%),
    linear-gradient(180deg, #0a1220 0%, #101b2f 100%);
}

.contact-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1.15fr .85fr;
  align-items: start;
}

@media (max-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

form {
  background: var(--surface);
  border: 1px solid var(--border);
  /* border-radius: 16px; */
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.field {
  display: grid;
  gap: .35rem;
  margin-bottom: .8rem;
}

label {
  font-weight: 600;
  color: var(--text);
}

input,
textarea {
  width: 100%;
  padding: .8rem .9rem;
  /* border-radius: 12px; */
  border: 1px solid var(--border);
  font: inherit;
  background: #0b1324;
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease;
}

input::placeholder,
textarea::placeholder {
  color: #9fb0c3;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand-mid);
  box-shadow: 0 0 0 4px var(--ring);
}

.contact-ways {
  background: var(--surface);
  border: 1px solid var(--border);
  /* border-radius: 16px; */
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.way {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: .75rem;
  align-items: start;
  padding: .6rem 0;
}

.way a {
  text-decoration: none;
  color: var(--muted);
}

.way+.way {
  border-top: 1px dashed var(--border);
}

/* FOOTER – aún más oscuro para remate visual */
footer {
  border-top: 1px solid var(--divider);
  padding: 2rem 0;
  background: #0a101b;
}

.footer-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.2fr .8fr;
  align-items: start;
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem 1rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-logo {
  justify-self: end;
  width: 160px;
  height: 64px;
  /* border: 2px dashed var(--border); */
  /* border-radius: 12px; */
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 960px) {
  .footer-logo {
    justify-self: start;
  }
}

/* Helpers visuales */
.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;
}
