/* ═══════════════════════════════════════════════════════════ */
/* SERVICE PAGE LAYOUT — Semrush One-inspired                  */
/* Namespace: .sp-* — self-contained, no overrides of base CSS */
/* ═══════════════════════════════════════════════════════════ */

.body--service { background: #ffffff; }

/* Main wrapper — push below fixed nav */
.sp-main {
  padding-top: 96px;
  background: #ffffff;
}

@media (min-width: 1024px) { .sp-main { padding-top: 130px; } }

.sp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ─── HERO ────────────────────────────────────────────────── */
.sp-hero {
  padding: var(--space-2xl) 0 var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(100, 169, 158, 0.10), transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 30%, rgba(231, 148, 64, 0.06), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.sp-hero > * { position: relative; z-index: 1; }

.sp-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: 9999px;
  background: var(--accent-soft);
}

.sp-hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.sp-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--bg-dark);
  margin: 0 auto 1.25rem;
  max-width: 16ch;
}

.sp-hero__title em {
  font-style: italic;
  color: var(--cta);
  font-weight: 500;
}

.sp-hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.65;
  color: var(--text);
  max-width: 640px;
  margin: 0 auto 2rem;
}

.sp-hero__actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.sp-hero__visual {
  margin: 0 auto;
  max-width: 1080px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow:
    0 30px 80px -20px rgba(42, 61, 58, 0.25),
    0 8px 24px rgba(42, 61, 58, 0.08);
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-soft) 100%);
}

.sp-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sp-hero__visual-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.65rem 1rem;
  border-radius: 9999px;
  font-family: var(--vo-mono, ui-monospace, monospace);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bg-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.sp-hero__visual-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cta);
  animation: spPulse 2s ease-in-out infinite;
}

@keyframes spPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

/* ─── 3-COLUMN FEATURE HIGHLIGHTS ─────────────────────────── */
.sp-highlights {
  padding: var(--space-2xl) 0;
  background: #ffffff;
}

.sp-highlights__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.sp-highlight {
  text-align: center;
  padding: 0 var(--space-sm);
}

.sp-highlight__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
}

.sp-highlight__title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--bg-dark);
  margin-bottom: 0.6rem;
  letter-spacing: -0.015em;
}

.sp-highlight__desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
}

/* ─── STATS BAND ──────────────────────────────────────────── */
.sp-stats {
  background: var(--bg);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.sp-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  text-align: center;
}

.sp-stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 600;
  color: var(--bg-dark);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.sp-stat__num em {
  color: var(--cta);
  font-style: normal;
}

.sp-stat__label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 500;
}

/* ─── 2×2 CAPABILITIES GRID ──────────────────────────────── */
.sp-pillars {
  padding: var(--space-2xl) 0;
  background: #ffffff;
}

.sp-pillars__head {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.sp-pillars__tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.sp-pillars__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 600;
  color: var(--bg-dark);
  letter-spacing: -0.02em;
  max-width: 24ch;
  margin: 0 auto 0.75rem;
  line-height: 1.15;
}

.sp-pillars__subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  max-width: 580px;
  margin: 0 auto;
}

.sp-pillars__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.sp-pillar {
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: var(--space-lg);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.sp-pillar:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -10px rgba(42, 61, 58, 0.12);
  border-color: var(--accent);
}

.sp-pillar__icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cta-soft);
  color: var(--cta);
  border-radius: 12px;
  margin-bottom: var(--space-sm);
}

.sp-pillar__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--bg-dark);
  margin-bottom: 0.5rem;
  letter-spacing: -0.015em;
}

.sp-pillar__desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
}

/* ─── TESTIMONIAL ─────────────────────────────────────────── */
.sp-quote {
  position: relative;
  padding: var(--space-2xl) 0;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1a2b28 100%);
  color: #ffffff;
  overflow: hidden;
}

.sp-quote::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(231, 148, 64, 0.18), transparent 70%);
  pointer-events: none;
}

.sp-quote__container {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  text-align: left;
}

.sp-quote__mark {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 0.5;
  color: var(--cta);
  margin-bottom: var(--space-sm);
  display: block;
}

.sp-quote__text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1.45;
  color: #ffffff;
  margin-bottom: var(--space-lg);
  font-weight: 400;
}

.sp-quote__author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.sp-quote__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: #ffffff;
  font-size: 1.1rem;
}

.sp-quote__name {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
  line-height: 1.3;
}

.sp-quote__meta {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.04em;
}

/* ─── DEEP-DIVE 4 COLUMNS (¿Cómo funciona?) ─────────────── */
.sp-process {
  padding: var(--space-2xl) 0;
  background: #ffffff;
}

.sp-process__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-xl);
}

.sp-process__tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.sp-process__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 600;
  color: var(--bg-dark);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.sp-process__subtitle {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text);
}

.sp-process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.sp-step {
  background: var(--bg-soft);
  border-radius: 20px;
  padding: var(--space-lg);
  position: relative;
  transition: transform 0.3s var(--ease);
}

.sp-step:hover { transform: translateY(-4px); }

.sp-step__num {
  font-family: var(--vo-mono, ui-monospace, monospace);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--cta);
  margin-bottom: var(--space-sm);
  display: block;
}

.sp-step__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--bg-dark);
  margin-bottom: 0.5rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.sp-step__desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text);
}

/* ─── GALLERY (rotating banner before CTA) ──────────────── */
.sp-gallery {
  padding: var(--space-2xl) 0;
  background: var(--bg-soft, #f4faf9);
}

.sp-gallery__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-xl);
}

