/* ════════════════════════════════════════════════
   JN SOLUCIONES INTEGRALES — CSS REDISEÑADO 2025
   Mobile-first · Secciones nuevas · UI mejorado
   ════════════════════════════════════════════════ */

/* ─── TOKENS ─── */
:root {
  --navy:          #09233f;
  --navy-deep:     #06182b;
  --navy-soft:     #12385e;
  --navy-mid:      #0d2d4e;
  --gold:          #d0a23d;
  --gold-light:    #f0c84a;
  --gold-pale:     #f6e8bd;
  --gold-dark:     #a07618;
  --cream:         #f7f5ef;
  --paper:         #ffffff;
  --ink:           #102234;
  --muted:         #607083;
  --muted-light:   #8a9db0;
  --line:          #dfe5ea;
  --line-soft:     #edf1f5;
  --whatsapp:      #20b95a;
  --whatsapp-dark: #159547;
  --success:       #0d9e50;
  --shadow-sm:     0 4px 16px rgba(8,35,63,.08);
  --shadow:        0 16px 44px rgba(8,35,63,.12);
  --shadow-lg:     0 28px 64px rgba(8,35,63,.18);
  --radius-sm:     10px;
  --radius:        16px;
  --radius-lg:     24px;
  --radius-xl:     32px;
  --transition:    .22s cubic-bezier(.4,0,.2,1);
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { text-wrap: balance; }
.keep-together { white-space: nowrap; }
ul { list-style: none; padding: 0; }
details { list-style: none; }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* ─── LAYOUT ─── */
.container {
  width: calc(100% - clamp(32px, 4vw, 64px));
  max-width: 1760px;
  margin-inline: auto;
}
.section { padding: 88px 0; }

/* ─── BUTTONS ─── */
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 14px 24px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button svg { width: 19px; height: 19px; flex-shrink: 0; }

.button-whatsapp {
  color: #fff;
  background: var(--whatsapp);
  box-shadow: 0 10px 28px rgba(32,185,90,.28);
}
.button-whatsapp:hover { background: var(--whatsapp-dark); box-shadow: 0 16px 36px rgba(32,185,90,.36); }

.button-primary { color: #fff; background: var(--navy); }
.button-primary:hover { background: var(--navy-soft); }

.button-gold { background: var(--gold); color: var(--navy-deep); font-weight: 900; }
.button-gold:hover { background: var(--gold-light); }

.button-outline {
  color: var(--navy);
  background: transparent;
  border: 2px solid var(--navy);
}
.button-outline:hover { background: var(--navy); color: #fff; }

.text-link {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font-weight: 700;
  color: white;
  transition: color var(--transition), gap var(--transition);
}
.text-link:hover { color: var(--gold-light); gap: 11px; }

/* ─── KICKER ─── */
.kicker {
  display: inline-block;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.kicker-light { color: var(--gold-light); }

/* ─── SECTION HEADING ─── */
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-end;
  margin-bottom: 48px;
}
.section-heading.centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 52px;
}
.section-heading h2,
.why-copy h2,
.consorcios h2,
.contact-copy h2 {
  color: var(--navy);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.14;
  letter-spacing: -.035em;
  margin-top: 4px;
}
.section-heading > p,
.section-heading.centered > p {
  max-width: 460px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 16px;
}

/* ════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid rgba(9,35,63,.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav-wrap {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
}
.brand img {
  width: 64px;
  height: 64px;
  border-radius: 0;
  object-fit: contain;
  flex-shrink: 0;
}
.brand span { display: grid; line-height: 1; }
.brand strong { color: var(--navy); font-size: 24px; letter-spacing: -.04em; }
.brand small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .09em; margin-top: 5px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 1.8vw, 34px);
  font-size: 15px;
  font-weight: 700;
  color: #32475b;
}
.nav-links > a:not(.nav-cta) { transition: color var(--transition); padding: 4px 0; }
.nav-links > a:not(.nav-cta):hover { color: var(--gold); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--whatsapp);
  color: white;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: background var(--transition), transform var(--transition);
}
.nav-cta:hover { background: var(--whatsapp-dark); transform: translateY(-1px); }
.nav-cta svg { width: 17px; }

.menu-button {
  display: none;
  color: var(--navy);
  background: transparent;
  border: 0;
  padding: 9px;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition);
}
.menu-button:hover { background: var(--line-soft); }
.menu-button svg { width: 24px; height: 24px; display: block; }

/* ════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  color: white;
  background: linear-gradient(118deg, var(--navy-deep) 0%, var(--navy) 55%, #0c3360 100%);
  padding: 80px 0 96px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .13;
  background-image:
    linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, transparent 10%, black 60%);
}
.hero-glow {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  right: 2%;
  top: -10%;
  background: rgba(208,162,61,.2);
  filter: blur(100px);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.eyebrow svg { width: 16px; }
.hero h1 {
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 1.02;
  letter-spacing: -.045em;
  margin: 0 0 20px;
}
.hero h1 span { color: var(--gold-light); }
.hero-copy > p {
  color: #d0dce8;
  font-size: 18px;
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c0d4e2;
  font-size: 13px;
  font-weight: 600;
}
.hero-badge svg { color: var(--gold-light); width: 15px; }

/* Hero visual: la pieza es horizontal (1200 × 492). Se respeta completa. */
.hero-visual {
  position: relative;
  min-width: 0;
  padding: 72px 0 68px;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 28px -22px;
  border: 1px solid rgba(240,200,74,.28);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.hero-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 20px;
  padding: 16px;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(255,255,255,.42);
  box-shadow: var(--shadow-lg);
  transform: none;
}
.hero-card img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 12px;
}
.floating-proof {
  position: absolute;
  z-index: 2;
  left: -12px;
  bottom: 20px;
  display: flex;
  gap: 11px;
  align-items: center;
  width: 240px;
  padding: 14px 16px;
  color: var(--ink);
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.floating-proof > svg { flex-shrink: 0; color: var(--gold); width: 28px; height: 28px; }
.floating-proof span { display: grid; gap: 3px; }
.floating-proof strong { color: var(--navy); font-size: 13px; display: block; }
.floating-proof span > span,
.floating-proof > span > :last-child { color: var(--muted); font-size: 11px; }

.floating-rating {
  position: absolute;
  z-index: 2;
  right: -12px;
  top: 34px;
  background: white;
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow);
  text-align: center;
}
.floating-rating .stars { color: #f5a623; font-size: 16px; letter-spacing: 1px; }
.floating-rating span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; margin-top: 3px; }

/* ════════════════════════════════════════════════
   TRUST BAR
   ════════════════════════════════════════════════ */
.trust-bar {
  background: white;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(9,35,63,.05);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust-item {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 25px 20px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  border-right: 1px solid var(--line);
  line-height: 1.45;
}
.trust-item:last-child { border-right: 0; }
.trust-item svg { color: var(--gold); width: 27px; height: 27px; flex-shrink: 0; stroke-width: 2; }

/* ════════════════════════════════════════════════
   SERVICIOS
   ════════════════════════════════════════════════ */
.services { background: var(--cream); }
.services .section-heading { margin-bottom: 54px; }
.services .section-heading > p {
  width: 100%;
  max-width: 680px;
  line-height: 1.6;
  margin-block: 8px 2px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card {
  padding: 28px;
  background: white;
  border: 1px solid #e6e2da;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(208,162,61,.5);
}
.service-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--gold-pale);
  border-radius: 12px;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.service-icon svg { width: 24px; }
.service-card h3 {
  color: var(--navy);
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 8px;
  flex-grow: 0;
}
.service-card p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
  flex-grow: 1;
  margin-bottom: 16px;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 800;
  transition: gap var(--transition);
  margin-top: auto;
}
.service-link:hover { gap: 10px; }
.service-link svg { width: 15px; }

.services-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}
.services-cta p { color: var(--muted); font-size: 15px; margin: 0; }

