/* ============================================================
   NEXPRO AVANT — Hoja de estilos principal
   Versión 1.0 — 2026
   ============================================================ */

/* === 1. TOKENS DE DISEÑO === */
:root {
  /* Colores */
  --clr-white:        #FFFFFF;
  --clr-bg:           #F9F9F8;
  --clr-bg-alt:       #F2F2F0;
  --clr-dark:         #1A1A1A;
  --clr-text:         #2C2C2C;
  --clr-muted:        #6B7280;
  --clr-border:       #E4E4E2;
  --clr-accent:       #1D6B5A;
  --clr-accent-hover: #165249;
  --clr-accent-soft:  #EAF4F1;

  /* Tipografía */
  --ff:         'Inter', system-ui, -apple-system, sans-serif;
  --fw-normal:  400;
  --fw-medium:  500;
  --fw-semi:    600;
  --fw-bold:    700;

  /* Layout */
  --max-w:  1240px;
  --h-nav:  72px;
  --px:     1.25rem;

  /* Efectos */
  --radius:    6px;
  --radius-lg: 12px;
  --shadow:    0 2px 8px rgba(0,0,0,0.07);
  --shadow-m:  0 4px 20px rgba(0,0,0,0.11);
  --t:         0.22s ease;
}

/* === 2. RESET Y BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff);
  font-weight: var(--fw-normal);
  color: var(--clr-text);
  background: var(--clr-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; border: none; outline: none; background: none; }
h1,h2,h3,h4,h5,h6 { font-weight: var(--fw-bold); line-height: 1.18; color: var(--clr-dark); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* === 3. UTILIDADES === */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

.section        { padding: 5rem 0; }
.section-alt    { padding: 5rem 0; background: var(--clr-bg); }
.section-dark   { padding: 5rem 0; background: var(--clr-dark); color: white; }
.section-dark .section-title { color: white; }
.section-dark .section-desc  { color: rgba(255,255,255,0.65); }

.section-header { margin-bottom: 3.5rem; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: var(--fw-semi);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  max-width: 700px;
}

.section-desc {
  margin-top: 0.75rem;
  font-size: 1.0625rem;
  color: var(--clr-muted);
  max-width: 600px;
  line-height: 1.7;
}

.text-center { text-align: center; }
.text-center .section-title,
.text-center .section-desc { max-width: 100%; }

/* === 4. BOTONES === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: var(--fw-semi);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t),
              box-shadow var(--t), transform var(--t);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.4;
}
.btn:focus-visible { outline: 3px solid var(--clr-accent); outline-offset: 3px; }

.btn-primary { background: var(--clr-accent); color: white; }
.btn-primary:hover { background: var(--clr-accent-hover); box-shadow: 0 4px 16px rgba(29,107,90,0.28); }

.btn-outline { background: transparent; color: white; border: 1.5px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }

.btn-outline-dark { background: transparent; color: var(--clr-dark); border: 1.5px solid var(--clr-border); }
.btn-outline-dark:hover { border-color: var(--clr-dark); }

.btn-ghost { background: transparent; color: var(--clr-accent); padding-left: 0; }
.btn-ghost:hover { gap: 0.75rem; }

.btn-lg { padding: 0.9375rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.4375rem 0.875rem; font-size: 0.875rem; }

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* === 5. NAVEGACIÓN === */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--h-nav);
  z-index: 1000;
  transition: background var(--t), box-shadow var(--t);
}

.site-nav.nav-transparent { background: transparent; }
.site-nav.nav-solid,
.site-nav.nav-scrolled    { background: white; box-shadow: 0 1px 0 var(--clr-border); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo-mark {
  width: 34px;
  height: 34px;
  background: var(--clr-accent);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-logo-mark span {
  color: white;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.nav-logo-text {
  font-size: 1rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.03em;
  color: var(--clr-dark);
  transition: color var(--t);
}
.site-nav.nav-transparent .nav-logo-text { color: white; }

/* Links */
.nav-links {
  display: none;
  align-items: center;
  gap: 0.125rem;
  flex: 1;
}
@media (min-width: 1024px) { .nav-links { display: flex; } }

.nav-link {
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: var(--fw-medium);
  color: var(--clr-muted);
  border-radius: var(--radius);
  transition: color var(--t), background var(--t);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--clr-dark); background: var(--clr-bg); }
.site-nav.nav-transparent .nav-link { color: rgba(255,255,255,0.75); }
.site-nav.nav-transparent .nav-link:hover { color: white; background: rgba(255,255,255,0.1); }

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.nav-cta { display: none; }
@media (min-width: 768px) { .nav-cta { display: inline-flex; } }

/* Hamburger */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius);
  transition: background var(--t);
}
@media (min-width: 1024px) { .nav-hamburger { display: none; } }
.nav-hamburger:hover { background: var(--clr-bg-alt); }

