:root {
  --bg-white: #FFFFFF;
  --bg-soft: #F8FAFC;
  --blue-900: #0A2540;
  --blue-800: #123E7C;
  --blue-50: #EFF6FF;
  --green-600: #3E8E14;
  --green-500: #58B318;
  --green-50: #F0FDF4;
  --border-light: #E2E8F0;
  --text-main: #0F172A;
  --text-muted: #475569;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-white);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
.container { max-width: 1240px; margin: 0 auto; padding: 0 1.25rem; width: 100%; }

/* Barra Superior (Blanca con línea de acento verde/azul) */
.topbar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  border-top: 4px solid var(--green-500);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(10, 37, 64, 0.04);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--blue-900);
  flex-shrink: 0;
}
.brand__logo {
  height: 54px;
  width: auto;
  object-fit: contain;
}
.brand__title {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--blue-900);
  display: block;
  line-height: 1.15;
}
.brand__subtitle {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--green-600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
}

/* Navegación Integrada Limpia (Fondo Blanco) */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.nav-links a:hover {
  color: var(--blue-900);
  background: var(--bg-soft);
}
.nav-links a.active {
  color: var(--blue-900);
  background: var(--blue-50);
  border-bottom: 2px solid var(--green-500);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
  border: 1.5px solid transparent;
  text-align: center;
}
.btn--green {
  background: var(--green-600);
  color: #fff;
  box-shadow: 0 4px 12px rgba(62, 142, 20, 0.2);
}
.btn--green:hover {
  background: var(--green-500);
  transform: translateY(-1px);
}
.btn--blue-outline {
  border-color: var(--blue-900);
  color: var(--blue-900);
  background: var(--bg-white);
}
.btn--blue-outline:hover {
  background: var(--blue-900);
  color: #fff;
}

/* Hero Luminoso */
.hero-light {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border-bottom: 1px solid var(--border-light);
  padding: 3rem 0;
}
.hero-light__inner {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 2.25rem;
  align-items: center;
}
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--green-50);
  border: 1px solid #BBF7D0;
  color: var(--green-600);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.95rem;
  max-width: 100%;
}
.hero-light h1 {
  font-size: clamp(1.5rem, 3vw, 2.45rem);
  font-weight: 900;
  color: var(--blue-900);
  line-height: 1.18;
  margin-bottom: 0.95rem;
}
.hero-light h1 span {
  color: var(--green-600);
}
.hero-light p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 640px;
  margin-bottom: 1.5rem;
}
.hero-light__actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.hero-light__brand-box {
  background: transparent;
  border: none;
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero-light__brand-box img {
  width: 100%;
  max-width: 320px;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(10, 37, 64, 0.14));
}

/* Secciones Generales */
.section {
  padding: 3rem 0;
}
.section--soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.section__header {
  text-align: center;
  margin-bottom: 2.25rem;
}
.section__header h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  font-weight: 900;
  color: var(--blue-900);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.25;
}
.section__header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 660px;
  margin: 0.45rem auto 0;
}

.pillars-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}
.pillar-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--blue-900);
  border-radius: 14px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(10, 37, 64, 0.04);
}
.pillar-card--green {
  border-top-color: var(--green-500);
}
.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--green-500);
  box-shadow: 0 12px 26px rgba(10, 37, 64, 0.09);
}
.pillar-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.pillar-card--green .pillar-card__icon {
  background: var(--green-50);
  color: var(--green-600);
}
.pillar-card__tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green-600);
  margin-bottom: 0.3rem;
  display: block;
}
.pillar-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--blue-900);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.pillar-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.pillar-card ul {
  list-style: none;
  margin-bottom: 1.15rem;
  border-top: 1px solid var(--border-light);
  padding-top: 0.8rem;
}
.pillar-card ul li {
  font-size: 0.83rem;
  color: var(--text-main);
  padding: 0.22rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}
.pillar-card ul li::before {
  content: "✔";
  color: var(--green-600);
  font-weight: 900;
  font-size: 0.78rem;
  flex-shrink: 0;
}
.card-link {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--blue-800);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.pillar-card:hover .card-link {
  color: var(--green-600);
}

/* Tarjetas de accesos rápidos en Inicio */
.quick-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}
.quick-nav-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--green-500);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.quick-nav-card:hover {
  border-color: var(--blue-900);
  box-shadow: 0 8px 20px rgba(10, 37, 64, 0.07);
  transform: translateY(-2px);
}
.quick-nav-card h4 {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--blue-900);
  margin-bottom: 0.2rem;
}
.quick-nav-card p {
  font-size: 0.83rem;
  color: var(--text-muted);
}
.quick-nav-arrow {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  flex-shrink: 0;
}

