/* =========================================================
   PÁGINA DE SERVICIO — Desarrollo web · Branding · Campañas
   Mismo lenguaje de póster del sitio (Poster.css):
   barras de etiquetas, títulos Bebas gigantes, líneas finas
   y acento naranja.
========================================================= */

.sp {
  position: relative;
  z-index: 2;
  background-color: var(--color-bg);
  color: var(--color-text);
  padding: clamp(32px, 4vw, 64px) 0 clamp(56px, 6vw, 96px);
}

.sp .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* El H1 de la página es un poco más grande que los títulos de sección */
.sp-head .ozz-head__title {
  font-size: clamp(3.6rem, min(16vw, var(--fit)), 16rem);
}

/* ---------- Imagen principal ---------- */

.sp-media {
  margin: 0 var(--ozz-pad-wide);
}

.sp-media__inner {
  position: relative;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: #0b0b0b;
}

.sp-media__inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sp-media__inner video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.sp-media__inner.is-playing video {
  opacity: 1;
}

.sp-media__inner::after {
  z-index: 1;
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 30%);
  pointer-events: none;
}

.sp-media__bar {
  position: absolute;
  z-index: 2;
  top: clamp(12px, 1.4vw, 22px);
  left: clamp(14px, 1.6vw, 26px);
  right: clamp(14px, 1.6vw, 26px);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #fff;
}

/* ---------- Secciones ---------- */

.sp-section {
  padding: var(--ozz-section-gap) var(--ozz-pad) 0;
}

.sp-section__bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 14px;
  margin-bottom: clamp(28px, 4vw, 56px);
  border-top: 1px solid var(--ozz-line);
}

.sp-section__bar > span:last-child {
  text-align: right;
  color: var(--ozz-muted);
}

.sp-section__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.4vw, 8rem);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

.sp-section__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--ozz-gutter);
  row-gap: 1.25rem;
  margin-bottom: clamp(32px, 4.5vw, 64px);
}

.sp-section__head .sp-section__title {
  grid-column: 1 / span 7;
}

.sp-section__intro {
  grid-column: 8 / -1;
  align-self: end;
  margin: 0;
  max-width: 42ch;
  font-family: var(--font-paragraph-light);
  font-size: clamp(1rem, 0.82rem + 0.55vw, 1.35rem);
  line-height: 1.45;
}

/* ---------- Qué hacemos / incluido ---------- */

.sp-caps .sp-section__title {
  margin-bottom: clamp(32px, 4.5vw, 64px);
}

.sp-caps__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 3vw, 44px) var(--ozz-gutter);
}

@media (min-width: 640px) {
  .sp-caps__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .sp-caps__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.sp-cap .reveal-block {
  transition-delay: calc(var(--i, 0) * 90ms);
}

.sp-cap__inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding-top: 16px;
  border-top: 1px solid var(--ozz-line);
}

.sp-cap__num {
  color: var(--color-orange);
}

.sp-cap__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.4rem + 1.2vw, 2.7rem);
  font-weight: 400;
  line-height: 0.92;
  text-transform: uppercase;
  text-wrap: balance;
}

.sp-cap__desc {
  margin: 0;
  max-width: 40ch;
  font-family: var(--font-paragraph-light);
  font-size: clamp(0.95rem, 0.88rem + 0.2vw, 1.05rem);
  line-height: 1.45;
  color: var(--ozz-muted);
}

/* ---------- Planes ---------- */

.sp-plans {
  scroll-margin-top: 90px;
}

.sp-plans__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

@media (min-width: 1024px) {
  .sp-plans__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.sp-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding: clamp(16px, 1.6vw, 26px);
  container-type: inline-size;
  border: 1px solid var(--ozz-line);
  border-radius: 4px;
  background: rgba(var(--color-text-rgb), 0.03);
  scroll-margin-top: 100px;
}

.sp-plan.is-featured {
  border-color: var(--color-orange);
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(255, 122, 0, 0.16), transparent 60%),
    rgba(var(--color-text-rgb), 0.03);
}

.sp-plan__bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ozz-muted);
}

.sp-plan.is-featured .sp-plan__bar > span:last-child {
  color: var(--color-orange);
}

.sp-plan__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
}

.sp-plan__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 27cqi, 9.5rem);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

/* Llama: contorno → sólida → naranja (como en la presentación) */
.sp-plan__flame {
  flex: none;
  width: clamp(44px, 17cqi, 96px);
  height: auto;
  margin-bottom: 0.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 16;
  transition: transform 0.6s var(--ozz-ease);
}

.sp-plan--2 .sp-plan__flame {
  fill: currentColor;
  stroke: none;
}

