/* ═══════════════════════════════════════════════════
   CATÁLOGO DE SERVICIOS - Stylesheet
   ═══════════════════════════════════════════════════ */

.catalog-body { padding-top: 90px; }
@media (max-width: 768px) { .catalog-body { padding-top: 80px; } }

/* En páginas secundarias: nav al top sin top-bar arriba, transparente integrado al bg */
.nav--catalog {
  top: 0 !important;
  background: rgba(7,7,12,0.35) !important;
  border-bottom: none !important;
}
.nav--catalog.scrolled {
  background: rgba(7,7,12,0.65) !important;
  border-bottom: 1px solid rgba(168,85,247,0.10) !important;
}

/* Background más sutil para el catálogo (es para leer) */
.bg-animated--soft .bg-orb { opacity: 0.35; }
.bg-animated--soft::after { opacity: 0.5; }

/* Nav simplificado */
.nav--catalog {
  top: 0;
}
.nav__catalog-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
  flex-wrap: wrap;
  align-items: center;
}
.nav__catalog-actions .btn {
  white-space: nowrap;
}

/* HERO */
.catalog-hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}
.catalog-hero h1 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  margin: 24px 0 20px;
  line-height: 1.18;
}
.catalog-hero__sub {
  max-width: 720px;
  margin: 0 auto 32px;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.6;
}
.catalog-meta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 12px 24px;
  background: rgba(20,20,28,0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-muted);
}
.catalog-meta strong {
  color: var(--text-soft);
  font-weight: 600;
}

