* {
  -webkit-tap-highlight-color: transparent;
}

html {
  background: #000514;
}

body.services-page {
  position: relative;
  min-height: 100%;
  overflow-x: hidden;
  isolation: isolate;
  background: #000514;
}

.space-background {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

.space-background canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.services-page-content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

button,
a,
input,
textarea,
select,
label,
.service-card,
.cta-btn {
  -webkit-tap-highlight-color: transparent;
}

button,
a,
.service-card,
.cta-btn {
  user-select: none;
}

.service-card {
  --neon: 16, 185, 129;
  position: relative;
  border-radius: 1rem;
  isolation: isolate;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  will-change: transform, box-shadow;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  padding: 3px;
  background: linear-gradient(90deg,
      rgba(var(--neon), 0),
      rgba(var(--neon), .95),
      rgba(var(--neon), 0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, filter .25s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(var(--neon), .75);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

@media (hover:hover) {
  .service-card:hover {
    transform: translateY(-2px);
    box-shadow:
      0 0 0 1px rgba(var(--neon), .55),
      0 0 20px rgba(var(--neon), .45),
      0 0 48px rgba(var(--neon), .35);
  }

  .service-card:hover::before,
  .service-card:hover::after {
    opacity: 1;
  }
}

.service-card:focus-visible,
.service-card:focus-within {
  transform: translateY(-2px);
  outline: none;
  box-shadow:
    0 0 0 2px rgba(var(--neon), .55),
    0 0 22px rgba(var(--neon), .45),
    0 0 52px rgba(var(--neon), .35);
}

.service-card:focus-visible::before,
.service-card:focus-visible::after,
.service-card:focus-within::before,
.service-card:focus-within::after {
  opacity: 1;
}

.service-card:active {
  transform: translateY(-1px) scale(.995);
}

@media (prefers-reduced-motion: reduce) {
  .service-card {
    transition: none
  }
}

.service-card--inter {
  --neon: 34, 211, 238
}

.service-card--advanced {
  --neon: 167, 139, 250
}

.cta-btn {
  --btn: 16, 185, 129;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  contain: paint;
  background: rgb(var(--btn));
  color: #0b0c10;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease, background-color .2s ease;
}

.cta-btn>span {
  position: relative;
  z-index: 1
}

.cta-btn::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -30%;
  width: 40%;
  height: 180%;
  transform: rotate(20deg);
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .40), transparent);
  filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: left .6s ease, opacity .25s ease;
}

@media (hover:hover) {
  .cta-btn:hover {
    filter: brightness(1.08);
    box-shadow: 0 0 0 1px rgba(var(--btn), .45), 0 14px 40px rgba(var(--btn), .35);
    transform: translateY(-1px);
  }

  .cta-btn:hover::after {
    left: 130%;
    opacity: .9
  }
}

.cta-btn:focus-visible {
  filter: brightness(1.08);
  box-shadow: 0 0 0 2px rgba(var(--btn), .7), 0 0 0 4px #0b0c10;
}

.cta-btn:active {
  transform: translateY(0) scale(.995)
}

@media (hover:none) {
  .cta-btn::after {
    display: none
  }
}

.cta-btn--emerald {
  --btn: 16, 185, 129
}

.cta-btn--cyan {
  --btn: 34, 211, 238
}

.cta-btn--violet {
  --btn: 167, 139, 250
}

.plan-badge {
  position: absolute;
  top: -12px;
  right: 16px;
  padding: 4px 10px;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .2px;
  border-radius: 8px;
  background: rgb(var(--neon));
  color: #0b0c10;
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow:
    0 4px 14px rgba(var(--neon), .22),
    inset 0 0 0 1px rgba(0, 0, 0, .15);
  white-space: nowrap;
  transition: box-shadow .25s ease, transform .25s ease, filter .25s ease;
}

@media (hover:hover) {
  .service-card:hover .plan-badge {
    transform: translateY(-1px);
    filter: saturate(1.15) brightness(1.06);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, .18),
      0 8px 26px rgba(var(--neon), .45),
      0 0 42px rgba(var(--neon), .55),
      inset 0 0 0 1px rgba(0, 0, 0, .15);
  }
}

.service-card:focus-visible .plan-badge,
.service-card:focus-within .plan-badge {
  transform: translateY(-1px);
  filter: saturate(1.15) brightness(1.06);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .18),
    0 8px 26px rgba(var(--neon), .45),
    0 0 42px rgba(var(--neon), .55),
    inset 0 0 0 1px rgba(0, 0, 0, .15);
}

/* Corner ribbon — adapted from bestseller-corner-ribbon.html (cyan) */
.service-card--ribbon {
  overflow: visible;
}

