/* =========================================================
   GC Consorcio Multiservicios — estilos principales
   ========================================================= */
:root {
  --blue: #0b4a78;
  --blue-dark: #072f4d;
  --blue-darker: #041d30;
  --orange: #f39a1e;
  --orange-dark: #d97f06;
  --ink: #142231;
  --muted: #5b6876;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(7, 47, 77, .10);
  --shadow-lg: 0 20px 50px rgba(7, 47, 77, .18);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --header-h: 76px;
}

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

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

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

svg { width: 1.2em; height: 1.2em; flex-shrink: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 600 15px/1 var(--font);
  cursor: pointer;
  transition: transform .2s, background .2s, color .2s, box-shadow .2s, border-color .2s;
  white-space: nowrap;
}
.btn svg { fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(243, 154, 30, .35); }
.btn--primary:hover { background: var(--orange-dark); }
.btn--ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--blue-dark); }
.btn--outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--dark { background: var(--blue-darker); color: #fff; }
.btn--light { background: #fff; color: var(--blue-dark); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Encabezados de sección ---------- */
.section { padding: 96px 0; }
.eyebrow {
  display: inline-block;
  font: 700 13px/1 var(--font);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 10px;
}
.eyebrow--light { color: var(--orange); }
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 48px);
  text-transform: uppercase;
  color: var(--blue-dark);
  letter-spacing: .01em;
}
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--muted); font-size: 17px; }
.section-head--light .section-title { color: #fff; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px);
  transition: box-shadow .3s, height .3s;
}
.header.is-scrolled { box-shadow: 0 4px 20px rgba(7, 47, 77, .12); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo img { height: 40px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  position: relative;
  font-weight: 600;
  font-size: 15px;
  color: var(--blue-dark);
  padding: 6px 0;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width .25s;
}
.nav a:not(.btn):hover::after,
.nav a.is-active::after { width: 100%; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent;
  cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--blue-dark); border-radius: 2px; transition: .3s; }
.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: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 60px) 0 60px;
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: heroZoom 18s ease-out forwards;
}
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(4, 29, 48, .95) 0%, rgba(7, 47, 77, .85) 45%, rgba(7, 47, 77, .35) 100%);
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__content { position: relative; z-index: 1; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 78px);
  text-transform: uppercase;
  line-height: 1;
  max-width: 820px;
  margin-bottom: 22px;
}
.hero__title span { color: var(--orange); }
.hero__text { max-width: 580px; font-size: 18px; color: rgba(255, 255, 255, .88); margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 60px; }

.hero__stats {
  list-style: none; margin: 0; padding: 26px 0 0;
  display: flex; flex-wrap: wrap; gap: 20px 56px;
  border-top: 1px solid rgba(255, 255, 255, .2);
  max-width: 820px;
}
.hero__stats strong {
  display: block;
  font: 700 32px/1.1 var(--font-display);
  color: var(--orange);
  text-transform: uppercase;
}
.hero__stats span { font-size: 14px; color: rgba(255, 255, 255, .75); }

/* ---------- Sectores ---------- */
.sectors { background: var(--orange); color: var(--blue-darker); }
.sectors__inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 16px 32px; padding-top: 22px; padding-bottom: 22px;
}
.sectors p { margin: 0; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; }
.sectors ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 36px; }
.sectors li { display: flex; align-items: center; gap: 10px; font: 700 20px/1 var(--font-display); text-transform: uppercase; }
.sectors svg { width: 26px; height: 26px; }

/* ---------- Nosotros ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.about__media { position: relative; }
.about__media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.about__media::before {
  content: "";
  position: absolute;
  inset: -18px auto auto -18px;
  width: 55%; height: 55%;
  border: 4px solid var(--orange);
  border-radius: var(--radius);
  z-index: -1;
}
.about__badge {
  position: absolute; right: -20px; bottom: 30px;
  background: var(--blue); color: #fff;
  padding: 20px 26px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.about__badge strong { display: block; font: 800 34px/1 var(--font-display); color: var(--orange); }
.about__badge span { font-size: 14px; }
.about__text > p { color: var(--muted); font-size: 17px; }
.about__text strong { color: var(--ink); }

.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.mv__card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 26px;
  border-left: 4px solid var(--orange);
  transition: transform .25s, box-shadow .25s;
}
.mv__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mv__icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--blue); color: #fff; margin-bottom: 14px;
}
.mv__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.mv__card h3 { font: 700 24px/1 var(--font-display); text-transform: uppercase; color: var(--blue-dark); }
.mv__card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Servicios ---------- */
.services { background: var(--bg-soft); }
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(7, 47, 77, .06);
  transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card__img img { transform: scale(1.08); }