/* Cuadrícula de Servicios Detallados (Página /servicios) */
.services-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}
.service-detail-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--blue-900);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.service-detail-card:hover {
  border-top-color: var(--green-500);
  box-shadow: 0 10px 24px rgba(10, 37, 64, 0.08);
}
.service-detail-card__head {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}
.service-detail-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.service-detail-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--blue-900);
  line-height: 1.28;
}
.service-detail-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.service-bullets {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  background: var(--bg-soft);
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border-light);
}
.service-bullets li {
  font-size: 0.8rem;
  color: var(--text-main);
  font-weight: 600;
}
.service-bullets li::before {
  content: "• ";
  color: var(--green-600);
  font-weight: 900;
}

/* Buscador en /servicios */
.search-bar-wrap {
  max-width: 520px;
  margin: 1.15rem auto 0;
}
.search-bar-wrap input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  font-size: 16px;
  background: var(--bg-white);
}
.search-bar-wrap input:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(88, 179, 24, 0.15);
}

/* Página Nosotros (/nosotros) */
.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2rem;
  align-items: start;
}
.about-box {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-left: 5px solid var(--green-500);
  padding: 1.65rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(10, 37, 64, 0.04);
}
.about-box h3 {
  color: var(--blue-900);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
}
.about-box p {
  color: var(--text-main);
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}
.about-pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.35rem;
}
.pillar {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--blue-900);
  padding: 1.05rem;
  border-radius: 10px;
}
.pillar strong {
  display: block;
  color: var(--blue-900);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}
.pillar span {
  font-size: 0.83rem;
  color: var(--text-muted);
}
.founder-badge {
  display: inline-block;
  background: var(--green-50);
  border: 1px solid #BBF7D0;
  color: var(--green-600);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  margin: 0.25rem;
}

/* Galería (/galeria) en Fondo Blanco */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--border-light);
  background: var(--bg-white);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--blue-900);
  border-color: var(--blue-900);
  color: #fff;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.gallery-item {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.04);
  transition: transform 0.2s, border-color 0.2s;
}
.gallery-item:hover {
  transform: translateY(-3px);
  border-color: var(--green-500);
}
.gallery-thumb {
  height: 155px;
  background: var(--bg-soft);
  border-bottom: 3px solid var(--green-500);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.1rem;
  text-align: center;
}
.gallery-thumb span {
  font-size: 2.4rem;
  margin-bottom: 0.35rem;
}
.gallery-thumb small {
  color: var(--blue-800);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}
.gallery-info { padding: 1.1rem 1.2rem; }
.gallery-info h4 {
  color: var(--blue-900);
  font-size: 0.96rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}
.gallery-info p {
  color: var(--text-muted);
  font-size: 0.84rem;
}

/* Asistente Interactivo de Contacto y Cotización (/contacto) */
.wizard-container {
  max-width: 920px;
  margin: 0 auto;
}
.type-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  margin-bottom: 1.75rem;
}
.type-card {
  background: var(--bg-white);
  border: 2px solid var(--border-light);
  border-radius: 14px;
  padding: 1.35rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  min-width: 0;
  max-width: 100%;
}
.type-card > div {
  min-width: 0;
}
.type-card:hover {
  border-color: var(--blue-800);
  box-shadow: 0 8px 20px rgba(10, 37, 64, 0.06);
}
.type-card.selected {
  border-color: var(--green-500);
  background: var(--green-50);
  box-shadow: 0 8px 22px rgba(62, 142, 20, 0.12);
}
.type-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.type-card.selected .type-card__icon {
  background: var(--green-600);
  color: #fff;
}
.type-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--blue-900);
  margin-bottom: 0.25rem;
  line-height: 1.25;
}
.type-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.form-panel {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--blue-900);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 28px rgba(10, 37, 64, 0.06);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.form-panel--industrial {
  border-top-color: var(--green-500);
}
.form-section-title {
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue-900);
  padding-bottom: 0.5rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.form-section-title span {
  color: var(--green-600);
}
.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.4rem;
  width: 100%;
}
.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.4rem;
  width: 100%;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  max-width: 100%;
}
.field--full {
  grid-column: 1 / -1;
}
.field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue-900);
  overflow-wrap: break-word;
}
.field label small {
  color: var(--text-muted);
  font-weight: 500;
}
.field input, .field select, .field textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--border-light);
  border-radius: 8px;
  font-size: 16px; /* Evita auto-zoom en iOS/Android */
  font-family: inherit;
  color: var(--text-main);
  background: var(--bg-white);
  text-overflow: ellipsis;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea {
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(88, 179, 24, 0.15);
}
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border: 1.5px solid var(--border-light);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  background: var(--bg-soft);
}
.chip-label input {
  accent-color: var(--green-600);
}
.dropzone {
  border: 2px dashed #94A3B8;
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  background: var(--bg-soft);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  display: block;
}
.dropzone:hover {
  border-color: var(--green-500);
  background: var(--green-50);
}
.file-list {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--blue-50);
  border: 1px solid #BFDBFE;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-900);
  gap: 0.5rem;
  word-break: break-all;
}