/* ════════════════════════════════════════════════
   POR QUÉ ELEGIRNOS
   ════════════════════════════════════════════════ */
.why { background: white; }
.why-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: center;
  gap: 80px;
}
.why-visual {
  position: relative;
  min-height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(145deg, #0a2a49, #102e4b);
  box-shadow: var(--shadow);
}
.why-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px);
  background-size: 36px 36px;
}
.blueprint {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 18px;
  color: white;
  text-align: center;
  font-weight: 800;
  font-size: 20px;
}
.blueprint svg { margin: auto; width: 110px; height: 110px; color: var(--gold-light); stroke-width: 1.3; }
.quality-card {
  position: absolute;
  bottom: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: white;
  color: var(--navy);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 700;
}
.quality-card svg { color: var(--gold); width: 20px; }

.why-copy h2 { margin-bottom: 16px; }
.why-copy > p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 28px;
}
.why-list {
  display: grid;
  gap: 14px;
  margin-bottom: 32px;
}
.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.55;
}
.why-list li svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  padding: 3px;
  margin-top: 2px;
  color: white;
  background: var(--gold);
  border-radius: 50%;
}
.why-list li span { font-size: 15px; color: var(--ink); }
.why-list li strong { color: var(--navy); }

/* ════════════════════════════════════════════════
   PROYECTOS REALIZADOS
   ════════════════════════════════════════════════ */
.projects { background: var(--cream); }

.projects-heading {
  align-items: flex-end;
  margin-bottom: 44px;
}

.projects-heading h2 {
  white-space: nowrap;
}

.projects-heading > p {
  max-width: 620px;
  line-height: 1.65;
  margin-bottom: 4px;
}

.projects-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 22px;
  margin-bottom: 44px;
}

.project-card {
  position: relative;
  overflow: hidden;
  background: white;
  border: 1px solid #e6e2da;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(208,162,61,.48);
  box-shadow: var(--shadow);
}

.project-featured {
  display: flex;
  flex-direction: column;
}

.project-featured-media {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(220px, .75fr);
  grid-template-rows: 500px;
  gap: 5px;
  padding: 5px;
  background: #eef1f3;
  flex: 0 0 auto;
}

.project-main-photo,
.project-thumbs img,
.project-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.project-main-photo { min-height: 0; }

