/* ==========================================================================
   D&G Ingenieros Contratistas Generales SAC — Sistema de diseño
   Paleta: Negro #1A1A1A · Naranja #E67E22 · Blanco #FFFFFF
           Gris claro #F5F5F5 · Gris medio #D9D9D9 · Gris oscuro #4A4A4A
   ========================================================================== */

:root {
  --c-black: #1A1A1A;
  --c-black-soft: #242424;
  --c-orange: #E67E22;
  --c-orange-dark: #C8691A;
  --c-orange-light: #F2A25C;
  --c-white: #FFFFFF;
  --c-gray-50: #F5F5F5;
  --c-gray-200: #D9D9D9;
  --c-gray-600: #4A4A4A;
  --c-gray-700: #333333;

  --font-head: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;

  --container-w: 1200px;
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;

  --shadow-sm: 0 1px 3px rgba(26,26,26,.08);
  --shadow-md: 0 8px 24px rgba(26,26,26,.10);
  --shadow-lg: 0 20px 48px rgba(26,26,26,.16);

  --header-h: 84px;
  --topbar-h: 40px;
  --ease: cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-gray-700);
  background: var(--c-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--c-black); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--c-orange); color: var(--c-white); padding: 12px 20px;
  font-weight: 600; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--c-orange); outline-offset: 2px; }

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

.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; flex-shrink: 0; }

/* ---------- Topbar ---------- */
.topbar { background: var(--c-black); color: var(--c-gray-200); font-size: .82rem; height: var(--topbar-h); }
.topbar__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar__contact { display: flex; align-items: center; gap: 22px; }
.topbar__contact a, .topbar__contact span { display: inline-flex; align-items: center; gap: 6px; color: var(--c-gray-200); }
.topbar__contact a:hover { color: var(--c-orange); }
.topbar__contact .icon { font-size: 1rem; color: var(--c-orange); }
.topbar__social { display: flex; align-items: center; gap: 14px; }
.topbar__social a { color: var(--c-gray-200); display: inline-flex; }
.topbar__social a:hover { color: var(--c-orange); }
.topbar__hide-sm { display: inline-flex; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 500; background: var(--c-white);
  box-shadow: var(--shadow-sm); height: var(--header-h);
}
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.site-header__logo img { height: 38px; width: auto; flex-shrink: 0; }
.main-nav__list { display: flex; align-items: center; gap: 0; flex-wrap: nowrap; }
.main-nav__list a {
  display: inline-block; padding: 10px 10px; font-weight: 600; font-size: .84rem;
  color: var(--c-black); border-bottom: 2px solid transparent; transition: color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.main-nav__list a:hover, .main-nav__list a.is-active { color: var(--c-orange); border-bottom-color: var(--c-orange); }
.site-header__actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; background: none; border: 1px solid var(--c-gray-200); border-radius: var(--radius-sm);
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--c-black); margin: 0 auto; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 28px; font-weight: 700; font-size: .95rem; border-radius: var(--radius-sm);
  border: 2px solid transparent; transition: all .22s var(--ease); white-space: nowrap;
  letter-spacing: .2px;
}
.btn .icon { font-size: 1.1em; }
.btn--primary { background: var(--c-black); color: var(--c-white); }
.btn--primary:hover { background: var(--c-orange); }
.btn--accent { background: var(--c-orange); color: var(--c-white); }
.btn--accent:hover { background: var(--c-white); color: var(--c-black); }
.btn--outline { background: transparent; color: var(--c-black); border-color: var(--c-black); }
.btn--outline:hover { background: var(--c-black); color: var(--c-white); }
.btn--ghost-light { background: transparent; color: var(--c-white); border-color: rgba(255,255,255,.5); }
.btn--ghost-light:hover { border-color: var(--c-white); background: rgba(255,255,255,.08); }
.btn--sm { padding: 10px 18px; font-size: .85rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

.link-arrow { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--c-orange); }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Section basics ---------- */
section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--dark { background: var(--c-black); color: var(--c-gray-200); }
.section--dark h2, .section--dark h3 { color: var(--c-white); }
.section--gray { background: var(--c-gray-50); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase;
  letter-spacing: 2px; font-size: .78rem; font-weight: 700; color: var(--c-orange); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--c-orange); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-head p { color: var(--c-gray-600); font-size: 1.05rem; }
