/* ============================================
   servicio-detail.css — Páginas de detalle
   Versión 2 — diseño dark con stats, pricing, proceso
   ============================================ */

/* ── VARIABLES / RESET ── */
.sd-hero em,
.sd-includes-left h2 em,
.sd-proceso-head h2 em {
  color: var(--accent);
  font-style: normal;
}

/* ── SECTION TAG ── */
.sd-section-tag {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.sd-section-tag--light {
  color: rgba(255,255,255,0.3);
}

/* ══════════════════════════════════════════
   SD-HERO
══════════════════════════════════════════ */
.sd-hero {
  position: relative;
  padding: clamp(130px,14vw,190px) 0 clamp(80px,10vw,120px);
  background: var(--ink);
  overflow: hidden;
}

.sd-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55) saturate(0.7);
}

.sd-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5,3,14,0.15) 0%,
    rgba(5,3,14,0.38) 55%,
    rgba(5,3,14,0.72) 100%
  );
}

.sd-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: flex-end;
  gap: 40px;
}

.sd-hero-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sd-eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.sd-hero h1 {
  font-family: var(--mono);
  font-size: clamp(36px,5vw,72px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0;
}

.sd-hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.45);
  line-height: 1.75;
  max-width: 52ch;
  margin: 0;
}

/* Número decorativo */
.sd-hero-deco {
  position: relative;
  flex-shrink: 0;
}

.sd-hero-num {
  display: block;
  font-family: var(--mono);
  font-size: clamp(120px,18vw,220px);
  font-weight: 800;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.sd-includes {
  background: #fff;
  padding: clamp(80px,10vw,120px) 0;
}

.sd-includes-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  contain: layout style;
}

.sd-includes-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sd-includes-left h2 {
  font-family: var(--mono);
  font-size: clamp(28px,3.5vw,48px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
}

.sd-includes-left p {
  font-size: 15px;
  line-height: 1.9;
  color: #555;
  margin: 0;
}

/* Checklist */
.sd-checklist {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.sd-checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}

.sd-check-icon {
  width: 18px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 11px;
  font-size: 0;
}

/* Visual placeholder */
.sd-visual {
  background: var(--ink);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.sd-proceso {
  background: #f7f5f2;
  padding: clamp(80px,10vw,120px) 0;
}

.sd-proceso-head {
  margin-bottom: 60px;
}

.sd-proceso-head h2 {
  font-family: var(--mono);
  font-size: clamp(28px,3.5vw,48px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
}

.sd-proceso-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  background: #e0ddd8;
}

.sd-paso {
  background: #f7f5f2;
  padding: clamp(28px,3.5vw,44px) clamp(24px,3vw,32px);
  transition: background 0.25s;
  clip-path: inset(0 100% 0 0);
  will-change: clip-path;
  transform: translateY(18px);
  opacity: 0;
}

.sd-paso.is-revealed {
  clip-path: inset(0 0% 0 0);
  transform: translateY(0);
  opacity: 1;
  transition: clip-path 1.1s cubic-bezier(.77,0,.18,1),
              transform  1.1s cubic-bezier(.77,0,.18,1),
              opacity    0.5s ease,
              background 0.25s;
}

.sd-paso:hover {
  background: #fff;
}

.sd-paso-num {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 20px;
}

.sd-paso h3 {
  font-family: var(--mono);
  font-size: clamp(15px,1.5vw,19px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  line-height: 1.2;
}

.sd-paso p {
  font-size: 13px;
  line-height: 1.8;
  color: #666;
  margin: 0;
}

/* ══════════════════════════════════════════
   SD-PRICING
══════════════════════════════════════════ */
.sd-otros {
  background: var(--ink);
  padding: clamp(64px,8vw,100px) 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.sd-otros-title {
  font-family: var(--mono);
  font-size: clamp(26px,3.5vw,44px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 clamp(32px,4vw,52px);
}
.sd-otros-title em { color: var(--accent); font-style: normal; }

.sd-otros-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 1px;
  background: rgba(255,255,255,0.07);
}

.sd-otro-card {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  min-height: clamp(220px, 28vw, 360px);
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1), box-shadow 0.3s;
}
.sd-otro-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 56px rgba(0,0,0,0.5);
}
.sd-otro-card:hover .sd-otro-bg { transform: scale(1.06); }
.sd-otro-card:hover .sd-otro-arrow { transform: translateX(6px); color: var(--accent); }

.sd-otro-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}

.sd-otro-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5,3,14,0.92) 0%,
    rgba(5,3,14,0.45) 55%,
    rgba(5,3,14,0.15) 100%
  );
}