.sp-plan.is-featured .sp-plan__flame {
  fill: var(--color-orange);
  stroke: none;
}

.sp-plan:hover .sp-plan__flame {
  transform: rotate(-6deg) scale(1.06);
}

.sp-plan__type {
  margin: -6px 0 0;
  color: var(--ozz-muted);
}

/* Precio */
.sp-plan__price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--ozz-line);
}

.sp-plan__price-label {
  color: var(--ozz-muted);
}

.sp-plan__amount {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25em;
  padding: 0.16em 0.42em 0.04em;
  border: 1px solid currentColor;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 15cqi, 4.4rem);
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.sp-plan__cur {
  font-size: 0.48em;
  letter-spacing: 0.06em;
}

.sp-plan--2 .sp-plan__amount {
  border-color: var(--color-text);
  background: var(--color-text);
  color: var(--color-bg);
}

.sp-plan.is-featured .sp-plan__amount {
  border-color: var(--color-orange);
  background: var(--color-orange);
  color: #000;
}

.sp-plan__price.is-quote .sp-plan__amount {
  font-size: clamp(1.6rem, 10cqi, 2.6rem);
  padding: 0.28em 0.55em 0.16em;
}

/* Para quién es */
.sp-plan__ideal {
  margin: 0;
  padding: 14px 16px;
  border-radius: 6px;
  background: rgba(var(--color-text-rgb), 0.07);
  font-family: var(--font-paragraph-light);
  font-size: clamp(0.95rem, 0.9rem + 0.15vw, 1.05rem);
  line-height: 1.45;
}

.sp-plan__subtitle {
  margin: 0 0 12px;
  font-size: clamp(1rem, 0.8rem + 0.5vw, 1.2rem);
}

/* Listas con viñeta naranja */
.sp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-family: var(--font-paragraph-light);
  font-size: clamp(0.95rem, 0.9rem + 0.15vw, 1.05rem);
  line-height: 1.4;
}

.sp-list li {
  position: relative;
  padding-left: 1.1em;
}

.sp-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-orange);
}

.sp-list--sm {
  gap: 6px;
  font-size: clamp(0.88rem, 0.84rem + 0.12vw, 0.96rem);
  color: var(--ozz-muted);
}

.sp-list--sm li::before {
  width: 4px;
  height: 4px;
  background: currentColor;
}

/* Detalle completo (desplegable) */
.sp-plan__more {
  border-top: 1px solid var(--ozz-line);
  border-bottom: 1px solid var(--ozz-line);
}

/* Planes sin lista "Usted recibe": aire mínimo bajo la descripción y
   el bloque desplegable + nota + botón siempre unido al fondo de la
   tarjeta (el espacio sobrante queda arriba de ese bloque). */
.sp-plan__ideal:has(+ .sp-plan__more) {
  margin-bottom: clamp(24px, 2.4vw, 46px);
}

.sp-plan__ideal + .sp-plan__more {
  margin-top: auto;
}

.sp-plan__ideal + .sp-plan__more ~ .sp-plan__cta {
  margin-top: 0;
}

.sp-plan__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 14px 0 12px;
  cursor: pointer;
  list-style: none;
}

.sp-plan__summary::-webkit-details-marker {
  display: none;
}

.sp-plan__summary:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 3px;
}

.sp-plan__plus {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}

.sp-plan__plus::before,
.sp-plan__plus::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
  margin-top: -0.75px;
  background: var(--color-orange);
  transition: transform 0.4s var(--ozz-ease);
}

.sp-plan__plus::after {
  transform: rotate(90deg);
}

.sp-plan__more[open] .sp-plan__plus::after {
  transform: rotate(0deg);
}

.sp-plan__groups {
  display: grid;
  gap: 18px;
  padding: 4px 0 18px;
}

.sp-group__title {
  margin: 0 0 8px;
  font-family: var(--font-paragraph);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.sp-plan__note {
  margin: 0;
  font-family: var(--font-paragraph-light);
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--ozz-muted);
}

.sp-plan__note > span:first-child {
  color: var(--color-orange);
}

/* Botón */
.sp-plan__cta {
  position: relative;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1em 1.1em 0.9em;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--color-text);
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.45s var(--ozz-ease), border-color 0.45s ease;
}

.sp-plan__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--color-text);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.5s var(--ozz-ease);
}

.sp-plan__cta svg {
  width: 1em;
  height: 1em;
  fill: var(--color-orange);
  transition: transform 0.45s var(--ozz-ease);
}

.sp-plan__cta:hover,
.sp-plan__cta:focus-visible {
  color: var(--color-bg);
}

