/* styles.css - Levantamiento Topográfico Querétaro */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@700;800;900&family=Work+Sans:wght@400;600;700&display=swap');

:root {
  /* Variables Oficiales paleta-por-servicio (familia: construccion_ingenieria) */
  --c-primario: #1F64B1;
  --c-secundario: #F2A900;
  --c-acento: #4FC3F7;
  --c-fondo: #080F16;
  --c-tarjeta: #0F1B29;
  --c-cyan: #4FC3F7;
  --color-primario: #1F64B1;
  --color-secundario: #F2A900;
  --color-acento: #4FC3F7;
  --color-fondo: #080F16;
  --color-tarjeta: #0F1B29;
  --color-texto: #F1F5F9;

  /* Mapeo de compatibilidad con estilos */
  --color-primary: #1F64B1;
  --color-accent: #4FC3F7;
  --color-secondary: #F2A900;
  --color-light: #F8FAFC;
  --max-width: 1150px;

  /* Familias Tipográficas */
  --font-titulo: 'Archivo', ui-sans-serif, system-ui, sans-serif;
  --font-texto: 'Work Sans', ui-sans-serif, system-ui, sans-serif;
}

body {
  font-family: var(--font-texto);
  color: #0F1B29;
  background-color: #F8FAFC;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading, .hero-title, .header-brand-text {
  font-family: var(--font-titulo) !important;
}

/* Regla General: Ancho máximo de 1150px */
.container-custom {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Header States */
#site-header {
  transition: all 0.3s ease-in-out;
}
#site-header:not(.scrolled) .header-nav a {
  color: #ffffff !important;
}
#site-header:not(.scrolled) .header-nav a:hover {
  color: #F2A900 !important;
}
#site-header:not(.scrolled) .header-brand-text {
  color: #ffffff !important;
}
#site-header:not(.scrolled) .header-sub-text {
  color: #cbd5e1 !important;
}
#site-header:not(.scrolled) #mobile-toggle {
  color: #ffffff !important;
}

#site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px -2px rgba(15, 40, 64, 0.08);
}
#site-header.scrolled .header-nav a {
  color: #1F64B1 !important;
}
#site-header.scrolled .header-nav a:hover {
  color: #F2A900 !important;
}
#site-header.scrolled .header-brand-text {
  color: #1F64B1 !important;
}
#site-header.scrolled .header-sub-text {
  color: #5B6B7C !important;
}
#site-header.scrolled #mobile-toggle {
  color: #1F64B1 !important;
}

/* Efecto Latido Infinito (Heartbeat) para Botones Flotantes */
@keyframes heartbeat {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(230, 81, 0, 0.4);
  }
  14% {
    transform: scale(1.12);
    box-shadow: 0 0 0 14px rgba(230, 81, 0, 0);
  }
  28% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(230, 81, 0, 0.4);
  }
  42% {
    transform: scale(1.12);
    box-shadow: 0 0 0 14px rgba(230, 81, 0, 0);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(230, 81, 0, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(230, 81, 0, 0);
  }
}

.heartbeat-btn {
  animation: heartbeat 2.2s infinite ease-in-out;
}

.heartbeat-btn:hover {
  animation-play-state: paused;
}

/* Hero Slider Styles */
.hero-slide {
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-slide.active {
  opacity: 1;
  z-index: 20;
}

/* Hero Slider Controls */
.hero-dot {
  transition: all 0.3s ease;
}
.hero-dot.active {
  width: 32px !important;
  background-color: #F2A900 !important;
  border-radius: 9999px;
}

/* Hero Title Specification: exactamente 2 renglones */
.hero-title {
  font-size: clamp(22px, 4.2vw, 44px) !important;
  line-height: 1.15 !important;
}
.hero-title span {
  display: block;
}
.hero-title span:first-child {
  white-space: nowrap;
}

/* Parrafos del hero: exactamente 2 renglones */
.hero-desc {
  max-width: 680px;
}
@media (min-width: 768px) {
  .hero-desc {
    max-width: 720px;
    font-size: 1.125rem !important;
    line-height: 1.65 !important;
  }
}

/* Animaciones sutiles */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}
