/* -------------------------------------------------------------
   SYSTEM DESIGN - FMH FABRICACIÓN METÁLICA HERMOSILLO
   Estética Industrial Premium - Basado en la paleta de color del logotipo
   ------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Paleta de Colores Extraída de Logotipo */
  --accent-primary: #5f9dd3;       /* Azul medio del logo */
  --accent-light: #a5caf6;         /* Azul pastel claro del logo */
  --accent-primary-rgb: 95, 157, 211;
  --accent-light-rgb: 165, 202, 246;

  /* Fondos y Superficies Metalizadas */
  --bg-dark: #0a0d16;              /* Gris azulado ultra oscuro */
  --bg-body: #0d1220;              /* Fondo de la página */
  --bg-card: rgba(22, 31, 49, 0.65); /* Tarjetas con glassmorphism */
  --bg-card-hover: rgba(30, 41, 67, 0.85);
  --border-color: rgba(95, 157, 211, 0.15);
  --border-hover: rgba(165, 202, 246, 0.4);

  /* Texto */
  --text-light: #f1f5f9;           /* Blanco azulado suave */
  --text-muted: #94a3b8;           /* Gris azulado medio */
  --text-dark: #0f172a;

  /* Fuentes y Sombras */
  --font-main: 'Outfit', sans-serif;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 25px rgba(95, 157, 211, 0.2);
  --shadow-glow-strong: 0 0 35px rgba(165, 202, 246, 0.45);

  /* Transiciones */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Efecto de Rejilla Industrial en el Fondo */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(95, 157, 211, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 157, 211, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -2;
  pointer-events: none;
}

/* Luces de Neón de Fondo (Glows) */
.ambient-glow-1 {
  position: absolute;
  top: 15%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(95, 157, 211, 0.15) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
}

.ambient-glow-2 {
  position: absolute;
  top: 60%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(165, 202, 246, 0.1) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(100px);
}

/* Scrollbar Personalizado */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-light);
}

/* Enlaces y Tipografía */
a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* -------------------------------------------------------------
   COMPONENTES REUTILIZABLES
   ------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Botones Premium */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary) 0%, #447dae 100%);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-primary) 100%);
  box-shadow: var(--shadow-glow-strong);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(22, 31, 49, 0.6);
  color: var(--accent-light);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(95, 157, 211, 0.15);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #20ba5a;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  transform: translateY(-2px);
}

/* Insignias / Badges */
.badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 50px;
  background: rgba(95, 157, 211, 0.1);
  color: var(--accent-light);
  border: 1px solid rgba(95, 157, 211, 0.3);
  margin-bottom: 1.25rem;
}

/* Títulos de Sección */
.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-light) 30%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
}

/* -------------------------------------------------------------
   HEADER / NAVBAR (GLASSMORPHISM)
   ------------------------------------------------------------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 13, 22, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-normal);
}

.header.scrolled {
  padding: 0.5rem 0;
  background: rgba(7, 9, 15, 0.9);
  box-shadow: var(--shadow-md);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  transition: var(--transition-normal);
}

.header.scrolled .navbar {
  padding: 0.5rem 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-brand img {
  height: 50px;
  width: auto;
  transition: var(--transition-normal);
}

.header.scrolled .nav-brand img {
  height: 42px;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-light);
  line-height: 1;
  letter-spacing: -0.01em;
}

.brand-subtitle {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
}

/* Menú Hamburguesa Móvil */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1100;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-light);
  margin-bottom: 5px;
  transition: var(--transition-normal);
}

.mobile-menu-toggle span:last-child {
  margin-bottom: 0;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -5px);
}

/* -------------------------------------------------------------
   HERO SECTION
   ------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 60px;
  overflow: hidden;
}

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

.hero-content {
  z-index: 2;
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-title span {
  display: block;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

/* Visual del Logo 3D/Premium en el Hero */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-visual-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(95, 157, 211, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-large {
  width: 85%;
  height: auto;
  filter: drop-shadow(0 15px 35px rgba(95, 157, 211, 0.25));
  animation: float 6s ease-in-out infinite;
}

.hero-tech-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px dashed rgba(95, 157, 211, 0.2);
  border-radius: 50%;
  animation: rotateClockwise 25s linear infinite;
}

.hero-tech-circle-outer {
  position: absolute;
  width: 115%;
  height: 115%;
  border: 1px solid rgba(165, 202, 246, 0.1);
  border-radius: 50%;
  border-right-color: transparent;
  border-left-color: transparent;
  animation: rotateCounter 35s linear infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes rotateClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotateCounter {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* -------------------------------------------------------------
   SECCIÓN SERVICIOS
   ------------------------------------------------------------- */

.services {
  padding: 100px 0;
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 3rem 2.25rem;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-normal);
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(95, 157, 211, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--accent-light);
  border: 1px solid rgba(95, 157, 211, 0.2);
  transition: var(--transition-normal);
}

.service-card:hover .service-icon {
  background: var(--accent-primary);
  color: var(--bg-dark);
  box-shadow: 0 0 15px rgba(95, 157, 211, 0.4);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-light);
}