.section--dark .section-head p { color: var(--c-gray-200); }

/* ---------- Breadcrumb / page hero (interior pages) ---------- */
.page-hero {
  position: relative; background: var(--c-black); color: var(--c-white);
  padding: 76px 0 60px; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; opacity: .28; background-size: cover; background-position: center;
}
.page-hero__overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(26,26,26,.97) 30%, rgba(26,26,26,.75)); }
.page-hero__content { position: relative; z-index: 2; }
.page-hero h1 { color: var(--c-white); font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 12px; }
.page-hero p { color: var(--c-gray-200); max-width: 640px; font-size: 1.05rem; margin-bottom: 0; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: var(--c-gray-200); margin-bottom: 18px; }
.breadcrumb a { color: var(--c-gray-200); }
.breadcrumb a:hover { color: var(--c-orange); }
.breadcrumb span[aria-hidden] { color: var(--c-orange); }
.breadcrumb .current { color: var(--c-orange); font-weight: 600; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center; color: var(--c-white);
  background: var(--c-black); overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .55; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(15,15,15,.97) 20%, rgba(20,20,20,.72) 60%, rgba(26,26,26,.55)); }
.hero__accent-line { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(var(--c-orange), var(--c-orange-dark)); }
.hero__content { position: relative; z-index: 2; max-width: 760px; padding: 140px 0 90px; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; background: rgba(230,126,34,.15); border: 1px solid rgba(230,126,34,.4); color: var(--c-orange-light); padding: 8px 16px; border-radius: 30px; font-size: .8rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 26px; }
.hero h1 { color: var(--c-white); font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.12; margin-bottom: 22px; }
.hero h1 em { color: var(--c-orange); font-style: normal; }
.hero p.lead { font-size: 1.15rem; color: var(--c-gray-200); max-width: 600px; margin-bottom: 36px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.hero__badges { display: flex; gap: 34px; flex-wrap: wrap; }
.hero__badge { display: flex; align-items: center; gap: 10px; }
.hero__badge .icon { font-size: 1.6rem; color: var(--c-orange); }
.hero__badge strong { display: block; font-family: var(--font-head); font-size: 1rem; color: var(--c-white); }
.hero__badge span { font-size: .8rem; color: var(--c-gray-200); }
.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; color: var(--c-gray-200); display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .72rem; letter-spacing: 1px; text-transform: uppercase; animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* ---------- Stats ---------- */
.stats-band { background: var(--c-black); color: var(--c-white); padding: 56px 0; position: relative; }
.stats-band::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background: linear-gradient(90deg, var(--c-orange), transparent 70%); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.1rem, 4vw, 3rem); color: var(--c-orange); line-height: 1; }
.stat__num::after { content: attr(data-suffix); }
.stat__label { margin-top: 10px; font-size: .88rem; color: var(--c-gray-200); text-transform: uppercase; letter-spacing: .8px; }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 28px; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }

