/* ============================================
   PRICING SECTION - Torneo de Fútbol 2025
   ============================================ */

.pricing-section {
  padding: 2rem 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 16px;
  margin: 2rem 0;
}

.pricing-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 0 1rem;
}

.pricing-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.pricing-subtitle {
  font-size: 1.125rem;
  color: #666;
  margin: 0;
}

.pricing-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 0 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Group Container */
.pricing-group {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pricing-group:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Group Header */
.pricing-group-header {
  padding: 1.5rem;
  border-bottom: 2px solid #f0f0f0;
  background: #fafbfc;
}

.pricing-group-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 0.5rem 0;
}

.pricing-group-subtitle {
  font-size: 0.875rem;
  color: #999;
  margin: 0;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-socios {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.badge-no-socios {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

/* Table Wrapper */
.pricing-table-wrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Table Styles */
.pricing-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.pricing-table thead {
  background: linear-gradient(90deg, #f8f9fa 0%, #f0f0f0 100%);
  position: sticky;
  top: 0;
  z-index: 10;
}

.pricing-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #4a4a4a;
  border-bottom: 2px solid #e0e0e0;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-table th.text-right {
  text-align: right;
}

.pricing-table tbody {
  flex-grow: 1;
}

.pricing-row {
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.pricing-row:hover {
  background-color: #fafbfc;
}

.pricing-row:last-child {
  border-bottom: none;
}

/* Table Cells */
.pricing-table td {
  padding: 1.25rem 1rem;
  vertical-align: middle;
}

.category-cell {
  font-weight: 500;
  color: #1a1a1a;
  min-width: 140px;
}

.category-cell small {
  display: block;
  font-size: 0.8rem;
  color: #999;
  font-weight: 400;
  margin-top: 0.25rem;
}

.deadline-cell {
  color: #666;
  font-size: 0.9rem;
  white-space: nowrap;
}

.price-cell {
  font-weight: 700;
  font-size: 1.125rem;
  color: #2563eb;
  text-align: right;
  min-width: 100px;
}

/* Pricing Note */
.pricing-note {
  padding: 1.25rem 1.5rem;
  margin: 1rem;
  border-radius: 8px;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.95rem;
}

.note-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  color: currentColor;
}

.discount-note {
  background: #eef5ff;
  border-left: 4px solid #2563eb;
  color: #1e3a8a;
}

.discount-note strong {
  color: #1e40af;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .pricing-container {
    grid-template-columns: 1fr;
  }

  .pricing-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .pricing-section {
    padding: 1.5rem 0;
    margin: 1.5rem 0;
  }

  .pricing-header {
    margin-bottom: 2rem;
    padding: 0 0.75rem;
  }

  .pricing-title {
    font-size: 1.75rem;
  }

  .pricing-subtitle {
    font-size: 1rem;
  }

  .pricing-container {
    padding: 0 0.75rem;
    gap: 1.5rem;
  }

  .pricing-group {
    border-radius: 8px;
  }

  .pricing-group-header {
    padding: 1.25rem;
  }

  .pricing-group-title {
    font-size: 1.1rem;
    gap: 0.5rem;
  }

  .pricing-table th {
    padding: 0.75rem;
    font-size: 0.75rem;
  }

  .pricing-table td {
    padding: 1rem;
  }

  .category-cell {
    min-width: 100px;
  }

  .price-cell {
    font-size: 1rem;
    min-width: 80px;
  }

  .pricing-note {
    padding: 1rem;
    margin: 0.75rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .pricing-section {
    padding: 1rem 0;
    margin: 1rem 0;
    border-radius: 12px;
  }

  .pricing-header {
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
  }

  .pricing-title {
    font-size: 1.5rem;
  }

  .pricing-subtitle {
    font-size: 0.9rem;
  }

  .pricing-container {
    padding: 0 0.5rem;
    gap: 1rem;
  }

  .pricing-group {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }

  .pricing-group-header {
    padding: 1rem;
  }

  .pricing-group-title {
    font-size: 1rem;
    flex-wrap: wrap;
  }

  .badge {
    padding: 0.325rem 0.75rem;
    font-size: 0.7rem;
  }

  .pricing-table {
    font-size: 0.85rem;
  }

  .pricing-table th {
    padding: 0.6rem;
    font-size: 0.7rem;
  }

  .pricing-table td {
    padding: 0.75rem 0.6rem;
  }

  .category-cell {
    min-width: 80px;
  }

  .category-cell small {
    font-size: 0.7rem;
  }

  .deadline-cell {
    font-size: 0.8rem;
  }

  .price-cell {
    font-size: 0.95rem;
    min-width: 70px;
  }

  .pricing-note {
    padding: 0.75rem;
    margin: 0.5rem;
    gap: 0.5rem;
    font-size: 0.8rem;
  }

  .note-icon {
    width: 18px;
    height: 18px;
  }
}

/* ============================================
   ACCESSIBILITY & UTILITIES
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .pricing-group,
  .pricing-row {
    transition: none;
  }
}

@media (prefers-color-scheme: dark) {
  .pricing-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  }

  .pricing-title {
    color: #ffffff;
  }

  .pricing-subtitle {
    color: #999;
  }

  .pricing-group {
    background: #2d2d2d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }

  .pricing-group:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  }

  .pricing-group-header {
    background: #333333;
    border-bottom-color: #444;
  }

  .pricing-group-title {
    color: #ffffff;
  }

  .pricing-table thead {
    background: #333333;
  }

  .pricing-table th {
    color: #b3b3b3;
    border-bottom-color: #444;
  }

  .pricing-row {
    border-bottom-color: #444;
  }

  .pricing-row:hover {
    background-color: #333333;
  }

  .category-cell {
    color: #e0e0e0;
  }

  .category-cell small {
    color: #999;
  }

  .deadline-cell {
    color: #b3b3b3;
  }

  .price-cell {
    color: #60a5fa;
  }

  .discount-note {
    background: #1e3a5f;
    color: #93c5fd;
    border-left-color: #3b82f6;
  }

  .discount-note strong {
    color: #bfdbfe;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .pricing-section {
    background: white;
    box-shadow: none;
  }

  .pricing-group {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .pricing-group:hover {
    transform: none;
    box-shadow: none;
  }

  .pricing-row:hover {
    background-color: transparent;
  }
}
