/* =====================================================
   CAEC MAQUINADOS INDUSTRIALES — Layout de Secciones
   ===================================================== */

/* ── Contenedor Principal ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-pad);
  width: 100%;
}

/* ── Secciones Generales ── */
section {
  position: relative;
}

/* ──────────────────────────────────────
   HERO - ID: hero
────────────────────────────────────── */
/* stilos ya en caec-components.css */

/* ──────────────────────────────────────
   NOSOTROS - ID: nosotros
────────────────────────────────────── */
#nosotros {
  background: #F8FAFC;
  padding: 40px 0; /* Compacto */
  position: relative;
  overflow: hidden;
  min-height: auto;
}

#nosotros::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(3, 105, 161, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.nosotros-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-8);
}

.nosotros-intro p {
  font-size: var(--text-lg);
  color: var(--color-gray-400);
  line-height: var(--leading-loose);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.nosotros-cta {
  text-align: center;
}

/* ──────────────────────────────────────
   SERVICIOS - ID: servicios
────────────────────────────────────── */
#servicios {
  background: #F1F5F9;
  padding: 40px 0; /* Compacto */
  position: relative;
}

#servicios::after {
  content: '';
  position: absolute;
  bottom: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(3, 105, 161, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.servicios-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.servicios-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.servicios-content .section-header {
  text-align: left;
  margin-bottom: 0;
}

/* ──────────────────────────────────────
   ESTADÍSTICAS - ID: stats
────────────────────────────────────── */
#stats {
  background: #FFFFFF;
  border-top: 1px solid var(--color-dark-700);
  border-bottom: 1px solid var(--color-dark-700);
  position: relative;
  overflow: hidden;
}

#stats::before {
  content: 'CAEC';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 20vw;
  font-weight: var(--weight-black);
  color: rgba(3,105,161,0.03);
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: 0.2em;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

/* ──────────────────────────────────────
   GALERÍA - ID: galeria
────────────────────────────────────── */
#galeria {
  background: #F8FAFC;
  padding: 40px 0; /* Compacto */
  position: relative;
}

.gallery-section-wrapper {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-pad);
}

/* ──────────────────────────────────────
   VIDEOS - ID: videos (dentro de galería)
────────────────────────────────────── */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* Mejor balance */
  gap: var(--space-4);
  margin-top: var(--space-8);
}

/* ──────────────────────────────────────
   CONTACTO - ID: contacto
────────────────────────────────────── */
#contacto {
  background: #F1F5F9;
  padding: var(--section-padding);
}

.map-container {
  margin-bottom: var(--space-12);
}

/* ──────────────────────────────────────
   FOOTER
────────────────────────────────────── */
footer {
  background: var(--color-dark-900);
}

/* ──────────────────────────────────────
   HERO PARTICLE CANVAS OVERLAY
────────────────────────────────────── */
#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* ──────────────────────────────────────
   HELPERS / UTILITIES
────────────────────────────────────── */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }
.text-primary { color: var(--color-primary); }
.text-muted   { color: var(--color-gray-500); }
.text-white   { color: var(--color-white); }

.mt-auto { margin-top: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

.d-flex  { display: flex; }
.d-grid  { display: grid; }
.d-block { display: block; }
.d-none  { display: none; }

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }
.gap-12 { gap: var(--space-12); }

.w-full { width: 100%; }

/* hidden from screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Tag list for service features */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.tag {
  padding: var(--space-1) var(--space-3);
  background: rgba(0, 198, 215, 0.08);
  border: 1px solid rgba(0, 198, 215, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-primary-light);
  letter-spacing: var(--tracking-wide);
}