.project-thumbs {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 5px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.projects-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-mini {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.project-photo {
  height: 205px;
  overflow: hidden;
  background: #e8ecef;
}

.project-photo-electric img { object-position: center 38%; }

.project-info {
  padding: 20px 22px 22px;
}

.project-featured .project-info {
  position: relative;
  z-index: 3;
  padding: 24px 26px 26px;
  background: #fff;
  border-top: 1px solid var(--line-soft);
}

.project-category {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-info h3 {
  color: var(--navy);
  font-size: 18px;
  line-height: 1.35;
  margin-bottom: 8px;
}

.project-featured .project-info h3 { font-size: 24px; }

.project-info p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 0;
}

.project-meta {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  color: var(--muted-light);
  font-size: 13px;
  font-weight: 700;
}

.project-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-meta svg {
  width: 15px;
  color: var(--gold);
}

.projects-cta { text-align: center; }

@media (max-width: 1100px) {
  .projects-heading { display: block; }
  .projects-heading h2 { white-space: normal; }
  .projects-heading > p { margin-top: 14px; }
  .projects-showcase { grid-template-columns: 1fr; }
  .project-featured-media { grid-template-rows: 480px; }
  .projects-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .projects-showcase { gap: 16px; }
  .project-featured-media {
    grid-template-columns: 1fr;
    grid-template-rows: 250px 90px;
  }
  .project-thumbs {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
  }
  .project-main-photo { min-height: 0; }
  .projects-mini-grid { grid-template-columns: 1fr; gap: 16px; }
  .project-photo { height: 230px; }
  .project-info,
  .project-featured .project-info { padding: 20px; }
  .project-featured .project-info h3 { font-size: 21px; }
}

/* ════════════════════════════════════════════════
   TESTIMONIOS
   ════════════════════════════════════════════════ */
.testimonials {
  padding: 88px 0;
  background: linear-gradient(118deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
  color: white;
}
.testimonials .section-heading h2 { color: white; }
.testimonials .kicker-light { color: var(--gold-light); }
.testimonial-heading {
  max-width: none !important;
  width: 100%;
  margin-bottom: 0 !important;
}
.testimonial-heading h2 {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(38px, 3vw, 52px);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 42px;
}
.testimonial-card {
  padding: 32px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background var(--transition), transform var(--transition);
}
.testimonial-card:hover { background: rgba(255,255,255,.11); transform: translateY(-3px); }
.featured-testimonial {
  background: rgba(208,162,61,.15);
  border-color: rgba(208,162,61,.35);
}
.testimonial-stars { color: var(--gold-light); font-size: 18px; letter-spacing: 2px; }
.testimonial-card blockquote {
  color: #eef4f8;
  font-size: 18px;
  line-height: 1.72;
  font-style: normal;
  font-weight: 400;
  flex-grow: 1;
  quotes: "\201C" "\201D";
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
  color: var(--navy-deep);
  flex-shrink: 0;
}
.author-1 { background: var(--gold-light); }
.author-2 { background: #7ecfff; }
.author-3 { background: #a8f0c8; }
.testimonial-author strong { display: block; color: white; font-size: 16px; }
.testimonial-author span { color: #b7c7d5; font-size: 13px; margin-top: 3px; display: block; }

/* ════════════════════════════════════════════════
   CONSORCIOS
   ════════════════════════════════════════════════ */
.consorcios {
  padding: 88px 0;
  color: white;
  background: linear-gradient(118deg, #051423 0%, #0a2540 100%);
}
.consorcios-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.consorcios h2 { color: white; margin-bottom: 16px; }
.consorcios-grid > div:first-child > p {
  color: #c2d2df;
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 28px;
}
.consorcios-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.consorcios-panel > div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.consorcios-panel > div:hover { background: rgba(255,255,255,.11); }
.consorcios-panel > div > svg { flex-shrink: 0; color: var(--gold-light); width: 22px; margin-top: 2px; }
.consorcios-panel span { display: grid; gap: 5px; }
.consorcios-panel strong { color: white; font-size: 14px; }
.consorcios-panel span > :last-child { color: #9db4c5; font-size: 13px; line-height: 1.5; }

/* ════════════════════════════════════════════════
   PROCESO
   ════════════════════════════════════════════════ */
.process { background: white; }

.process-heading {
  align-items: flex-end;
  margin-bottom: 52px;
}

.process-heading h2 {
  white-space: nowrap;
}

.process-heading > p {
  max-width: 560px;
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 5px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  position: relative;
  width: 100%;
  max-width: 1500px;
  margin-inline: auto;
}
.steps-grid::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--gold-pale);
  z-index: 0;
}
.step-card {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 18px 24px;
}
.step-number {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  color: var(--navy);
  background: var(--gold-light);
  border: 5px solid white;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 0 0 2px #e0c050;
}
.step-content > svg {
  width: 28px;
  height: 28px;
  color: var(--gold);
  margin: 0 auto 12px;
  display: block;
}
.step-card h3 {
  color: var(--navy);
  font-size: 19px;
  line-height: 1.35;
  margin-bottom: 8px;
}
.step-card p { color: var(--muted); font-size: 16px; line-height: 1.65; }

/* ════════════════════════════════════════════════
   FAQ
   ════════════════════════════════════════════════ */
.faq { background: var(--cream); }
.faq-wrap {
  width: calc(100% - clamp(32px, 4vw, 64px));
  max-width: 960px;
  margin-inline: auto;
}
.faq-list {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 850px;
  margin: 0 auto 32px;
}
.faq-item {
  background: white;
  border: 1px solid #e6e2da;
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item[open] {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(208,162,61,.1);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  transition: background var(--transition);
  user-select: none;
}
.faq-question:hover { background: var(--cream); }
.faq-question span { flex-grow: 1; }
.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--gold-dark);
  transition: transform var(--transition);
}
.faq-item[open] .faq-icon { transform: rotate(180deg); }
.faq-answer {
  padding: 0 22px 20px;
}
.faq-answer p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}
.faq-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  max-width: 850px;
  margin-inline: auto;
  padding: 24px 28px;
  background: var(--paper);
  border: 1px solid #e6e2da;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.faq-cta p {
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}
.faq-cta .button {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}
.faq-cta .button:hover {
  color: #fff;
  background: var(--navy-soft);
  border-color: var(--navy-soft);
}

/* ════════════════════════════════════════════════
   FORMULARIO
   ════════════════════════════════════════════════ */
.contact-section { padding: 88px 0; background: white; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(60px, 6vw, 120px);
  align-items: start;
}
.contact-copy h2 { margin-bottom: 14px; }
.contact-copy > p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
  margin-bottom: 24px;
}
.contact-features {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}
.contact-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.contact-feature svg { color: var(--success); width: 18px; flex-shrink: 0; }
.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--navy);
  margin-top: 4px;
}
.contact-phone > svg {
  width: 44px;
  height: 44px;
  padding: 11px;
  color: white;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}
