/* ============================================
   VALFOS S.A. — Home Page Styles
   pages/index.css · v1.0
   ============================================ */

/* --- Hero (Home-specific) --- */
#inicio { padding-top: var(--header-h); }

/* --- Stats Section --- */
#trayectoria {
  border-bottom: 1px solid var(--border-on-light-subtle);
}

/* --- Servicios Section --- */
#servicios { padding: 100px 0; }
#servicios .section-header h2 { font-size: clamp(var(--text-2xl), 3.5vw, var(--text-3xl)); }

/* --- Hormigon Section --- */
#hormigon { padding: 80px 0; }
#hormigon .section-header { text-align: center; max-width: 800px; margin: 0 auto var(--space-xl); }
#hormigon .section-header p { margin: 0 auto; }
#hormigon .section-header h2 { font-size: clamp(var(--text-xl), 3vw, var(--text-2xl)); }

.hormigon-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hormigon-feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-base);
  color: var(--text-on-light-secondary);
}

.hormigon-feature i {
  color: var(--primary);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .hormigon-features { grid-template-columns: 1fr 1fr; max-width: 100%; }
}

/* --- Proyectos Section --- */
#proyectos { padding: 100px 0; }
#proyectos .section-header h2 { font-size: clamp(var(--text-2xl), 3.5vw, var(--text-3xl)); }

/* Gradiente fallback para proyecto sin imagen */
.project-placeholder-1 {
  background: linear-gradient(135deg, var(--secondary) 0%, #3a3a3a 100%);
}
.project-placeholder-2 {
  background: linear-gradient(135deg, var(--primary-subtle) 0%, var(--secondary) 100%);
}

/* --- Cobertura Section --- */
#cobertura { padding: 80px 0; }
#cobertura .section-header h2 { font-size: clamp(var(--text-lg), 2.5vw, var(--text-xl)); }
#cobertura .section-header { margin-bottom: var(--space-2xl); }

/* --- Proceso Section --- */
#proceso { padding: 80px 0; }
#proceso .section-header { text-align: center; }
#proceso .section-header h2 { font-size: clamp(var(--text-xl), 3vw, var(--text-2xl)); }

/* --- Por Qué Section --- */
#por-que { padding: 120px 0; }
#por-que .section-header h2 { font-size: clamp(var(--text-2xl), 3.5vw, var(--text-3xl)); }
#por-que .section-header { margin-bottom: var(--space-2xl); }

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

.porque-media {
  border-radius: 4px;
  overflow: hidden;
  max-height: 620px;
}

.porque-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 5 / 6;
  display: block;
}

@media (min-width: 1024px) {
  .porque-layout { grid-template-columns: 1fr 420px; }
  .porque-media { max-height: none; }
}

/* --- Testimonios Section --- */
#testimonios { padding: 80px 0; }
#testimonios .section-header { text-align: center; }
#testimonios .section-header h2 { font-size: clamp(var(--text-lg), 2.5vw, var(--text-xl)); }

/* --- Contacto / CTA Section --- */
#contacto { padding: 100px 0; }
#contacto .contact-cta h2 { font-size: clamp(var(--text-2xl), 3.5vw, var(--text-3xl)); }

/* CTA accent bar */
.contact-cta {
  position: relative;
  padding-left: var(--space-xl);
}
.contact-cta::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
}

@media (max-width: 767px) {
  .contact-cta { padding-left: var(--space-md); }
  .contact-cta::before { width: 2px; }
}

/* --- Hormigon banner specific --- */
.hormigon-banner {
  background-position: center;
  background-size: cover;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.hormigon-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.3);
}

/* --- Section spacing mobile overrides --- */
@media (max-width: 767px) {
  #servicios { padding: 64px 0; }
  #hormigon { padding: 56px 0; }
  #proyectos { padding: 64px 0; }
  #cobertura { padding: 56px 0; }
  #proceso { padding: 56px 0; }
  #por-que { padding: 80px 0; }
  #testimonios { padding: 56px 0; }
  #contacto { padding: 64px 0; }
}