.sp-gallery__tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.sp-gallery__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 600;
  color: var(--bg-dark);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.sp-gallery__subtitle {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text);
}

.sp-gallery__banner {
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-2xl, 32px);
  overflow: hidden;
  box-shadow:
    0 30px 80px -20px rgba(42, 61, 58, 0.28),
    0 8px 24px rgba(42, 61, 58, 0.08);
  background: #1a1a1a;
}

@media (max-width: 768px) {
  .sp-gallery { padding: var(--space-xl) 0; }
  .sp-gallery__banner { aspect-ratio: 4 / 5; border-radius: var(--radius-lg, 18px); }
}

/* ─── FINAL CTA ───────────────────────────────────────────── */
.sp-cta {
  padding: var(--space-2xl) 0 var(--space-xl);
  text-align: center;
  background: #ffffff;
}

.sp-cta__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--bg-dark);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.sp-cta__desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  max-width: 540px;
  margin: 0 auto var(--space-lg);
}

.sp-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  background: var(--cta);
  color: #ffffff;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: var(--shadow-cta);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.sp-cta__btn:hover {
  background: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-cta-hover);
}

.sp-cta__note {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ─── CREDENTIALS STRIP ──────────────────────────────────── */
.sp-credentials {
  padding: var(--space-lg) 0 var(--space-2xl);
  background: #ffffff;
  border-top: 1px solid var(--border);
}

.sp-credentials__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
}

.sp-cred {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}

.sp-cred__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

/* ─── BACK LINK ───────────────────────────────────────────── */
.sp-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: var(--space-lg);
  transition: color 0.2s ease, transform 0.2s ease;
}

.sp-back:hover { color: var(--cta); transform: translateX(-3px); }

/* ═══════════════════════════════════════════════════════════ */
/* RESPONSIVE                                                  */
/* ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .sp-process__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .sp-main { padding-top: 88px; }
  .sp-hero { padding: var(--space-xl) 0 var(--space-lg); }
  .sp-hero__title { font-size: clamp(2rem, 7vw, 2.6rem); }
  .sp-hero__subtitle { font-size: 0.98rem; }
  .sp-hero__visual { border-radius: var(--radius-lg); }

  .sp-highlights, .sp-pillars, .sp-process, .sp-quote, .sp-cta { padding: var(--space-xl) 0; }

  .sp-highlights__grid { grid-template-columns: 1fr; gap: var(--space-lg); }

  .sp-stats__grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .sp-stats { padding: var(--space-lg) 0; }

  .sp-pillars__grid { grid-template-columns: 1fr; }
  .sp-pillars__title { font-size: clamp(1.7rem, 5vw, 2.2rem); }

  .sp-process__grid { grid-template-columns: 1fr; }
  .sp-process__title { font-size: clamp(1.7rem, 5vw, 2.2rem); }

  .sp-quote__text { font-size: 1.2rem; line-height: 1.5; }
  .sp-cta__title { font-size: clamp(1.7rem, 5vw, 2.4rem); }

  .sp-credentials__row { gap: var(--space-md); }
}

@media (max-width: 480px) {
  .sp-hero { padding: var(--space-lg) 0 var(--space-md); }
  .sp-hero__eyebrow { font-size: 0.65rem; padding: 0.35rem 0.75rem; }
  .sp-hero__title { font-size: 1.85rem; }
  .sp-hero__actions { flex-direction: column; align-items: stretch; }
  .sp-hero__actions .btn { width: 100%; justify-content: center; }
  .sp-stat__num { font-size: 2.4rem; }
  .sp-pillar, .sp-step { padding: var(--space-md); }
  .sp-cta__btn { width: 100%; max-width: 360px; justify-content: center; }
}

/* ─── FAQ section (SEO featured snippets) ──────────────── */
.sp-faq {
  padding: var(--space-xl) 0 var(--space-lg);
  background: var(--surface, #ffffff);
}
.sp-faq__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-lg);
}
.sp-faq__kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent, #64a99e);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.sp-faq__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: var(--ink, #0f172a);
}
.sp-faq__lead {
  color: var(--ink-soft, #475569);
  font-size: 1.05rem;
  line-height: 1.6;
}
.sp-faq__list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.sp-faq__item {
  background: #ffffff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 0.85rem;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sp-faq__item[open] {
  border-color: var(--accent, #64a99e);
  box-shadow: 0 6px 24px -10px rgba(100, 169, 158, 0.25);
}
.sp-faq__q {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.4rem;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink, #0f172a);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  line-height: 1.45;
}
.sp-faq__q::-webkit-details-marker { display: none; }
.sp-faq__q::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent, #64a99e);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  line-height: 1;
}
.sp-faq__item[open] .sp-faq__q::after {
  transform: rotate(45deg);
}
.sp-faq__a {
  padding: 0 1.4rem 1.25rem;
  color: var(--ink-soft, #475569);
  font-size: 0.98rem;
  line-height: 1.65;
}
.sp-faq__a p { margin: 0 0 0.85rem; }
.sp-faq__a p:last-child { margin-bottom: 0; }
.sp-faq__a strong { color: var(--ink, #0f172a); }
.sp-faq__cta {
  text-align: center;
  margin-top: var(--space-lg);
  color: var(--ink-soft, #475569);
}
.sp-faq__cta a {
  color: var(--accent, #64a99e);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
@media (max-width: 600px) {
  .sp-faq { padding: var(--space-lg) 0 var(--space-md); }
  .sp-faq__q { padding: 0.95rem 1.1rem; font-size: 0.95rem; }
  .sp-faq__a { padding: 0 1.1rem 1rem; font-size: 0.92rem; }
}