.plan-ribbon {
  --rib-acc: #D4A72C;
  --rib-cut: 148px;
  --rib-band: 36px;
  --rib-over: 17px;
  --rib-fold: 14px;
  --rib-top: 28px;
  --rib-len: calc(var(--rib-cut) * 1.415 + var(--rib-over) * 2);
  position: absolute;
  z-index: 5;
  top: var(--rib-top);
  right: calc((var(--rib-len) - var(--rib-cut)) / -2);
  width: var(--rib-len);
  min-height: var(--rib-band);
  display: grid;
  place-items: center;
  rotate: 45deg;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    color-mix(in srgb, var(--rib-acc) 72%, black 10%) 0%,
    color-mix(in srgb, var(--rib-acc) 100%, white 22%) 34%,
    var(--rib-acc) 52%,
    color-mix(in srgb, var(--rib-acc) 74%, black 10%) 100%
  );
  background-size: 220% 100%;
  box-shadow:
    0 10px 24px -10px rgba(0, 0, 0, .7),
    inset 0 1px 0 rgba(255, 255, 255, .45),
    inset 0 -1px 0 rgba(0, 0, 0, .22);
  animation: plan-ribbon-foil 7s ease-in-out infinite;
  transition:
    filter .3s ease,
    box-shadow .3s ease,
    translate .3s ease;
}

.plan-ribbon__label {
  padding: 0 14px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1;
  white-space: nowrap;
  color: #1a1408;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .28);
}

.plan-ribbon::before,
.plan-ribbon::after {
  content: '';
  position: absolute;
  top: 100%;
  width: var(--rib-over);
  height: var(--rib-fold);
  background: color-mix(in srgb, var(--rib-acc) 55%, black);
  z-index: -1;
  transition: background .3s ease, filter .3s ease;
}