.service-card {
  background: var(--c-white); border: 1px solid var(--c-gray-200); border-radius: var(--radius-lg);
  padding: 34px 28px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  position: relative; overflow: hidden;
}
.service-card::before { content:''; position:absolute; left:0; top:0; bottom:0; width:4px; background: var(--c-orange); transform: scaleY(0); transform-origin: bottom; transition: transform .3s var(--ease); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card:hover::before { transform: scaleY(1); }
.service-card__icon { width: 58px; height: 58px; border-radius: var(--radius-md); background: var(--c-black); color: var(--c-orange); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 22px; }
.service-card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.service-card p { color: var(--c-gray-600); font-size: .95rem; margin-bottom: 16px; }
.service-card ul { display: grid; gap: 8px; margin-bottom: 18px; }
.service-card ul li { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; color: var(--c-gray-600); }
.service-card ul .icon { color: var(--c-orange); flex-shrink: 0; margin-top: 3px; font-size: .9rem; }

.info-card { background: var(--c-gray-50); border-radius: var(--radius-lg); padding: 30px; border: 1px solid var(--c-gray-200); }
.info-card h3 { font-size: 1.1rem; }

/* Value / feature cards with number */
.feature {
  display: flex; gap: 18px; align-items: flex-start; padding: 26px 0; border-bottom: 1px solid var(--c-gray-200);
}
.feature:last-child { border-bottom: none; }
.feature__icon { width: 50px; height: 50px; border-radius: 50%; background: var(--c-gray-50); border: 1px solid var(--c-gray-200); color: var(--c-orange); display: flex; align-items: center; justify-content: center; font-size: 1.35rem; flex-shrink: 0; }
.feature h4 { margin-bottom: 6px; font-size: 1.05rem; }
.feature p { color: var(--c-gray-600); font-size: .92rem; margin: 0; }

/* Timeline (historia) */
.timeline { position: relative; padding-left: 40px; border-left: 2px solid var(--c-gray-200); display: grid; gap: 40px; }
.timeline__item { position: relative; }
.timeline__item::before { content: ''; position: absolute; left: -49px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--c-orange); border: 3px solid var(--c-white); box-shadow: 0 0 0 2px var(--c-orange); }
.timeline__year { display: inline-block; font-family: var(--font-head); font-weight: 800; color: var(--c-orange); font-size: 1.1rem; margin-bottom: 6px; }
.timeline__item h4 { margin-bottom: 6px; }
.timeline__item p { color: var(--c-gray-600); margin: 0; }

/* Values grid */
.value-card { text-align: center; padding: 34px 20px; }
.value-card .icon-badge { width: 68px; height: 68px; border-radius: 50%; background: var(--c-black); color: var(--c-orange); display: flex; align-items: center; justify-content: center; font-size: 1.9rem; margin: 0 auto 18px; }

/* Team */
.team-card { text-align: center; }
.team-card__photo { width: 100%; aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 18px; background: var(--c-gray-200) center/cover; position: relative; }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 1.05rem; margin-bottom: 2px; }
.team-card span { color: var(--c-orange); font-weight: 600; font-size: .86rem; }

/* ---------- Split section (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.split__media-badge {
  position: absolute; bottom: -1px; right: -1px; background: var(--c-orange); color: var(--c-white);
  padding: 22px 26px; border-top-left-radius: var(--radius-lg);
}
.split__media-badge strong { display: block; font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; }
.split__media-badge span { font-size: .78rem; text-transform: uppercase; letter-spacing: .6px; }
.split ul.check-list { display: grid; gap: 12px; margin: 22px 0; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--c-orange); margin-top: 4px; flex-shrink: 0; }

/* ---------- Process steps ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.process-step { position: relative; padding: 0 24px; }
.process-step:not(:last-child)::after {
  content: ''; position: absolute; top: 30px; left: calc(50% + 40px); right: -50%; height: 2px; background: var(--c-gray-200);
}
.process-step__num { width: 62px; height: 62px; border-radius: 50%; background: var(--c-black); color: var(--c-orange); font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; position: relative; z-index: 2; }
.process-step { text-align: center; }
.process-step h4 { font-size: 1.02rem; }
.process-step p { font-size: .88rem; color: var(--c-gray-600); }

/* ---------- Projects ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.filter-btn {
  padding: 10px 20px; border-radius: 30px; border: 1px solid var(--c-gray-200); background: var(--c-white);
  font-weight: 600; font-size: .86rem; color: var(--c-gray-600); transition: all .2s var(--ease);
}
.filter-btn:hover { border-color: var(--c-orange); color: var(--c-orange); }
.filter-btn.is-active { background: var(--c-black); color: var(--c-white); border-color: var(--c-black); }

.project-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--c-white); border: 1px solid var(--c-gray-200); transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.project-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.project-card__img { aspect-ratio: 16/11; position: relative; overflow: hidden; }
.project-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.project-card:hover .project-card__img img { transform: scale(1.06); }
.project-card__tag { position: absolute; top: 14px; left: 14px; background: var(--c-orange); color: var(--c-white); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; padding: 6px 12px; border-radius: 30px; z-index: 2; }
.project-card__body { padding: 24px; }
.project-card__meta { display: flex; gap: 14px; font-size: .8rem; color: var(--c-gray-600); margin-bottom: 10px; flex-wrap: wrap; }
.project-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.project-card__meta .icon { color: var(--c-orange); }
.project-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.project-card p { font-size: .9rem; color: var(--c-gray-600); margin-bottom: 0; }

.project-card__gallery-hint {
  position: absolute; bottom: 14px; right: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(26,26,26,.78); color: var(--c-white);
  font-size: .74rem; font-weight: 600; padding: 6px 12px; border-radius: 30px;
  opacity: 0; transform: translateY(6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.project-card:hover .project-card__gallery-hint { opacity: 1; transform: translateY(0); }
.project-card__gallery-hint svg { width: 14px; height: 14px; }

/* ---------- Sectors ---------- */
.sector-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; color: var(--c-white);
  display: flex; align-items: flex-end; padding: 26px; background-size: cover; background-position: center;
}
.sector-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,26,26,.1), rgba(26,26,26,.92)); }
.sector-card__body { position: relative; z-index: 2; }
.sector-card .icon-badge { width: 50px; height: 50px; border-radius: 50%; background: var(--c-orange); color: var(--c-white); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 14px; }
.sector-card h3 { color: var(--c-white); font-size: 1.15rem; margin-bottom: 6px; }
.sector-card p { color: var(--c-gray-200); font-size: .85rem; margin: 0; }