.contact-phone span { display: grid; gap: 3px; }
.contact-phone strong,
.contact-phone span { font-size: 19px; font-weight: 900; color: var(--navy); }
.contact-phone small { color: var(--muted); font-size: 11px; font-weight: 700; }

.contact-form-wrap { position: sticky; top: 90px; }
.contact-form {
  display: grid;
  gap: 16px;
  padding: 32px;
  background: var(--cream);
  border: 1px solid #e6e2da;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  color: var(--ink);
  background: white;
  border: 1.5px solid #d5dde5;
  border-radius: var(--radius-sm);
  outline: none;
  padding: 13px 14px;
  font-size: 15px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(208,162,61,.18);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #b0bcca; }
.contact-form textarea { resize: vertical; min-height: 100px; }
.select-wrap { position: relative; display: block; }
.select-wrap select { appearance: none; padding-right: 40px; }
.select-wrap > svg {
  position: absolute;
  right: 13px;
  top: 50%;
  width: 17px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.submit-button { width: 100%; font-size: 16px; min-height: 56px; }
.form-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted-light);
  text-align: center;
  font-size: 12px;
  margin-top: -4px;
}
.form-note svg { width: 13px; }

/* ════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════ */
footer {
  padding: 60px 0 24px;
  color: #b8c8d8;
  background: #04111f;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr .8fr .9fr .8fr;
  gap: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-grid h3 {
  color: var(--gold-light);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin: 0 0 16px;
}
.footer-grid p { margin: 0; line-height: 1.65; font-size: 14px; }
.footer-grid > div:not(.footer-brand) > a {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  font-size: 14px;
  transition: color var(--transition);
}
.footer-grid > div:not(.footer-brand) > a:hover { color: white; }
.footer-grid > div:not(.footer-brand) > a svg { width: 15px; color: var(--gold); }
.footer-brand { display: flex; align-items: flex-start; gap: 14px; }
.footer-brand img { width: 64px; height: 64px; border-radius: 0; object-fit: contain; flex-shrink: 0; }
.footer-brand strong { display: block; color: white; font-size: 15px; margin-bottom: 6px; }
.footer-brand p { font-size: 13px; margin-bottom: 14px; }
.socials { display: flex; gap: 8px; }
.socials a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #7a8fa3;
  background: rgba(255,255,255,.07);
  border-radius: 50%;
  transition: background var(--transition), color var(--transition);
}
.socials a:hover { background: rgba(255,255,255,.15); color: white; }
.socials svg { width: 16px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  color: #5a6e80;
  font-size: 12px;
}

/* ─── FLOATING WHATSAPP ─── */
.floating-whatsapp {
  position: fixed;
  z-index: 200;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  color: white;
  background: var(--whatsapp);
  border-radius: 999px;
  box-shadow: 0 12px 36px rgba(14,94,47,.38);
  font-size: 14px;
  font-weight: 900;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.floating-whatsapp:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(14,94,47,.45);
}
.floating-whatsapp svg { width: 22px; height: 22px; }