/* TOC flotante - pill centrado, sin franja */
.catalog-toc-wrapper {
  position: sticky;
  top: 95px;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
  margin: 0 24px 56px;
  animation: tocFadeIn 0.7s var(--ease-out) 0.4s both;
}
@keyframes tocFadeIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
.catalog-toc {
  pointer-events: auto;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(7,7,12,0.55);
  border: 1px solid rgba(168,85,247,0.22);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow:
    0 12px 40px rgba(0,0,0,0.35),
    0 0 0 1px rgba(255,255,255,0.02) inset,
    0 0 30px rgba(168,85,247,0.10);
}
.catalog-toc__link {
  position: relative;
  z-index: 1;
  padding: 10px 20px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  transition: color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.catalog-toc__link:hover {
  color: var(--text-white);
  transform: translateY(-1px);
}
.catalog-toc__link.is-active {
  color: var(--text-white);
}

/* Indicador flotante (la "burbuja" que se desliza al active) */
.catalog-toc__indicator {
  position: absolute;
  top: 6px;
  left: 0;
  height: calc(100% - 12px);
  width: 0;
  background: var(--grad-brand);
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(168,85,247,0.45);
  transition: width 0.45s var(--ease-out), transform 0.45s var(--ease-out), opacity 0.3s;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
}
.catalog-toc.has-active .catalog-toc__indicator { opacity: 1; }

@media (max-width: 768px) {
  .catalog-toc-wrapper { top: 80px; margin: 0 12px 40px; }
  .catalog-toc { gap: 2px; padding: 4px; flex-wrap: wrap; justify-content: center; }
  .catalog-toc__link { padding: 8px 12px; font-size: 11px; letter-spacing: 0.03em; }
  .catalog-toc__indicator { display: none; }
}

/* PLAN DETAIL */
.plan-detail {
  padding: 64px 0;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
}
.plan-detail:last-of-type { border-bottom: none; }
.plan-detail--featured {
  background: linear-gradient(180deg, rgba(168,85,247,0.04), transparent);
}
.plan-detail--custom {
  background: linear-gradient(180deg, rgba(59,91,255,0.04), rgba(168,85,247,0.06));
}

.plan-detail__header {
  text-align: center;
  margin-bottom: 56px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.plan-detail__header h2 {
  margin: 24px 0 16px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.plan-target {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}
.plan-target strong { color: var(--text-soft); font-weight: 600; }

.plan-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  border: 1px solid;
}
.plan-tag--blue {
  color: var(--brand-blue-light);
  background: rgba(59,91,255,0.1);
  border-color: rgba(59,91,255,0.3);
}
.plan-tag--violet {
  color: var(--brand-violet-light);
  background: rgba(168,85,247,0.1);
  border-color: rgba(168,85,247,0.3);
}
.plan-tag--custom {
  color: var(--brand-violet-light);
  background: linear-gradient(135deg, rgba(59,91,255,0.1), rgba(168,85,247,0.1));
  border-color: rgba(168,85,247,0.4);
}

.plan-detail__price {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 18px 0 24px;
}
.plan-price__main {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.plan-price__div {
  font-size: 13px;
  color: var(--text-dim);
}
.plan-price__plus {
  font-size: 18px;
  color: var(--text-dim);
  font-weight: 300;
  margin: 0 6px;
}
.plan-price__monthly {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  font-weight: 900;
  color: var(--text-soft);
  letter-spacing: -0.02em;
  line-height: 1;
}
.plan-price__monthly span {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}
.plan-detail__price--custom {
  flex-direction: column;
  gap: 4px;
}
.plan-price__custom {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* GRID DE BLOQUES */
.plan-detail__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}
.plan-block {
  background: rgba(20,20,28,0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.plan-block--small { padding: 28px 24px; }
.plan-block:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
.plan-block:nth-child(2) { grid-column: 2; grid-row: 1; }
.plan-block:nth-child(3),
.plan-block:nth-child(4),
.plan-block:nth-child(5) {
  grid-column: 2;
}
.plan-block h3 {
  font-size: 19px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.plan-block h3 + .plan-time {
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 14px;
}
.plan-block h3 + .plan-time strong { color: var(--brand-violet-light); }

/* TASK LIST (setup breakdown) */
.task-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.task-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 16px;
  background: rgba(7,7,12,0.5);
  border: 1px solid rgba(168,85,247,0.1);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s;
}
.task-list li:hover { border-color: rgba(168,85,247,0.3); }
.task-time {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand-violet-light);
  text-align: center;
  padding: 6px 0;
  background: rgba(168,85,247,0.1);
  border-radius: 6px;
}
.task-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.task-content strong {
  font-size: 14px;
  color: var(--text-white);
  font-weight: 600;
}
.task-content span {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* CHECK LIST (mensual) */
.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.5;
}
.check-list li::before {
  content: '';
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A855F7' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}
.check-list li strong { color: var(--text-white); font-weight: 600; }

/* STACK / CASE LIST */
.stack-list, .case-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stack-list li {
  font-size: 13.5px;
  color: var(--text-muted);
  padding: 6px 0;
  border-bottom: 1px dashed rgba(168,85,247,0.15);
}
.stack-list li:last-child { border-bottom: none; }
.stack-list li strong { color: var(--text-white); font-weight: 600; }
.case-list li {
  font-size: 13.5px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}
.case-list li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--brand-violet-light);
  font-weight: 700;
}

/* CATALOG FAQ */
.catalog-faq {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
}
.catalog-faq h2 {
  text-align: center;
  margin-bottom: 48px;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}
.catalog-faq__item {
  background: rgba(20,20,28,0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s;
}
.catalog-faq__item[open] { border-color: rgba(168,85,247,0.4); }
.catalog-faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 26px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-white);
  position: relative;
  padding-right: 48px;
}
.catalog-faq__item summary::-webkit-details-marker { display: none; }
.catalog-faq__item summary::after {
  content: '+';
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--brand-violet-light);
  font-weight: 300;
  transition: transform 0.3s var(--ease);
}
.catalog-faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.catalog-faq__item p {
  padding: 0 26px 22px;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 15px;
}

/* CATALOG CTA */
.catalog-cta {
  padding: 80px 0;
  text-align: center;
}
.catalog-cta__inner {
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(59,91,255,0.08), rgba(168,85,247,0.12));
  border: 1px solid rgba(168,85,247,0.2);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
}
.catalog-cta h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  margin-bottom: 16px;
}
.catalog-cta p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 32px;
  line-height: 1.6;
}
.catalog-cta__buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* CATALOG FOOTER */
.catalog-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border-subtle);
  background: rgba(7,7,12,0.7);
  font-size: 13px;
  color: var(--text-muted);
}
.catalog-footer__row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.catalog-footer__row + .catalog-footer__row { margin-top: 20px; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .plan-detail__grid {
    grid-template-columns: 1fr;
  }
  .plan-block:nth-child(1),
  .plan-block:nth-child(2),
  .plan-block:nth-child(3),
  .plan-block:nth-child(4),
  .plan-block:nth-child(5) {
    grid-column: 1;
    grid-row: auto;
  }
  .nav__catalog-actions { gap: 6px; }
  .nav__catalog-actions .btn { padding: 8px 12px; font-size: 12px; }
}