.service-card p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.975rem;
}

.service-features {
  margin-top: auto;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-features li {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-light);
}

.service-features li svg {
  width: 16px;
  height: 16px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

/* -------------------------------------------------------------
   SECCIÓN ESPECIFICACIONES / TECNOLOGÍA (BLUEPRINT STYLE)
   ------------------------------------------------------------- */

.tech-specs {
  padding: 100px 0;
  background: rgba(10, 13, 22, 0.4);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

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

.tech-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.tech-content p {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.spec-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.spec-item {
  border-left: 3px solid var(--accent-primary);
  padding-left: 1.25rem;
}

.spec-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.spec-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* Panel de Blueprint Visual */
.blueprint-card {
  background: radial-gradient(circle at top left, #0e1b35, #081022);
  border: 1px solid var(--accent-primary);
  border-radius: 12px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}

.blueprint-card::after {
  content: 'FMH TECH SPEC';
  position: absolute;
  bottom: 15px;
  right: 15px;
  font-family: monospace;
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: rgba(95, 157, 211, 0.4);
}

.blueprint-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(95, 157, 211, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 157, 211, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.blueprint-header {
  border-bottom: 1px solid rgba(95, 157, 211, 0.3);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blueprint-title {
  font-family: monospace;
  font-size: 1.1rem;
  color: var(--accent-light);
}

.blueprint-title span {
  color: var(--text-muted);
}

.blueprint-crosshair {
  width: 15px;
  height: 15px;
  position: relative;
}

.blueprint-crosshair::before,
.blueprint-crosshair::after {
  content: '';
  position: absolute;
  background: var(--accent-primary);
}

.blueprint-crosshair::before {
  top: 7px;
  left: 0;
  width: 100%;
  height: 1px;
}

.blueprint-crosshair::after {
  left: 7px;
  top: 0;
  width: 1px;
  height: 100%;
}

.blueprint-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-family: monospace;
  font-size: 0.9rem;
}

.blueprint-label {
  color: var(--text-muted);
}

.blueprint-val {
  color: var(--text-light);
  font-weight: 600;
  border-bottom: 1px dashed rgba(95, 157, 211, 0.4);
  padding-bottom: 2px;
}

/* -------------------------------------------------------------
   SECCIÓN GALERÍA DE PROYECTOS
   ------------------------------------------------------------- */

.gallery {
  padding: 100px 0;
}

.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
  list-style: none;
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  transition: var(--transition-normal);
}

.filter-btn:hover {
  border-color: var(--accent-primary);
  color: var(--text-light);
}

.filter-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--bg-dark);
  box-shadow: var(--shadow-glow);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow-md);
  transition: var(--transition-slow);
}

.gallery-image-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efecto Hover Overlay */
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(10, 13, 22, 0.95) 0%, rgba(10, 13, 22, 0.4) 60%, rgba(10, 13, 22, 0.1) 100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  transition: var(--transition-normal);
  z-index: 2;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent-light);
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.gallery-item-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.gallery-item-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* -------------------------------------------------------------
   SECCIÓN SOBRE NOSOTROS (FMH)
   ------------------------------------------------------------- */

.about {
  padding: 100px 0;
  background: rgba(10, 13, 22, 0.4);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

.about-content h2 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-light) 30%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.about-details {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.about-details li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.about-details-icon {
  width: 24px;
  height: 24px;
  color: var(--accent-primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.about-details text h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-light);
}

.about-details text p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Estilo para los Números/Métricas del Taller */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-light);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* -------------------------------------------------------------
   SECCIÓN CONTACTO Y UBICACIÓN (LOCAL SEO)
   ------------------------------------------------------------- */

.contact {
  padding: 100px 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: stretch;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 3.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(10px);
}

.contact-card h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.contact-card p {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-info-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.contact-info-icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: rgba(95, 157, 211, 0.1);
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(95, 157, 211, 0.2);
}

.contact-info-item h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-light);
  margin-bottom: 0.25rem;
}

.contact-info-item p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-light);
  font-weight: 500;
}

