/* ==========================================================================
   GLOSS & GROWTH — ESTILOS EXCLUSIVOS DE /servicios/
   Se cargan solo en servicios/index.html. No alteran estilos compartidos.
   Paleta: --burgundy #8C2536 | --cream #F2ECC2 | --pink #FDA4AF | --ink #352925
   ========================================================================== */

.svc-page [id] {
  scroll-margin-top: 96px;
}

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.svc-hero .masthead-copy {
  max-width: 780px;
}

.svc-hero .masthead-copy h1 {
  font-size: clamp(38px, 4.3vw, 60px);
  line-height: 1.1;
}

.svc-hero .masthead-lead {
  max-width: 680px;
  font-size: 18px;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   PLANES
   -------------------------------------------------------------------------- */
.svc-page .plans-grid {
  margin-top: 0;
}

.svc-page .plan-dossier {
  padding: 32px 28px;
}

.svc-page .plan-dossier h3 {
  font-size: 34px;
  margin-bottom: 10px;
}

.svc-page .plan-subtitle {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.svc-page .plan-focus {
  font-size: 14.5px;
  line-height: 1.55;
  margin-bottom: 18px;
  color: #4a3b35;
}

.svc-page .plan-includes {
  margin-bottom: 24px;
}

.svc-page .plan-includes li {
  font-size: 14px;
  line-height: 1.5;
  padding: 9px 0;
}

.svc-page .plan-includes li.plan-includes-lead {
  font-weight: 700;
  color: var(--burgundy);
}

.svc-page .plan-ideal {
  font-size: 13px;
  margin-bottom: 20px;
}

.svc-plan-flag {
  position: absolute;
  top: -1px;
  right: 24px;
  background: var(--burgundy);
  color: var(--cream);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
}

/* Tabla comparativa */
.svc-compare {
  margin-top: 44px;
}

.svc-compare .editorial-table td,
.svc-compare .editorial-table th {
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.5;
}

.svc-compare .editorial-table th {
  font-size: 12px;
}

.svc-compare .editorial-table td:first-child {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--burgundy);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   HONORARIOS Y PUBLICIDAD
   -------------------------------------------------------------------------- */
.svc-fees {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
  padding-top: 40px;
  border-top: 2px solid var(--burgundy);
}

.svc-fees h3 {
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 14px;
}

.svc-fees-intro {
  font-size: 15.5px;
  line-height: 1.6;
  color: #4a3b35;
  margin: 0;
  max-width: 460px;
}

.svc-fees-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  background: var(--paper);
}

.svc-fee {
  padding: 24px 24px 26px;
}

.svc-fee + .svc-fee {
  border-left: 1px solid var(--line);
}

.svc-fee-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
  margin-bottom: 10px;
}

.svc-fee strong {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.svc-fee p {
  font-size: 14px;
  line-height: 1.55;
  color: #4a3b35;
  margin: 0;
}

.svc-fee-logos {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.svc-fee-logos img,
.svc-fee-mark {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

/* --------------------------------------------------------------------------
   SERVICIOS INDIVIDUALES
   -------------------------------------------------------------------------- */
.svc-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
  border-bottom: 1px solid var(--line);
}

.svc-item {
  display: grid;
  grid-template-columns: 172px 1fr;
  gap: 26px;
  align-items: start;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.svc-item h3 {
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.22;
  font-weight: 400;
  color: var(--burgundy);
  margin: 0 0 8px;
  text-wrap: balance;
}

.svc-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: #3f312c;
  margin: 0 0 12px;
}

.svc-note {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--burgundy);
  margin: -4px 0 12px;
}

.svc-points {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 18px;
}

.svc-points li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
}

.svc-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 1px;
  background: var(--burgundy);
}

.svc-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--burgundy);
  background: transparent;
  color: var(--burgundy);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.svc-cta:hover,
.svc-cta:focus-visible {
  background: var(--burgundy);
  color: var(--cream);
}

/* Visuales planos */
.svc-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 172 / 128;
  background: var(--cream);
  border: 1px solid var(--line);
  overflow: hidden;
}