.sp-plan__cta:hover::before,
.sp-plan__cta:focus-visible::before {
  transform: scaleY(1);
}

.sp-plan__cta:hover svg {
  transform: translateX(4px) rotate(-45deg);
}

.sp-plan__cta:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 3px;
}

.sp-plan.is-featured .sp-plan__cta {
  border-color: var(--color-orange);
  background: var(--color-orange);
  color: #000;
}

.sp-plan.is-featured .sp-plan__cta svg {
  fill: #000;
}

.sp-plan.is-featured .sp-plan__cta:hover,
.sp-plan.is-featured .sp-plan__cta:focus-visible {
  border-color: var(--color-text);
  color: var(--color-bg);
}

/* ---------- Webs a la medida ---------- */

.sp-custom {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--ozz-gutter);
  row-gap: 1.5rem;
  margin-top: 12px;
  padding: clamp(20px, 2.6vw, 40px);
  overflow: hidden;
  isolation: isolate;
  border: 1px dashed rgba(var(--color-text-rgb), 0.4);
  border-radius: 4px;
  scroll-margin-top: 100px;
}

.sp-custom__main {
  grid-column: 1 / span 7;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sp-custom__label {
  color: var(--color-orange);
}

.sp-custom__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.6vw, 5rem);
  font-weight: 400;
  line-height: 0.88;
  text-transform: uppercase;
  text-wrap: balance;
}

.sp-custom__aside {
  grid-column: 8 / -1;
  align-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
}

.sp-custom__text {
  margin: 0;
  max-width: 44ch;
  font-family: var(--font-paragraph-light);
  font-size: clamp(0.98rem, 0.9rem + 0.25vw, 1.12rem);
  line-height: 1.45;
}

.sp-custom__price {
  padding: 0.3em 0.6em 0.16em;
  border: 1px dashed currentColor;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.2rem);
  line-height: 1;
}

.sp-custom__cta {
  align-self: stretch;
  margin-top: 0;
}

.sp-custom__flame {
  position: absolute;
  z-index: -1;
  left: -3%;
  bottom: -30%;
  width: clamp(140px, 18vw, 280px);
  fill: none;
  stroke: var(--color-orange);
  stroke-width: 6;
  opacity: 0.35;
}

/* ---------- Preguntas frecuentes ---------- */

.sp-faq__layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--ozz-gutter);
  row-gap: clamp(28px, 4vw, 48px);
}

.sp-faq__layout .sp-section__title {
  grid-column: 1 / span 5;
  align-self: start;
}

.sp-faq__list {
  grid-column: 6 / -1;
  border-bottom: 1px solid var(--ozz-line);
}

.sp-faq__item {
  border-top: 1px solid var(--ozz-line);
}

.sp-faq__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 20px 0 18px;
  cursor: pointer;
  list-style: none;
}

.sp-faq__summary::-webkit-details-marker {
  display: none;
}

.sp-faq__summary:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 3px;
}

.sp-faq__q {
  margin: 0;
  font-family: var(--font-paragraph);
  font-size: clamp(1.02rem, 0.9rem + 0.4vw, 1.3rem);
  font-weight: 400;
  line-height: 1.3;
}

.sp-faq__item[open] .sp-plan__plus::after {
  transform: rotate(0deg);
}

.sp-faq__a {
  margin: 0;
  padding: 0 2.5rem 22px 0;
  max-width: 62ch;
  font-family: var(--font-paragraph-light);
  font-size: clamp(0.96rem, 0.9rem + 0.2vw, 1.08rem);
  line-height: 1.5;
  color: var(--ozz-muted);
}

/* ---------- Comparativo ---------- */

.sp-compare {
  margin-top: clamp(48px, 6vw, 96px);
}

.sp-compare__title {
  margin: 0 0 18px;
}

.sp-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--ozz-line);
}

.sp-table th,
.sp-table td {
  padding: 18px 14px 16px 0;
  border-bottom: 1px solid var(--ozz-line);
  text-align: left;
  vertical-align: baseline;
  font-family: var(--font-paragraph-light);
  font-size: clamp(0.95rem, 0.88rem + 0.25vw, 1.15rem);
  font-weight: 400;
  line-height: 1.35;
}

.sp-table thead th {
  padding-top: 14px;
  padding-bottom: 12px;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 0.62rem + 0.7vw, 1.25rem);
  color: var(--ozz-muted);
}

.sp-table tbody th {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.8rem);
  line-height: 1;
  text-transform: uppercase;
}

.sp-table tr.is-featured th {
  color: var(--color-orange);
}

.sp-notes {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-family: var(--font-paragraph-light);
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--ozz-muted);
}