.card__body { position: relative; padding: 26px 22px 24px; flex: 1; border-top: 3px solid var(--orange); }
.card__num {
  position: absolute; top: -22px; right: 18px;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue); color: #fff;
  font: 700 17px/1 var(--font-display);
  box-shadow: 0 6px 14px rgba(7, 47, 77, .3);
}
.card h3 { font: 700 22px/1.1 var(--font-display); text-transform: uppercase; color: var(--blue-dark); }
.card p { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- Por qué elegirnos ---------- */
.why {
  background:
    radial-gradient(circle at 85% 20%, rgba(243, 154, 30, .18), transparent 40%),
    linear-gradient(135deg, var(--blue-darker), var(--blue));
  color: #fff;
}
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why__item {
  padding: 32px 26px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  transition: background .3s, transform .3s;
}
.why__item:hover { background: rgba(255, 255, 255, .12); transform: translateY(-4px); }
.why__item svg {
  width: 44px; height: 44px; margin-bottom: 18px;
  fill: none; stroke: var(--orange); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.why__item h3 { font: 700 22px/1.1 var(--font-display); text-transform: uppercase; }
.why__item p { margin: 0; color: rgba(255, 255, 255, .75); font-size: 15px; }

/* ---------- Proceso ---------- */
.process__steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  counter-reset: step;
  position: relative;
}
.step { position: relative; text-align: center; }
.step__img {
  aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  max-width: 210px; margin: 0 auto 0;
  border: 6px solid #fff; box-shadow: var(--shadow);
}
.step__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.step:hover .step__img img { transform: scale(1.1); }
.step__n {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  margin: -24px auto 16px; position: relative;
  background: var(--orange); color: #fff;
  font: 800 22px/1 var(--font-display);
  border: 4px solid #fff;
}
.step h3 { font: 700 24px/1 var(--font-display); text-transform: uppercase; color: var(--blue-dark); }
.step p { color: var(--muted); font-size: 15px; max-width: 260px; margin: 0 auto; }
.process__steps::before {
  content: "";
  position: absolute;
  top: 105px; left: 12.5%; right: 12.5%;
  border-top: 2px dashed #c8d3de;
  z-index: -1;
}

/* ---------- Galería ---------- */
.gallery { background: var(--bg-soft); }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
  gap: 14px;
}
.gallery__item {
  position: relative; overflow: hidden; border-radius: 12px;
  cursor: zoom-in; border: 0; padding: 0; background: var(--line);
}
.gallery__item:nth-child(6n + 1) { grid-row: span 2; }
.gallery__item:nth-child(6n + 4) { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery__item::after {
  content: "+";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font: 300 54px/1 var(--font);
  color: #fff;
  background: rgba(7, 47, 77, .55);
  opacity: 0; transition: opacity .3s;
}
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item:hover::after,
.gallery__item:focus-visible::after { opacity: 1; }
.gallery__more { text-align: center; margin-top: 40px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(4, 18, 30, .94);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 70px;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox button {
  position: absolute; border: 0; background: rgba(255, 255, 255, .1); color: #fff;
  width: 52px; height: 52px; border-radius: 50%; font-size: 34px; line-height: 1; cursor: pointer;
  transition: background .2s;
}
.lightbox button:hover { background: var(--orange); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(90deg, var(--orange), #f7b04a);
  color: var(--blue-darker);
  padding: 56px 0;
}
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta h2 { font: 800 clamp(28px, 4vw, 40px)/1.05 var(--font-display); text-transform: uppercase; }
.cta p { margin: 0; font-size: 17px; }
.cta__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Contacto ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact__info > p { color: var(--muted); font-size: 17px; }
.contact__list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 20px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__list strong { display: block; color: var(--blue-dark); }
.contact__list span { color: var(--muted); font-size: 15px; }
.contact__list a:hover { color: var(--orange-dark); }
.contact__icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(243, 154, 30, .14); color: var(--orange-dark);
}
.contact__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 260px; }
.map iframe { width: 100%; height: 100%; border: 0; }

.form {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--orange);
  display: grid; gap: 18px;
}
.form h3 { font: 700 30px/1 var(--font-display); text-transform: uppercase; color: var(--blue-dark); margin-bottom: 4px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 6px; }
.form label span { font-size: 14px; font-weight: 600; color: var(--blue-dark); }
.form input,
.form select,
.form textarea {
  width: 100%;
  font: 400 15px/1.4 var(--font);
  color: var(--ink);
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(243, 154, 30, .15);
}
.form .is-invalid { border-color: #d64545; }
.form__error { margin: 0; color: #d64545; font-size: 14px; min-height: 1em; }

/* ---------- Footer ---------- */
.footer { background: var(--blue-darker); color: rgba(255, 255, 255, .72); padding-top: 72px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer__logo { background: #fff; display: inline-block; padding: 10px 14px; border-radius: 10px; margin-bottom: 18px; }
.footer__logo img { height: 34px; width: auto; }
.footer h4 { color: #fff; font: 700 20px/1 var(--font-display); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--orange); }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .08);
  transition: background .2s, transform .2s;
}
.footer__social a:hover { background: var(--orange); transform: translateY(-3px); }
.footer__social img { width: 26px; height: 26px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; font-size: 14px; text-align: center; }

/* ---------- Flotantes ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 150;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 10px 25px rgba(37, 211, 102, .45);
  animation: pulse 2.4s infinite;
}
.wa-float svg { width: 32px; height: 32px; fill: currentColor; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.to-top {
  position: fixed; right: 30px; bottom: 96px; z-index: 150;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--blue); color: #fff; cursor: pointer;
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--orange); }
.to-top svg { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Animación al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .services__grid,
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .process__steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .process__steps::before { display: none; }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff;
    padding: 10px 20px 24px;
    box-shadow: 0 20px 30px rgba(7, 47, 77, .15);
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform .35s ease, visibility .35s;
    z-index: -1;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 16px; }

  .section { padding: 72px 0; }
  .about__grid,
  .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .about__media { max-width: 520px; margin: 0 auto; }
  .about__badge { right: 12px; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .header__logo img { height: 30px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__stats { gap: 18px 30px; }
  .hero__stats strong { font-size: 26px; }
  .sectors li { font-size: 17px; }
  .mv,
  .form__row,
  .services__grid,
  .why__grid,
  .process__steps { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery__item:nth-child(6n + 4) { grid-column: span 2; }
  .form { padding: 26px 20px; }
  .cta__actions { width: 100%; }
  .cta__actions .btn { flex: 1; }
  .footer__grid { grid-template-columns: 1fr; }
  .lightbox { padding: 70px 10px; }
  .lightbox__prev,
  .lightbox__next { top: auto; bottom: 14px; transform: none; }
  .lightbox__prev { left: calc(50% - 64px); }
  .lightbox__next { right: calc(50% - 64px); }
}