/* ---------- Clients ---------- */
.logo-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--c-gray-200); border: 1px solid var(--c-gray-200); border-radius: var(--radius-md); overflow: hidden; }
.logo-strip__item { background: var(--c-white); display: flex; align-items: center; justify-content: center; padding: 30px 18px; min-height: 110px; }
.logo-strip__item .brand-badge { font-family: var(--font-head); font-weight: 800; color: var(--c-gray-600); font-size: 1rem; text-align: center; letter-spacing: .4px; opacity: .8; transition: opacity .2s, color .2s; }
.logo-strip__item:hover .brand-badge { opacity: 1; color: var(--c-black); }

.testimonial-card { background: var(--c-white); border: 1px solid var(--c-gray-200); border-radius: var(--radius-lg); padding: 34px; position: relative; }
.testimonial-card .icon { color: var(--c-orange); font-size: 2.2rem; margin-bottom: 14px; }
.testimonial-card p.quote-text { font-size: 1rem; color: var(--c-gray-700); font-style: italic; margin-bottom: 22px; }
.testimonial-card__author { display: flex; align-items: center; gap: 14px; }
.testimonial-card__avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--c-black); color: var(--c-orange); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; }
.testimonial-card__author strong { display: block; font-size: .92rem; color: var(--c-black); }
.testimonial-card__author span { font-size: .8rem; color: var(--c-gray-600); }
.testimonial-card__stars { display: flex; gap: 3px; color: var(--c-orange); margin-bottom: 14px; }
.testimonial-card__stars .icon { font-size: .95rem; margin: 0; }

/* ---------- Certifications ---------- */
.cert-card { text-align: center; background: var(--c-white); border: 1px solid var(--c-gray-200); border-radius: var(--radius-lg); padding: 40px 26px; }
.cert-card .icon-badge { width: 74px; height: 74px; margin: 0 auto 20px; border-radius: 50%; background: var(--c-gray-50); border: 2px solid var(--c-orange); color: var(--c-orange); display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.cert-card h3 { font-size: 1.05rem; }
.cert-card p { color: var(--c-gray-600); font-size: .88rem; }

/* ---------- Blog ---------- */
.blog-card { background: var(--c-white); border: 1px solid var(--c-gray-200); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .25s var(--ease), transform .25s var(--ease); display: flex; flex-direction: column; }
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.blog-card__img { aspect-ratio: 16/10; overflow: hidden; }
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.blog-card:hover .blog-card__img img { transform: scale(1.05); }
.blog-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.blog-card__cat { color: var(--c-orange); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 10px; }
.blog-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.blog-card h3 a { color: inherit; }
.blog-card h3 a:hover { color: var(--c-orange); }
.blog-card p { font-size: .9rem; color: var(--c-gray-600); flex: 1; }
.blog-card__meta { display: flex; align-items: center; gap: 14px; font-size: .78rem; color: var(--c-gray-600); margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--c-gray-200); }
.blog-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.blog-card__meta .icon { color: var(--c-orange); }