.sp-notes li > span:first-child {
  color: var(--color-orange);
}

/* ---------- Servicio relacionado ---------- */

.sp-related__card {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--ozz-gutter);
  row-gap: 1.5rem;
  padding: clamp(20px, 3vw, 44px);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--ozz-line);
  border-radius: 4px;
  color: var(--color-text);
  text-decoration: none;
  transition: border-color 0.4s ease, background 0.4s ease;
}

.sp-related__title {
  grid-column: 1 / span 7;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.6vw, 6rem);
  font-weight: 400;
  line-height: 0.88;
  text-transform: uppercase;
  text-wrap: balance;
}

.sp-related__aside {
  grid-column: 8 / -1;
  align-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.sp-related__text {
  margin: 0;
  max-width: 40ch;
  font-family: var(--font-paragraph-light);
  font-size: clamp(1rem, 0.88rem + 0.35vw, 1.2rem);
  line-height: 1.45;
}

.sp-related__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid currentColor;
}

.sp-related__cta svg {
  width: 0.95em;
  height: 0.95em;
  fill: var(--color-orange);
  transition: transform 0.45s var(--ozz-ease);
}

.sp-related__flame {
  position: absolute;
  z-index: -1;
  right: -4%;
  bottom: -22%;
  width: clamp(160px, 22vw, 340px);
  fill: var(--color-orange);
  opacity: 0.12;
  transition: opacity 0.5s ease, transform 0.8s var(--ozz-ease);
}

.sp-related__card:hover,
.sp-related__card:focus-visible {
  border-color: var(--color-orange);
}

.sp-related__card:hover .sp-related__flame {
  opacity: 0.28;
  transform: translateY(-6%) rotate(-4deg);
}

.sp-related__card:hover .sp-related__cta svg {
  transform: translateX(6px) rotate(-45deg);
}

.sp-related__card:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 3px;
}

/* ---------- Otros servicios ---------- */

.sp-others__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--ozz-line);
}

.sp-other {
  position: relative;
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) minmax(0, 0.8fr) auto;
  align-items: center;
  column-gap: var(--ozz-gutter);
  padding: clamp(18px, 2.2vw, 30px) 0;
  border-top: 1px solid var(--ozz-line);
  color: var(--color-text);
  text-decoration: none;
}

.sp-other__num {
  color: var(--ozz-muted);
}

.sp-other__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 6.4rem);
  line-height: 0.88;
  text-transform: uppercase;
  transition: color 0.4s ease, transform 0.6s var(--ozz-ease);
}

.sp-other__desc {
  max-width: 36ch;
  font-family: var(--font-paragraph-light);
  font-size: clamp(0.95rem, 0.88rem + 0.2vw, 1.05rem);
  line-height: 1.4;
  color: var(--ozz-muted);
}

.sp-other__btn {
  display: inline-grid;
  place-items: center;
  width: clamp(38px, 3vw, 48px);
  height: clamp(38px, 3vw, 48px);
  border-radius: 3px;
  background: var(--color-orange);
  transition: transform 0.5s var(--ozz-ease), background 0.4s ease;
}

.sp-other__btn svg {
  width: 52%;
  height: 52%;
  fill: #000;
  transform: rotate(-45deg);
  transition: transform 0.5s var(--ozz-ease);
}

/* Miniatura que aparece al pasar el cursor (solo con mouse) */
.sp-other__media {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .sp-other__media {
    position: absolute;
    z-index: 2;
    right: calc(clamp(38px, 3vw, 48px) + var(--ozz-gutter) * 2);
    top: 50%;
    display: block;
    width: clamp(180px, 18vw, 300px);
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(-50%) scale(0.92) rotate(-3deg);
    transition: opacity 0.4s ease, transform 0.6s var(--ozz-ease);
    pointer-events: none;
  }

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

  .sp-other:hover .sp-other__media {
    opacity: 1;
    transform: translateY(-50%) scale(1) rotate(-3deg);
  }

  .sp-other:hover .sp-other__title {
    color: var(--color-orange);
    transform: translateX(8px);
  }

  .sp-other:hover .sp-other__btn {
    background: var(--color-text);
    transform: scale(1.08);
  }

  .sp-other:hover .sp-other__btn svg {
    transform: rotate(0deg);
  }
}

.sp-other:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 3px;
}

/* ---------- Responsive ---------- */