.ham-line {
  width: 100%;
  height: 2px;
  background: var(--clr-dark);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t), width var(--t);
  transform-origin: center;
}
.site-nav.nav-transparent .ham-line { background: white; }
.nav-hamburger[aria-expanded="true"] .ham-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] .ham-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger[aria-expanded="true"] .ham-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: var(--h-nav) 0 0 0;
  background: white;
  z-index: 999;
  overflow-y: auto;
  padding: 1.5rem var(--px);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  pointer-events: none;
}
.mobile-menu.open { transform: translateX(0); pointer-events: auto; }

.mobile-menu .nav-link {
  font-size: 1.0625rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  color: var(--clr-dark);
  display: block;
}
.mobile-menu .mobile-sep { height: 1px; background: var(--clr-border); margin: 0.5rem 0; }
.mobile-menu .btn { margin-top: 0.5rem; justify-content: center; width: 100%; }

/* === 6. HERO === */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: white;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--clr-dark);
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,16,14,0.80) 0%,
    rgba(10,20,16,0.58) 55%,
    rgba(12,22,18,0.44) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: calc(var(--h-nav) + 3.5rem) 0 5rem;
  max-width: 780px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.8125rem;
  font-weight: var(--fw-semi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-accent);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: var(--fw-bold);
  line-height: 1.08;
  color: white;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
}

.hero h1 strong {
  color: #72C9B6;
  font-weight: inherit;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  align-items: center;
}

.hero-b2b {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-b2b p { font-size: 0.875rem; color: rgba(255,255,255,0.55); }
.hero-b2b a {
  font-size: 0.875rem;
  font-weight: var(--fw-semi);
  color: rgba(255,255,255,0.85);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: color var(--t);
}
.hero-b2b a:hover { color: white; }
.hero-b2b a svg { width: 14px; height: 14px; }

/* === 7. INTRO / SPLIT === */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .split.reverse { direction: rtl; }
  .split.reverse > * { direction: ltr; }
}
@media (min-width: 1024px) {
  .split { gap: 5rem; }
  .split.wide { grid-template-columns: 5fr 4fr; }
}

.split-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--clr-bg-alt);
}
.split-img img { width: 100%; height: 100%; object-fit: cover; }

/* === 8. TARJETAS DE SERVICIO === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: white;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--t), transform var(--t);
}
.service-card:hover { box-shadow: var(--shadow-m); transform: translateY(-3px); }

.service-card-img {
  height: 190px;
  overflow: hidden;
  background: var(--clr-bg-alt);
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.service-card:hover .service-card-img img { transform: scale(1.05); }

.service-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }

.service-icon {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: var(--clr-accent-soft);
  color: var(--clr-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.service-icon svg { width: 20px; height: 20px; }

.service-card h3 { font-size: 1.0625rem; font-weight: var(--fw-semi); margin-bottom: 0.5rem; }
.service-card p { font-size: 0.9375rem; color: var(--clr-muted); line-height: 1.6; flex: 1; margin-bottom: 1.25rem; }

.card-link {
  font-size: 0.875rem;
  font-weight: var(--fw-semi);
  color: var(--clr-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: gap var(--t);
}
.card-link:hover { gap: 0.625rem; }
.card-link svg { width: 14px; height: 14px; }

/* === 9. PROYECTOS === */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: var(--fw-medium);
  border: 1.5px solid var(--clr-border);
  border-radius: 100px;
  cursor: pointer;
  color: var(--clr-muted);
  transition: all var(--t);
  background: white;
}
.filter-btn:hover { border-color: var(--clr-accent); color: var(--clr-accent); }
.filter-btn.active { background: var(--clr-accent); color: white; border-color: var(--clr-accent); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--clr-dark);
  aspect-ratio: 4/3;
  cursor: pointer;
  display: block;
}

