/* =========================================================
   Integración audiovisual y domótica — estilos de página
   Extiende styles.css, mismos tokens de marca.
   ========================================================= */

/* ---------- Breadcrumb superior ---------- */
.pre-hero { padding: clamp(18px, 3vw, 28px) 0; }

/* ---------- Banner con foto de fondo a todo lo ancho ----------
   Misma técnica para el hero y para "Audio + acústica": foto de
   fondo edge-to-edge con degradado oscuro de izquierda a derecha
   y texto encima (así es como está armada la maqueta, no como
   una grilla de dos columnas con caja de imagen aparte). */
.photo-banner {
  position: relative;
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.photo-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(16,16,20,.95) 0%, rgba(16,16,20,.85) 32%, rgba(16,16,20,.4) 60%, rgba(16,16,20,.05) 85%);
}
.photo-banner-inner {
  position: relative; z-index: 1;
  max-width: 600px;
  padding: clamp(40px, 7vw, 80px) clamp(20px, 4vw, 56px);
}
.photo-banner-inner .eyebrow-split {
  font-family: var(--font-display); font-weight: 800;
  text-transform: uppercase; line-height: 1.08;
  font-size: clamp(24px, 2.6vw, 34px); margin: 0 0 18px;
}
.photo-banner-inner .eyebrow-split span { display: block; }
.photo-banner-inner .eyebrow-split .accent { color: var(--accent); }
.photo-banner-inner .eyebrow { color: var(--accent); }
.photo-banner-inner h2 { color: #fff; }
.photo-banner-inner h2 em { font-style: normal; color: var(--accent); }
.photo-banner-inner .lead { color: #fff; margin: 0 0 14px; }
.photo-banner-inner p.muted-light { color: rgba(255,255,255,.7); font-size: 15px; }
.photo-banner-inner p { color: rgba(255,255,255,.75); }
.photo-banner-inner .btn-row { margin-top: 24px; }
.photo-banner-inner .btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.photo-banner-inner .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.hero-banner {
  background: var(--dark) url("./assets/img/av-hero.jpg") center / cover no-repeat;
  min-height: clamp(380px, 36vw, 580px);
}
.audio-banner {
  background: var(--dark) url("./assets/img/av-audio-acustica-banner.jpg") center / cover no-repeat;
  min-height: clamp(360px, 32vw, 520px);
}

/* ---------- Grid de soluciones (tarjetas cuadradas) ---------- */
.solution-grid {
  display: grid;
  gap: clamp(16px, 2vw, 22px);
  margin-top: clamp(22px, 3vw, 34px);
}
.solution-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.solution-card img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--radius); margin-bottom: 14px;
}
.solution-card h3 { font-size: 15px; margin-bottom: 6px; line-height: 1.25; }
.solution-card p { font-size: 13px; color: var(--text-muted); }
.head h2 em { font-style: normal; color: var(--accent); }

/* ---------- Proceso con timeline ---------- */
.process-row {
  display: flex; flex-wrap: wrap; gap: 24px 0;
  margin-top: clamp(20px, 3vw, 34px);
}
.process-step { flex: 1 1 200px; padding-right: 20px; }
.process-num {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(24px, 2.4vw, 30px); color: var(--accent); margin-bottom: 8px;
}
.process-step h3 { font-size: 15.5px; margin-bottom: 6px; }
.process-step p { font-size: 13.8px; color: var(--text-muted); }

.timeline {
  display: flex; align-items: center;
  margin-top: clamp(24px, 3vw, 36px);
  padding-top: 20px; border-top: 1px solid var(--line);
}
.timeline .tl-label {
  font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
  color: var(--text); white-space: nowrap;
}
.timeline .tl-line { flex: 1 1 auto; height: 1px; background: var(--accent); margin: 0 12px; min-width: 16px; }

/* ---------- Aplicaciones (fondo oscuro, foto + etiqueta) ---------- */
.applications { background: var(--dark); color: #fff; }
.applications .eyebrow { color: var(--accent); }
.applications h2 { color: #fff; }
.app-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: clamp(12px, 1.6vw, 18px);
  margin-top: clamp(22px, 3vw, 34px);
}
.app-card img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--radius); margin-bottom: 12px;
}
.app-card span {
  display: block; text-align: center; font-size: 13px; font-weight: 700;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .solution-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .app-grid { grid-template-columns: repeat(3, 1fr); }
  .photo-banner-inner { max-width: 100%; }
  .timeline { flex-wrap: wrap; gap: 10px; }
  .timeline .tl-line { display: none; }
}
@media (max-width: 560px) {
  .solution-grid.cols-5, .app-grid { grid-template-columns: repeat(2, 1fr); }
}
