/* ============================================================
   Pulimentos Rodríguez — Estilos compartidos páginas de servicio
   Requiere: styles.css cargado antes
   ============================================================ */

/* ── Hero de servicio ── */
.service-hero {
  background: var(--dark);
  padding: 6rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.service-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(42,122,191,.1) 0%, transparent 65%);
  pointer-events: none;
}
.service-hero .breadcrumb {
  display: flex; align-items: center; justify-content: center;
  gap: .5rem; font-size: .8rem; color: rgba(255,255,255,.4);
  margin-bottom: 1.25rem; flex-wrap: wrap;
}
.service-hero .breadcrumb a {
  color: rgba(255,255,255,.45); text-decoration: none;
  transition: color .2s;
}
.service-hero .breadcrumb a:hover { color: var(--blue-light); }
.service-hero .breadcrumb span { color: rgba(255,255,255,.25); }
.service-hero .section-label { color: var(--blue-light); }
.service-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 5vw, 3rem);
  color: #fff; font-weight: 700; line-height: 1.15;
  margin-bottom: .9rem;
}
.service-hero .hero-lead {
  font-size: 1.05rem; color: rgba(255,255,255,.6);
  max-width: 580px; margin: 0 auto;
}

/* ── Sub-nav entre páginas de servicio ── */
.services-subnav {
  background: var(--dark-mid);
  border-bottom: 1px solid rgba(255,255,255,.07);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.services-subnav ul {
  list-style: none;
  display: flex;
  max-width: 1200px; margin: 0 auto;
  padding: 0 1.5rem;
  white-space: nowrap;
}
.services-subnav a {
  display: block; padding: .85rem 1.1rem;
  color: rgba(255,255,255,.5); text-decoration: none;
  font-size: .85rem; border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.services-subnav a:hover { color: #fff; }
.services-subnav a.active { color: #fff; border-bottom-color: var(--blue-light); }

/* ── Cuerpo del servicio ── */
.service-body {
  max-width: 960px; margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

/* ── Intro: 2 columnas (texto + vídeo) ── */
.service-intro {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3.5rem; align-items: start;
  margin-bottom: 4rem;
}
/* Variante de 1 columna (sin vídeo) */
.service-intro--single {
  grid-template-columns: 1fr;
  max-width: 720px;
}
.service-intro-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--dark); margin-bottom: 1rem;
}
.service-intro-text p {
  color: var(--text-light); font-size: .97rem;
  line-height: 1.75; margin-bottom: 1rem;
}
.service-intro-text p:last-child { margin-bottom: 0; }
.service-intro-text strong { color: var(--text); font-weight: 500; }

/* ── Vídeo embed ── */
.video-wrap {
  position: relative; width: 100%;
  aspect-ratio: 16/9; border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(13,33,55,.18);
}
.video-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: none;
}

/* ── Proceso paso a paso ── */
.process-section { margin-bottom: 4rem; }
.process-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--dark); margin-bottom: 2rem;
}
.process-steps { display: flex; flex-direction: column; gap: 1.25rem; }
.process-step {
  display: flex; gap: 1.5rem; align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--stone-mid);
  border-radius: 12px; padding: 1.5rem;
  transition: box-shadow .3s, transform .3s;
}
.process-step:hover {
  box-shadow: 0 6px 24px rgba(42,122,191,.1);
  transform: translateX(4px);
}
.step-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--blue); color: #fff;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700;
}
.step-num svg { width: 20px; height: 20px; }
.step-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; color: var(--dark);
  margin-bottom: .4rem;
}
.step-body p { font-size: .92rem; color: var(--text-light); line-height: 1.7; }

/* ── Galería antes/después ── */
.before-after { margin-bottom: 4rem; }
.before-after h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--dark); margin-bottom: .5rem;
}
.before-after-note {
  font-size: .85rem; color: var(--text-light); margin-bottom: 1.5rem;
}
.before-after-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.before-after-grid img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(13,33,55,.1);
  transition: transform .4s;
  background: var(--stone);
}
.before-after-grid img:hover { transform: scale(1.02); }

/* ── CTA banner ── */
.service-cta {
  background: var(--dark);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.service-cta h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; color: #fff; margin-bottom: .4rem;
}
.service-cta p { font-size: .9rem; color: rgba(255,255,255,.55); }
.service-cta a.btn-primary { display: inline-block; white-space: nowrap; }

/* ── Navegación prev/next ── */
.page-nav {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid var(--stone-mid);
  flex-wrap: wrap;
}
.page-nav a {
  display: flex; align-items: center; gap: .6rem;
  color: var(--blue); text-decoration: none;
  font-size: .88rem; font-weight: 500;
  padding: .65rem 1.1rem;
  background: var(--stone); border-radius: 8px;
  border: 1px solid var(--stone-mid);
  transition: background .2s, border-color .2s;
}
.page-nav a:hover { background: var(--blue-pale); border-color: var(--blue-light); }
.page-nav a svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }
.page-nav .next { margin-left: auto; }

/* ── Responsive ── */
@media(max-width: 800px) {
  .service-intro { grid-template-columns: 1fr; gap: 2rem; }
  .before-after-grid { grid-template-columns: 1fr; }
  .service-cta { flex-direction: column; text-align: center; }
  .service-cta a.btn-primary { width: 100%; text-align: center; }
}
@media(max-width: 480px) {
  .process-step { flex-direction: column; gap: .75rem; }
  .page-nav { flex-direction: column; }
  .page-nav .next { margin-left: 0; }
}