.project-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s ease;
  display: block;
}
.project-card:hover .project-card-img { transform: scale(1.06); opacity: 0.72; }

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,15,20,0.9) 0%, rgba(10,15,20,0.15) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.project-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: var(--fw-semi);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--clr-accent);
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.75rem;
  align-self: flex-start;
}

.project-card-overlay h3 { color: white; font-size: 1rem; font-weight: var(--fw-semi); margin-bottom: 0.25rem; }
.project-card-overlay p { color: rgba(255,255,255,0.6); font-size: 0.875rem; }

/* === 10. PROCESO === */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem 3rem;
}
.step-num {
  font-size: 3.25rem;
  font-weight: var(--fw-bold);
  color: var(--clr-bg-alt);
  line-height: 1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.04em;
}
.process-step h3 { font-size: 1rem; font-weight: var(--fw-semi); margin-bottom: 0.5rem; }
.process-step p { font-size: 0.9375rem; color: var(--clr-muted); line-height: 1.6; }

/* === 11. BANNER B2B === */
.b2b-banner { background: var(--clr-dark); padding: 5rem 0; }
.b2b-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .b2b-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.b2b-banner h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); color: white; max-width: 540px; }
.b2b-banner p { color: rgba(255,255,255,0.6); margin-top: 0.75rem; max-width: 540px; }
.b2b-banner .btn-outline:hover { background: rgba(255,255,255,0.1); }

/* === 12. CTA FINAL === */
.cta-section { background: var(--clr-accent-soft); text-align: center; padding: 5.5rem 0; }
.cta-section h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
.cta-section p { color: var(--clr-muted); font-size: 1.0625rem; max-width: 520px; margin: 0 auto 2rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.cta-contacts { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; margin-top: 2rem; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--clr-muted);
}
.contact-item svg { width: 18px; height: 18px; color: var(--clr-accent); }
.contact-item a { color: var(--clr-dark); font-weight: var(--fw-medium); }
.contact-item a:hover { color: var(--clr-accent); }

/* === 13. FEATURES === */
.features-list { display: flex; flex-direction: column; gap: 1.25rem; }
.feature-item { display: flex; gap: 1rem; align-items: flex-start; }
.feature-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--clr-accent-soft);
  color: var(--clr-accent);
  display: flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 18px; height: 18px; }
.feature-item h4 { font-size: 0.9375rem; font-weight: var(--fw-semi); margin-bottom: 0.25rem; }
.feature-item p { font-size: 0.9rem; color: var(--clr-muted); line-height: 1.55; }

.expertise-tags { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 1.5rem; }
.expertise-tag {
  padding: 0.4375rem 0.875rem;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: 100px;
  font-size: 0.875rem;
  color: var(--clr-muted);
}

/* === 14. PAGE HEADER === */
.page-header {
  padding: calc(var(--h-nav) + 4rem) 0 4rem;
  background: var(--clr-dark);
  color: white;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(29,107,90,0.18) 0%, transparent 60%);
}
.page-header .container { position: relative; }
.page-header h1 { color: white; font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -0.025em; }
.page-header .lead { color: rgba(255,255,255,0.65); margin-top: 1rem; font-size: 1.0625rem; max-width: 600px; }

.breadcrumb {
  display: flex; gap: 0.5rem; align-items: center;
  font-size: 0.875rem; color: rgba(255,255,255,0.4); margin-bottom: 1.5rem;
}
.breadcrumb a { color: rgba(255,255,255,0.4); transition: color var(--t); }
.breadcrumb a:hover { color: white; }
.breadcrumb span { color: rgba(255,255,255,0.25); }

/* === 15. SERVICIOS DETALLE === */
.services-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .services-detail-grid { grid-template-columns: 1fr 300px; gap: 4rem; align-items: start; }
}