.article-header { max-width: 780px; margin: 0 auto; }
.article-body { max-width: 780px; margin: 0 auto; }
.article-body h2 { font-size: 1.5rem; margin-top: 1.6em; }
.article-body p { color: var(--c-gray-700); font-size: 1.03rem; }
.article-body ul { margin: 0 0 1.4em; display: grid; gap: 10px; }
.article-body ul li { position: relative; padding-left: 20px; color: var(--c-gray-700); }
.article-body ul li::before { content: ''; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 2px; background: var(--c-orange); }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; margin: 30px auto 46px; max-width: 900px; box-shadow: var(--shadow-md); }
.article-meta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; color: var(--c-gray-600); font-size: .88rem; margin: 20px 0 0; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta .icon { color: var(--c-orange); }
.article-author { display: flex; align-items: center; gap: 12px; margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--c-gray-200); max-width: 780px; margin-left: auto; margin-right: auto; }
.article-author__avatar { width: 54px; height: 54px; border-radius: 50%; background: var(--c-black); color: var(--c-orange); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; flex-shrink: 0; }

/* ---------- Forms ---------- */
.form-card { background: var(--c-white); border: 1px solid var(--c-gray-200); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; gap: 22px; margin-bottom: 22px; }
.form-row--2 { grid-template-columns: 1fr 1fr; }
.form-row--3 { grid-template-columns: 1fr 1fr 1fr; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-weight: 700; font-size: .88rem; color: var(--c-black); }
.form-group .required { color: var(--c-orange); }
.form-group input, .form-group select, .form-group textarea {
  padding: 13px 16px; border: 1px solid var(--c-gray-200); border-radius: var(--radius-sm);
  background: var(--c-gray-50); color: var(--c-gray-700); transition: border-color .2s, background .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--c-orange); background: var(--c-white);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-hint { font-size: .78rem; color: var(--c-gray-600); }
