:root {
  --azul-profundo: #0047AB;
  --azul-medio: #3D85C6;
  --azul-claro: #CFE2F3;
  --azul-suave: #C9DAF8;
  --texto: #0b1f3a;
  --muted: #5b6b80;
  --blanco: #ffffff;
  --sombra: 0 20px 50px rgba(0, 71, 171, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--texto);
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
}
img { max-width: 100%; display: block; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6vw;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,71,171,.08);
}
.brand {
  text-decoration: none;
  color: var(--azul-profundo);
  font-weight: 900;
  letter-spacing: .08em;
  display: flex;
  gap: .6rem;
  align-items: center;
}
.brand-logo {
  width: 34px;
  height: 34px;
  flex: none;
}
.nav-links {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}
.nav-links a {
  color: var(--texto);
  text-decoration: none;
  font-weight: 650;
  font-size: .94rem;
}
.btn-small {
  color: white !important;
  background: var(--azul-profundo);
  padding: .75rem 1rem;
  border-radius: 999px;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 6vw;
  background:
    radial-gradient(circle at top right, rgba(61,133,198,.22), transparent 32%),
    linear-gradient(135deg, #ffffff, #eef6ff);
}
.eyebrow {
  color: var(--azul-profundo);
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .8rem;
}
h1 {
  font-size: clamp(2.7rem, 7vw, 6rem);
  line-height: .95;
  margin: .5rem 0 1.2rem;
  letter-spacing: -0.06em;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  margin: 0 0 1rem;
  letter-spacing: -0.04em;
}
h3 { margin: 0 0 .7rem; }
p { color: var(--muted); line-height: 1.7; }
.lead { font-size: 1.2rem; max-width: 640px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.btn-primary, .btn-secondary {
  text-decoration: none;
  font-weight: 800;
  padding: 1rem 1.3rem;
  border-radius: 999px;
}
.btn-primary { background: var(--azul-profundo); color: white; box-shadow: var(--sombra); }
.btn-secondary { background: white; color: var(--azul-profundo); border: 1px solid var(--azul-suave); }
.hero-card img, .rounded-img {
  border-radius: 28px;
  box-shadow: var(--sombra);
  border: 1px solid rgba(0,71,171,.10);
}

.hero-card {
  position: relative;
  min-height: 460px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--sombra);
  border: 1px solid rgba(0,71,171,.10);
  background: url('assets/hero-montana-viento.png') center/cover no-repeat;
}
.hero-carousel { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.2rem 2rem 2.6rem;
  background: linear-gradient(180deg, rgba(0,40,94,0) 0%, rgba(0,40,94,.45) 50%, rgba(0,40,94,.88) 100%);
  opacity: 0;
  transform: translateY(18px) scale(.98);
  transition: opacity .7s ease, transform .7s ease;
  pointer-events: none;
}
.hero-slide.is-active { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.hero-slide .eyebrow { color: #CFE2F3; }
.hero-slide h3 { color: white; font-size: 1.6rem; margin: .3rem 0 .6rem; }
.hero-slide p { color: #e7f0fb; margin: 0; line-height: 1.55; }
.hero-dots {
  position: absolute;
  bottom: 16px;
  right: 20px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.hero-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  transition: background .3s ease;
}
.hero-dots span.is-active { background: #ffffff; }

.section { padding: 6vw; }
.section.alt { background: white; }
.section-header { max-width: 780px; margin-bottom: 2.5rem; }
.grid-3, .grid-4 {
  display: grid;
  gap: 1.2rem;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(0,71,171,.10);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(0,71,171,.07);
  transition: transform .2s ease, box-shadow .2s ease;
}
.grid-servicios .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,71,171,.14);
}
.icon { font-size: 2.2rem; margin-bottom: 1rem; }
.icon-svg { width: 2.2rem; height: 2.2rem; }

.visual-split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}
.palette {
  display: grid;
  grid-template-columns: repeat(4, minmax(105px, 1fr));
  gap: .8rem;
  margin-top: 1.4rem;
}
.palette span {
  min-height: 120px;
  border-radius: 18px;
  color: white;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  font-weight: 850;
}
.palette .dark-text { color: var(--texto); }

.org {
  background: white;
  border-radius: 28px;
  padding: 2rem;
  box-shadow: var(--sombra);
  border: 1px solid rgba(0,71,171,.10);
}
.org-top {
  margin: 0 auto 2rem;
  max-width: 260px;
  text-align: center;
  background: var(--azul-profundo);
  color: white;
  padding: 1.2rem;
  border-radius: 18px;
  font-weight: 900;
}
.org-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.org-row div {
  background: #f4f9ff;
  border: 1px solid var(--azul-suave);
  border-radius: 18px;
  padding: 1rem;
  text-align: center;
  font-weight: 800;
}
.org-row small { color: var(--muted); font-weight: 600; }

.checklist {
  padding: 0;
  list-style: none;
}
.checklist li {
  margin: .8rem 0;
  padding-left: 1.8rem;
  position: relative;
}
.checklist li::before {
  content: "✓";
  color: var(--azul-profundo);
  position: absolute;
  left: 0;
  font-weight: 900;
}

.logo-versions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.6rem;
}
.logo-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  background: #f4f9ff;
  border: 1px solid var(--azul-suave);
  border-radius: 16px;
  padding: 1rem .9rem;
  min-width: 96px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
}
.logo-chip img { width: 42px; height: 42px; }
.logo-chip.dark { background: var(--azul-profundo); color: white; }