/* ════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1024px)
   ════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .process-heading { display: block; }
  .process-heading h2 { white-space: normal; }
  .process-heading > p { margin-top: 14px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; max-width: 820px; }
  .hero-copy { max-width: 720px; }
  .hero-visual { width: min(100%, 760px); margin-inline: auto; padding: 50px 0 56px; }
  .hero-visual::before { inset: 16px -16px; }
  .why-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2; }
  .testimonials-grid { gap: 14px; }
}

/* ════════════════════════════════════════════════
   RESPONSIVE — MENU HAMBURGUESA (≤ 900px)
   ════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .testimonial-heading h2 { white-space: normal; }
  .menu-button { display: flex; align-items: center; }
  .nav-links {
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
    background: white;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(9,35,63,.1);
  }
  .nav-links.is-open { display: flex; }
  .nav-links > a:not(.nav-cta) { padding: 14px 8px; border-bottom: 1px solid var(--line-soft); }
  .nav-links > a:not(.nav-cta):last-of-type { border-bottom: 0; }
  .nav-cta { justify-content: center; margin-top: 10px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .why-visual { min-height: 400px; }
}

/* ════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 680px)
   ════════════════════════════════════════════════ */
@media (max-width: 680px) {
  .container { width: calc(100% - 28px); }
  .section { padding: 64px 0; }
  html { scroll-padding-top: 72px; }

  /* Header */
  .nav-wrap { min-height: 72px; }
  .brand img { width: 50px; height: 50px; }
  .brand strong { font-size: 20px; }
  .brand small { display: none; }
  .nav-links { top: 72px; }

  /* Hero */
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero h1 { font-size: clamp(36px, 11vw, 50px); }
  .hero-copy > p { font-size: 16px; }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .hero-actions .button { width: 100%; min-height: 56px; font-size: 16px; }
  .text-link { justify-content: center; }
  .hero-visual { width: 100%; padding: 26px 0 0; }
  .hero-visual::before { inset: 8px 0 44px; border-radius: 22px; }
  .hero-card { width: 100%; max-width: 580px; margin: auto; padding: 9px; border-radius: 16px; }
  .hero-card img { border-radius: 10px; }
  .floating-proof {
    position: relative;
    left: auto;
    bottom: auto;
    width: min(290px, calc(100% - 24px));
    margin: -2px auto 0;
  }
  .floating-rating { display: none; }

  /* Trust */
  .trust-item { font-size: 15px; min-height: 92px; }
  .trust-item svg { width: 24px; height: 24px; }

  /* Headings */
  .section-heading { display: block; }
  .section-heading > p { margin-top: 14px; }

  /* Servicios */
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 22px; }

  /* Why */
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-visual { min-height: 340px; order: 2; }
  .why-copy { order: 1; }
  .blueprint svg { width: 80px; height: 80px; }

  /* Projects */
  .projects-grid { grid-template-columns: 1fr; }

  /* Consorcios */
  .consorcios { padding: 64px 0; }
  .consorcios-grid { grid-template-columns: 1fr; gap: 36px; }
  .consorcios-panel { grid-template-columns: 1fr; }

  /* Steps */
  .steps-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .steps-grid::before { display: none; }

  /* Testimonials */
  .testimonials { padding: 64px 0; }

  /* FAQ */
  .faq-question { font-size: 15px; padding: 18px 18px; }
  .faq-answer { padding: 0 18px 18px; }
  .faq-cta { flex-direction: column; gap: 14px; padding: 22px 18px; text-align: center; }
  .faq-cta .button { width: 100%; }

  /* Form */
  .contact-section { padding: 64px 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .contact-form-wrap { position: static; }
  .contact-form { padding: 22px 18px; }
  .field-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 6px; }

  /* Floating WA */
  .floating-whatsapp span { display: none; }
  .floating-whatsapp { width: 50px; height: 50px; justify-content: center; padding: 0; right: 12px; bottom: 12px; }
  .floating-whatsapp svg { width: 20px; height: 20px; }
}

/* ════════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤ 420px)
   ════════════════════════════════════════════════ */
