/* Consultores / Grupo INGEPELSA — static rebuild
   Palette aligned with the group: teal #1a6c7a, accent red #a40000, white / dark gray */

:root {
  --teal: #1a6c7a;
  --teal-dark: #134f5a;
  --teal-deep: #0e3b43;
  --red: #a40000;
  --red-dark: #870000;
  --ink: #1c2326;
  --body: #3a4448;
  --muted: #6b777c;
  --line: #e3e8ea;
  --bg: #ffffff;
  --bg-soft: #f4f7f8;
  --bg-teal-soft: #eef4f5;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(14, 59, 67, .12);
  --shadow-sm: 0 4px 14px rgba(14, 59, 67, .10);
  --maxw: 1180px;
  --nav-h: 76px;
  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.01em;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.section { padding: 92px 0; }
.section--soft { background: var(--bg-soft); }
.section--teal { background: var(--teal-deep); color: #d7e6e9; }
.section--teal h2, .section--teal h3 { color: #fff; }

.section__head { max-width: 760px; margin-bottom: 52px; }
.section__head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.section__head p { font-size: 1.06rem; color: var(--muted); margin: 0; }
.section--teal .section__head p { color: #a8c6cc; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 50;
  background: rgba(14, 59, 67, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: background .3s ease;
}
.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo img { height: 40px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  display: block;
  color: #e6f0f2;
  font-size: .9rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 7px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.nav__links a:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* dropdown */
.nav__group { position: relative; }
.nav__group > a::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-left: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: .7;
}
.nav__submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 268px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav__group:hover .nav__submenu,
.nav__group:focus-within .nav__submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav__submenu a {
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 7px;
  font-size: .88rem;
}
.nav__submenu a:hover { background: var(--bg-teal-soft); color: var(--teal); }

.nav__cta {
  background: var(--red);
  color: #fff !important;
  padding: 10px 20px !important;
  border-radius: 7px;
  margin-left: 6px;
}
.nav__cta:hover { background: var(--red-dark) !important; }

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 44px; height: 44px;
  padding: 10px;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav__toggle span + span { margin-top: 5px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: #fff;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, rgba(14, 59, 67, .92) 0%, rgba(14, 59, 67, .72) 45%, rgba(14, 59, 67, .35) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding: 60px 0; }
.hero__content { max-width: 700px; }
.hero__msg { display: none; }
.hero__msg.is-active { display: block; animation: heroFade .8s ease; }
@keyframes heroFade {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .35em;
}
.hero p {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: #d8e7ea;
  max-width: 580px;
  margin: 0 0 32px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__dots {
  position: absolute;
  bottom: 34px; left: 0; right: 0;
  z-index: 3;
  display: flex;
  gap: 10px;
  justify-content: center;
}
.hero__dots button {
  width: 36px; height: 4px;
  border: 0; border-radius: 4px;
  background: rgba(255, 255, 255, .35);
  cursor: pointer;
  padding: 0;
  transition: background .3s;
}
.hero__dots button.is-active { background: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: .95rem;
  padding: 14px 26px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s, background .2s, color .2s, border-color .2s;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--teal-dark); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.btn--outline { background: #fff; color: var(--teal); border-color: var(--line); }
.btn--outline:hover { border-color: var(--teal); color: var(--teal-dark); }

/* ---------- Highlights strip ---------- */
.highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.highlight {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--teal);
}
.highlight .ico {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--bg-teal-soft);
  color: var(--teal);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.highlight .ico svg { width: 24px; height: 24px; }
.highlight p { margin: 0; font-size: .98rem; color: var(--body); }

/* ---------- Nosotros ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.about__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__badge {
  position: absolute;
  left: 24px; bottom: 24px;
  background: var(--red);
  color: #fff;
  padding: 16px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.about__badge strong { display: block; font-size: 2rem; line-height: 1; font-weight: 800; }
.about__badge span { font-size: .8rem; letter-spacing: .04em; opacity: .92; }
.about__text p { margin: 0 0 18px; font-size: 1.06rem; }
.about__text p:last-child { margin-bottom: 0; }

/* differentiators list */
.diff-list { list-style: none; margin: 22px 0 0; padding: 0; }
.diff-list li {
  position: relative;
  padding: 9px 0 9px 32px;
  border-bottom: 1px solid var(--line);
  font-size: .99rem;
  color: var(--body);
}
.diff-list li:last-child { border-bottom: 0; }
.diff-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 16px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--teal);
}

/* ---------- Servicios ---------- */
.svc-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.svc-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.section--teal .svc-card { color: var(--body); }
.svc-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: #0a2d34; }
.svc-card__img img { width: 100%; height: 100%; object-fit: cover; }
.svc-card__body { padding: 26px 24px; }
.svc-card__body h3 { font-size: 1.18rem; color: var(--teal); }
.svc-card__body p { margin: 0; color: var(--body); font-size: .98rem; }

/* ---------- Experiencia ---------- */
.exp-subhead {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 40px 0 20px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery figure {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  background: #000;
}
.gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform .45s ease, opacity .3s;
}
.gallery figure:hover img { transform: scale(1.06); opacity: .82; }
.gallery figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 16px 14px;
  background: linear-gradient(transparent, rgba(14, 59, 67, .92));
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
}

/* wide multi-site banners */
.banners { display: grid; gap: 18px; }
.banners figure {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  background: #000;
}
.banners img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .45s ease, opacity .3s;
}
.banners figure:hover img { transform: scale(1.03); opacity: .85; }
.banners figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 30px 18px 14px;
  background: linear-gradient(transparent, rgba(14, 59, 67, .92));
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 28, 32, .94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 8px; }
.lightbox__cap { color: #fff; text-align: center; margin-top: 14px; font-weight: 600; }
.lightbox__close {
  position: absolute;
  top: 20px; right: 24px;
  background: none; border: 0;
  color: #fff; font-size: 2.4rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Contacto ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact__info { display: grid; gap: 22px; }
.info-row { display: flex; gap: 16px; align-items: flex-start; }
.info-row .ico {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--bg-teal-soft);
  color: var(--teal);
  display: grid;
  place-items: center;
}
.info-row .ico svg { width: 22px; height: 22px; }
.info-row h4 { margin: 0 0 2px; font-size: 1rem; color: var(--ink); }
.info-row p, .info-row a { margin: 0; color: var(--body); font-size: .98rem; }
.info-row a:hover { color: var(--teal); }

.person {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  margin-top: 8px;
}
.person h4 { margin: 0 0 2px; color: var(--teal); font-size: 1.05rem; }
.person .role { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; }
.person__links { display: flex; flex-wrap: wrap; gap: 10px; }
.person__links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .9rem;
  font-weight: 600;
  background: var(--bg-soft);
  padding: 8px 14px;
  border-radius: 7px;
}
.person__links a:hover { background: var(--bg-teal-soft); }
.person__links svg { width: 15px; height: 15px; }

.contact__cta {
  background: var(--teal-deep);
  color: #d7e6e9;
  border-radius: var(--radius);
  padding: 40px;
}
.contact__cta h3 { color: #fff; font-size: 1.5rem; }
.contact__cta p { margin: 0 0 24px; color: #a8c6cc; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0a2d34;
  color: #9fc0c6;
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.site-footer img { height: 46px; margin-bottom: 18px; }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #9fc0c6; font-size: .94rem; }
.site-footer a:hover { color: #fff; }
.site-footer p { font-size: .94rem; margin: 0 0 9px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 22px;
  font-size: .85rem;
  color: #7ba2a9;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about, .contact, .svc-cards, .footer-grid, .highlights {
    grid-template-columns: 1fr;
  }
  .highlights { grid-template-columns: repeat(2, 1fr); }
  .about { gap: 36px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--teal-deep);
    padding: 16px;
    max-height: calc(100svh - var(--nav-h));
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: var(--shadow);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { padding: 13px 14px; font-size: 1rem; }
  .nav__group > a::after { float: right; }
  .nav__submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, .06);
    margin: 4px 0 4px 12px;
    padding: 4px;
  }
  .nav__submenu a { color: #cfe2e5; }
  .nav__submenu a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
  .nav__cta { margin: 6px 0 0; text-align: center; }
}

@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .container { padding: 0 18px; }
  .highlights { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery img { height: 220px; }
  .contact__cta { padding: 26px; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
}