.service-section { margin-bottom: 3.5rem; padding-bottom: 3.5rem; border-bottom: 1px solid var(--clr-border); }
.service-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.service-section h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.service-section h3 { font-size: 1rem; font-weight: var(--fw-semi); margin: 1.5rem 0 0.5rem; color: var(--clr-dark); }
.service-section p { color: var(--clr-muted); line-height: 1.7; margin-bottom: 0.875rem; }
.service-section ul { padding-left: 1.25rem; list-style: disc; color: var(--clr-muted); line-height: 1.7; }
.service-section ul li { margin-bottom: 0.375rem; }
.service-section .service-img { margin: 2rem 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9; background: var(--clr-bg-alt); }
.service-section .service-img img { width: 100%; height: 100%; object-fit: cover; }

.sidebar-box {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--h-nav) + 1.5rem);
}
.sidebar-box h3 { font-size: 0.875rem; font-weight: var(--fw-semi); margin-bottom: 1rem; color: var(--clr-dark); }
.sidebar-nav { display: flex; flex-direction: column; gap: 0.125rem; }
.sidebar-nav a {
  font-size: 0.9375rem;
  color: var(--clr-muted);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: all var(--t);
  display: block;
}
.sidebar-nav a:hover { background: white; color: var(--clr-dark); }
.sidebar-nav a.active { background: white; color: var(--clr-accent); font-weight: var(--fw-medium); }
.sidebar-cta { margin-top: 1.5rem; }

/* === 16. PROYECTO INDIVIDUAL === */
.project-detail-header { margin-bottom: 2.5rem; }
.project-meta { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.25rem 0; }
.project-meta-item { font-size: 0.875rem; color: var(--clr-muted); display: flex; align-items: center; gap: 0.375rem; }
.project-meta-item svg { width: 15px; height: 15px; }
.project-cover { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9; background: var(--clr-bg-alt); margin-bottom: 2.5rem; }
.project-cover img { width: 100%; height: 100%; object-fit: cover; }
.project-body p { color: var(--clr-muted); line-height: 1.75; margin-bottom: 1rem; }
.project-body h3 { font-size: 1.0625rem; font-weight: var(--fw-semi); margin: 2rem 0 0.75rem; }
.project-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin: 2rem 0; }
.project-gallery-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--clr-bg-alt); }
.project-gallery-img img { width: 100%; height: 100%; object-fit: cover; }

/* === 17. EMPRESA === */
.empresa-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) { .empresa-grid { grid-template-columns: 1fr 1fr; } }

.value-card {
  background: var(--clr-bg);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--clr-border);
}
.value-card-icon {
  width: 44px; height: 44px;
  background: var(--clr-accent-soft);
  color: var(--clr-accent);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.value-card-icon svg { width: 22px; height: 22px; }
.value-card h3 { font-size: 1rem; font-weight: var(--fw-semi); margin-bottom: 0.5rem; }
.value-card p { font-size: 0.9375rem; color: var(--clr-muted); line-height: 1.6; }

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.doc-item {
  background: white;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}
.doc-item svg { width: 20px; height: 20px; color: var(--clr-accent); flex-shrink: 0; margin-top: 2px; }
.doc-item p { font-size: 0.9375rem; color: var(--clr-muted); line-height: 1.5; }

/* === 18. CONSTRUCTORAS === */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.capability-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.capability-item h3 { color: white; font-size: 1rem; font-weight: var(--fw-semi); margin-bottom: 0.5rem; }
.capability-item p { font-size: 0.9375rem; color: rgba(255,255,255,0.6); line-height: 1.6; }

/* === 19. CONTACTO === */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 1024px) { .contact-layout { grid-template-columns: 1fr 400px; } }

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--clr-border);
}
.contact-info-item:first-child { padding-top: 0; }
.contact-info-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--clr-accent-soft); color: var(--clr-accent);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.contact-info-icon svg { width: 20px; height: 20px; }
.contact-info-item h4 { font-size: 0.875rem; font-weight: var(--fw-semi); margin-bottom: 0.25rem; }
.contact-info-item a, .contact-info-item p { font-size: 0.9375rem; color: var(--clr-muted); }
.contact-info-item a:hover { color: var(--clr-accent); }