@media (max-width: 420px) {
  .nav-wrap { min-height: 70px; }
  .section-heading h2 { font-size: 28px; line-height: 1.18; }
  .section-heading > p { font-size: 15px; line-height: 1.65; }
  .button { white-space: normal; text-align: center; }
  .brand img { width: 48px; height: 48px; }
  .nav-links { top: 70px; }
  .hero h1 { font-size: 36px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item {
    justify-content: flex-start;
    padding-left: 22px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .trust-item:last-child { border-bottom: 0; }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .steps-grid { grid-template-columns: 1fr; gap: 8px; }
  .step-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-align: left;
    padding: 4px 0;
  }
  .step-number { flex-shrink: 0; margin: 0; }
  .step-content { flex-grow: 1; }
  .step-content > svg { display: none; }
  .step-card h3, .step-card p { margin: 0; }
  .step-card p { margin-top: 6px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

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

/* ─── DESKTOP AMPLIO ─── */
@media (min-width: 1280px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(620px, .98fr);
    gap: clamp(64px, 5vw, 96px);
  }
  .hero-copy { max-width: 860px; }
  .hero-copy > p { max-width: 720px; }
  .hero-card { padding: 22px; }
  body { font-size: 18px; }
  .nav-links { font-size: 16px; }
  .button { font-size: 17px; min-height: 56px; }
  .kicker { font-size: 14px; }
  .section-heading h2,
  .why-copy h2,
  .consorcios h2,
  .contact-copy h2 { font-size: clamp(42px, 3vw, 54px); }
  .section-heading > p,
  .section-heading.centered > p { font-size: 18px; max-width: 620px; }
  .trust-item { font-size: 17px; }
  .service-card h3 { font-size: 23px; }
  .service-card p { font-size: 17px; }
  .service-card a { font-size: 16px; }
  .why-copy > p,
  .consorcios-copy > p { font-size: 18px; }
  .why-list li span { font-size: 17px; }
  .project-info h3 { font-size: 21px; }
  .project-info p,
  .testimonial-card > p { font-size: 16px; }
  .faq-question { padding: 22px 24px; font-size: 17px; }
  .faq-answer { padding: 0 24px 22px; }
  .faq-answer p,
  .faq-cta p { font-size: 17px; }
  .contact-copy > p { font-size: 18px; max-width: 720px; }
  .contact-feature { font-size: 16px; }
  .contact-phone span { font-size: 22px; }
  .contact-phone small { font-size: 13px; }
  .contact-form { padding: 38px; gap: 20px; }
  .contact-form label { font-size: 15px; }
  .contact-form input,
  .contact-form select,
  .contact-form textarea { padding: 16px; font-size: 17px; }
  .submit-button { font-size: 17px; min-height: 60px; }
  .form-note { font-size: 13px; }
  .footer-grid h3 { font-size: 14px; }
  .footer-grid p,
  .footer-grid > div:not(.footer-brand) > a { font-size: 16px; }
}

/* ─── LARGE SCREENS (4K) ─── */
@media (min-width: 1600px) {
  .container {
    width: calc(100% - 80px);
    max-width: 1760px;
  }
  .hero h1 { font-size: 68px; }
}


/* ─── HERO DESKTOP TIPO BANNER ─── */
@media (min-width: 1200px) {
  .hero {
    padding: 0;
  }

  .hero .hero-grid {
    width: 100%;
    max-width: none;
    min-height: 480px;
    grid-template-columns: minmax(470px, 42%) minmax(0, 58%);
    gap: 0;
    align-items: stretch;
  }

  .hero-copy {
    position: relative;
    z-index: 3;
    align-self: center;
    max-width: 780px;
    padding: 64px clamp(44px, 4vw, 82px) 64px clamp(54px, 6vw, 120px);
  }

  .hero h1 {
    font-size: clamp(46px, 3.8vw, 64px);
  }

  .hero-copy > p {
    max-width: 650px;
  }

  .hero-visual {
    min-height: 480px;
    padding: 0;
    position: relative;
    overflow: hidden;
  }

  .hero-visual::before {
    content: "";
    display: block;
    position: absolute;
    z-index: 2;
    inset: 0 auto 0 0;
    width: 150px;
    border: 0;
    border-radius: 0;
    background: linear-gradient(90deg, var(--navy) 0%, rgba(9,35,63,.7) 35%, transparent 100%);
    box-shadow: none;
    pointer-events: none;
  }

  .hero-card {
    width: 100%;
    height: 100%;
    min-height: 480px;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: block;
    background: #fff;
  }

  .hero-card img {
    width: 100%;
    height: 100%;
    min-height: 480px;
    max-height: none;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
  }

  .floating-proof,
  .floating-rating {
    display: none;
  }
}


/* ─── FAQ EN DOS COLUMNAS ─── */
.faq-heading > p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  max-width: 440px;
  margin-top: 20px;
}

.faq-content {
  min-width: 0;
}

@media (min-width: 901px) {
  .faq-wrap {
    width: calc(100% - clamp(48px, 6vw, 112px));
    max-width: 1500px;
    display: grid;
    grid-template-columns: minmax(310px, .72fr) minmax(580px, 1.28fr);
    gap: clamp(64px, 7vw, 130px);
    align-items: start;
  }

  .faq-heading {
    display: block;
    text-align: left;
    margin: 0;
    padding-top: 8px;
  }

  .faq-heading h2 {
    max-width: 520px;
    margin: 0;
  }

  .faq-list,
  .faq-cta {
    max-width: none;
  }

  .faq-list {
    margin-bottom: 24px;
  }
}

@media (max-width: 900px) {
  .faq-heading {
    text-align: center;
  }

  .faq-heading > p {
    margin: 16px auto 32px;
  }
}


/* ════════════════════════════════════════════════
   AMPLIACIÓN COMERCIAL — SERVICIOS Y RESPALDO
   ════════════════════════════════════════════════ */
.service-card > p {
  flex-grow: 0;
  margin-bottom: 18px;
}

.service-details {
  margin: 0 0 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-details summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 800;
  user-select: none;
}

.service-details summary::-webkit-details-marker {
  display: none;
}

.service-details summary svg {
  width: 17px;
  height: 17px;
  color: var(--gold-dark);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.service-details[open] summary svg {
  transform: rotate(180deg);
}

.service-details ul {
  display: grid;
  gap: 9px;
  padding: 0 0 16px;
  margin: 0;
  list-style: none;
}

.service-details li {
  position: relative;
  padding-left: 19px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.service-details li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: .63em;
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
}

.service-link {
  min-height: 40px;
  margin-top: auto;
}

.assurance {
  color: white;
  background:
    radial-gradient(circle at 10% 10%, rgba(208,162,61,.14), transparent 30%),
    linear-gradient(135deg, #071a2e 0%, var(--navy) 60%, #102f4e 100%);
}

.assurance-heading {
  margin-bottom: 48px;
}

.assurance-heading h2 {
  color: white;
  max-width: 760px;
}

.assurance-heading > p {
  color: #c4d2df;
  max-width: 600px;
  font-size: 17px;
  line-height: 1.7;
}

.assurance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.assurance-card {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  min-height: 210px;
  padding: 28px;
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
}

.assurance-card:last-child {
  grid-column: 2 / 4;
  align-items: center;
}

.assurance-featured {
  grid-row: span 2;
  min-height: 438px;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(208,162,61,.08), rgba(208,162,61,.2)),
    rgba(255,255,255,.08);
  border-color: rgba(232,197,116,.38);
}

.assurance-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--gold-light);
  background: rgba(208,162,61,.16);
  border: 1px solid rgba(232,197,116,.25);
  border-radius: 13px;
}

