/* =============================================================
   Página de Servicios — diseño diferenciado de la home
   ============================================================= */

/* ─── Hero servicio ──────────────────────────────────────── */
.srv-hero {
  padding: calc(var(--nav-h) + 5rem) 0 5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.srv-hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}
.srv-hero-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 500;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.srv-hero-title em { font-style: italic; color: var(--accent); }
.srv-hero-sub {
  font-size: 1.0625rem;
  color: var(--ink-mute);
  line-height: 1.75;
  max-width: 52ch;
  margin-bottom: 2.5rem;
}
.srv-hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.srv-hero-photo {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
}
.srv-hero-photo img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
}
.srv-hero-badge {
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  background: var(--accent);
  color: #fff;
  padding: 1rem 1.25rem;
  text-align: center;
  border-radius: 12px;
}
.srv-hero-badge .badge-num { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1; }
.srv-hero-badge .badge-text { display: block; font-size: .7rem; font-weight: 500; letter-spacing: .08em; opacity: .85; }

/* ─── Para quién ─────────────────────────────────────────── */
.para-quien {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--bg-2);
}
.pq-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}
.pq-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.pq-list li {
  display: flex;
  gap: .75rem;
  font-size: .9375rem;
  color: var(--ink-soft);
  line-height: 1.65;
  align-items: flex-start;
}
.pq-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: .05rem;
}
.pq-list--no li::before {
  content: '✕';
  color: var(--ink-mute);
  font-weight: 400;
}
.pq-no-title { font-size: clamp(1.5rem, 3vw, 2.2rem); }

/* ─── Cómo funciona ──────────────────────────────────────── */
.how-it-works {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--bg);
}
.hiw-header { margin-bottom: 4rem; max-width: 600px; }
.hiw-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
  margin-bottom: 3rem;
}
.hiw-step {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.step-num {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .1em;
  padding-top: .35rem;
}
.step-content h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: .6rem;
}
.step-content p { font-size: .9375rem; color: var(--ink-mute); line-height: 1.7; }

.hiw-detail {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1rem;
}
.hiw-tag {
  display: flex;
  gap: .5rem;
  align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: .6rem 1.1rem;
  border-radius: 50px;
  font-size: .875rem;
  color: var(--ink-soft);
}
.hiw-tag span { font-size: 1rem; }

/* ─── Vídeos testimoniales ───────────────────────────────── */
.srv-videos {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--bg-2);
}
.srv-videos-header { margin-bottom: 3.5rem; }
.srv-videos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* ─── CTA final ──────────────────────────────────────────── */
.srv-cta-final {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--bg-dark);
}
.srv-cta-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
.srv-cta-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 3px solid rgba(245,240,235,.15);
  margin: 0 auto;
  display: block;
}
.srv-cta-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 1rem;
  line-height: 1.15;
}
.srv-cta-title em { font-style: italic; color: var(--accent); }
.srv-cta-content p { font-size: .9375rem; color: rgba(245,240,235,.6); line-height: 1.7; margin-bottom: 2rem; }

/* ─── Vídeo embed card ───────────────────────────────────── */
.video-card {
  background: var(--bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.video-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(30,26,22,.1); }
.video-embed {
  position: relative;
  padding-bottom: 177%;  /* 9:16 vertical para vídeos de móvil/WhatsApp */
  height: 0;
  overflow: hidden;
  background: var(--bg-dark);
  border-radius: 12px 12px 0 0;
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
  color: var(--ink-mute);
  font-size: .875rem;
  gap: .75rem;
}
.video-placeholder-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-placeholder-icon::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}
.video-card-footer {
  padding: 1.25rem 1.5rem;
}
.video-name { font-weight: 500; font-size: .9375rem; color: var(--ink); display: block; }
.video-role { font-size: .8125rem; color: var(--ink-mute); display: block; margin-top: .2rem; }
.video-summary {
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* Botón de sonido */
.video-sound-btn {
  position: absolute;
  bottom: .75rem;
  right: .75rem;
  background: rgba(30,26,22,.65);
  backdrop-filter: blur(6px);
  border-radius: 50px;
  padding: .35rem .75rem;
  font-size: .75rem;
  color: #fff;
  cursor: pointer;
  z-index: 2;
  transition: background .2s;
  user-select: none;
}
.video-sound-btn:hover { background: rgba(30,26,22,.9); }

/* ─── Sección vídeos en home ─────────────────────────────── */
.video-testimonials {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--bg-dark);
}
.video-testimonials .section-title { color: var(--cream); }
.video-testimonials .section-kicker { color: rgba(245,240,235,.5); }
.vt-header { margin-bottom: 3rem; }
.vt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.vt-more { display: flex; justify-content: center; }
.video-testimonials .btn-outline { color: var(--cream); border-color: rgba(245,240,235,.3); }
.video-testimonials .btn-outline:hover { border-color: rgba(245,240,235,.7); }

/* ─── Mobile fixes ───────────────────────────────────────── */
@media (max-width: 719px) {
  /* Hero servicio */
  .srv-hero { padding: calc(var(--nav-h) + 2.5rem) 0 3rem; }
  .srv-hero-title { font-size: clamp(2rem, 9vw, 2.8rem); }
  .srv-hero-sub { font-size: .9375rem; }
  .srv-hero-actions { flex-direction: column; }
  .srv-hero-actions .btn { width: 100%; justify-content: center; }
  .srv-hero-photo { max-width: 100%; }
  .srv-hero-photo img { aspect-ratio: 3/2; }
  .srv-hero-badge { left: auto; right: 1rem; bottom: -1rem; }

  /* Para quién */
  .pq-list li { font-size: .875rem; }

  /* Cómo funciona */
  .hiw-step { grid-template-columns: 2.5rem 1fr; gap: 1rem; }
  .hiw-detail { gap: .5rem; }
  .hiw-tag { font-size: .8125rem; padding: .5rem .9rem; }

  /* Vídeos servicios — 1 col + formato vertical */
  .srv-videos-grid { grid-template-columns: 1fr !important; }
  .srv-videos-grid .video-embed { padding-bottom: 177% !important; }

  /* CTA final */
  .srv-cta-inner { text-align: center; }
  .srv-cta-photo { margin: 0 auto 1.5rem; }
  .srv-cta-content .btn { width: 100%; justify-content: center; }
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (min-width: 720px) {
  .srv-hero-inner { grid-template-columns: 1fr 420px; gap: 5rem; }
  .srv-hero-photo { margin: 0; }
  .pq-inner { grid-template-columns: 1fr 1fr; }
  .srv-videos-grid { grid-template-columns: repeat(3, 1fr); }
  .vt-grid { grid-template-columns: repeat(3, 1fr); }
  .srv-cta-inner { grid-template-columns: 180px 1fr; gap: 4rem; }
  .srv-cta-photo { margin: 0; width: 180px; height: 180px; }
}

@media (min-width: 960px) {
  .hiw-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border: none;
    gap: 0;
  }
  .hiw-step {
    border: 1px solid var(--line);
    margin: -1px -1px 0 0;
    padding: 2.5rem;
    display: block;
  }
  .step-num { margin-bottom: 1.5rem; }
}
