/* ==========================================================================
   MÓDULO DE PRECIOS (pricing.css) - Mobile-First
   ========================================================================== */

.pricing-section {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 1.5rem 1.5rem; /* Ajustado para dar aire en móviles */
  background-color: #f9fafb;
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
}

/* Cabecera de la sección */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 1.75rem; /* Tamaño controlado para móvil */
  color: #1a365d;
  line-height: 1.2;
}

.pricing-container {
  max-width: 1400px;
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr; /* Una columna por defecto en móvil */
  gap: 2rem; /* Separación limpia entre tarjetas apiladas */
  margin-top: 2.5rem;
  align-items: stretch;
  justify-content: center;
}

.price-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  text-align: center;
}

.price-card.featured {
  border: 2px solid #0056b3;
  box-shadow: 0 20px 25px -5px rgba(0, 86, 179, 0.1);
}

.price {
  font-size: 1.5rem;
  color: #718096;
  margin: 1.5rem 0;
}

.price span {
  font-size: 3rem;
  font-weight: 700;
  color: #1a365d;
}

.price-amount {
  margin: 1rem 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.price-amount .number {
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
}

.plan-offer {
  font-size: 0.85rem;
  color: var(--info-text);
  font-weight: 600;
  margin-top: 0.5rem;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  text-align: left;
}

.price-card li {
  margin-bottom: 0.75rem;
  color: #4a5568;
}

.price-card li::before {
  content: "✓ ";
  color: #38a169;
  font-weight: bold;
}

.plan-features a {
  /*color: #1a365d;*/
  color: var(--info-text);
  text-decoration: none;
  font-weight: 600;
}

.price-card.pricing-oficios {
  margin: 3em auto;
  padding: 1.5rem;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.plan-features li::before {
  content: "✓";
  color: #10b981;
  font-weight: bold;
  margin-right: 0.75rem;
}

.btn-price,
.btn-price-featured,
.btn-price-primary,
.btn-price-secondary {
  display: block;
  text-align: center;
  padding: 0.85rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  margin-top: auto;
}

.btn-price {
  border: 1px solid #ccd0d5;
  color: #4a5568;
}

.btn-price-featured,
.btn-price-primary {
  background-color: #0056b3;
  color: #ffffff;
}

.btn-price-secondary {
  border: 1px solid #d1d5db;
  color: #374151;
}

.ribbon,
.badge-featured {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #0056b3;
  color: white;
  padding: 0.25rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
}

/* --- Banner de Oportunidad (Móvil por defecto) --- */
.pricing-promo-banner {
  background: linear-gradient(135deg, #f0fdf4 0%, #e6fffa 100%);
  border: 1px solid #b2f5ea;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  margin: 2rem auto;
  max-width: 1200px;
  display: flex;
  flex-direction: column; /* Apilado en vertical para móvil */
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  box-shadow: 0 4px 15px -3px rgba(35, 78, 82, 0.05);
}

.promo-badge {
  background-color: #234e52;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(35, 78, 82, 0.1);
}

.promo-content {
  text-align: center;
}

.promo-content h3 {
  font-size: 1.15rem;
  color: #234e52;
  font-weight: 700;
  margin: 0 0 0.35rem 0;
  letter-spacing: -0.01em;
}

.promo-content p {
  font-size: 0.95rem;
  color: #2d3748;
  margin: 0;
  line-height: 1.5;
}

.pricing-footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 2rem auto;
}

/* ==========================================================================
   VISTA DE ESCRITORIO: A partir de 768px
   ========================================================================== */

@media (min-width: 768px) {
  .pricing-section {
    margin: 4rem auto;
    padding: 3rem 3rem;
  }

  .pricing-grid {
    grid-template-columns: repeat(
      auto-fit,
      minmax(380px, 1fr)
    ); /* Retorna al comportamiento en rejilla */
    gap: 1.2rem; /* Recupera tus 5rem de espacio entre columnas */
    margin-top: 5rem;
  }

  .section-header {
    margin-bottom: 4rem;
  }

  .section-header h2 {
    font-size: 2.25rem; /* Recupera el tamaño original grande */
  }

  .pricing-promo-banner {
    flex-direction: row; /* Vuelve a alinearse de forma horizontal */
    align-items: center;
    text-align: left;
    padding: 1.75rem 2.5rem;
    margin: 2.5rem auto -0.5rem auto;
    gap: 2rem;
  }

  .promo-content {
    text-align: left;
  }
}

@media (min-width: 1200px) {
  .pricing-grid {
    grid-template-columns: repeat(
      auto-fit,
      minmax(240px, 1fr)
    ); /* Retorna al comportamiento en rejilla */
    gap: 1.2rem; /* Recupera tus 5rem de espacio entre columnas */
    margin-top: 5rem;
  }

  .price-card {
    padding: 2rem 1.5rem;
  }
}

@media (min-width: 1400px) {
  .price-card {
    padding: 1rem 2rem 2rem 2rem;
  }
}