@media (max-width: 899px) {
  .sp-section__head .sp-section__title,
  .sp-section__intro,
  .sp-related__title,
  .sp-related__aside,
  .sp-custom__main,
  .sp-custom__aside,
  .sp-faq__layout .sp-section__title,
  .sp-faq__list {
    grid-column: 1 / -1;
  }

  .sp-media__inner {
    aspect-ratio: 4 / 3;
  }

  .sp-other {
    grid-template-columns: 2.4rem minmax(0, 1fr) auto;
    row-gap: 8px;
  }

  .sp-other__desc {
    grid-column: 2 / 3;
    grid-row: 2;
  }

  .sp-other__btn {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}

/* Comparativo en celular: cada plan es una ficha */
@media (max-width: 699px) {
  .sp-table,
  .sp-table tbody,
  .sp-table tr,
  .sp-table th,
  .sp-table td {
    display: block;
  }

  .sp-table {
    border-top: 0;
  }

  .sp-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .sp-table tr {
    padding: 16px 0 6px;
    border-top: 1px solid var(--ozz-line);
  }

  .sp-table tr:last-child {
    border-bottom: 1px solid var(--ozz-line);
  }

  .sp-table th,
  .sp-table td {
    padding: 0;
    border: 0;
  }

  .sp-table tbody th {
    margin-bottom: 10px;
  }

  .sp-table td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 8px 0;
    border-top: 1px dashed var(--ozz-line-soft);
    text-align: right;
  }

  .sp-table td::before {
    content: attr(data-label);
    flex: none;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    color: var(--ozz-muted);
    text-align: left;
  }
}

@media (max-width: 520px) {
  .sp-media__bar span:first-child,
  .sp-section__names {
    display: none;
  }
}

/* ---------- Movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  .sp-plan__flame,
  .sp-plan__cta,
  .sp-plan__cta::before,
  .sp-plan__plus::before,
  .sp-plan__plus::after,
  .sp-related__flame,
  .sp-other__title,
  .sp-other__media,
  .sp-other__btn {
    transition: none !important;
  }
}

/* =========================================================
   PLANES — versión compacta
   Objetivo: que cada tarjeta se lea completa sin scroll en PC.
   Precio en la misma fila que su etiqueta, nombre y llama más
   pequeños, menos aire interno. "A la medida" usa las mismas
   medidas para verse como parte del grupo.
========================================================= */

.sp-plan {
  gap: 12px;
  padding: clamp(14px, 1.3vw, 20px);
}

.sp-plan__name {
  font-size: clamp(2.8rem, 17cqi, 5.6rem);
}

.sp-plan__flame {
  width: clamp(32px, 10cqi, 58px);
  margin-bottom: 0.1em;
}

.sp-plan__type {
  margin-top: -4px;
}

.sp-plan__price {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
}

.sp-plan__amount {
  font-size: clamp(1.8rem, 10.5cqi, 3.1rem);
  border-radius: 10px;
}

.sp-plan__price.is-quote .sp-plan__amount {
  font-size: clamp(1.3rem, 7cqi, 1.9rem);
}

.sp-plan__ideal {
  padding: 10px 12px;
  font-size: clamp(0.88rem, 0.84rem + 0.12vw, 0.96rem);
  line-height: 1.4;
}

.sp-plan__subtitle {
  margin-bottom: 8px;
  font-size: clamp(0.95rem, 0.8rem + 0.3vw, 1.05rem);
}

.sp-plan .sp-list {
  gap: 5px;
  font-size: clamp(0.9rem, 0.86rem + 0.12vw, 0.98rem);
  line-height: 1.35;
}

.sp-plan__summary {
  padding: 10px 0 8px;
}

.sp-plan__note {
  font-size: 0.8rem;
}

.sp-plan__cta {
  padding: 0.8em 1em 0.7em;
}

/* A la medida: mismas proporciones que las tarjetas */
.sp-custom {
  align-items: center;
  padding: clamp(14px, 1.3vw, 20px) clamp(16px, 1.8vw, 28px);
  border-style: solid;
  border-color: var(--ozz-line);
  background: rgba(var(--color-text-rgb), 0.03);
}

.sp-custom__main {
  gap: 8px;
}

.sp-custom__title {
  font-size: clamp(1.9rem, 2.9vw, 3.2rem);
}

.sp-custom__aside {
  align-self: center;
  gap: 12px;
}

.sp-custom__text {
  font-size: clamp(0.9rem, 0.86rem + 0.15vw, 1rem);
  line-height: 1.4;
}

.sp-custom__price {
  font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.9rem);
  border-radius: 10px;
}

.sp-custom__flame {
  width: clamp(90px, 10vw, 160px);
  bottom: -40%;
}

@media (min-width: 1024px) {
  /* Precio y botón en una fila para que el bloque sea bajo */
  .sp-custom__aside {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
  }

  .sp-custom__text {
    grid-column: 1 / -1;
  }
}