.sd-otro-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: clamp(28px,3.5vw,44px) clamp(24px,3vw,40px);
}

.sd-otro-num {
  font-family: var(--mono);
  font-size: clamp(48px,6vw,80px);
  font-weight: 800;
  color: rgba(255,255,255,0.07);
  line-height: 1;
  flex-shrink: 0;
  letter-spacing: -0.04em;
}

.sd-otro-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sd-otro-tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.sd-otro-card h3 {
  font-family: var(--mono);
  font-size: clamp(16px,1.8vw,22px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

.sd-otro-card p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
  margin: 0;
}

.sd-otro-arrow {
  font-size: 24px;
  color: rgba(255,255,255,0.25);
  flex-shrink: 0;
  transition: transform 0.3s, color 0.3s;
}

/* ══════════════════════════════════════════
   SD-CTA
   SD-OMR (Objetivo · Misión · Resultados)
   Estilo editorial — dark, 2 columnas
══════════════════════════════════════════ */
.sd-omr {
  background: var(--ink);
  padding: clamp(80px,10vw,130px) 0;
  position: relative;
  overflow: hidden;
}

/* Fondo numérico decorativo */
.sd-omr::before {
  content: 'OMR';
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: clamp(120px,18vw,240px);
  font-weight: 800;
  color: rgba(255,255,255,0.025);
  letter-spacing: -0.06em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* Layout 2 columnas */
.sd-omr-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px,7vw,100px);
  align-items: start;
}

/* — Columna izquierda — */
.sd-omr-left {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: 120px;
}

.sd-omr-eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.sd-omr-title {
  font-family: var(--mono);
  font-size: clamp(28px,3.8vw,52px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0;
}
.sd-omr-title em { color: var(--accent); font-style: normal; }

.sd-omr-intro {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(255,255,255,0.38);
  margin: 0;
  max-width: 44ch;
}

/* Tags */
.sd-omr-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.sd-omr-tags-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.2);
  margin-right: 4px;
}

.sd-omr-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 5px 14px;
  letter-spacing: 0.06em;
  transition: color 0.2s, border-color 0.2s;
  cursor: default;
}
.sd-omr-tag:hover {
  color: var(--accent);
  border-color: rgba(236,0,140,0.4);
}

/* — Columna derecha: lista de ítems — */
.sd-omr-list {
  display: flex;
  flex-direction: column;
  position: relative;
}

.sd-omr-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 28px;
  padding: clamp(32px,4vw,52px) 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.25s;
}
.sd-omr-item:first-child {
  border-top: 1px solid rgba(255,255,255,0.07);
}

.sd-omr-item-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.15);
  letter-spacing: 0.12em;
  padding-top: 4px;
}

.sd-omr-item-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sd-omr-item-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.sd-omr-item-title {
  font-family: var(--mono);
  font-size: clamp(18px,2vw,24px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0;
}

.sd-omr-item-text {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255,255,255,0.42);
  margin: 0;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
/* ── 960px: todo colapsa a 1 columna ── */
@media (max-width: 960px) {
  .sd-hero-inner {
    grid-template-columns: 1fr;
  }
  .sd-hero-deco {
    display: none;
  }
  .sd-includes-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* OMR: 1 columna, sin sticky */
  .sd-omr-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .sd-omr-left {
    position: static;
  }
  .sd-omr::before { display: none; }

  /* Proceso: 2×2 */
  .sd-proceso-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── 640px: proceso 1 columna ── */
@media (max-width: 640px) {
  .sd-proceso-grid {
    grid-template-columns: 1fr;
  }
  .sd-paso {
    border-bottom: 1px solid #e0ddd8;
  }
}

/* ── 700px: otros servicios 1 columna ── */
@media (max-width: 700px) {
  .sd-otros-grid { grid-template-columns: 1fr; }
  .sd-omr-item { grid-template-columns: 40px 1fr; gap: 16px; }
}

@keyframes sdwWordGlow {
  0%   { text-shadow: none; }
  25%  { text-shadow: 0 0 12px rgba(236,0,140,0.55), 0 0 28px rgba(236,0,140,0.2); }
  100% { text-shadow: none; }
}

.sdw-word {
  display: inline-block;
  opacity: 0;
  transition: opacity 0.55s ease;
}
.sdw-word.is-revealed {
  opacity: 1;
  animation: sdwWordGlow 0.9s ease forwards;
}
