.tarifa-card {
  background: #fff;
  border: 2px solid #7b7b7b;
  border-radius: 26px;
  padding: 6px;
}

.tarifa-table .tarifa-grid {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.tarifa-table th,
.tarifa-table td {
  padding: 10px 12px;
  vertical-align: middle;
  border: 0 !important;
}

.tarifa-table thead th {
  font-weight: 900;
  font-size: 1.05rem;
  text-transform: uppercase;
  color: #111;
  padding-top: 6px;
  padding-bottom: 14px;
}

.tarifa-table tbody td:first-child {
  color: #666;
  font-size: 1.4em;
  line-height: 1.35;
}

.tarifa-table tbody tr:last-child td {
  border-bottom: 0 !important;
}

.tarifa-pill {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: 0.2px;
}

.tarifa-regular {
  background: #6e6e6e;
}

.tarifa-amarilla {
  background: #f6b21a;
}

.tarifa-naranja {
  background: #f57f29;
}

.check {
  color: #f57f29;
  font-size: 1.05rem;
}

.tarifa-table td.text-center {
  font-weight: 600;
  color: #111;
}

.tarifa-table tbody td.text-center {
  font-size: 1.4rem;
}

.tarifa-table thead th:first-child,
.tarifa-table tbody td:first-child {
  min-width: 280px;
}

@media (max-width: 576px) {
  .tarifa-card {
    padding: 4px;
    border-radius: 20px;
  }

  .tarifa-pill {
    padding: 10px 14px;
    font-size: 0.95rem;
  }

  .tarifa-table thead th {
    font-size: 0.95rem;
  }
}

.tarifa-wrap {
  max-width: 1280px;
}

.tarifa-title {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.tarifa-card {
  padding: 12px;
  border-radius: 28px;
}

.tarifa-table {
  font-size: 1.02rem;
  border: none;
}

.tarifa-table thead th {
  font-size: 1.1rem;
}

.tarifa-pill {
  padding: 14px 22px;
  font-size: 1.1rem;
  border-radius: 16px;
}

.tarifa-table th,
.tarifa-table td {
  padding: 12px 14px;
}

@media (min-width: 1200px) {
  .tarifa-table {
    font-size: 1.06rem;
  }

  .tarifa-pill {
    font-size: 1.15rem;
  }
}

.tarifa-table thead th:first-child {
  font-size: 2.4rem;
  font-weight: 900;
  vertical-align: middle;
  text-align-last: center;
}

.tarifa-pill {
  display: block;
  width: 100%;
  text-align: center;
  padding: 15px 10px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 2rem;
  color: #fff;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
}

@media (max-width: 767px) {
  .tarifa-table thead th:first-child,
  .tarifa-table tbody td:first-child {
    width: min(35%, 60vw);
  }

  .tarifa-pill {
    font-size: 0.8rem;
    padding: 8px 4px;
  }
}

@media (max-width: 576px) {
  .tarifa-table thead th:first-child {
    font-size: 1.6rem;
  }

  .tarifa-pill {
    font-size: 0.8rem;
    padding: 8px 4px;
  }
}

.tarifa-table td.border-abajo-tabla {
  border-bottom: 1px solid #cfcfcf !important;
  margin-bottom: 10px !important;
}

/* Tabs Styling */
.tabs ul#tarifasTab {
  border-bottom: 0 !important;
  margin-bottom: 2rem !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

@media (min-width: 768px) {
  .tabs ul#tarifasTab {
    display: flex;
    gap: 15px;
  }
  .tabs ul#tarifasTab .nav-item {
    flex: 1;
    margin-bottom: 0;
  }
}

/* New Custom Tabs Styles */
.tarifa-tabs-wrapper {
  margin-bottom: 30px;
}

.tarifa-tab-nav {
  display: flex !important;
  gap: 15px !important;
  margin-bottom: 25px !important;
  padding: 0 !important;
}

.tarifa-tab-link {
  flex: 1;
  background-color: #dbdbdb !important;
  color: #666 !important;
  font-weight: 800 !important;
  font-size: 2.1em !important;
  border-radius: 16px !important;
  padding: 18px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
  min-height: 100% !important;
  text-decoration: none !important;
  border: none !important;
  text-align: center;
  cursor: pointer;
}

.tarifa-tab-link:hover {
  text-decoration: none !important;
  filter: brightness(0.92);
  color: #666 !important;
}

/* Active State for Custom Tabs */
.tarifa-tab-link.active {
  background-color: #f57f29 !important;
  color: #fff !important;
}

/* Specific reset for when active is removed */
.tarifa-tab-link:not(.active) {
  background-color: #dbdbdb !important;
  color: #666 !important;
}

.tarifa-tab-link small {
  font-size: 1.3rem;
  font-weight: normal;
  margin-top: 5px;
  color: inherit !important;
  display: block;
}

@media (max-width: 767px) {
  .tarifa-tab-nav {
    flex-direction: column !important;
  }
  .tarifa-tab-link {
    font-size: 1.6rem !important;
    padding: 15px !important;
  }
  .tarifa-tab-link small {
    font-size: 1rem !important;
  }
}
