/* Child Theme - Custom CSS File for Buyers to Modify */

/* Rediseño Premium de Membresías (Inspiry Memberships) */
.membership-package {
  border-radius: 14px !important;
  box-shadow: 0 8px 24px rgba(3, 61, 115, 0.08) !important;
  border: 1px solid #EAEFF4 !important;
  transition: all 0.3s ease !important;
  background-color: #ffffff !important;
}

.membership-package-top {
  border-radius: 14px 14px 0 0 !important;
  background-color: #F7FAFD !important;
  border-bottom: 1px solid #EAEFF4 !important;
}

.membership-package:hover {
  box-shadow: 0 16px 40px rgba(3, 61, 115, 0.15) !important;
  transform: translateY(-5px);
  border-color: #0561AE !important;
}

.membership-package-title {
  color: #0561AE !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  margin-bottom: 10px !important;
  background: transparent !important;
  border: none !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
  min-height: 55px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.membership-package-price {
  color: #1F2430 !important;
  font-size: 34px !important;
  font-weight: 800 !important;
  background: transparent !important;
  border: none !important;
}

.duration-unit {
  color: #6B7280 !important;
  font-size: 13px !important;
  text-transform: uppercase;
  font-weight: 600 !important;
}

.membership-package-bottom ul {
  margin-top: 25px !important;
  margin-bottom: 25px !important;
}

.membership-package-bottom ul li {
  color: #3A3F4B !important;
  font-size: 15px !important;
  border-bottom: 1px solid #f0f1f4 !important;
  padding: 12px 0 !important;
}

.membership-package .btn,
.membership-package button {
  background: #EF5F20 !important;
  color: #ffffff !important;
  border-radius: 9px !important;
  font-weight: 700 !important;
  text-transform: none !important;
  border: none !important;
  padding: 14px 28px !important;
  width: 70%;
  display: block;
  transition: background 0.2s !important;
}

.membership-package .btn:hover,
.membership-package button:hover {
  background: #D94E12 !important;
}

/* UX: Tarjeta de Plan Actual */
.membership-package:has(.current-package) {
  border: 2px solid #0561AE !important;
  background: #EAF2FA !important;
  position: relative;
  border-radius: 12px !important;
  overflow: visible !important;
}

/* Hacer transparentes los fondos internos nativos para que fluya el azul */
.membership-package:has(.current-package) .membership-package-top,
.membership-package:has(.current-package) .membership-package-bottom {
  background: transparent !important;
  border: none !important;
}

/* Etiqueta flotante "PLAN ACTUAL" */
.membership-package:has(.current-package)::before {
  content: "PLAN ACTUAL";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #0561AE;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  z-index: 10;
  letter-spacing: 0.5px;
}

/* Botón del plan activo (transparente con borde azul) */
.membership-package .btn.current-package {
  background: transparent !important;
  border: 1.5px solid #0561AE !important;
  color: #0561AE !important;
  opacity: 1 !important;
  cursor: default !important;
}

/* Botones disabled estándar (que no son el paquete actual) */
.membership-package .btn[disabled]:not(.current-package),
.membership-package button[disabled]:not(.current-package) {
  background: #F5F6F8 !important;
  color: #6B7280 !important;
  opacity: 1 !important;
  cursor: not-allowed !important;
}

/* Ocultar el ícono de usuario nativo del header para usar nuestro botón "Ser Agente" */
.rh_menu__user_profile,
.rh_header_user_profile,
.rh_user_profile {
  display: none !important;
}

/* Doble Precio (Venta / Renta) */
.price-split {
  display: flex;
  margin-top: 5px;
}

.price-split .col {
  flex: 1;
}

.price-split .label {
  font-size: 11px;
  font-weight: 500;
  color: #56626F;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.price-split .venta {
  font-size: 18px;
  font-weight: 500;
  color: #033D73;
}

.price-split .divider {
  width: 0.5px;
  background: #E5E9ED;
  margin: 2px 20px;
}

.price-split .renta {
  font-size: 18px;
  font-weight: 500;
  color: #C94A0F;
}

.price-split .unit {
  font-size: 13px;
  color: #56626F;
  font-weight: 400;
}

.kh-membership-wrapper {
  max-width: 800px;
}

.kh-card {
  background: #FFFFFF;
  border: 1px solid #E4E7EC;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 8px rgba(16, 24, 40, .06);
}

.kh-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 16px;
}

.current-plan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.current-plan-header .plan-name {
  font-size: 18px;
  font-weight: 600;
}

.current-plan-header .plan-price {
  font-size: 14px;
  color: #6B7280;
  margin-top: 4px;
}

.current-plan-header .status-badge {
  background: #E7F6EF;
  color: #1E9E6B;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.progress-section {
  margin-top: 20px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #6B7280;
  margin-bottom: 8px;
}

.progress-track {
  width: 100%;
  height: 10px;
  background: #EEF0F3;
  border-radius: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0561AE, #0A73C9);
  border-radius: 6px;
}

.stripe-portal-box {
  background: #F8FAFC;
  border: 1px dashed #E4E7EC;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.stripe-portal-info h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
}

.stripe-portal-info p {
  margin: 0;
  font-size: 13px;
  color: #6B7280;
}

.cancel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cancel-info h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
}

.cancel-info p {
  margin: 0;
  font-size: 12px;
  color: #6B7280;
}

.cancel-link {
  color: #D64545;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}

.cancel-link:hover {
  text-decoration: underline;
}

.btn-outline-blue {
  border-color: #0561AE !important;
  color: #0561AE !important;
  background: transparent;
  border: 1.5px solid;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

.btn-outline-blue:hover {
  background: #F8FAFC !important;
}

@media (max-width: 600px) {

  .stripe-portal-box,
  .cancel-row,
  .current-plan-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .progress-meta {
    flex-direction: column;
    gap: 4px;
  }
}

/* ------------------------------------------------------------------------- *
 * Dashboard Header & Logo Centering (Mobile y Desktop)
 * ------------------------------------------------------------------------- */
.rh-header-slim-left {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.rh-header-slim-left .rh-logo {
    flex: 1 1 100% !important;
    margin-right: 0 !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.rh-header-slim-left .rh-logo a {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto !important;
    text-align: center !important;
    max-width: calc(100% - 60px) !important;
}

.rh-header-slim-left .rh-logo img {
    margin: 0 auto !important;
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
}

.rh-header-slim-left .rh-site-title {
    margin: 0 auto !important;
    text-align: center !important;
}

.rh-header-slim-left .rh-sidebar-menu-toggle {
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
}