/* Pie de página limpio */
.footer {
  margin-top: auto;
  background: var(--bg-white);
  border-top: 2px solid var(--border-light);
  color: var(--text-muted);
  padding: 1.5rem 0;
  font-size: 0.82rem;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer strong { color: var(--blue-900); }
.footer__email {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--blue-900);
  font-weight: 800;
  text-decoration: none;
  background: var(--green-50);
  border: 1px solid #BBF7D0;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  transition: all 0.15s ease;
}
.footer__email:hover {
  background: var(--green-600);
  border-color: var(--green-600);
  color: #fff;
}

/* Sección y Tarjeta de Cotizaciones por Correo Electrónico (cotizaciones@ggimi.com) */
.email-cta-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #F0FDF4 100%);
  border: 2px solid #BBF7D0;
  border-left: 6px solid var(--green-600);
  border-radius: 16px;
  padding: 2rem 2.25rem;
  box-shadow: 0 10px 28px rgba(10, 37, 64, 0.06);
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2rem;
  align-items: center;
}
.email-cta-card h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 900;
  color: var(--blue-900);
  margin-bottom: 0.55rem;
  line-height: 1.25;
}
.email-cta-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 1.15rem;
  max-width: 620px;
}
.email-cta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.email-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-900);
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}
.email-address-box {
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-top: 4px solid var(--blue-900);
  border-radius: 14px;
  padding: 1.4rem;
  text-align: center;
  box-shadow: 0 6px 18px rgba(10, 37, 64, 0.05);
}
.email-address-box__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-600);
  margin-bottom: 0.35rem;
}
.email-address-box__value {
  display: block;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--blue-900);
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  margin-bottom: 0.95rem;
  word-break: break-all;
  user-select: all;
}
.email-address-box__actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.email-address-box__actions .btn {
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
}

/* Barra compacta de correo directo en /contacto/ */
.direct-email-banner {
  background: var(--bg-white);
  border: 1.5px solid #BBF7D0;
  border-left: 5px solid var(--green-600);
  border-radius: 14px;
  padding: 1.15rem 1.4rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  box-shadow: 0 4px 14px rgba(10, 37, 64, 0.04);
}
.direct-email-banner__info {
  flex: 1;
  min-width: 240px;
}
.direct-email-banner__info strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--blue-900);
  margin-bottom: 0.2rem;
}
.direct-email-banner__info p {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin: 0;
}
.direct-email-banner__info a {
  color: var(--green-600);
  font-weight: 800;
  text-decoration: none;
}
.direct-email-banner__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.direct-email-banner__actions .btn {
  padding: 0.55rem 0.95rem;
  font-size: 0.82rem;
}

/* =========================================================
   ADAPTACIÓN MÓVIL Y TABLET (RESPONSIVE DESIGN)
   ========================================================= */