.tag-ejemplo {
  display: inline-block;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: rgba(0,71,171,.08);
  color: var(--azul-profundo);
  padding: .2rem .55rem;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: .4rem;
}

.carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: .6rem;
}
.carousel-track::-webkit-scrollbar { height: 8px; }
.carousel-track::-webkit-scrollbar-thumb { background: var(--azul-suave); border-radius: 999px; }
.cliente-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  background: white;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(0,71,171,.10);
  box-shadow: 0 12px 30px rgba(0,71,171,.07);
  display: flex;
  flex-direction: column;
}
.cliente-card img { width: 100%; height: 190px; object-fit: cover; }
.cliente-body { padding: 1.4rem; display: flex; flex-direction: column; gap: .5rem; }
.cliente-body h3 { margin: 0; }
.cliente-desc { font-size: .92rem; }
.cliente-exito {
  font-size: .88rem;
  background: #f4f9ff;
  border-radius: 12px;
  padding: .6rem .8rem;
  color: var(--texto);
  margin: 0;
}
.cliente-exito strong { color: var(--azul-profundo); }
.cliente-link { margin-top: .3rem; font-weight: 800; color: var(--azul-profundo); text-decoration: none; }
.cliente-link:hover { text-decoration: underline; }
.cliente-link.disabled { color: var(--muted); font-weight: 700; cursor: default; }
.carousel-btn {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--azul-suave);
  background: white;
  color: var(--azul-profundo);
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,71,171,.08);
}
.carousel-btn:hover { background: var(--azul-profundo); color: white; }

.manual-link { margin-top: 1.2rem; }
.manual-link a {
  color: var(--azul-profundo);
  font-weight: 800;
  text-decoration: none;
}
.manual-link a:hover { text-decoration: underline; }

.about-banner {
  margin: 0 0 1.8rem;
}
.about-banner img {
  width: 100%;
  border-radius: 28px;
  box-shadow: var(--sombra);
  border: 1px solid rgba(0,71,171,.10);
}
.about-copy {
  max-width: 760px;
  font-size: 1.05rem;
}

.quienes-somos-link { margin-top: .4rem; }
.quienes-somos-link a {
  color: var(--azul-profundo);
  font-weight: 800;
  text-decoration: none;
}
.quienes-somos-link a:hover { text-decoration: underline; }

.footer-back-link {
  color: white;
  opacity: .85;
  text-decoration: none;
  font-weight: 700;
}
.footer-back-link:hover { opacity: 1; text-decoration: underline; }

.cta {
  margin: 6vw;
  padding: 5rem 2rem;
  text-align: center;
  border-radius: 34px;
  color: white;
  background:
    radial-gradient(circle at top left, rgba(207,226,243,.35), transparent 30%),
    linear-gradient(135deg, #00357f, var(--azul-profundo));
}
.cta h2, .cta p { color: white; }
.cta .eyebrow { color: var(--azul-claro); }
.cta .btn-primary { background: white; color: var(--azul-profundo); display: inline-block; margin-top: 1rem; }

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 2rem 6vw;
  background: #002b68;
  color: white;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 900;
  letter-spacing: .08em;
}
footer span { opacity: .85; }

@media (max-width: 900px) {
  .nav { height: auto; padding: 1rem 5vw; align-items: flex-start; }
  .nav-links { display: none; }
  .hero, .visual-split { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .org-row { grid-template-columns: 1fr 1fr; }
  .palette { grid-template-columns: 1fr 1fr; }
  footer { flex-direction: column; align-items: flex-start; }
  .cliente-card { flex-basis: 280px; }
}

@media (max-width: 520px) {
  h1 { font-size: 3rem; }
  .section, .hero { padding: 4rem 1.2rem; }
  .cta { margin: 1.2rem; }
  .palette { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .org-row { grid-template-columns: 1fr; }
  .hero-card { min-height: 320px; }
}
