/* ===== Grupo GIMSA — estilos ===== */
:root {
  --blue: #0f4fb8;          /* azul del logotipo */
  --blue-600: #0b3f95;
  --blue-900: #071a3d;
  --navy: #0a1426;
  --steel: #5b6b82;
  --ink: #111a2b;
  --text: #3b4658;
  --line: #e3e8f0;
  --bg: #ffffff;
  --bg-alt: #f3f6fa;
  --accent: #ffb020;        /* chispa de soldadura, uso puntual */
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 20, 38, .08);
  --container: 1200px;
  --font-head: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font: 400 16px/1.65 var(--font-body); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

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

.eyebrow { font: 600 .78rem/1 var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: 1rem; display: inline-flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow--light { color: #9cc0ff; }

/* ----- Botones ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 600 .95rem/1 var(--font-head); padding: 1rem 1.6rem; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: transform .2s, background .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-600); }
.btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--white { background: #fff; color: var(--blue); }
.btn--sm { padding: .7rem 1.2rem; font-size: .88rem; }
.btn--block { width: 100%; }

/* ----- Header ----- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.header__logo { display: block; height: 58px; }
.logo { height: 100%; width: auto; }
.logo--color { display: none; }
.header.is-solid { background: rgba(255,255,255,.96); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.header.is-solid .logo--color { display: block; }
.header.is-solid .logo--white { display: none; }
.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a:not(.btn) { color: #fff; font: 500 .93rem var(--font-body); opacity: .9; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: currentColor; transition: width .25s; }
.nav a:not(.btn):hover::after { width: 100%; }
.header.is-solid .nav a:not(.btn) { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }
.header.is-solid .nav-toggle span { background: var(--ink); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 84px 0 auto; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 24px 1.5rem; box-shadow: var(--shadow); transform: translateY(-120%); transition: transform .35s; }
  .nav a:not(.btn) { color: var(--ink); padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 1rem; }
  .nav.is-open { transform: none; }
  .header.menu-open { background: #fff; }
  .header.menu-open .logo--color { display: block; } .header.menu-open .logo--white { display: none; }
  .header.menu-open .nav-toggle span { background: var(--ink); }
}

/* ----- Hero ----- */
.hero { position: relative; min-height: clamp(640px, 100vh, 980px); min-height: clamp(640px, 100svh, 980px); display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; background: var(--navy); }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.06); animation: heroZoom 16s ease-out forwards; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(7,26,61,.94) 0%, rgba(7,26,61,.78) 45%, rgba(15,79,184,.35) 100%), linear-gradient(0deg, rgba(7,26,61,.9) 0%, transparent 45%); }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__content { position: relative; padding-top: 140px; padding-bottom: 60px; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; max-width: 16ch; }
.hero h1 span { color: #7fb0ff; }
.hero__lead { font-size: clamp(1.02rem, 1.4vw, 1.2rem); max-width: 58ch; color: rgba(255,255,255,.85); margin-bottom: 2rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__stats { position: relative; border-top: 1px solid rgba(255,255,255,.15); background: rgba(7,26,61,.55); backdrop-filter: blur(6px); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 1.6rem 1rem 1.6rem 0; }
.stat + .stat { padding-left: 1.5rem; border-left: 1px solid rgba(255,255,255,.12); }
.stat strong { display: block; font: 800 clamp(1.8rem, 3vw, 2.6rem)/1 var(--font-head); color: #fff; }
.stat span { font-size: .85rem; color: rgba(255,255,255,.7); }
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat, .stat + .stat { padding: 1.1rem .8rem; border-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid rgba(255,255,255,.12); }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
}

/* ----- Secciones ----- */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section--tight { padding: 3.5rem 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--navy); color: rgba(255,255,255,.78); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--blue { background: linear-gradient(135deg, var(--blue-900), var(--blue) 120%); color: rgba(255,255,255,.82); }
.section--blue h2, .section--blue h3 { color: #fff; }
.section__head { max-width: 720px; margin-bottom: 3rem; }
.section__head > p:last-child { font-size: 1.08rem; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.section__head--row h2 { max-width: 20ch; margin: 0; }

/* Nosotros */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split__media { position: relative; padding-bottom: 60px; }
.media-main { border-radius: var(--radius); aspect-ratio: 4/3.4; object-fit: cover; width: 88%; box-shadow: var(--shadow); }
.media-float { position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 6px solid #fff; box-shadow: var(--shadow); }
.badge-year { position: absolute; left: -12px; bottom: 20px; background: var(--blue); color: #fff; padding: 1rem 1.3rem; border-radius: 12px; box-shadow: var(--shadow); }
.badge-year strong { display: block; font: 800 1.9rem/1 var(--font-head); }
.badge-year span { font-size: .78rem; opacity: .85; }
.tabs { display: inline-flex; gap: .3rem; background: var(--bg-alt); padding: .3rem; border-radius: 999px; margin: 1rem 0 1.2rem; }
.tab { border: 0; background: none; font: 600 .9rem var(--font-head); padding: .6rem 1.3rem; border-radius: 999px; cursor: pointer; color: var(--steel); }
.tab.is-active { background: #fff; color: var(--blue); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.tab-panel { display: none; border-left: 3px solid var(--blue); padding-left: 1.2rem; }
.tab-panel.is-active { display: block; animation: fade .4s; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .badge-year { left: 8px; } }

/* Unidades de negocio */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(10,20,38,.14); }
.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.06); }
.card__body { padding: 1.5rem; }
.card__num { font: 800 .85rem var(--font-head); color: var(--blue); display: block; margin-bottom: .6rem; }
.card p { font-size: .94rem; margin: 0; }
@media (max-width: 1080px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* Capacidades */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.cap { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 400px; display: flex; align-items: flex-end; }
.cap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.cap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,20,38,.95) 10%, rgba(10,20,38,.1) 70%); }
.cap:hover img { transform: scale(1.05); }
.cap__body { position: relative; z-index: 1; padding: 1.6rem; }
.cap__body p { margin: 0; font-size: .95rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.5rem; }
.chips span { border: 1px solid rgba(255,255,255,.18); padding: .55rem 1rem; border-radius: 999px; font-size: .88rem; color: #fff; }
@media (max-width: 900px) { .caps { grid-template-columns: 1fr; } .cap { min-height: 300px; } }

/* Proceso */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: s; }
.step { position: relative; padding: 2rem 1.5rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.step__n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--blue); color: #fff; font: 800 1.1rem var(--font-head); margin-bottom: 1.2rem; }
.step:not(:last-child)::after { content: "→"; position: absolute; right: -1.05rem; top: 2.6rem; color: var(--blue); font-weight: 700; }
.step p { margin: 0; font-size: .94rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } .step::after { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Galería */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter { border: 1px solid var(--line); background: #fff; padding: .6rem 1.1rem; border-radius: 999px; font: 600 .86rem var(--font-head); color: var(--steel); cursor: pointer; }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 1rem; }
.g-item { position: relative; margin: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: #dde3ec; }
.g-item--wide { grid-column: span 2; }
.g-item--tall { grid-row: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.g-item figcaption { position: absolute; inset: auto 0 0; padding: 2.5rem 1rem .9rem; color: #fff; font-size: .86rem; font-weight: 500; background: linear-gradient(0deg, rgba(10,20,38,.85), transparent); opacity: 0; transform: translateY(8px); transition: .3s; }
.g-item:hover img { transform: scale(1.06); }
.g-item:hover figcaption { opacity: 1; transform: none; }
.g-item.is-hidden { display: none; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; } .g-item figcaption { opacity: 1; transform: none; } }

/* Clientes */
.clients__title { text-align: center; font: 600 .82rem var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--steel); margin-bottom: 2rem; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 4rem; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee img { height: 64px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .65; transition: .3s; mix-blend-mode: multiply; }
.marquee img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Inversionistas */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.pillar { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 1.8rem 1.5rem; }
.pillar h3 { font-size: 1.12rem; }
.pillar h3::before { content: ""; display: block; width: 32px; height: 3px; background: var(--accent); margin-bottom: 1.1rem; }
.pillar p { margin: 0; font-size: .94rem; }
.inv-cta { margin-top: 3rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.15); }
.inv-cta p { margin: 0; font-size: 1.1rem; color: #fff; }
@media (max-width: 1000px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }

/* Valores */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem 2rem; }
.value__icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: #e7effc; color: var(--blue); margin-bottom: 1rem; font-size: .9rem; }
.value p { margin: 0; font-size: .95rem; }
@media (max-width: 900px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

/* Talento */
.talent { position: relative; padding: 5rem 0; color: rgba(255,255,255,.85); overflow: hidden; }
.talent__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.talent__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,26,61,.95), rgba(15,79,184,.75)); }
.talent__inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.talent h2 { color: #fff; }
.talent p:last-child { max-width: 56ch; margin: 0; }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 1.5rem 0; }
.contact__list li { padding: .9rem 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.contact__list span { display: block; font: 600 .72rem var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--steel); margin-bottom: .2rem; }
.map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; background: var(--bg-alt); }
.map iframe { width: 100%; height: 100%; border: 0; }
.form { background: var(--bg-alt); border-radius: 18px; padding: clamp(1.5rem, 3vw, 2.4rem); display: grid; gap: 1rem; }
.form h3 { font-size: 1.5rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: .35rem; font: 600 .82rem var(--font-head); color: var(--ink); }
.form input, .form select, .form textarea { font: 400 1rem var(--font-body); padding: .85rem 1rem; border: 1px solid #d3dbe7; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
.form__note { font-size: .8rem; color: var(--steel); margin: 0; text-align: center; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: var(--navy); color: rgba(255,255,255,.65); padding: 4rem 0 1.5rem; font-size: .92rem; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand img { height: 70px; width: auto; margin-bottom: 1rem; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.footer__col a { display: block; color: rgba(255,255,255,.65); padding: .25rem 0; }
.footer__col a:hover { color: #fff; }
.footer__legal { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; font-size: .82rem; }
.footer__legal a { color: rgba(255,255,255,.65); }
@media (max-width: 800px) { .footer__inner { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5,10,20,.92); display: grid; place-items: center; padding: 2rem; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 80vh; max-width: 100%; border-radius: 10px; }
.lightbox__cap { color: #fff; margin-top: 1rem; text-align: center; }
.lightbox__close { position: absolute; top: 16px; right: 20px; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; }

/* Animaciones de entrada */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Formulario: estado y campo trampa */
.form__note.is-ok { color: #147a3d; font-weight: 600; }
.form__note.is-error { color: #b42318; font-weight: 600; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.contact__list b { font-weight: 400; }