.plan-ribbon::before {
  left: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.plan-ribbon::after {
  right: 0;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

@keyframes plan-ribbon-foil {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@media (hover: hover) and (pointer: fine) {
  .service-card--ribbon:hover .plan-ribbon {
    filter: brightness(1.1) saturate(1.14);
    translate: 0 -1px;
    box-shadow:
      0 10px 24px -10px rgba(0, 0, 0, .7),
      0 0 16px rgba(212, 167, 44, .32),
      0 0 32px rgba(212, 167, 44, .16),
      inset 0 1px 0 rgba(255, 255, 255, .5),
      inset 0 -1px 0 rgba(0, 0, 0, .22);
  }

  .service-card--ribbon:hover .plan-ribbon::before,
  .service-card--ribbon:hover .plan-ribbon::after {
    background: color-mix(in srgb, var(--rib-acc) 62%, black);
    filter: brightness(1.08);
  }
}

.plan-info-chip {
  width: 100%;
  box-sizing: border-box;
  margin-top: auto;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  background: rgba(10, 12, 18, .45);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11.5px;
  line-height: 1.45;
  color: rgba(168, 175, 188, .92);
  overflow: hidden;
  transition: border-color .25s ease, background-color .25s ease;
}

.plan-info-chip__trigger {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  margin: 0;
  padding: 10px 15px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  letter-spacing: .02em;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color .25s ease;
}

.plan-info-chip__label {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
}

.plan-info-chip__info,
.plan-info-chip__chevron {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  color: rgba(190, 198, 210, .95);
  transition: color .25s ease, transform .28s ease;
}

.plan-info-chip__trigger:focus-visible {
  outline: 2px solid rgba(var(--neon), .55);
  outline-offset: -2px;
}

.plan-info-chip.is-open {
  border-color: rgba(var(--neon), .42);
  background: rgba(10, 12, 18, .62);
}

.plan-info-chip.is-open .plan-info-chip__trigger {
  color: rgba(220, 226, 236, .98);
}

.plan-info-chip.is-open .plan-info-chip__info,
.plan-info-chip.is-open .plan-info-chip__chevron {
  color: rgb(var(--neon));
}

.plan-info-chip.is-open .plan-info-chip__chevron {
  transform: rotate(180deg);
}

@media (hover: hover) and (pointer: fine) {
  .plan-info-chip:hover {
    border-color: rgba(var(--neon), .38);
  }

  .plan-info-chip:hover .plan-info-chip__info,
  .plan-info-chip:hover .plan-info-chip__chevron {
    color: rgb(var(--neon));
  }
}

.plan-info-chip__collapse {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .28s ease;
}

.plan-info-chip.is-open .plan-info-chip__collapse {
  grid-template-rows: 1fr;
}

.plan-info-chip__content {
  overflow: hidden;
  min-height: 0;
  padding: 0 15px;
  text-align: center;
  text-wrap: pretty;
  overflow-wrap: break-word;
  opacity: 0;
  transition: opacity .22s ease, padding-bottom .28s ease;
}

.plan-info-chip.is-open .plan-info-chip__content {
  padding-bottom: 10px;
  opacity: 1;
}

.plan-info-chip__content p {
  margin: 0;
}

.plan-info-chip__content p + p {
  margin-top: .35rem;
}

@media (max-width: 767px) {
  .plan-ribbon {
    --rib-cut: 128px;
    --rib-band: 32px;
    --rib-top: 24px;
    --rib-over: 14px;
    --rib-fold: 12px;
  }

  .plan-ribbon__label {
    font-size: 9.5px;
    letter-spacing: .11em;
    padding: 0 10px;
  }

  .plan-info-chip {
    margin-top: 1rem;
    margin-bottom: 1rem;
    border-radius: 14px;
    font-size: 11px;
    line-height: 1.5;
  }

  .plan-info-chip__trigger {
    min-height: 46px;
    padding: 11px 14px;
  }

  .plan-info-chip__content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .plan-info-chip.is-open .plan-info-chip__content {
    padding-bottom: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .plan-info-chip,
  .plan-info-chip__trigger,
  .plan-info-chip__collapse,
  .plan-info-chip__content,
  .plan-info-chip__info,
  .plan-info-chip__chevron {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .plan-ribbon {
    animation: none;
    transition: none;
  }
}

.features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features li {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
}

.features li::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: .35em;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%,
      rgba(var(--neon), 1) 0 45%,
      rgba(var(--neon), .55) 60%,
      rgba(var(--neon), 0) 61%);
  box-shadow:
    0 0 0 1px rgba(var(--neon), .35),
    0 0 12px rgba(var(--neon), .55);
  transition: box-shadow .25s ease, transform .25s ease;
}

.features li:has(details) {
  display: block;
}

.features li:has(details)::before {
  display: none;
}

@media (hover:hover) {
  .service-card:hover .features li::before {
    box-shadow:
      0 0 0 1px rgba(var(--neon), .55),
      0 0 18px rgba(var(--neon), .85);
    transform: translateY(-1px);
  }
}

.service-card:focus-within .features li::before {
  box-shadow:
    0 0 0 1px rgba(var(--neon), .55),
    0 0 18px rgba(var(--neon), .85);
  transform: translateY(-1px);
}

.wa-badge {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 9999px;
  background: #25D366;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
  position: relative;
  z-index: 1;
}

.wa-badge .wa-glyph {
  width: 15px;
  height: 15px;
  fill: #0b0c10;
}

.back-arrow {
  display: inline-block;
  transform: translateX(0);
  animation: nudge-left 3s ease-in-out infinite;
  transition: transform .2s ease;
}

@keyframes nudge-left {

  0%,
  70%,
  100% {
    transform: translateX(0)
  }

  10% {
    transform: translateX(-4px)
  }

  20% {
    transform: translateX(0)
  }

  30% {
    transform: translateX(-2px)
  }

  40% {
    transform: translateX(0)
  }
}

.back-link:hover .back-arrow {
  animation-play-state: paused;
  transform: translateX(-3px);
}

@media (prefers-reduced-motion: reduce) {
  .back-arrow {
    animation: none
  }
}

section .section-kicker {
  color: #34d399;
  font-weight: 700;
  letter-spacing: .3px;
}

.service-card .price {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  margin-top: .25rem;
}

.service-card .price .currency,
.service-card .price .period {
  opacity: .8;
  font-size: .95rem
}

.service-card ul {
  margin-top: .75rem
}

@media (max-width: 640px) {
  .service-card {
    padding: 16px
  }
}

.faq-item {
  --neon: 16, 185, 129;
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(14, 18, 28, .96), rgba(7, 10, 18, .98)),
    #070b14;
  -webkit-backdrop-filter: blur(16px) saturate(1.05);
  backdrop-filter: blur(16px) saturate(1.05);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, .38),
    inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
  overflow: hidden;
}

.faq-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 0 rgba(var(--neon), .0);
  pointer-events: none;
  transition: box-shadow .25s ease;
}

@media (hover:hover) {
  .faq-item:hover {
    border-color: rgba(var(--neon), .45);
    background:
      linear-gradient(180deg, rgba(16, 22, 34, .97), rgba(7, 10, 18, .99)),
      #070b14;
  }

  .faq-item:hover::before {
    box-shadow: inset 0 0 0 2px rgba(var(--neon), .25);
  }
}