.assurance-icon svg {
  width: 24px;
  height: 24px;
}

.assurance-label {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.assurance-card h3 {
  margin-bottom: 9px;
  color: white;
  font-size: 20px;
  line-height: 1.3;
}

.assurance-card p {
  color: #c4d2df;
  font-size: 15px;
  line-height: 1.7;
}

.assurance-featured h3 {
  font-size: 30px;
}

.assurance-featured p {
  font-size: 17px;
}

.process-value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.process-value-grid article {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 26px 28px;
  color: white;
  background: var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.process-value-grid article > svg {
  width: 34px;
  height: 34px;
  padding: 7px;
  color: var(--navy);
  background: var(--gold);
  border-radius: 10px;
  flex-shrink: 0;
}

.process-value-grid h3 {
  margin-bottom: 6px;
  color: white;
  font-size: 18px;
}

.process-value-grid p {
  color: #c4d2df;
  font-size: 15px;
  line-height: 1.65;
}

@media (min-width: 1280px) {
  .service-card {
    padding: 30px;
  }

  .service-card > p,
  .service-details li,
  .service-details summary {
    font-size: 16px;
  }

  .assurance-card p,
  .process-value-grid p {
    font-size: 16px;
  }
}

@media (max-width: 900px) {
  .assurance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .assurance-featured {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 290px;
  }

  .assurance-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .assurance-heading {
    margin-bottom: 34px;
  }

  .assurance-grid,
  .process-value-grid {
    grid-template-columns: 1fr;
  }

  .assurance-card,
  .assurance-featured {
    min-height: 0;
    padding: 23px 20px;
  }

  .assurance-featured {
    justify-content: flex-start;
  }

  .assurance-card:last-child {
    grid-column: auto;
    align-items: flex-start;
  }

  .assurance-featured h3 {
    font-size: 24px;
  }

  .process-value-grid article {
    padding: 22px 20px;
  }
}


/* ════════════════════════════════════════════════
   MEJORAS SEO / UX — GALERÍA Y NAVEGACIÓN
   ════════════════════════════════════════════════ */
.optional-label {
  color: var(--muted-light);
  font-size: .9em;
  font-weight: 600;
}

.nav-links > a:not(.nav-cta).is-active {
  color: var(--gold-dark);
}

.nav-links > a:not(.nav-cta).is-active::after {
  width: 100%;
}

.projects-showcase img[role="button"] {
  cursor: zoom-in;
}

.projects-showcase img[role="button"]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

.lightbox-open {
  overflow: hidden;
}

.project-lightbox {
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  width: min(94vw, 1180px);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  color: white;
  background: #061523;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
  overflow: hidden;
}

.project-lightbox::backdrop {
  background: rgba(2,10,18,.88);
  backdrop-filter: blur(5px);
}

.project-lightbox figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  max-height: 92vh;
  margin: 0;
}

.project-lightbox img {
  display: block;
  width: 100%;
  height: min(80vh, 850px);
  object-fit: contain;
  background: #030b12;
}

.project-lightbox figcaption {
  padding: 15px 64px 17px 20px;
  color: #d7e1ea;
  font-size: 14px;
  line-height: 1.5;
}

.lightbox-close {
  position: absolute;
  z-index: 2;
  top: 13px;
  right: 13px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: white;
  background: rgba(4,17,31,.84);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  cursor: pointer;
}

.lightbox-close:hover {
  background: var(--gold-dark);
}

.lightbox-close svg {
  width: 21px;
  height: 21px;
}

@media (max-width: 680px) {
  .project-lightbox {
    width: calc(100vw - 20px);
    border-radius: 14px;
  }

  .project-lightbox img {
    height: 76vh;
  }

  .project-lightbox figcaption {
    font-size: 13px;
  }
}


/* ─── CONTADOR DE OBRAS EN HERO ─── */
.hero-proof-counter {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: -4px 0 22px;
  padding: 12px 17px 12px 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(232,197,116,.32);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}

.counter-value {
  min-width: 86px;
  color: var(--gold-light);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}

.counter-copy {
  display: grid;
  gap: 3px;
}

.counter-copy strong {
  color: white;
  font-size: 15px;
  line-height: 1.2;
}

.counter-copy span {
  color: #aebfce;
  font-size: 12px;
  line-height: 1.35;
}

@media (min-width: 1280px) {
  .hero-proof-counter {
    padding: 14px 20px 14px 16px;
  }

  .counter-value {
    min-width: 98px;
    font-size: 40px;
  }

  .counter-copy strong {
    font-size: 17px;
  }

  .counter-copy span {
    font-size: 13px;
  }
}

@media (max-width: 420px) {
  .hero-proof-counter {
    width: 100%;
    gap: 12px;
  }

  .counter-value {
    min-width: 80px;
    font-size: 32px;
  }
}


/* ════════════════════════════════════════════════
   MAPA DE COBERTURA
   ════════════════════════════════════════════════ */
.coverage {
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 15%, rgba(208,162,61,.11), transparent 29%),
    linear-gradient(180deg, #fff 0%, #f1f5f7 100%);
}

.coverage-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(520px, 1.18fr);
  gap: clamp(54px, 7vw, 120px);
  align-items: center;
}

