/* ============================================================
   SELECTOR.CSS — Planes / Lo que PULSO hace
   Fondo: el del sitio (transparente sobre var(--color-bg-base))
   ============================================================ */

.selector {
  background-color: var(--color-bg-base);
  position: relative;
  overflow: hidden;
}

.lq-wrap {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 60px 60px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Reveal al hacer scroll */
.is-rev {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.is-rev.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   ACTO 1 — Comparativa
   ============================================================ */
.ac-section {
  padding: 30px 0 40px;
  position: relative;
}
.ac-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
}

.ac-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 56px;
}
.ac-head .pv-title {
  text-align: center;
  max-width: 18ch;
}

.ac-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: stretch;
  position: relative;
}
.ac-grid::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 255, 255, 0.06),
    transparent
  );
  transform: translateX(-0.5px);
  pointer-events: none;
}

.ac-col {
  padding: 28px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ac-col-before {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 2px solid rgba(239, 68, 68, 0.5);
}
.ac-col-after {
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-left: 2px solid #2563eb;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 80px -30px rgba(37, 99, 235, 0.4);
}
.ac-col-after::after {
  content: "";
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}

.ac-col-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 6px;
}
.ac-tag-bad {
  color: #f87171;
}
.ac-tag-bad::before {
  content: "●";
}
.ac-tag-ok {
  color: #60a5fa;
}
.ac-tag-ok::before {
  content: "●";
}

.ac-row {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--color-text-secondary, rgba(241, 245, 249, 0.65));
  opacity: 0;
  transform: translateX(-10px);
  animation: ac-in 0.5s var(--d, 0s) cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
  z-index: 1;
  transition:
    background 220ms,
    border-color 220ms,
    transform 220ms;
}
@keyframes ac-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.ac-row-bad .ac-mark {
  color: #f87171;
  font-weight: 700;
}
.ac-row-bad .ac-text {
  text-decoration: line-through;
  text-decoration-color: rgba(248, 113, 113, 0.4);
}
.ac-row-bad .ac-arrow-link {
  font-size: 16px;
  color: #2563eb;
  opacity: 0;
  transform: translateX(-8px);
  transition:
    opacity 220ms,
    transform 220ms;
}
.ac-row-bad:hover {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  transform: translateX(4px);
}
.ac-row-bad:hover .ac-arrow-link {
  opacity: 1;
  transform: translateX(0);
}

.ac-row-ok {
  color: var(--color-text-primary, #f1f5f9);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.ac-row-ok .ac-mark {
  color: #60a5fa;
  font-weight: 700;
}
.ac-row-ok:hover,
.ac-row-ok.is-active {
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 24px -4px rgba(37, 99, 235, 0.4);
  transform: translateX(-4px);
}

.ac-row-bad.is-active {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  transform: translateX(4px);
}
.ac-row-bad.is-active .ac-arrow-link {
  opacity: 1;
  transform: translateX(0);
}

.ac-row-ok.is-dim {
  opacity: 0.35;
  transition: opacity 220ms;
}

.ac-time {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.16);
  color: #93c5fd;
  letter-spacing: 0.04em;
  border: 1px solid rgba(59, 130, 246, 0.25);
  white-space: nowrap;
}

/* ============================================================
   ACTO 2 — El número
   ============================================================ */
.an-section {
  padding: 40px 0;
}
.an-card {
  padding: 56px 48px;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.an-card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 200px;
  background: radial-gradient(
    ellipse,
    rgba(37, 99, 235, 0.14),
    transparent 65%
  );
  filter: blur(40px);
  pointer-events: none;
}
.an-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.an-side {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.an-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-tertiary, rgba(241, 245, 249, 0.4));
}
.an-num {
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-text-secondary, rgba(241, 245, 249, 0.65));
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.an-num-brand {
  color: #2563eb;
  text-shadow: 0 0 32px rgba(37, 99, 235, 0.5);
}
.an-unit {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text-tertiary, rgba(241, 245, 249, 0.4));
  letter-spacing: 0;
}
.an-arrow {
  font-size: 36px;
  color: #2563eb;
}
.an-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 700px;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
}
.an-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.an-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
}
.an-bar-bad span {
  background: linear-gradient(
    90deg,
    rgba(248, 113, 113, 0.5),
    rgba(248, 113, 113, 0.8)
  );
}
.an-bar-ok span {
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  box-shadow: 0 0 12px #2563eb;
}