@media (max-width: 1024px) {
  .pillars-3, .quick-nav-grid, .services-detail-grid, .gallery-grid, .about-grid, .email-cta-card {
    grid-template-columns: 1fr;
  }
  .hero-light__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  .hero-light p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-light__actions {
    justify-content: center;
  }
  /* Poner el logo arriba del texto en móvil/tablet de forma proporcionada */
  .hero-light__brand-box {
    order: -1;
  }
  .hero-light__brand-box img {
    max-width: 185px;
    max-height: 175px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  /* Encabezado compacto en móvil con menú deslizable en 1 sola fila */
  .topbar__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    padding: 0.6rem 0;
  }
  .brand {
    justify-content: center;
  }
  .brand__logo {
    height: 44px;
  }
  .brand__title {
    font-size: 1.08rem;
  }
  .brand__subtitle {
    font-size: 0.65rem;
  }
  .nav-links {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
    border-top: 1px solid var(--border-light);
    padding-top: 0.45rem;
    justify-content: flex-start;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .nav-links a {
    font-size: 0.76rem;
    padding: 0.42rem 0.7rem;
    flex-shrink: 0;
  }

  /* Hero compacto en celular */
  .hero-light {
    padding: 1.75rem 0 2rem;
  }
  .eyebrow-pill {
    font-size: 0.66rem;
    padding: 0.28rem 0.65rem;
  }
  .hero-light h1 {
    font-size: 1.38rem;
    line-height: 1.22;
  }
  .hero-light p {
    font-size: 0.92rem;
    margin-bottom: 1.2rem;
  }
  .hero-light__actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-light__actions .btn {
    width: 100%;
  }

  /* Secciones y tarjetas en celular */
  .section {
    padding: 2rem 0;
  }
  .pillar-card, .service-detail-card, .about-box, .email-cta-card {
    padding: 1.2rem;
  }
  .direct-email-banner {
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
  }
  .direct-email-banner__actions {
    width: 100%;
    flex-direction: column;
  }
  .direct-email-banner__actions .btn {
    width: 100%;
  }
  .service-bullets, .about-pillars {
    grid-template-columns: 1fr;
  }

  /* Formularios en /contacto */
  .type-selector, .form-grid-2, .form-grid-3 {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .type-card {
    padding: 1rem;
  }
  .form-panel {
    padding: 1.15rem;
    border-radius: 12px;
  }
  .chip-group {
    flex-direction: column;
  }
  .chip-label {
    width: 100%;
    border-radius: 8px;
  }

  /* Footer centrado en móvil */
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* =====================================================================
   MÓDULO DE RASTREO DE ÓRDENES Y EQUIPOS EN SERVICIO (GG TRACKING)
   ===================================================================== */
.nav-pill-tracking {
  background: var(--blue-50) !important;
  color: var(--blue-900) !important;
  font-weight: 800 !important;
  border: 1.5px solid var(--green-500) !important;
  border-radius: 9999px !important;
  padding: 0.4rem 0.95rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  box-shadow: 0 1px 3px rgba(10, 37, 64, 0.08);
  transition: all 0.2s ease !important;
}
.nav-pill-tracking:hover {
  background: var(--green-50) !important;
  border-color: var(--green-600) !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(88, 179, 24, 0.2) !important;
}
.tracking-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-500);
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(88, 179, 24, 0.3);
  animation: pulseTrackingDot 1.8s infinite ease-in-out;
}
@keyframes pulseTrackingDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.6; }
}

.section--tracking {
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 3.5rem 0;
  position: relative;
}
.tracking-wrapper {
  max-width: 960px;
  margin: 0 auto;
}
.tracking-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--green-500);
  border-radius: 16px;
  box-shadow: 0 12px 36px -8px rgba(10, 37, 64, 0.08), 0 4px 12px -2px rgba(10, 37, 64, 0.04);
  padding: 2.2rem;
  transition: all 0.25s ease;
}
.tracking-header-center {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 1.8rem auto;
}
.tracking-header-center h3 {
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--blue-900);
  letter-spacing: -0.02em;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
.tracking-header-center p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.tracking-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 620px;
  margin: 0 auto;
}
.tracking-form__inputs {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.tracking-input {
  flex: 1;
  min-width: 240px;
  padding: 0.85rem 1.15rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--blue-900);
  background: var(--bg-soft);
  border: 2px solid var(--border-light);
  border-radius: 10px;
  outline: none;
  transition: all 0.2s ease;
  text-transform: uppercase;
}
.tracking-input:focus {
  background: #FFFFFF;
  border-color: var(--blue-900);
  box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.12);
}
.tracking-input::placeholder {
  font-family: system-ui, sans-serif;
  font-weight: 400;
  font-size: 0.88rem;
  letter-spacing: normal;
  color: #94A3B8;
  text-transform: none;
}
.btn--tracking {
  background: var(--blue-900);
  color: #FFFFFF;
  font-weight: 800;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  border: 2px solid var(--blue-900);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn--tracking:hover {
  background: var(--green-600);
  border-color: var(--green-600);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(62, 142, 20, 0.25);
}
.btn--tracking:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.tracking-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.tracking-hint-code {
  font-family: monospace;
  font-weight: 700;
  color: var(--blue-800);
  background: var(--blue-50);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

/* Panel de Resultados */
.tracking-result {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px dashed var(--border-light);
  animation: fadeInTracking 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes fadeInTracking {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.tracking-result__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}
.tracking-folio-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.tracking-folio-tag {
  background: var(--blue-900);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  letter-spacing: 0.05em;
}
.tracking-folio-val {
  font-family: ui-monospace, monospace;
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--blue-900);
  letter-spacing: 0.02em;
}
.tracking-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 800;
  border: 1.5px solid transparent;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

/* Stepper de 6 Pasos */
.tracking-stepper-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}
.tracking-stepper {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.45rem;
  margin-bottom: 1.8rem;
}
.tracking-step {
  background: var(--bg-soft);
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  padding: 0.75rem 0.5rem;
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
}
.tracking-step__num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin: 0 auto 0.45rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  background: var(--border-light);
  color: #64748B;
}
.tracking-step__name {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-main);
  display: block;
  line-height: 1.2;
}
.tracking-step__desc {
  font-size: 0.65rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.25rem;
  line-height: 1.25;
}

