/* ============================================================
   SIMING SRL — Design System
   Stack: HTML + CSS Vanilla + JS mínimo
   Paleta: #111 (base) · #fff (cuerpo) · #F97316 (acento)
   Tipografía: Barlow Condensed (headings) + Barlow (body)
   ============================================================ */

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Barlow', sans-serif;
  background: #fff;
  color: #111;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: 'Barlow', sans-serif; cursor: pointer; border: none; }

/* Respetar atributo HTML hidden aunque el elemento tenga display definido en CSS */
[hidden] { display: none !important; }

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --black:   #1a3a52;
  --dark:    #1e4d6b;
  --dark-2:  #2a5a7f;
  --dark-3:  #3a6a8f;
  --gray-1:  #2a4d66;
  --gray-2:  #3a5f7a;
  --gray-3:  #4a6f8a;
  --gray-4:  #6a8fa0;
  --gray-5:  #8aaab5;
  --gray-6:  #d4e0e8;
  --off-white: #f8f8f7;
  --white:   #ffffff;
  --orange:  #F97316;
  --orange-dark: #d9610e;

  --text-primary:   #1a1a1a;
  --text-secondary: #444444;
  --text-muted:     #555555;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;

  --radius: 0px; /* industrial: sin border-radius */
  --section-pad: 5.5rem 0;
  --container: min(1200px, 100% - 4rem);
}

/* ── Utilities ──────────────────────────────────────────────── */
.container {
  width: var(--container);
  margin-inline: auto;
}

.section-tag {
  font-size: 11px;
  color: var(--orange);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-tag::before {
  content: '';
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--orange);
  flex-shrink: 0;
}

/* ── Fade-in animation ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--dark);
  height: 64px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
#navbar.scrolled {
  border-bottom-color: var(--dark-3);
  background: var(--black);
  backdrop-filter: blur(8px);
}

.nav-inner {
  width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
}
.nav-logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
  line-height: 1;
}
.nav-logo-sub {
  font-size: 9.5px;
  color: var(--gray-4);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  color: var(--gray-5);
  letter-spacing: 0.04em;
  transition: color 0.2s;
  font-weight: 500;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: var(--orange);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 9px 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-mobile {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--dark);
  border-top: 1px solid var(--dark-3);
  padding: 1.5rem 2rem 2rem;
  gap: 1.25rem;
  z-index: 99;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 15px;
  color: var(--white);
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--dark-3);
}
.nav-mobile .nav-cta { margin-top: 0.5rem; text-align: center; }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  background: var(--dark);
  padding: 7.5rem 0 5rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-tag {
  font-size: 11px;
  color: var(--orange);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-tag::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--orange);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}
.hero-title span { color: var(--orange); }

.hero-desc {
  font-size: 15px;
  color: var(--white);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 420px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  padding: 13px 28px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
}
.btn-ghost {
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid var(--gray-3);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--white); border-color: var(--white); }

/* Hero stats grid */
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.stat-card {
  background: var(--dark-2);
  padding: 1.75rem 1.5rem;
  border-left: 2.5px solid var(--dark-3);
  transition: border-color 0.2s;
}
.stat-card:hover { border-left-color: var(--orange); }
.stat-num {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-num span { color: var(--orange); }
.stat-label {
  font-size: 11px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

/* ============================================================
   STRIP (marquee animado)
   ============================================================ */
#strip {
  background: var(--orange);
  padding: 0.9rem 0;
  overflow: hidden;
  display: flex;
  white-space: nowrap;
}

#strip-track {
  flex-shrink: 0;
  will-change: transform;
}



/* ============================================================
   NOSOTROS
   ============================================================ */
#nosotros {
  padding: var(--section-pad);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.about-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
  line-height: 1.05;
}
.about-title em { color: var(--orange); font-style: normal; }

.about-mission {
  border-left: 3px solid var(--orange);
  padding-left: 1.25rem;
  margin-bottom: 1.75rem;
}
.about-mission p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  font-style: italic;
}

.about-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Values */
.values-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.value-item {
  background: var(--white);
  border: 0.5px solid var(--gray-6);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.value-item:hover {
  border-color: var(--orange);
  box-shadow: 0 2px 12px rgba(249, 115, 22, 0.08);
}
.value-icon {
  width: 36px;
  height: 36px;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.value-icon svg { width: 16px; height: 16px; }
.value-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.value-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Bloques etiquetados Nosotros / Misión / Visión */
.about-blocks {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 0.25rem;
}
.about-block-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--orange);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.about-block-label::before {
  content: '';
  display: block;
  width: 14px;
  height: 1.5px;
  background: var(--orange);
  flex-shrink: 0;
}
.about-block p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============================================================
   SERVICIOS
   ============================================================ */
#servicios {
  padding: var(--section-pad);
  background: var(--off-white);
}
.section-header {
  margin-bottom: 3rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: 0.75rem;
}
.section-title em { color: var(--orange); font-style: normal; }
.section-sub {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 500px;
}