.coverage-copy h2 {
  max-width: 650px;
  margin: 8px 0 18px;
  color: var(--navy);
}

.coverage-copy > p {
  max-width: 660px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.coverage-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 20px;
}

.coverage-points > div {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-height: 88px;
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow-sm);
}

.coverage-points svg {
  width: 22px;
  height: 22px;
  color: var(--gold-dark);
  flex-shrink: 0;
}

.coverage-points span {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.coverage-points strong {
  color: var(--navy);
  font-size: 16px;
}

.coverage-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 26px;
  font-size: 13px !important;
}

.coverage-note svg {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  color: var(--gold-dark);
  flex-shrink: 0;
}

.coverage-map-card {
  position: relative;
  padding: 20px;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.map-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 2px 4px 17px;
  color: #b9c9d6;
  font-size: 13px;
}

.map-topline span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.map-topline svg {
  width: 17px;
  color: var(--gold-light);
}

.map-topline strong {
  color: var(--gold-light);
  font-size: 14px;
  letter-spacing: .05em;
}

.coverage-map {
  display: block;
  width: 100%;
  height: auto;
  color: rgba(255,255,255,.045);
  border-radius: 18px;
}

.map-grid-pattern {
  fill: #0d2b47;
}

.map-river {
  fill: #16476c;
  opacity: .72;
}

.map-gba-shape {
  fill: #d6e1e8;
  stroke: #fff;
  stroke-width: 3;
}

.map-caba-shape {
  fill: var(--gold);
  stroke: #fff3cd;
  stroke-width: 4;
}

.map-label circle {
  fill: var(--navy);
}

.map-label text {
  fill: var(--navy);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .03em;
}

.map-label-small {
  font-size: 13px !important;
  font-weight: 700 !important;
  opacity: .72;
}

.map-label-caba circle {
  fill: white;
}

.map-label-caba text {
  fill: white;
}

.map-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  padding: 16px 4px 2px;
  color: #c3d1dc;
  font-size: 12px;
  font-weight: 700;
}

.map-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.map-legend i {
  width: 11px;
  height: 11px;
  border-radius: 3px;
}

.legend-caba {
  background: var(--gold);
}

.legend-gba {
  background: #d6e1e8;
}

@media (min-width: 1280px) {
  .coverage-copy > p {
    font-size: 18px;
  }

  .coverage-points span {
    font-size: 14px;
  }
}

@media (max-width: 1024px) {
  .coverage-grid {
    grid-template-columns: minmax(0, .9fr) minmax(460px, 1.1fr);
    gap: 44px;
  }

  .coverage-points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .coverage-grid {
    grid-template-columns: 1fr;
  }

  .coverage-copy {
    max-width: 680px;
  }

  .coverage-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .coverage-map-card {
    width: min(100%, 680px);
    margin-inline: auto;
  }
}

@media (max-width: 520px) {
  .coverage-points {
    grid-template-columns: 1fr;
  }

  .coverage-map-card {
    padding: 13px;
    border-radius: 18px;
  }

  .map-label text {
    font-size: 15px;
  }

  .map-label-small {
    font-size: 11px !important;
  }
}


/* ─── GRILLA DE OCHO SERVICIOS ─── */
@media (min-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 681px) and (max-width: 1099px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* ─── MÁS TRABAJOS REALIZADOS ─── */
.projects-more-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 44px;
}

.projects-more-grid .project-card {
  min-width: 0;
}

.projects-more-grid .project-photo {
  height: 230px;
}

.project-photo-duo {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 4px;
  padding: 4px;
  background: #dfe5e9;
}

.project-photo-duo img {
  min-width: 0;
  min-height: 0;
}

@media (max-width: 1100px) {
  .projects-more-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects-more-grid .project-photo {
    height: 260px;
  }
}

@media (max-width: 680px) {
  .projects-more-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .projects-more-grid .project-photo {
    height: 250px;
  }
}