.form-check { display: flex; align-items: flex-start; gap: 10px; font-size: .86rem; color: var(--c-gray-600); }
.form-check input { margin-top: 3px; }
.honeypot-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.alert { padding: 18px 22px; border-radius: var(--radius-md); font-size: .93rem; margin-bottom: 28px; display: flex; gap: 12px; align-items: flex-start; }
.alert--success { background: #EFF7F0; border: 1px solid #B9DDBE; color: #2B5F35; }
.alert--error { background: #FBEEEA; border: 1px solid #E9C3B4; color: #8A3A1E; }
.alert .icon { flex-shrink: 0; margin-top: 2px; font-size: 1.2rem; }

/* Contact info side cards */
.contact-info-card { display: flex; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--c-gray-200); }
.contact-info-card:last-child { border-bottom: none; }
.contact-info-card .icon-badge { width: 50px; height: 50px; border-radius: 50%; background: var(--c-black); color: var(--c-orange); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.contact-info-card h4 { margin-bottom: 4px; font-size: 1rem; }
.contact-info-card p { margin: 0; color: var(--c-gray-600); font-size: .92rem; }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--c-gray-200); aspect-ratio: 16/10; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* Quote page: steps sidebar */
.quote-benefits { background: var(--c-black); color: var(--c-white); border-radius: var(--radius-lg); padding: 36px; position: sticky; top: calc(var(--header-h) + 24px); }
.quote-benefits h3 { color: var(--c-white); }
.quote-benefits ul { display: grid; gap: 18px; margin-top: 22px; }
.quote-benefits li { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--c-gray-200); }
.quote-benefits .icon { color: var(--c-orange); margin-top: 3px; flex-shrink: 0; }
.quote-benefits__divider { height: 1px; background: rgba(255,255,255,.15); margin: 26px 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--c-black), var(--c-black-soft)); position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(230,126,34,.25), transparent 70%); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 64px 24px; flex-wrap: wrap; }
.cta-band h2 { color: var(--c-white); font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 10px; }
.cta-band p { color: var(--c-gray-200); max-width: 520px; margin: 0; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-black); color: var(--c-gray-200); padding-top: 76px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.footer__col--brand img { height: 40px; margin-bottom: 18px; }
.footer__logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-white);
  border-radius: 999px;
  padding: 8px 10px;
  margin-bottom: 18px;
}
.footer__logo-badge img { height: 40px; margin-bottom: 0; display: block; }
.footer__col--brand p { font-size: .88rem; color: var(--c-gray-200); opacity: .85; }
.footer__social { display: flex; gap: 12px; margin-top: 20px; }
.footer__social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; transition: all .2s var(--ease); }
.footer__social a:hover { background: var(--c-orange); border-color: var(--c-orange); }
.footer__col h3 { color: var(--c-white); font-size: .95rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.footer__col ul { display: grid; gap: 12px; }
.footer__col ul a { font-size: .89rem; color: var(--c-gray-200); opacity: .85; }
.footer__col ul a:hover { color: var(--c-orange); opacity: 1; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; font-size: .87rem; opacity: .9; }
.footer__contact .icon { color: var(--c-orange); margin-top: 3px; flex-shrink: 0; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8rem; opacity: .75; }
.footer__bottom-inner a:hover { color: var(--c-orange); }

.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: var(--c-white); display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; box-shadow: var(--shadow-lg); z-index: 400; transition: transform .2s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.color-orange { color: var(--c-orange); }
.bg-black-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--c-black); color: var(--c-white); padding: 8px 16px; border-radius: 30px; font-size: .78rem; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.divider { height: 1px; background: var(--c-gray-200); margin: 60px 0; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 50px; }
.pagination a, .pagination span { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: 1px solid var(--c-gray-200); font-weight: 700; font-size: .88rem; color: var(--c-gray-600); }
.pagination a:hover { border-color: var(--c-orange); color: var(--c-orange); }
.pagination .is-active { background: var(--c-black); color: var(--c-white); border-color: var(--c-black); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .process-step:not(:last-child)::after { display: none; }
  .logo-strip { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1150px) {
  :root { --header-h: 72px; }
  .topbar__hide-sm { display: none; }
  .main-nav {
    position: fixed; top: calc(var(--topbar-h) + var(--header-h)); left: 0; right: 0; bottom: 0;
    background: var(--c-white); transform: translateX(100%); transition: transform .3s var(--ease);
    overflow-y: auto; padding: 10px 0; z-index: 400;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav__list { flex-direction: column; align-items: stretch; padding: 10px 24px; gap: 0; }
  .main-nav__list a { padding: 16px 4px; border-bottom: 1px solid var(--c-gray-200); }
  .nav-toggle { display: flex; }
  .site-header__actions .btn--primary { display: none; }
  .split, .split--reverse .split__media { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .quote-benefits { position: static; }
}

@media (max-width: 720px) {
  section { padding: 64px 0; }
  .card-grid--4, .card-grid--3, .card-grid--2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; padding-bottom: 30px; }
  .footer__bottom-inner { flex-direction: column; gap: 8px; }
  .form-row--2, .form-row--3 { grid-template-columns: 1fr; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .hero__content { padding: 120px 0 70px; }
  .hero__badges { gap: 22px; }
  .logo-strip { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr; }
  .form-card { padding: 26px; }
  .article-cover { margin: 24px auto 30px; }
}

/* ==========================================================================
   Galería de proyectos (lightbox)
   ========================================================================== */
.gallery-lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10,10,10,.94);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden; transform: scale(1.02);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility 0s linear .28s;
}
.gallery-lightbox.is-open {
  opacity: 1; visibility: visible; transform: scale(1);
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.gallery-lightbox__close {
  position: absolute; top: 18px; right: 22px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: var(--c-white);
  font-size: 1.8rem; line-height: 1; border: 1px solid rgba(255,255,255,.18);
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.gallery-lightbox__close:hover { background: var(--c-orange); border-color: var(--c-orange); transform: rotate(90deg); }
.gallery-lightbox__title {
  color: var(--c-white); font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.3rem); text-align: center; margin-bottom: 16px; max-width: 80vw;
}
.gallery-lightbox__stage {
  position: relative; width: 100%; max-width: 1100px; flex: 1;
  display: flex; align-items: center; justify-content: center; min-height: 0;
}
.gallery-lightbox__img {
  max-width: 100%; max-height: 62vh; object-fit: contain;
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  animation: gallery-fade .25s var(--ease);
}
@keyframes gallery-fade { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: scale(1); } }
.gallery-lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: var(--c-white); font-size: 1.8rem; line-height: 1;
  border: 1px solid rgba(255,255,255,.2); z-index: 3;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.gallery-lightbox__nav:hover { background: var(--c-orange); border-color: var(--c-orange); }
.gallery-lightbox__nav--prev { left: -4px; }
.gallery-lightbox__nav--next { right: -4px; }
@media (min-width: 700px) {
  .gallery-lightbox__nav--prev { left: -56px; }
  .gallery-lightbox__nav--next { right: -56px; }
}
.gallery-lightbox__counter { color: var(--c-gray-200); font-size: .85rem; margin: 14px 0 10px; font-weight: 600; letter-spacing: .04em; }
.gallery-lightbox__strip {
  display: flex; gap: 8px; overflow-x: auto; max-width: 100%; padding: 4px 2px 10px;
  scrollbar-width: thin;
}
.gallery-lightbox__strip::-webkit-scrollbar { height: 6px; }
.gallery-lightbox__strip::-webkit-scrollbar-thumb { background: rgba(255,255,255,.25); border-radius: 4px; }
.gallery-lightbox__thumb {
  width: 64px; height: 64px; object-fit: cover; border-radius: 6px; flex-shrink: 0;
  opacity: .5; cursor: pointer; border: 2px solid transparent;
  transition: opacity .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.gallery-lightbox__thumb:hover { opacity: .85; transform: translateY(-2px); }
.gallery-lightbox__thumb.is-active { opacity: 1; border-color: var(--c-orange); }

/* ==========================================================================
   Animaciones y detalles adicionales
   ========================================================================== */
.card-grid .reveal:nth-child(1) { transition-delay: .03s; }
.card-grid .reveal:nth-child(2) { transition-delay: .09s; }
.card-grid .reveal:nth-child(3) { transition-delay: .15s; }
.card-grid .reveal:nth-child(4) { transition-delay: .21s; }
.card-grid .reveal:nth-child(5) { transition-delay: .27s; }
.card-grid .reveal:nth-child(6) { transition-delay: .33s; }
.card-grid .reveal:nth-child(7) { transition-delay: .39s; }
.card-grid .reveal:nth-child(8) { transition-delay: .45s; }

.btn { position: relative; overflow: hidden; }
.btn--accent, .btn--primary {
  background-size: 200% 100%; background-position: 0 0;
  transition: background-position .45s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn--accent { background-image: linear-gradient(90deg, var(--c-orange) 0%, var(--c-orange) 50%, var(--c-orange-dark) 50%, var(--c-orange-dark) 100%); }
.btn--accent:hover, .btn--primary:hover { background-position: -100% 0; transform: translateY(-2px); box-shadow: var(--shadow-md); }

.main-nav a { position: relative; }
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--c-orange);
  transition: width .25s var(--ease);
}
.main-nav a:hover::after, .main-nav a.is-active::after { width: 100%; }

.hero__badge { transition: transform .25s var(--ease); }
.hero__badge:hover { transform: translateY(-3px); }

.stat__num { transition: transform .3s var(--ease); }
.stat:hover .stat__num { transform: scale(1.06); }

.value-card, .info-card, .cert-card, .corner-box, .sector-card {
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.value-card:hover, .info-card:hover, .cert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-orange-light);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .gallery-lightbox, .gallery-lightbox__img, .btn, .main-nav a::after, .hero__badge, .stat__num,
  .value-card, .info-card, .cert-card { transition: none !important; animation: none !important; }
}
