/* =====================================================================
   PRICING PAGE  —  ScalifyPanama
   Extiende styles.css — usa las mismas variables, no define nuevas.
   ===================================================================== */

.pricing-page section {
  padding: 80px 2rem;
}
.pricing-page .btn-primary {
  border-radius: 8px;
  box-shadow: none;
}
.pricing-page .btn-primary:hover {
  box-shadow: 0 8px 28px rgba(221, 110, 66, 0.32);
}

/* ── HERO ── */
.pr-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, var(--dark) 0%, #1f3344 55%, var(--slate) 130%);
  padding: 9rem 2rem 5rem;
  overflow: hidden;
}
.pr-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(192, 214, 223, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192, 214, 223, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 10%, transparent 75%);
}
.pr-hero-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(221, 110, 66, 0.14);
  border: 1px solid rgba(221, 110, 66, 0.28);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--beige);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}
.pr-hero h1 {
  position: relative;
  z-index: 1;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.4rem;
}
.pr-hero h1 span {
  color: var(--peach);
}
.pr-hero-sub {
  position: relative;
  z-index: 1;
  font-size: clamp(1rem, 1.7vw, 1.13rem);
  color: var(--sky);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}
.pr-hero-cta {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── CATALOG SECTION ── */
.pr-catalog {
  background: #fff;
}

.pr-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin: 2.75rem 0 3rem;
}
.pr-filter {
  font-family: 'Inter', sans-serif;
  background: var(--grey);
  color: var(--text);
  border: 2px solid transparent;
  padding: 0.55rem 1.2rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--trans);
  white-space: nowrap;
}
.pr-filter:hover {
  background: #e0e0e0;
}
.pr-filter.active {
  background: var(--dark);
  color: #fff;
  border-color: var(--peach);
}

.pr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.5rem;
}

.pr-card {
  background: #fff;
  border: 1px solid rgba(79, 109, 122, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    border-color 0.3s;
}
.pr-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--peach), var(--slate));
  transform: scaleX(0);
  transition: 0.3s;
  transform-origin: left;
}
.pr-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.pr-card:hover::before {
  transform: scaleX(1);
}
.pr-card.is-soon {
  opacity: 0.62;
}
.pr-card.is-soon::before {
  background: var(--sky);
}
.pr-card.in-builder {
  border-color: var(--peach);
  box-shadow: 0 8px 28px rgba(221, 110, 66, 0.14);
}

.pr-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.pr-card-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pr-card-status {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  flex-shrink: 0;
}
.pr-card-status.active {
  background: rgba(37, 211, 102, 0.14);
  color: #1a8a44;
}
.pr-card-status.soon {
  background: rgba(192, 214, 223, 0.35);
  color: var(--slate);
}

.pr-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.55rem;
  line-height: 1.35;
}
.pr-card-desc {
  font-size: 0.86rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.pr-card-deliv {
  list-style: none;
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.pr-card-deliv li {
  font-size: 0.79rem;
  color: #555;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  line-height: 1.5;
}
.pr-card-deliv li::before {
  content: '✓';
  color: var(--peach);
  font-weight: 700;
  flex-shrink: 0;
}

.pr-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  color: #999;
  margin-bottom: 1.1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.pr-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
}
.pr-card-price {
  display: flex;
  flex-direction: column;
}
.pr-card-price strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--peach);
  line-height: 1;
}
.pr-card-price span {
  font-size: 0.7rem;
  color: #999;
  font-weight: 500;
}

.pr-add-btn {
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 0.65rem 1.3rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--trans);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.pr-add-btn:hover {
  background: var(--peach);
  transform: translateY(-2px);
}
.pr-add-btn.added {
  background: var(--green);
}
.pr-add-btn:disabled {
  background: var(--grey);
  color: #aaa;
  cursor: not-allowed;
  transform: none;
}

/* ── BUILDER SECTION ── */
.pr-builder {
  background: linear-gradient(180deg, var(--dark) 0%, #16213e 100%);
}
.pr-builder .section-title.light {
  color: #fff;
}
.pr-builder .section-sub.light {
  color: var(--sky);
  margin: 0 auto;
}

.pr-builder-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 3rem;
}

/* Quick add list */
.pr-builder-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.pr-bl-group-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--beige);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.pr-bl-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.6rem;
  transition: var(--trans);
}
.pr-bl-row:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(221, 110, 66, 0.3);
}
.pr-bl-row.in-builder {
  border-color: var(--peach);
  background: rgba(221, 110, 66, 0.08);
}
.pr-bl-row.is-soon {
  opacity: 0.5;
}
.pr-bl-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}
.pr-bl-info {
  flex: 1;
  min-width: 0;
}
.pr-bl-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
}
.pr-bl-sub {
  font-size: 0.76rem;
  color: var(--sky);
  opacity: 0.8;
}
.pr-bl-price {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--peach);
  flex-shrink: 0;
  white-space: nowrap;
}
.pr-bl-toggle {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--peach);
  color: #fff;
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans);
  line-height: 1;
}
.pr-bl-toggle:hover {
  transform: scale(1.1);
}
.pr-bl-toggle.is-added {
  background: var(--green);
}
.pr-bl-toggle:disabled {
  background: rgba(255, 255, 255, 0.15);
  cursor: not-allowed;
}