.contact-info-item a {
  color: var(--text-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-info-item a:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Mapa Falso / Gráfico de Localización Sonora de Alta Calidad */
.map-container {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 450px;
  box-shadow: var(--shadow-md);
}

.map-placeholder {
  flex-grow: 1;
  background: radial-gradient(circle at 40% 50%, #172746 0%, #0a0d16 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem;
}

/* Rejilla de Blueprint de Fondo para el Mapa */
.map-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(165, 202, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(165, 202, 246, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

/* Representación estilizada del mapa de Sonora y Hermosillo */
.map-vector {
  width: 75%;
  height: auto;
  opacity: 0.25;
  filter: drop-shadow(0 0 10px rgba(95, 157, 211, 0.3));
}

.map-marker {
  position: absolute;
  top: 45%;
  left: 42%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5;
}

.marker-pulse {
  width: 16px;
  height: 16px;
  background: var(--accent-light);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(165, 202, 246, 0.7);
  animation: pulse 2s infinite;
  border: 2px solid #fff;
}

.marker-label {
  margin-top: 8px;
  background: rgba(10, 13, 22, 0.95);
  border: 1px solid var(--accent-primary);
  border-radius: 4px;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-light);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  font-family: monospace;
}

.map-overlay-card {
  background: rgba(10, 13, 22, 0.9);
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.map-overlay-text h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.map-overlay-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(165, 202, 246, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 15px rgba(165, 202, 246, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(165, 202, 246, 0);
  }
}

/* -------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------- */

.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 2rem 0;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon:hover {
  background: var(--accent-primary);
  color: var(--bg-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-links-list a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links-list a:hover {
  color: var(--accent-light);
  padding-left: 5px;
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-contact-list li {
  display: flex;
  gap: 0.75rem;
}

.footer-contact-list svg {
  color: var(--accent-primary);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}

/* -------------------------------------------------------------
   ANIMACIONES SCROLL REVEAL Y RESPONSIVIDAD
   ------------------------------------------------------------- */

/* Elementos Invisibles Antes de Animarse */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVIDAD */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  .hero-grid {
    gap: 2rem;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tech-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  /* Mobile Navbar */
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 79px; /* Altura del header */
    left: -100%;
    width: 100%;
    height: calc(100vh - 79px);
    background: rgba(10, 13, 22, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 2rem;
    transition: var(--transition-normal);
    z-index: 999;
    align-items: flex-start;
    border-top: 1px solid var(--border-color);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-actions {
    display: none; /* Se oculta de la barra y se agrega al menú móvil si es necesario */
  }

  .nav-brand img {
    height: 42px;
  }

  .brand-title {
    font-size: 1.15rem;
  }

  /* Hero Mobile */
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-visual {
    order: -1; /* Muestra el logo arriba en móvil */
  }
  
  .hero-visual-wrapper {
    max-width: 280px;
  }

  /* Grid Reductions */
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .stats-grid {
    order: 2;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .section-title h2 {
    font-size: 2.25rem;
  }
}

/* ============================================================
   NUEVOS ESTILOS: HERO TRUST BAR + SECTOR CARDS (SEO/UX update)
   ============================================================ */

/* Trust bar en el hero */
.hero-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 2rem;
}

.hero-trust-item {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.hero-trust-item svg {
  flex-shrink: 0;
  margin-right: 6px;
}

/* Sector cards hover */
.sector-card:hover {
  border-color: rgba(95, 157, 211, 0.45) !important;
  box-shadow: 0 8px 30px rgba(95, 157, 211, 0.15);
  transform: translateY(-4px);
}

/* Ensure the sectors section header is consistent */
#sectores .section-title {
  text-align: center;
}

/* Mobile adjustments for trust bar */
@media (max-width: 600px) {
  .hero-trust-bar {
    gap: 0.75rem 1rem;
  }
  .hero-trust-item {
    font-size: 0.78rem;
  }
}

/* ============================================================
   FAQ SECTION (GEO - Generative Engine Optimization)
   ============================================================ */

.faq-section {
  padding: 100px 0;
  background: linear-gradient(180deg, rgba(10,13,22,0.0) 0%, rgba(14,20,35,0.6) 100%);
  border-top: 1px solid var(--border-color);
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-item:first-child {
  border-top: 1px solid var(--border-color);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0.25rem;
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-light);
  text-align: left;
  transition: color var(--transition-fast);
  line-height: 1.4;
}

.faq-question:hover {
  color: var(--accent-light);
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: var(--accent-primary);
  transition: transform var(--transition-normal);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-question[aria-expanded="true"] {
  color: var(--accent-light);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  padding-bottom: 0;
}

.faq-answer.open {
  max-height: 400px;
  padding-bottom: 1.5rem;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  padding-right: 2rem;
}

.faq-answer p strong {
  color: var(--text-light);
  font-weight: 600;
}

.faq-answer p a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.faq-answer p a:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .faq-question {
    font-size: 0.95rem;
    padding: 1.2rem 0.1rem;
  }
  .faq-answer p {
    font-size: 0.875rem;
    padding-right: 0.5rem;
  }
}