.faq-item[open] {
  border-color: rgba(var(--neon), .55);
  background:
    linear-gradient(180deg, rgba(18, 26, 38, .985), rgba(6, 9, 16, .995)),
    #060910;
  box-shadow:
    0 0 0 1px rgba(var(--neon), .32),
    0 14px 34px rgba(0, 0, 0, .48),
    0 8px 28px rgba(var(--neon), .14),
    inset 0 1px 0 rgba(255, 255, 255, .06);
}

.faq-item[open]::before {
  box-shadow: inset 0 0 0 2px rgba(var(--neon), .28);
}

.faq-summary {
  position: relative;
  z-index: 1;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-title {
  color: #f4f7fb;
  font-weight: 700;
  letter-spacing: .2px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
}

.faq-caret {
  width: 22px;
  height: 22px;
  color: #d5dee8;
  transition: transform .25s ease, color .25s ease;
  flex: none;
}

.faq-item[open] .faq-caret {
  transform: rotate(180deg);
  color: rgb(var(--neon));
}

.faq-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .28s ease, padding .28s ease, opacity .25s ease;
  padding: 0 16px;
  color: #dce3ee;
  opacity: 1;
}

.faq-content>div {
  overflow: hidden;
}

.faq-content p,
.faq-content li {
  color: #e2e8f0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .28);
}

.faq-item[open] .faq-content {
  grid-template-rows: 1fr;
  padding: 0 16px 14px;
  opacity: 1;
}

.faq-item[open] .faq-content p,
.faq-item[open] .faq-content li {
  color: #eef2f7;
}

.faq-item:focus-within {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(var(--neon), .45),
    0 0 0 4px #05070d,
    0 14px 34px rgba(0, 0, 0, .45);
}

@keyframes empuje {
  0%,
  100% {
    transform: translateX(0);
  }

  40% {
    transform: translateX(-5px);
  }

  70% {
    transform: translateX(-2px);
  }
}

.flechita {
  display: inline-block;
  animation: empuje 1.35s ease-in-out infinite;
  will-change: transform;
}

.pencil-icon {
  animation: wiggle 1.2s infinite ease-in-out;
  transform-origin: center bottom;
}

@keyframes wiggle {

  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-15deg);
  }

  75% {
    transform: rotate(15deg);
  }
}

.plan-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  font-weight: 500;
}

.plan-arrow {
  width: 24px;
  height: 24px;
  opacity: .9;
  transition: transform .28s ease, opacity .2s ease;
}

details[open] .plan-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

/* mejora UX */
.plan-toggle:hover {
  color: #34d399;
}

details {
  border-radius: 8px;
  transition: background .2s ease;
}

details:hover {
  background: rgba(255, 255, 255, .04);
}

/* TOGGLE PLANES */

.plan-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  padding: 6px 0;
  transition: color .2s ease;
}

.plan-toggle:hover {
  color: #34d399;
}

/* flecha */

.plan-arrow {
  width: 18px;
  height: 18px;
  opacity: .75;
  transition: transform .28s ease, opacity .2s ease;
}

/* rotación */

details[open] .plan-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

/* highlight suave */

details {
  border-radius: 10px;
  transition: background .25s ease, box-shadow .25s ease;
}

details:hover {
  background: rgba(255, 255, 255, .03);
}

/* efecto al abrir */

details[open] {
  background: rgba(16, 185, 129, .05);
  box-shadow:
    inset 0 0 0 1px rgba(16, 185, 129, .15),
    0 0 18px rgba(16, 185, 129, .15);
}

/* animación contenido */

details ul {
  animation: reveal .25s ease;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-animate {
  animation: fadeUp 0.8s ease-out forwards;
}

.hero-sub {
  position: relative;
  z-index: 1;
  color: #f3f6fb;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-shadow:
    0 1px 2px rgba(0, 5, 20, 0.95),
    0 0 18px rgba(0, 5, 20, 0.9),
    0 0 36px rgba(0, 5, 20, 0.75);
  animation: fadeUp 0.8s ease-out forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.status-dot {
  position: relative;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  animation: status-dot-pulse 1.8s ease-out infinite;
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.35);
  animation: status-dot-ring 1.8s ease-out infinite;
  pointer-events: none;
}

@keyframes status-dot-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(52, 211, 153, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

@keyframes status-dot-ring {
  0% {
    transform: scale(0.65);
    opacity: 0.7;
  }

  70% {
    transform: scale(2.1);
    opacity: 0;
  }

  100% {
    transform: scale(2.1);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot,
  .status-dot::after,
  .flechita,
  .pencil-icon {
    animation: none;
  }
}