.an-section.is-in .an-bar-bad span {
  animation: an-grow 1.5s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.an-section.is-in .an-bar-ok span {
  animation: an-grow 0.6s 1.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes an-grow {
  from {
    width: 0;
  }
}
.an-foot {
  font-size: 15px;
  color: var(--color-text-secondary, rgba(241, 245, 249, 0.65));
  position: relative;
  z-index: 1;
}

/* ============================================================
   ACTO 3 — Planes
   ============================================================ */
.ap-section {
  padding: 40px 0 20px;
}
.ap-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  margin-bottom: 56px;
}

.ap-toggle {
  display: inline-flex;
  padding: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  margin-top: 12px;
}
.ap-toggle-btn {
  padding: 8px 18px;
  background: transparent;
  border: none;
  border-radius: 999px;
  color: var(--color-text-secondary, rgba(241, 245, 249, 0.65));
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 200ms;
}
.ap-toggle-btn.is-on {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}
.ap-toggle-save {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  font-weight: 600;
}
.ap-toggle-btn.is-on .ap-toggle-save {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.ap-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  max-width: 820px;
  margin-inline: auto;
  gap: 18px;
  align-items: stretch;
  /* Profundidad para el flip 3D de las cards al cambiar de tab */
  perspective: 1200px;
}

.ap-card {
  position: relative;
  padding: 28px 24px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition:
    transform 300ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 300ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 300ms;
}
.ap-card:hover {
  transform: scale(1.03);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.5);
}

.ap-card-popular {
  background: linear-gradient(
    180deg,
    rgba(15, 24, 48, 0.9) 0%,
    rgba(13, 20, 38, 0.9) 100%
  );
  border: 1px solid rgba(59, 130, 246, 0.4);
  box-shadow:
    0 0 60px -10px rgba(37, 99, 235, 0.4),
    0 0 0 1px rgba(59, 130, 246, 0.1) inset;
  transform: scale(1.04);
  z-index: 2;
}
.ap-card-popular::after {
  content: "";
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.35),
    transparent 65%
  );
  filter: blur(25px);
  pointer-events: none;
}
.ap-card-popular:hover {
  transform: scale(1.07);
}
.ap-card-popular > * {
  position: relative;
  z-index: 1;
}

.ap-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: #2563eb;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.5);
  z-index: 3;
}

.ap-card-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--color-text-tertiary, rgba(241, 245, 249, 0.4));
}
.ap-card-popular .ap-card-tag {
  color: #93c5fd;
}

.ap-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.ap-price {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--color-text-primary, #f1f5f9);
}
/* Modo Empresas/Hospitales — el precio se sustituye por cotización */
.ap-price--quote {
  font-size: 24px;
  line-height: 1.2;
}
.ap-period {
  font-size: 14px;
  color: var(--color-text-tertiary, rgba(241, 245, 249, 0.4));
}

.ap-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 0;
  flex: 1;
  list-style: none;
  padding: 0;
}
.ap-items li {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-secondary, rgba(241, 245, 249, 0.65));
  line-height: 1.5;
}
.ap-check {
  color: #2563eb;
  font-weight: 700;
  flex-shrink: 0;
}
.ap-card-popular .ap-check {
  color: #60a5fa;
}

.ap-save {
  margin-top: 4px;
  padding: 10px 12px;
  font-size: 12px;
  color: #34d399;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 8px;
  line-height: 1.4;
}

.ap-cta {
  width: 100%;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-primary, #f1f5f9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 200ms;
}
.ap-cta:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.ap-card-popular .ap-cta {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}
.ap-card-popular .ap-cta:hover {
  background: #3b82f6;
  box-shadow: 0 4px 24px rgba(37, 99, 235, 0.5);
}

/* ============================================================
   ACTO 4 — Testimonios
   ============================================================ */