/* ── RECEIPT (signature element) ── */
.pr-receipt-wrap {
  position: sticky;
  top: 90px;
}
.pr-receipt {
  background: #fffdf9;
  border-radius: 6px 6px 0 0;
  padding: 2rem 1.85rem 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  position: relative;
  font-family: 'JetBrains Mono', monospace;
  color: #2d2d2d;
}
.pr-receipt-head {
  text-align: center;
  margin-bottom: 0.5rem;
}
.pr-receipt-favicon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  margin: 0 auto 0.5rem;
  display: block;
}
.pr-receipt-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--dark);
  letter-spacing: 0.3px;
}
.pr-receipt-logo span {
  color: var(--peach);
}
.pr-receipt-sub {
  font-size: 0.68rem;
  color: #888;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}
.pr-receipt-date {
  font-size: 0.68rem;
  color: #aaa;
  margin-top: 0.4rem;
}

.pr-receipt-divider {
  border-top: 1.5px dashed #ccc;
  margin: 1.1rem 0;
}

.pr-receipt-lines {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 60px;
}
.pr-receipt-empty {
  text-align: center;
  padding: 1.5rem 0.5rem;
  color: #999;
}
.pr-receipt-empty span {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 0.5rem;
}
.pr-receipt-empty p {
  font-size: 0.76rem;
  line-height: 1.5;
  font-family: 'Inter', sans-serif;
}

.pr-rline {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.82rem;
  animation: rline-in 0.3s ease both;
}
@keyframes rline-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.pr-rline-name {
  flex: 1;
  min-width: 0;
}
.pr-rline-name strong {
  display: block;
  color: var(--dark);
  font-weight: 600;
  font-size: 0.83rem;
}
.pr-rline-name small {
  color: #999;
  font-size: 0.68rem;
  font-family: 'Inter', sans-serif;
}
.pr-rline-price {
  white-space: nowrap;
  font-weight: 600;
  color: var(--dark);
}
.pr-rline-remove {
  background: none;
  border: none;
  color: #c66;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0 2px;
  flex-shrink: 0;
  line-height: 1;
  font-family: 'Inter', sans-serif;
}
.pr-rline-remove:hover {
  color: #a33;
}

.pr-receipt-totals {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pr-rt-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #666;
}
.pr-rt-row.total {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  padding-top: 0.6rem;
  margin-top: 0.3rem;
  border-top: 1.5px solid #ddd;
}
.pr-rt-row.total span:last-child {
  color: var(--peach);
}

.pr-receipt-jagged {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 14px;
  background:
    linear-gradient(135deg, #fffdf9 50%, transparent 50%),
    linear-gradient(-135deg, #fffdf9 50%, transparent 50%);
  background-size: 16px 16px;
  background-position: bottom left;
  background-repeat: repeat-x;
}

.pr-receipt-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.pr-receipt-actions .btn-ghost {
  border-color: rgba(192, 214, 223, 0.3);
  color: var(--sky);
}
.pr-receipt-actions .btn-ghost:hover {
  background: rgba(192, 214, 223, 0.1);
}

.pr-receipt-note {
  font-size: 0.74rem;
  color: rgba(192, 214, 223, 0.55);
  line-height: 1.6;
  margin-top: 1.1rem;
  text-align: center;
}

/* ── Mobile sticky total bar ── */
.pr-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--dark);
  border-top: 1px solid rgba(221, 110, 66, 0.3);
  padding: 0.85rem 1.25rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.pr-sticky-bar.visible {
  transform: translateY(0);
}
.pr-sticky-info {
  display: flex;
  flex-direction: column;
}
.pr-sticky-count {
  font-size: 0.7rem;
  color: var(--sky);
}
.pr-sticky-total {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--peach);
  font-family: 'Playfair Display', serif;
}
.pr-sticky-bar .btn-primary {
  padding: 0.65rem 1.4rem;
  font-size: 0.85rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .pr-builder-layout {
    grid-template-columns: 1fr;
  }
  .pr-receipt-wrap {
    position: static;
    max-width: 460px;
    margin: 0 auto;
  }
}
@media (max-width: 768px) {
  .pricing-page section {
    padding: 56px 1.25rem;
  }
  .pr-hero {
    padding: 7.5rem 1.25rem 4rem;
    min-height: auto;
  }
  .pr-grid {
    grid-template-columns: 1fr;
  }
  .pr-filters {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
  .pr-sticky-bar {
    display: flex;
  }
  .pr-builder {
    padding-bottom: 6.5rem;
  }
  body.has-sticky-cart footer {
    padding-bottom: calc(2.5rem + 76px);
  }
}
@media (max-width: 480px) {
  .pr-hero h1 {
    font-size: 2rem;
  }
  .pr-card {
    padding: 1.4rem;
  }
}