.form-box {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

/* === 20. FORMULARIOS === */
.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-label { font-size: 0.875rem; font-weight: var(--fw-medium); color: var(--clr-dark); }
.form-label .opt { font-weight: var(--fw-normal); color: var(--clr-muted); }

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--clr-dark);
  background: white;
  transition: border-color var(--t), box-shadow var(--t);
  -webkit-appearance: none; appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(29,107,90,0.12);
}
.form-input.invalid, .form-textarea.invalid { border-color: #DC2626; }
.form-textarea { min-height: 120px; resize: vertical; }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-error { font-size: 0.8125rem; color: #DC2626; display: none; }
.form-error.show { display: block; }
.form-privacy {
  display: flex; align-items: flex-start; gap: 0.75rem; cursor: pointer;
}
.form-privacy input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: var(--clr-accent); }
.form-privacy-label { font-size: 0.875rem; color: var(--clr-muted); line-height: 1.5; }
.form-privacy-label a { color: var(--clr-accent); text-decoration: underline; }

.form-row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }

.form-status {
  padding: 1rem 1.25rem; border-radius: var(--radius); font-size: 0.9375rem; display: none;
}
.form-status.success { display: block; background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.form-status.error   { display: block; background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

/* === 21. INFO BOX === */
.info-box {
  background: var(--clr-bg);
  border-left: 3px solid var(--clr-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.125rem 1.5rem;
  font-size: 0.9375rem;
  color: var(--clr-muted);
  line-height: 1.65;
  margin: 1.5rem 0;
}

/* === 22. WHATSAPP FLOTANTE === */
.wa-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 900;
  width: 54px; height: 54px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform var(--t), box-shadow var(--t);
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,0.55); }
.wa-float svg { width: 28px; height: 28px; fill: white; }

/* === 23. FOOTER === */
.site-footer {
  background: #111;
  color: rgba(255,255,255,0.6);
  padding: 5rem 0 2.5rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (min-width: 640px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-top { grid-template-columns: 2.5fr 1fr 1fr 1fr; } }

.footer-brand .nav-logo-text { color: white; font-size: 1.0625rem; }
.footer-brand p {
  margin-top: 0.875rem; font-size: 0.9375rem; line-height: 1.65;
  color: rgba(255,255,255,0.45); max-width: 280px;
}

.footer-heading {
  font-size: 0.75rem; font-weight: var(--fw-semi); letter-spacing: 0.1em;
  text-transform: uppercase; color: white; margin-bottom: 1.25rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-links a { font-size: 0.9375rem; color: rgba(255,255,255,0.5); transition: color var(--t); }
.footer-links a:hover { color: white; }

.footer-contact-row { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 0.625rem;
  font-size: 0.9375rem; color: rgba(255,255,255,0.5);
}
.footer-contact-item svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; }
.footer-contact-item a:hover { color: white; }

.footer-bottom {
  margin-top: 2rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  font-size: 0.8125rem; color: rgba(255,255,255,0.3);
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-legal a { color: rgba(255,255,255,0.3); font-size: 0.8125rem; transition: color var(--t); }
.footer-legal a:hover { color: rgba(255,255,255,0.65); }

/* === 24. LEGAL === */
.legal-container { max-width: 760px; }
.legal-content h2 { font-size: 1.25rem; margin: 2.5rem 0 0.875rem; padding-top: 2rem; border-top: 1px solid var(--clr-border); }
.legal-content h2:first-of-type { border-top: none; margin-top: 2rem; padding-top: 0; }
.legal-content h3 { font-size: 1rem; font-weight: var(--fw-semi); margin: 1.5rem 0 0.5rem; }
.legal-content p { color: var(--clr-muted); line-height: 1.72; margin-bottom: 1rem; }
.legal-content ul { padding-left: 1.25rem; list-style: disc; color: var(--clr-muted); line-height: 1.72; margin-bottom: 1rem; }
.legal-content ul li { margin-bottom: 0.375rem; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 1rem 0 1.5rem; }
.legal-table th { background: var(--clr-bg-alt); font-weight: var(--fw-semi); font-size: 0.8125rem; padding: 0.625rem 0.875rem; text-align: left; border: 1px solid var(--clr-border); }
.legal-table td { padding: 0.625rem 0.875rem; border: 1px solid var(--clr-border); color: var(--clr-muted); vertical-align: top; font-size: 0.875rem; }
.legal-nav-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--clr-border); }
.legal-nav-links a { font-size: 0.9375rem; color: var(--clr-accent); font-weight: var(--fw-medium); }
.legal-nav-links a:hover { text-decoration: underline; }

/* === 24b. EMPRESA — features list === */
.features-list { display: flex; flex-direction: column; gap: 1.5rem; }
.feature-item { display: flex; align-items: flex-start; gap: 1rem; }
.feature-icon { width: 40px; height: 40px; flex-shrink: 0; background: var(--clr-accent-soft); color: var(--clr-accent); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.feature-icon svg { width: 20px; height: 20px; }
.feature-item h4 { font-size: 0.9375rem; font-weight: var(--fw-semi); margin-bottom: 0.25rem; }
.feature-item p { font-size: 0.9rem; color: var(--clr-muted); line-height: 1.6; }

/* === 24c. CONTACTO — channels + form === */
.contact-channels {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1rem;
}
.contact-channel-card {
  background: white;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  transition: border-color var(--t), box-shadow var(--t);
  color: inherit;
}
.contact-channel-card:hover { border-color: var(--clr-accent); box-shadow: 0 4px 16px rgba(29,107,90,0.1); }
.contact-channel-card--info { cursor: default; pointer-events: none; }
.contact-channel-icon {
  width: 44px; height: 44px;
  background: var(--clr-accent-soft); color: var(--clr-accent);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.5rem;
}
.contact-channel-icon svg { width: 22px; height: 22px; }
.contact-channel-icon--wa { background: #dcfce7; color: #16a34a; }
.contact-channel-icon--wa svg { fill: #16a34a; width: 22px; height: 22px; }
.contact-channel-card h3 { font-size: 1rem; font-weight: var(--fw-semi); }
.contact-channel-card p { font-size: 0.9375rem; color: var(--clr-muted); }
.contact-channel-hint { font-size: 0.875rem; color: var(--clr-accent); font-weight: var(--fw-medium); margin-top: auto; }

.contact-form-col {}
.contact-aside { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info-box {
  background: white;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.contact-info-box h3 { font-size: 1rem; font-weight: var(--fw-semi); margin-bottom: 1.25rem; }
.contact-info-box p { font-size: 0.9375rem; color: var(--clr-muted); line-height: 1.65; }
.contact-steps { display: flex; flex-direction: column; gap: 1.25rem; padding: 0; list-style: none; }
.contact-steps li { display: flex; gap: 1rem; align-items: flex-start; }
.cs-num {
  width: 28px; height: 28px; flex-shrink: 0;
  background: var(--clr-accent); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: var(--fw-semi);
}
.contact-steps strong { font-size: 0.9375rem; font-weight: var(--fw-semi); display: block; margin-bottom: 0.25rem; }
.contact-steps p { font-size: 0.875rem; color: var(--clr-muted); line-height: 1.55; margin: 0; }

/* === 24d. FORM ROW === */
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 639px) { .form-row-2 { grid-template-columns: 1fr; } }

/* === 25. FADE-IN === */
.fade-in {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.1s; } .d2 { transition-delay: 0.2s; } .d3 { transition-delay: 0.3s; }

/* === 26. RESPONSIVE === */
@media (max-width: 639px) {
  .section, .section-alt, .section-dark { padding: 3.5rem 0; }
  .hero h1 { font-size: 2.125rem; }
  .hero-content { padding: calc(var(--h-nav) + 2rem) 0 3.5rem; }
  .services-grid, .projects-grid { grid-template-columns: 1fr; }
  .btn-lg { padding: 0.875rem 1.5rem; font-size: 0.9375rem; }
  .page-header { padding: calc(var(--h-nav) + 2.5rem) 0 2.5rem; }
  .b2b-banner, .cta-section { padding: 3.5rem 0; }
  .footer-top { gap: 2rem; }
  .form-box { padding: 1.5rem; }
}