.svc-visual img.svc-logo {
  position: absolute;
  width: 26px;
  height: 26px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.svc-visual svg.svc-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.svc-node {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 1px solid var(--burgundy);
  color: var(--burgundy);
}

.svc-node svg {
  width: 18px;
  height: 18px;
}

.svc-caption {
  font-size: 11px;
  line-height: 1.4;
  color: #6a5a52;
  margin: 6px 0 0;
}

/* V1 publicidad */
.svc-v-ads .svc-node {
  right: 14%;
  top: 50%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transform: translateY(-50%);
}

/* V2 mapas */
.svc-v-maps .svc-card {
  position: absolute;
  right: 10%;
  top: 22%;
  width: 40%;
  height: 56%;
  background: var(--paper);
  border: 1px solid var(--burgundy);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.svc-card i {
  display: block;
  height: 3px;
  background: var(--ink);
  opacity: 0.25;
}

.svc-card i:first-child {
  height: 5px;
  width: 70%;
  background: var(--burgundy);
  opacity: 1;
}

.svc-card i:nth-child(3) { width: 80%; }
.svc-card i:nth-child(4) { width: 55%; }

/* V3 contenido */
.svc-reel {
  position: absolute;
  left: 34%;
  top: 14%;
  width: 26%;
  height: 72%;
  background: var(--paper);
  border: 1px solid var(--burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.svc-reel::after {
  content: "";
  border-left: 9px solid var(--burgundy);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  margin-left: 3px;
}

.svc-carousel {
  position: absolute;
  left: 66%;
  top: 26%;
  width: 26%;
  aspect-ratio: 1;
  background: var(--pink);
  border: 1px solid var(--burgundy);
}

.svc-dots {
  position: absolute;
  left: 66%;
  width: 26%;
  top: calc(26% + 26% * 172 / 128 + 6px);
  display: flex;
  justify-content: center;
  gap: 4px;
}

.svc-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--burgundy);
  opacity: 0.35;
}

.svc-dots i:first-child { opacity: 1; }

/* V4 web: wireframe flat coherente */
.svc-v-web {
  background: var(--cream);
}

.svc-v-web svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* V5 piezas */
.svc-piece {
  position: absolute;
  background: var(--paper);
  border: 1px solid var(--burgundy);
}

.svc-piece--a { left: 9%;  top: 20%; width: 26%; aspect-ratio: 1; }
.svc-piece--b { left: 39%; top: 14%; width: 24%; aspect-ratio: 4 / 5; background: var(--burgundy); }
.svc-piece--c { left: 67%; top: 10%; width: 22%; aspect-ratio: 9 / 16; background: var(--pink); }

.svc-piece::before,
.svc-piece::after {
  content: "";
  position: absolute;
  left: 14%;
  height: 3px;
  background: var(--burgundy);
}

.svc-piece::before { bottom: 26%; width: 60%; }
.svc-piece::after  { bottom: 14%; width: 38%; opacity: 0.5; }

.svc-piece--b::before,
.svc-piece--b::after { background: var(--cream); }

/* V6 WhatsApp */
.svc-v-wa .svc-step {
  position: absolute;
  top: 54%;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.svc-v-wa .svc-step svg {
  width: 16px;
  height: 16px;
}

.svc-v-wa .svc-step--1 { left: 18%; }
.svc-v-wa .svc-step--2 { left: 50%; }
.svc-v-wa .svc-step--3 { left: 82%; background: var(--burgundy); color: var(--cream); }

.svc-step-label {
  position: absolute;
  top: 74%;
  transform: translateX(-50%);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--burgundy);
  white-space: nowrap;
}

/* V7 marca */
.svc-v-brand .svc-swatches {
  position: absolute;
  left: 10%;
  bottom: 16%;
  display: flex;
  gap: 5px;
}

.svc-swatches i {
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
}

.svc-type {
  position: absolute;
  left: 10%;
  top: 12%;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  color: var(--ink);
}

.svc-guide {
  position: absolute;
  right: 10%;
  top: 14%;
  width: 34%;
  height: 72%;
  background: var(--paper);
  border: 1px solid var(--burgundy);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.svc-guide i {
  display: block;
  height: 3px;
  background: var(--ink);
  opacity: 0.22;
}

.svc-guide i:first-child {
  height: 18px;
  border: 1px dashed var(--burgundy);
  background: transparent;
  opacity: 1;
  margin-bottom: 3px;
}

/* V8 consultoría */
.svc-v-audit .svc-check {
  position: absolute;
  left: 10%;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 50%;
}

.svc-check b {
  width: 8px;
  height: 8px;
  border: 1px solid var(--burgundy);
  flex-shrink: 0;
}

.svc-check i {
  display: block;
  height: 3px;
  flex: 1;
  background: var(--ink);
  opacity: 0.25;
}

.svc-check--1 { top: 24%; }
.svc-check--2 { top: 46%; }
.svc-check--3 { top: 68%; }

.svc-priority {
  position: absolute;
  right: 9%;
  top: 22%;
  width: 24%;
  height: 56%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.svc-priority i {
  display: block;
  height: 26%;
  border: 1px solid var(--burgundy);
  background: var(--paper);
}

.svc-priority i:first-child {
  background: var(--burgundy);
}

/* --------------------------------------------------------------------------
   CTA FINAL COMPACTO
   -------------------------------------------------------------------------- */
.svc-page .final-cta.svc-final {
  padding: 72px 0 84px;
}

.svc-page .final-cta.svc-final h2 {
  font-size: clamp(32px, 3.6vw, 50px);
  max-width: 820px;
}

.svc-page .final-cta.svc-final p {
  max-width: 640px;
  margin: 18px auto 28px;
  font-size: 17px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .svc-list {
    grid-template-columns: 1fr;
  }
  .svc-item {
    grid-template-columns: 200px 1fr;
  }
}

@media (max-width: 900px) {
  .svc-fees {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 700px) {
  .svc-hero .masthead-lead {
    font-size: 16px;
  }

  .svc-item {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 28px 0;
  }
  .svc-visual {
    max-width: 280px;
  }
  .svc-points {
    grid-template-columns: 1fr;
  }
  .svc-cta {
    width: 100%;
    justify-content: center;
  }

  .svc-fees-items {
    grid-template-columns: 1fr;
  }
  .svc-fee + .svc-fee {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  /* Tabla apilada en móvil: cada dimensión con sus tres planes */
  .svc-compare.stage-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }
  .svc-compare .editorial-table {
    min-width: 0;
  }
  .svc-compare .editorial-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .svc-compare .editorial-table,
  .svc-compare .editorial-table tbody,
  .svc-compare .editorial-table tr,
  .svc-compare .editorial-table td {
    display: block;
    width: 100%;
  }
  .svc-compare .editorial-table tr {
    border: 1px solid var(--line);
    background: var(--paper);
    margin-bottom: 14px;
  }
  .svc-compare .editorial-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--line);
  }
  .svc-compare .editorial-table td:first-child {
    background: var(--ink);
    color: var(--cream);
    font-size: 17px;
    white-space: normal;
  }
  .svc-compare .editorial-table td[data-plan]::before {
    content: attr(data-plan);
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 2px;
  }
  .svc-compare .editorial-table tr td:last-child {
    border-bottom: 0;
  }

  .svc-page .final-cta.svc-final {
    padding: 56px 0 72px;
  }
}