/* Grupos de servicios */
.services-groups {
  border: 0.5px solid var(--gray-6);
  overflow: hidden;
}
.service-group {
  border-bottom: 0.5px solid var(--gray-6);
}
.service-group:last-child { border-bottom: none; }

.service-group-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 1.75rem;
  background: var(--off-white);
  border-bottom: 0.5px solid var(--gray-6);
}
.service-group-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.14em;
  min-width: 22px;
  line-height: 1;
}
.service-group-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  line-height: 1;
}

.service-group-cards {
  display: grid;
  gap: 1px;
  background: var(--gray-6);
}
.service-group-cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.service-group-cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.service-group-cards.cols-1 { grid-template-columns: 1fr; }

.service-card {
  background: var(--white);
  padding: 1.75rem 1.75rem;
  border-top: 3px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
  position: relative;
}
.service-card:hover {
  border-top-color: var(--orange);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  z-index: 1;
}
.service-icon {
  width: 40px;
  height: 40px;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border: 0.5px solid var(--gray-6);
}
.service-icon svg { width: 20px; height: 20px; }
.service-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.service-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}



/* ============================================================
   POR QUÉ ELEGIRNOS
   ============================================================ */
#diferencia {
  padding: var(--section-pad);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  background: var(--gray-6);
  margin-top: 3rem;
}
.why-item {
  background: var(--white);
  padding: 2.5rem 1.75rem;
  text-align: center;
  transition: background 0.2s;
}
.why-item:hover { background: var(--off-white); }
.why-num {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.why-divider {
  width: 20px;
  height: 2px;
  background: var(--orange);
  margin: 0.75rem auto;
}
.why-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.why-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   CLIENTES
   ============================================================ */
#clientes {
  padding: 7.5rem 0;
  background: #ebebeb;
  text-align: center;
}
.clients-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.clients-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4.5rem;
}
.clients-sub em { color: var(--orange); font-style: normal; }

/* ── Infinite marquee (RAF) */
.logo-track-wrapper {
  overflow: hidden;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  display: flex;
  height: 120px;
}

.logo-track {
  display: flex;
  gap: 4rem;
  padding-right: 4rem;
  width: max-content;
  will-change: transform;
  flex-shrink: 0;
}

.logo-item {
  flex-shrink: 0;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-item img {
  max-height: 120px;
  max-width: 200px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.logo-item img:hover {
  opacity: 1;
}


/* ============================================================
   CONTACTO
   ============================================================ */
#contacto {
  padding: var(--section-pad);
  background: var(--dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.05;
}
.contact-title span { color: var(--orange); }

.contact-desc {
  font-size: 15px;
  color: var(--white);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 2rem;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-detail-icon {
  width: 34px;
  height: 34px;
  background: var(--dark-2);
  border: 0.5px solid var(--dark-3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-detail-icon svg { width: 15px; height: 15px; }
.contact-detail-text {
  font-size: 14px;
  color: var(--white);
  line-height: 1.5;
}
.contact-detail-text strong {
  color: var(--white);
  font-weight: 600;
}

/* CTA buttons in contact */
.contact-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cta-whatsapp {
  background: var(--orange);
  color: var(--white);
  font-size: 13.5px;
  font-weight: 700;
  padding: 15px 24px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s, transform 0.15s;
}
.cta-whatsapp:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
}
.cta-email {
  background: transparent;
  color: var(--orange);
  font-size: 13.5px;
  font-weight: 700;
  padding: 14px 24px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  border: 1.5px solid var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.cta-email:hover {
  background: var(--orange);
  color: var(--white);
  transform: translateY(-2px);
}
.cta-social {
  background: var(--dark-2);
  color: var(--white);
  font-size: 13.5px;
  font-weight: 600;
  padding: 14px 24px;
  letter-spacing: 0.06em;
  text-align: center;
  border: 0.5px solid var(--dark-3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.cta-social:hover {
  border-color: var(--gray-3);
  color: var(--white);
  transform: translateY(-2px);
}
.cta-social svg, .cta-whatsapp svg, .cta-email svg {
  width: 18px; height: 18px; flex-shrink: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: var(--black);
  border-top: 0.5px solid var(--dark-3);
  padding: 1.75rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo-img {
  height: 45px;
  width: auto;
  object-fit: contain;
}
.footer-copy {
  font-size: 12px;
  color: var(--gray-2);
}
.footer-links {
  display: flex;
  gap: 2rem;
}
.footer-links a {
  font-size: 12px;
  color: var(--gray-2);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gray-4); }

/* ============================================================
   SERVICE IMAGE CAROUSEL (overlay / cinematic)
   ============================================================ */
.sic-carousel {
  position: relative;
  height: 360px;
  overflow: hidden;
  background: var(--dark);
}

.sic-bg {
  position: absolute;
  inset: 0;
}
.sic-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  transition: transform 0.6s ease, opacity 0.5s ease;
}
.sic-carousel:hover .sic-bg img {
  transform: scale(1.03);
}

.sic-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(17, 17, 17, 0.88) 0%,
    rgba(17, 17, 17, 0.55) 55%,
    rgba(17, 17, 17, 0.2) 100%
  );
}

/* Content area */
.sic-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 2rem 2.5rem 4.5rem;
}

.sic-slide {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 440px;
}
.sic-slide.active {
  display: flex;
  animation: sicFadeIn 0.45s ease forwards;
}

@keyframes sicFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sic-tag {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.2rem;
}
.sic-tag::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 1.5px;
  background: var(--orange);
  vertical-align: middle;
  margin-right: 8px;
  margin-bottom: 2px;
}

.sic-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.sic-desc {
  font-size: 13.5px;
  color: var(--white);
  line-height: 1.65;
}

/* Controls bar */
.sic-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 0.85rem 1.5rem;
  background: rgba(0, 0, 0, 0.35);
  border-top: 0.5px solid rgba(255, 255, 255, 0.08);
}

.sic-btn {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--white);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.sic-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: scale(1.05);
}
.sic-btn svg { width: 14px; height: 14px; }

