/* INGEOTECONS Child — Global tokens, utilidades y animación reveal.
   Variables CSS, container, separadores y reveal-on-scroll viven aquí
   porque las usan casi todos los bloques. */

/* ────────────────────────────────────────────────────────────────────────
   FULL-WIDTH BREAKOUT
   Astra envuelve el .entry-content en un container con max-width (~1200px).
   Nuestros bloques de sección deben ocupar TODA la ventana porque ya
   contienen su propio .ingeotecons-container interno con el padding correcto.
   Truco estándar: margin negativo = 50% - 50vw para salirse del padre.
   ──────────────────────────────────────────────────────────────────────── */
.ingeotecons-hero,
.ingeotecons-porque,
.ingeotecons-counters,
.ingeotecons-proceso,
.ingeotecons-servicios,
.ingeotecons-galeria,
.ingeotecons-testimonios,
.ingeotecons-faq,
.ingeotecons-contacto,
.ingeotecons-footer {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
}

/* Cuerpo de la página: quitamos el padding/margin de Astra alrededor del
   contenido para que nuestros bloques realmente lleguen al borde. */
.ingeotecons-home-fullwidth .entry-content,
.ingeotecons-home-fullwidth .ast-container,
.ingeotecons-home-fullwidth .site-content > .ast-container,
body.page-template-default .entry-content {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

/* Evitar scroll horizontal si el viewport calcula raro */
html, body { overflow-x: hidden; }

:root {
  --color-primary: #0B2E5E;
  --color-secondary: #1A6FB5;
  --color-accent: #F5A623;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F4F6F9;
  --color-text: #1A1A2E;
  --color-text-light: #5A6275;
  --color-border: #E0E4EA;
  --color-dark: #0A1628;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Source Serif 4', serif;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .ingeotecons-reveal { opacity: 1; transform: none; }
}

.ingeotecons-page {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.7;
}
.ingeotecons-page img { max-width: 100%; height: auto; display: block; }
.ingeotecons-page section[id] { scroll-margin-top: 96px; }

.ingeotecons-skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  text-decoration: none;
}
.ingeotecons-skip-link:focus { top: 0; }

.ingeotecons-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) { .ingeotecons-container { padding: 0 40px; } }
@media (min-width: 1240px) { .ingeotecons-container { padding: 0; } }

.ingeotecons-section-separator {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(11,46,94,0.15), transparent);
}

.ingeotecons-section-title { text-align: center; margin-bottom: 64px; }
.ingeotecons-section-title h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-wrap: balance;
  margin-bottom: 16px;
  line-height: 1.2;
}
@media (min-width: 768px) { .ingeotecons-section-title h2 { font-size: 2.25rem; } }
.ingeotecons-section-title p {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}
.ingeotecons-section-title-line {
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 0 auto 20px;
  border-radius: 2px;
}

.ingeotecons-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.ingeotecons-reveal.is-visible { opacity: 1; transform: translateY(0); }

.ingeotecons-whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  text-decoration: none;
  z-index: 900;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
  animation: ingeotecons-whatsapp-pulse 2s infinite;
  transition: transform 0.3s ease;
}
.ingeotecons-whatsapp-float:hover { transform: scale(1.1); }

@keyframes ingeotecons-whatsapp-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.3); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,0.5); }
}

@keyframes ingeotecons-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes ingeotecons-fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