.at-section {
  max-width: 860px;
  margin: 60px auto 0;
}
.at-card {
  position: relative;
  width: 540px;
  height: 250px;
  padding: 40px 44px 32px;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 50%,
    rgba(20, 24, 36, 0.3) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.at-card::after {
  content: "";
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.25),
    transparent 65%
  );
  filter: blur(25px);
  pointer-events: none;
}
.at-card > * {
  position: relative;
  z-index: 1;
}
.at-quote-mark {
  position: absolute;
  top: 4px;
  left: 24px;
  font-size: 80px;
  line-height: 1;
  color: #2563eb;
  opacity: 0.35;
  font-family: Georgia, serif;
  pointer-events: none;
}
.at-text {
  font-size: 17px;
  line-height: 1.55;
  color: var(--color-text-primary, #f1f5f9);
  font-weight: 500;
  margin: 0 0 20px;
  min-height: 100px;
  animation: at-fade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes at-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.at-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.at-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.at-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary, #f1f5f9);
}
.at-role {
  font-size: 12px;
  color: var(--color-text-tertiary, rgba(241, 245, 249, 0.4));
}
.at-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.at-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 200ms;
}
.at-dot.is-on {
  width: 24px;
  border-radius: 999px;
  background: #2563eb;
}

/* ============================================================
   BLOQUE EMPRESARIAL — tab Empresas/Hospitales
   ============================================================ */

.ap-biz {
  display: none;
  max-width: 820px;
  margin-inline: auto;
  width: 100%;
}
.ap-biz.is-visible {
  display: flex;
  flex-direction: column;
  gap: 32px;
  animation: ap-biz-in 0.35s 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes ap-biz-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ap-biz-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.ap-biz-overline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #60a5fa;
}
.ap-biz-overline-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2563eb;
  flex-shrink: 0;
}
.ap-biz-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #f1f5f9;
}
.ap-biz-title-accent {
  color: #60a5fa;
}
.ap-biz-sub {
  font-size: 14px;
  color: rgba(241, 245, 249, 0.6);
  max-width: 46ch;
  text-align: center;
}

.ap-biz-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.ap-biz-feat {
  padding: 20px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 220ms, border-color 220ms;
}
.ap-biz-feat:hover {
  background: rgba(37, 99, 235, 0.07);
  border-color: rgba(59, 130, 246, 0.25);
}
.ap-biz-feat-icon {
  font-size: 20px;
  color: #60a5fa;
  line-height: 1;
  margin-bottom: 4px;
}
.ap-biz-feat strong {
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
}
.ap-biz-feat p {
  font-size: 12px;
  color: rgba(241, 245, 249, 0.55);
  line-height: 1.5;
  margin: 0;
}

.ap-biz-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(15, 24, 48, .9) 0%, rgba(13, 20, 38, .95) 100%);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 18px;
  box-shadow:
    0 0 60px -15px rgba(37, 99, 235, .3),
    0 0 0 1px rgba(59, 130, 246, .08) inset;
  position: relative;
  overflow: hidden;
}
.ap-biz-cta-row::after {
  content: "";
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, .3), transparent 65%);
  filter: blur(30px);
  pointer-events: none;
}
.ap-biz-price-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 1;
}
.ap-biz-price-text {
  font-size: 22px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.02em;
}
.ap-biz-price-note {
  font-size: 12px;
  color: rgba(241, 245, 249, 0.55);
}
.ap-biz-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.ap-biz-cta-primary {
  padding: 12px 22px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 200ms, box-shadow 200ms, transform 200ms;
}
.ap-biz-cta-primary:hover {
  background: #3b82f6;
  box-shadow: 0 4px 24px rgba(37, 99, 235, .5);
  transform: scale(1.02);
}
.ap-biz-cta-secondary {
  padding: 12px 22px;
  background: transparent;
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 200ms, border-color 200ms;
}
.ap-biz-cta-secondary:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .28);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .ac-grid,
  .ap-grid {
    grid-template-columns: 1fr;
  }
  .ap-card-popular {
    transform: none;
  }
  .ap-card-popular:hover {
    transform: translateY(-4px);
  }
  .lq-wrap {
    padding: 60px 24px 80px;
  }
  .ap-biz-features {
    grid-template-columns: repeat(2, 1fr);
  }
  .ap-biz-cta-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 20px;
  }
  .ap-biz-actions {
    flex-direction: column;
    width: 100%;
  }
  .ap-biz-cta-primary,
  .ap-biz-cta-secondary {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .ap-biz-features {
    grid-template-columns: 1fr;
  }
}