.sic-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 8px;
}
.sic-dot {
  width: 6px;
  height: 6px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s, width 0.25s;
  flex-shrink: 0;
}
.sic-dot.active {
  background: var(--orange);
  width: 20px;
}



/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { gap: 2.5rem; }
  .about-grid { gap: 3rem; }
  .contact-grid { gap: 3rem; }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-pad: 4rem 0; }

  .nav-links, #nav-cta-desktop { display: none; }
  .nav-toggle { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .hero-tag { justify-content: center; }
  .hero-desc { margin-inline: auto; }
  .hero-btns { justify-content: center; }
  .hero-stats { max-width: 380px; margin-inline: auto; }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .service-group-cards.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-item:last-child:nth-child(odd) { grid-column: 1 / -1; }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  :root { --container: min(1200px, 100% - 2.5rem); }

  .service-group-cards.cols-3,
  .service-group-cards.cols-2 { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 32px; }

  .footer-links { flex-direction: column; gap: 0.75rem; align-items: center; }
}

/* ============================================================
   CONTACT — ajustes de simetría
   ============================================================ */
.contact-left {
  display: flex;
  flex-direction: column;
}

/* Divisor entre los 4 botones directos y el botón callback */
.ctas-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gray-2);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 2px 0;
}
.ctas-divider::before,
.ctas-divider::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: var(--dark-3);
}

/* Botón "Te contactamos" */
.cta-callback {
  background: transparent;
  color: var(--gray-4);
  font-size: 13.5px;
  font-weight: 600;
  padding: 14px 24px;
  letter-spacing: 0.06em;
  text-align: center;
  border: 1.5px dashed var(--dark-3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.15s;
  cursor: pointer;
}
.cta-callback:hover {
  border-color: var(--orange);
  border-style: solid;
  color: var(--white);
  background: rgba(249, 115, 22, 0.06);
  transform: translateY(-2px);
}
.cta-callback svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--dark-2);
  border: 0.5px solid var(--dark-3);
  padding: 2.25rem;
  width: 100%;
  max-width: 560px;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s ease;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.modal-tag {
  font-size: 10.5px;
  color: var(--orange);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.modal-close {
  background: var(--dark-3);
  border: none;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}
.modal-close:hover { background: #333; }
.modal-close svg { width: 16px; height: 16px; color: var(--gray-4); }

.modal-desc {
  font-size: 13.5px;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

/* Form */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.modal-field label {
  font-size: 11.5px;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.modal-field .required { color: var(--orange); }

.modal-field input,
.modal-field select,
.modal-field textarea {
  background: var(--dark);
  border: none;
  border-bottom: 1.5px solid var(--dark-3);
  padding: 11px 14px;
  font-size: 14px;
  color: var(--white);
  font-family: var(--font-body);
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.modal-field input::placeholder,
.modal-field textarea::placeholder { color: rgba(255,255,255,0.4); }
.modal-field input:focus,
.modal-field select:focus,
.modal-field textarea:focus { border-bottom-color: var(--orange); }
.modal-field select { cursor: pointer; color: var(--gray-4); }
.modal-field select option { background: var(--dark-2); }
.modal-field textarea { resize: none; }

.modal-field input.error,
.modal-field select.error,
.modal-field textarea.error { border-bottom-color: #ef4444; }

.modal-submit {
  background: var(--orange);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  padding: 14px 28px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  align-self: flex-start;
  margin-top: 4px;
  transition: background 0.2s, transform 0.15s;
}
.modal-submit:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

/* Success state */
.modal-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  gap: 1.25rem;
}
.modal-success svg { width: 56px; height: 56px; }
.modal-success p {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.5;
}
.modal-success p span {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
}

/* Modal responsive */
@media (max-width: 540px) {
  .modal-row { grid-template-columns: 1fr; }
  .modal-box { padding: 1.5rem; }
  .modal-title { font-size: 20px; }
  .cta-callback { font-size: 12.5px; }
}