@media (max-width: 768px) {
  .catalog-toc { top: 70px; padding: 10px 0; }
  .catalog-toc .container { gap: 12px; }
  .catalog-toc a { font-size: 12px; padding: 4px 10px; }
  .task-list li {
    grid-template-columns: 60px 1fr;
    gap: 10px;
    padding: 12px 14px;
  }
  .task-time { font-size: 11px; }
  .plan-block { padding: 24px 20px; }
  .nav__catalog-actions a:not(.btn--primary),
  .nav__catalog-actions button {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════
   PRINT (PDF) STYLES
   ═══════════════════════════════════════════════════ */
@media print {
  body, .catalog-body {
    background: white !important;
    color: #1a1a2e !important;
    padding-top: 0 !important;
  }
  .bg-animated, .scroll-progress, .top-bar, .nav, .catalog-toc, .no-print {
    display: none !important;
  }
  .grad-text {
    -webkit-text-fill-color: #5B6FFF !important;
    background: none !important;
    color: #5B6FFF !important;
  }
  .catalog {
    color: #1a1a2e;
  }
  .catalog-hero {
    padding: 20px 0 30px;
    border-bottom: 2px solid #ddd;
  }
  .catalog-hero h1 { color: #0A0A0F; }
  .catalog-hero__sub, .plan-target, .check-list li, .stack-list li, .case-list li,
  .task-content span, .catalog-faq__item p, .catalog-cta p {
    color: #444 !important;
  }
  .pill, .catalog-meta, .plan-tag {
    background: white !important;
    border: 1px solid #ccc !important;
    color: #333 !important;
  }
  .plan-detail {
    page-break-before: always;
    padding: 20px 0;
    border-bottom: none;
    background: white !important;
  }
  .plan-detail:first-of-type { page-break-before: auto; }
  .plan-detail__header h2 {
    color: #0A0A0F;
  }
  .plan-block {
    background: #f8f8fa !important;
    border: 1px solid #e0e0e8 !important;
    color: #1a1a2e;
    page-break-inside: avoid;
  }
  .plan-block h3 { color: #0A0A0F; }
  .task-list li {
    background: white !important;
    border: 1px solid #e0e0e8 !important;
  }
  .task-time {
    background: #ede7ff !important;
    color: #5B33A8 !important;
  }
  .task-content strong { color: #0A0A0F; }
  .check-list li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B33A8' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") !important;
  }
  .check-list li strong { color: #0A0A0F; }
  .stack-list li strong { color: #0A0A0F; }
  .plan-price__main, .plan-price__monthly, .plan-price__custom {
    color: #5B33A8 !important;
    -webkit-text-fill-color: #5B33A8 !important;
    background: none !important;
  }
  .catalog-faq {
    page-break-before: always;
  }
  .catalog-faq h2 { color: #0A0A0F; }
  .catalog-faq__item {
    background: #f8f8fa !important;
    border: 1px solid #e0e0e8 !important;
    page-break-inside: avoid;
  }
  .catalog-faq__item summary { color: #0A0A0F; }
  .catalog-faq__item[open] summary::after,
  .catalog-faq__item summary::after {
    color: #5B33A8 !important;
  }
  .catalog-faq__item:not([open]) p { display: none; }
  .catalog-cta { page-break-before: always; padding: 40px 0; }
  .catalog-cta h2 { color: #0A0A0F; }
  .catalog-cta__inner {
    background: #f8f8fa !important;
    border: 1px solid #e0e0e8 !important;
  }
  .catalog-footer {
    background: white !important;
    border-top: 2px solid #ddd;
    color: #444 !important;
  }
}
