/* =========================
   Pricing Card – Igual que about-card
========================= */
#precios .precios-card {
  background-color: var(--surface-color);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  padding: 40px;
  margin: 0 auto;
  box-sizing: border-box;
  max-width: none;
  padding-left: clamp(1rem, 4vw, 4rem);
  padding-right: clamp(1rem, 4vw, 4rem);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  transition: all 0.3s ease-in-out;
}

/* Hover premium */
#precios .precios-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* Card body */
#precios .precios-card .card-body {
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}

/* Wrapper tabla scroll horizontal */
#precios .pricing-table-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  box-sizing: border-box;
  padding: 0;
}

/* Tabla */
#precios .pricing-table {
  width: 100%;
  max-width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
  font-family: var(--heading-font);
}

/* Columnas activas en desktop */
#precios .pricing-table td.active,
#precios .pricing-table th.active {
  background-color: var(--light-background);
  color: var(--heading-color);
}

/* Iconos */
#precios .pricing-table i {
  font-size: 0.95rem;
  margin: 0 0.1rem;
  vertical-align: middle;
}

#precios .pricing-table i.bi-star-fill,
#precios .pricing-table i.bi-star {
  color: #ffc107;
}

/* Precios */
#precios .pricing-table td h2.precio,
#precios .pricing-table td span.precio-small {
  display: inline;
  margin: 0;
  padding: 0;
  color: var(--accent-color);
  font-weight: 500;
  line-height: 1.2;
}

#precios .pricing-table td span.precio-small {
  font-size: 0.6em;
}

/* Nota pie */
#precios .nota-precio {
  font-size: 0.85rem;
  color: var(--default-color);
  text-align: center;
  margin-top: 1rem;
}

/* Flechas scroll */
.precio-swipe {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: var(--accent-color);
  cursor: pointer;
  z-index: 10;
  display: none;
  user-select: none;
}

.precio-swipe.left { left: 5px; }
.precio-swipe.right { right: 5px; }

/* =========================
 Tablet + Mobile
========================= */
@media (max-width: 1199px) {
  #precios .pricing-table-wrapper {
      padding: 0 0.5rem;
      overflow-x: auto;
      overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
  }

  #precios .pricing-table {
      width: max-content; /* permite scroll horizontal */
      margin: 0 auto;
  }

  /* Primera columna */
  #precios table th:first-child,
  #precios table td:first-child {
      white-space: normal !important;
      word-break: break-word;
      min-width: 120px;
      font-size: 0.85rem;
  }

  /* Resto de columnas */
  #precios table th:not(:first-child),
  #precios table td:not(:first-child) {
      white-space: nowrap;
      min-width: 140px;
      font-size: 0.95rem;
  }
}

/* Ajuste responsive card */
@media (max-width: 1200px) {
  #precios .precios-card {
      width: 95%; /* Igual que about-card */
      padding: 40px;
  }
}