/* Estados del Stepper */
.tracking-step--completed {
  background: #F0FDF4;
  border-color: #86EFAC;
}
.tracking-step--completed .tracking-step__num {
  background: var(--green-600);
  color: #fff;
}
.tracking-step--completed .tracking-step__name {
  color: var(--green-600);
}

.tracking-step--active {
  background: #EFF6FF;
  border-color: var(--blue-800);
  box-shadow: 0 0 0 2px rgba(18, 62, 124, 0.15), 0 4px 10px rgba(18, 62, 124, 0.08);
}
.tracking-step--active .tracking-step__num {
  background: var(--blue-900);
  color: #fff;
  animation: pulseActiveStep 2s infinite ease-in-out;
}
.tracking-step--active .tracking-step__name {
  color: var(--blue-900);
}
@keyframes pulseActiveStep {
  0%, 100% { box-shadow: 0 0 0 0 rgba(10, 37, 64, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(10, 37, 64, 0); }
}

.tracking-step--cancelled {
  background: #FFF1F2;
  border-color: #FECDD3;
}
.tracking-step--cancelled .tracking-step__num {
  background: #E11D48;
  color: #fff;
}

/* Tarjeta de Bitácora y Detalles */
.tracking-info-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.tracking-box {
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.25rem;
}
.tracking-box__title {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--blue-900);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.tracking-table-meta {
  width: 100%;
  font-size: 0.85rem;
  border-collapse: collapse;
}
.tracking-table-meta tr:not(:last-child) td {
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}
.tracking-table-meta tr td {
  padding-top: 0.55rem;
}
.tracking-table-meta td:first-child {
  color: var(--text-muted);
  width: 38%;
  font-weight: 600;
}
.tracking-table-meta td:last-child {
  color: var(--text-main);
  font-weight: 700;
}

.tracking-note-current {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 0.85rem;
}
.tracking-note-public {
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 0.65rem;
  line-height: 1.5;
}

/* Alcances incluidos */
.tracking-scopes {
  margin-top: 1.2rem;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
}
.tracking-scopes-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.65rem;
}
.tracking-scope-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0;
  font-size: 0.84rem;
  border-bottom: 1px solid var(--border-light);
}
.tracking-scope-item:last-child {
  border-bottom: none;
}
.tracking-scope-code {
  font-family: monospace;
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--blue-900);
  background: var(--blue-50);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-right: 0.5rem;
}

/* Botones de acción final */
.tracking-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}
.btn--whatsapp-tracking {
  background: #16A34A;
  color: #fff;
  font-weight: 800;
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn--whatsapp-tracking:hover {
  background: #15803D;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.tracking-alert-error {
  background: #FFF1F2;
  border: 1.5px solid #FECDD3;
  color: #9F1239;
  border-radius: 12px;
  padding: 1.15rem 1.35rem;
  margin-top: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.88rem;
  animation: fadeInTracking 0.3s ease;
}

@media (max-width: 820px) {
  .tracking-stepper {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  .tracking-info-grid {
    grid-template-columns: 1fr;
  }
  .tracking-card {
    padding: 1.5rem 1.1rem;
  }
}
@media (max-width: 520px) {
  .tracking-stepper {
    grid-template-columns: repeat(2, 1fr);
  }
  .tracking-form__inputs {
    flex-direction: column;
  }
  .btn--tracking {
    width: 100%;
  }
  .tracking-folio-val {
    font-size: 1.25rem;
  }
}
