/* General Template */

.wrapper-body { min-height: 90vh; }

@media (min-width: 992px) {
  .wrapper-body {
    display: flex;
    justify-content: center;
  }
}

.navbar-dark { background: linear-gradient(90deg, #CC2E89 0%, #400C6F 100%); }

#siteTitle-bold.custom-sitetitle span { display: block; font-size: 18px; font-weight: bold; }

@media (min-width: 992px) {
  #siteTitle-bold.custom-sitetitle span { display: initial; font-size: 24px; }
}

#backpage {
  width: max-content;
}

#backpage span {
  color: #400C6F80;
  font-weight: 500;
  text-decoration: underline;
}

#backpage:hover {
  color: #400C6F80;
  text-decoration: underline;
}

html[dir=ltr] li a { margin-left: 0; }

p { margin-top: 0; margin-bottom: 0; }

input::placeholder {
  color: #687489 !important;
}

.btn-pink {     
  height: 40px;
  border-radius: 10px;
  background-color: #CC2E87;
  border: none;
  padding: 0 25px;
  color: #FFFFFF;
  font-weight: 700;
}

.btn-pink-transparent {   
  height: 40px;
  background-color: transparent;
  border-radius: 10px;
  border: 1px solid #CC2E87;
  padding: 0 25px;
  color: #CC2E87;
  font-weight: 700;
}

.breadcrumb { padding: 0; }

.breadcrumb > li a { padding: 0; }

li.breadcrumb-item.active h5 { color: #CC2E89; text-decoration: underline; }

.cursor-pointer { cursor: pointer; }

footer .footer-bottom { min-height: 45px; padding: 0; }

footer a.footer-link { color: #FFFFFF; text-decoration: underline; }

footer a.footer-link:hover { color: #FFFFFF; }

.loading-container-results {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
}

/* Texto de carga */
.loading-container-results .loading-text-progress {
    font-weight: 500;
    color: #5c2d91;
    font-size: 18px;
    text-align: center;
    margin-bottom: 10px;
}

/* Contenedor de la barra de progreso */
.loading-container-results .progress-bar {
    width: 100%;
    height: 4px;
    background: #e9e4f0;
    border-radius: 2px;
    overflow: hidden;
}

/* Relleno animado de la barra */
.loading-container-results .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #CC2E89, #400C6F);
    animation: progress 2s ease-in-out infinite;
}

/* Animación de progreso */
@keyframes progress {
    0% { 
        width: 0%; 
    }
    50% { 
        width: 70%; 
    }
    100% { 
        width: 100%; 
    }
}

/* Botón Scroll to Top */
.scroll-to-top {
  position: fixed;
  bottom: 70px;
  right: 15px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #CC2E87 0%, #a82470 100%);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(204, 46, 135, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 9999;
}

/* Estado visible */
.scroll-to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Hover effect */
.scroll-to-top:hover {
  background: linear-gradient(135deg, #a82470 0%, #8b1d5c 100%);
  box-shadow: 0 6px 20px rgba(204, 46, 135, 0.4);
  transform: translateY(-3px);
}

/* Active/Click effect */
.scroll-to-top:active {
  transform: translateY(0) scale(0.95);
}

/* Animación del ícono al hover */
.scroll-to-top:hover svg {
  animation: bounce-up 0.6s ease-in-out infinite;
}

@keyframes bounce-up {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
  }
}

/* Evitar superposición con el paginador en mobile */
@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 5rem; /* Más alto para no chocar con elementos del footer */
  }
}

.providers-paginator {
  margin-top: 20px;
}

.providers-paginator .providers-paginator__controls {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  gap: 14px;
  margin: 10px 0;
}

@media (min-width: 1024px) {
  .providers-paginator .providers-paginator__controls {
    flex-direction: row;
    gap: initial;
  }
}

.providers-paginator .providers-paginator__label {
  color: #5c2d91;
}

.providers-paginator .providers-paginator__select {
  border-radius: 8px;
  border: 1.5px solid #e9b3d3;
  padding: 6px 4px 8px 6px;
}

.providers-paginator .providers-paginator__page-input {
  text-align: center;
}

.providers-paginator .providers-paginator__input {
  border: 1.5px solid #e9b3d3;
  border-radius: 8px;
  border-top-right-radius: 8px !important;
  border-bottom-right-radius: 8px !important;
  padding: 6px 14px; /* 0.6rem 1rem = 9.6px 16px */
  font-size: 15.2px; /* 0.95rem = 15.2px */
  transition: all 0.2s ease-in-out;
}

.providers-paginator .providers-paginator__input:focus {
  border-color: #d63384;
  box-shadow: 0 0 0 3.2px rgba(214, 51, 132, 0.15); /* 0.2rem = 3.2px */
}

/* End Template */

/* Profile */

#profile h4 {
  font-size: 20px;
}

#profile .col-5 {
  border: 2px solid #FFFFFF;
}

#profile .col-5:hover {
  background-color: #EEE9F5;
  border: 2px solid #943099;
}

#profile .col-5 a:hover {
  text-decoration: none;
}

@media (min-width: 992px) {
  #profile .col-lg-2-4 {
      flex: 0 0 18%;
      max-width: 18%;
  }
}

/* End Profile */

/* Home */

h1#custom-title-page { font-size: 30px; }

@media (min-width: 992px){
  h1#custom-title-page { font-size: 48px; }
}

/* End Home */

/* Filter Locations */

.location-selector {
  background-color: #F5F6F7;
  border-radius: 8px;
  padding: 7px 20px 12px;
  margin: 0 20px;
}

.location-selector .location-field .location-field__label {
  margin-bottom: 7px;
}

.pp-depto-wrap {
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 12px; /* 0.75rem = 12px */
}

.pp-depto-header {
  font-weight: 700;
  font-size: 14.4px; /* 0.9rem = 14.4px */
  color: #222;
  margin-bottom: 8px; /* 0.5rem = 8px */
}

.pp-depto-body {
  display: flex;
  align-items: center;
  gap: 12px; /* 0.75rem = 12px */
}

.pp-depto-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pp-depto-card {
  border-radius: 8px;
  /* padding: 8px 12px; */
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  position: relative;
}

.pp-depto-card input {
  background-color: #FFFFFF;
  border: 1px solid #687489;
  border-radius: 4px;
  padding: 8px 12px;
  margin: 0;
  font-size: 15px;
}

.pp-depto-card input:focus-visible {
  outline: none;
}

.pp-depto-card .pp-depto-card__arrow {
  position: absolute;
  right: 7px;
}

#regional-location {
  opacity: 0.3;
}

.pp-depto-select {
  border: 1px solid #687489;
  border-radius: 4px;
  margin: 0;
  padding: 8px 16px;
  outline: none;
  width: 100%;
  background: transparent;
  font-size: 15.2px; /* 0.95rem = 15.2px */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Ajustes para móvil - Ícono de ubicación al lado del selector */
@media (max-width: 767px) {
  .location-selector {
    position: relative;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 12px 15px;
    gap: 12px !important;
  }

  .location-selector > svg {
    position: absolute;
    left: 15px;
    top: 48px;
    width: 22px;
    height: auto;
    z-index: 1;
  }
  
  .location-selector .location-field {
    width: 100%;
    max-width: 100% !important;
    padding-left: 30px;
  }
  
  #regional-location {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  
  #regional-location .pp-depto-card,
  #regional-location input {
    width: 100%;
  }
  
  .location-selector .location-field__label {
    padding-left: 0;
  }
}

/* End Filter Locations */

.search-box {
  margin: 0 15px;
}

@media (min-width: 768px) {
  .search-box {
    margin: 0 0 25px;
  }
}

.search-box div.input-group {
  align-items: stretch;
  position: relative;
  margin-bottom: 20px;
}

.search-box div.input-group .search-error {
  position: absolute;
  bottom: -38px;
  line-height: 1;
}

@media (min-width: 768px) {
  .search-box div.input-group .search-error {
    bottom: -25px;
  }
}

.search-box div.input-group .search-error .search-error__text {
  color: #d63384;
  font-size: 12px;
}

.search-box .form-label {
  font-weight: 500;
  color: #333;
  margin-bottom: 8px; /* 0.5rem = 8px */
}

.search-box .btn-search {
  min-height: 44px;
}

.search-input {
  border: 1.5px solid #e9b3d3 !important;
  border-radius: 8px;
  border-top-right-radius: 8px !important;
  border-bottom-right-radius: 8px !important;
  padding: 9.6px 16px; /* 0.6rem 1rem = 9.6px 16px */
  font-size: 15.2px; /* 0.95rem = 15.2px */
  transition: all 0.2s ease-in-out;
}

.search-input:focus {
  border-color: #d63384;
  box-shadow: 0 0 0 3.2px rgba(214, 51, 132, 0.15); /* 0.2rem = 3.2px */
}

.btn-search {
  background-color: #d63384;
  border-radius: 8px;
  border-top-left-radius: 8px !important;
  border-bottom-left-radius: 8px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px; /* 0 1rem = 0 16px */
  transition: background-color 0.2s ease-in-out;
}

.btn-search:hover {
  background-color: #b72b6e;
}

.btn-search svg {
  display: block;
}

.report-box {
  display: flex;
  gap: 12px; /* 0.75rem = 12px */
  border: 1.5px solid #400C6F;
  border-radius: 12px;
  padding: 16px 20px; /* 1rem 1.25rem = 16px 20px */
  background-color: #fff;
  max-width: 485px;
  font-family: "Segoe UI", Arial, sans-serif;
  box-sizing: border-box;
  text-align: center;
}

.report-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #400C6F;
}

.report-content {
  flex: 1;
}

.report-title {
  color: #400C6F;
  font-weight: 700;
  font-size: 16px; /* 1rem = 16px */
  margin: 0;
  margin-bottom: 4px; /* 0.25rem = 4px */
}

.report-text {
  color: #687489;
  font-size: 14.4px; /* 0.9rem = 14.4px */
  margin: 0 0 4px 0; /* 0 0 0.25rem 0 = 0 0 4px 0 */
}

.report-contact {
  font-size: 14.4px; /* 0.9rem = 14.4px */
  color: #687489;
  margin: 0;
}

.report-contact a {
  color: #1C2535;
  font-weight: 600;
  text-decoration: none;
}

.report-contact a:hover {
  text-decoration: underline;
}

#servicesCard {
  display: block;
}

@media (min-width: 1024px) {
  #servicesCard {
    display: flex;
    flex-wrap: wrap;
  }
}

#servicesCard,
#servicesCardSubcategories {
  padding: 0 25px;
}

@media (min-width: 768px) {
  #servicesCard,
  #servicesCardSubcategories {
    padding: 0;
  } 
}

@media (min-width: 768px) {
  #servicesCard .col-md-3 {
    width: 23%;
  }
}

@media (min-width: 768px) {
  #servicesCardSubcategories .col-md-3 {
    width: 23%
  }
}

#selectionInfo {
  color: #CC2E87;
}

#categoryNameTitle {
  text-transform: uppercase;
}

#selectedSubcategoryName {
  text-transform: uppercase;
}

.info-card {
  background-color: #f5f2fa;
  border-radius: 16px;
  border: 1.5px solid #f5f2fa;
  padding: 15px;
  text-align: left;
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  gap: 8px; /* 0.5rem = 8px */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: "Segoe UI", Arial, sans-serif;
  cursor: pointer;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(75, 33, 126, 0.1);
}

.info-card-loading {
  background: linear-gradient(90deg, #e0d9ed 25%, #c8bdd9 50%, #e0d9ed 75%);
  background-size: 200% 100%;
  border-radius: 16px;
  padding: 20px 15px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px; /* 0.5rem = 8px */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: "Segoe UI", Arial, sans-serif;
  cursor: pointer;
  min-height: 120px;
  animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.info-card-icon {
  color: #4b217e;
}

.info-card-title {
  color: #4b217e;
  font-weight: 700;
  font-size: 16px;
  margin: 0;
  text-transform: uppercase;
}

.info-card-subtitle {
  color: #CC2E87;
  font-size: 12px;
  padding: 0 0 5px;
  border-bottom: 1px solid;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.info-card-text {
  color: #333;
  font-size: 15px; /* 0.95rem = 15.2px */
  margin: 10px 0 0;
  line-height: 1.1;
}

.info-card-content-not-results {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  border: 1px solid #CC2E87;
}

@media (min-width: 1024px) {
  .info-card-content-not-results {
    height: 350px;
  }
}


.info-card-content-not-results p {
  color: #CC2E87;
  font-size: 18px;
  font-weight: 700;
}

.info-card-content-not-results span {
  color: #687489;
  font-size: 14px;
  font-weight: 400;
}

.subcategory-card.subcategory-card-active {
  border: 2px solid #4b217e;
}

#btnActions {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
  margin-top: 30px;
}

@media (min-width: 768px) {
  #btnActions {
    flex-direction: row;
    justify-content: flex-end;
  }
}

/* Providers */

.providers {
  max-width: 95%;
  margin: 0 auto 0;
}

.providers__title {
  font-size: 16px;
  font-weight: 700;
  color: #5c2d91;
  margin-bottom: 0;
  text-transform: uppercase;
}

#providers__total {
  font-size: 14px;
  font-weight: 600;
}

.providers__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 15px;
}

@media (min-width: 1024px) {
  .providers__layout {
    grid-template-columns: 1fr 380px;
  }
  .providers__layout.providers__layout--notresults {
    grid-template-columns: 1fr;
  }
  .providers__layout.providers__layout--loading {
    grid-template-columns: 1fr;
  }
}

/* TABLE */

.providers-table__wrapper,
#providers-table {
  overflow: visible;
}

.providers-table {
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.providers-table__table {
  /* height: 533px; */
  display: block;
  width: 100%;
  border-collapse: collapse;
}

.providers-table__header {
  background-color: #f8f9fa;
  border-radius: 12px 12px 0 0;
}

.providers-table__header.providers-table__header--sticky {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.providers-table__header-cell {
  padding: 16px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  color: #374151;
  border-bottom: 2px solid #e5e7eb;
  white-space: nowrap;
  width: 14.2%;
}

.providers-table__body-row {
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.2s;
  cursor: pointer;
}

.providers-table__body-row:hover {
  background-color: #f9fafb;
}

.providers-table__body-row--active {
  background-color: #cc2e8717;
  border: 1px solid #CC2E87;
}

.providers-table__cell {
  padding: 12px 10px;
  font-size: 13px;
  color: #374151;
  text-transform: uppercase;
  width: 14.2%;
}

.providers-table__cell--name {
  font-weight: 500;
  color: #1f2937;
}

.providers-table__cell--actions {
  text-align: center;
}

/* CARD VIEW MOBILE */
.providers-card {
  display: none;
}

@media (max-width: 768px) {
  .providers-table__wrapper {
    display: none;
  }

  .providers-card {
    display: block;
  }

  .providers-card__item {
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
  }

  .providers-card__item:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .providers-card__item--active {
    border-color: #CC2E87;
    background-color: #fdf4ff;
  }

  .providers-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
  }

  .providers-card__name {
    font-size: 16px;
    font-weight: 600;
    color: #5c2d91;
    margin-bottom: 4px;
    text-transform: uppercase;
  }

  .providers-card__specialty {
    font-size: 14px;
    color: #5c2d91;
    font-weight: 500;
    text-transform: uppercase;
  }

  .providers-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
  }

  .providers-card__info {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
  }

  .providers-card__info-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
  }

  .providers-card__info-text {
    flex: 1;
  }

  .providers-card__footer {
    display: flex;
    justify-content: flex-end;
  }

  .providers-card__button {
    padding: 4px 20px;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid #CC2E87;
    background: white;
    color: #CC2E87;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
  }

  .providers-card__button--primary {
    background: #CC2E87;
    color: white;
  }
}

/* BUTTON */
.providers-table__button {
  padding: 5px 25px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #CC2E87;
  background: white;
  color: #CC2E87;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.providers-table__button:hover {
  background: #CC2E87;
  color: white;
}

.providers-table__button--primary {
  background: #CC2E87;
  color: white;
}

.providers-table__button--primary:hover {
  background: #CC2E87;
}

/* DETAIL CARD */
.provider-detail {
  background: white;
  border: 1px solid #CC2E87;
  border-radius: 12px;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
  padding: 24px;
  position: sticky;
  top: 20px;
  display: none;
}

@media (min-width: 1024px) {
  .provider-detail {
    height: max-content;
  }
}

.provider-detail--visible {
  display: block;
}

.provider-detail__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #CC2E87;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.provider-detail__percentage {
  font-size: 18px;
}

.provider-detail__title {
  font-size: 20px;
  font-weight: 700;
  color: #5c2d91;
  margin-bottom: 8px;
}

.provider-detail__specialty {
  font-size: 18px;
  font-weight: 600;
  color: #CC2E87;
  margin-bottom: 10px;
  line-height: 1;
}

.provider-detail__tipeService {
  color: #FFFFFF;
  background-color: #CC2E87;
  font-size: 14px;
  line-height: 1.2;
  padding: 8px 14px;
  text-align: left;
  margin-bottom: 10px;
  border-radius: 8px;
  text-transform: uppercase;
}

.provider-detail__info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.provider-detail__info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.provider-detail__info-label {
  font-size: 12px;
  font-weight: 600;
  color: #1C2535;
  text-transform: uppercase;
}

.provider-detail__info-value {
  font-size: 14px;
  color: #1C2535;
  text-transform: uppercase;
}

.provider-detail__services {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.provider-detail__service {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #400C6F;
}

.provider-detail__service-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.provider-detail__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  color: #9ca3af;
}

.provider-detail__placeholder-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  opacity: 0.3;
}

/* RESPONSIVE */
@media (max-width: 1023px) {
  .provider-detail {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    border-radius: 0;
    overflow-y: auto;
  }

  .provider-detail__close {
    display: block;
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #9ca3af;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
  }
}

@media (min-width: 1024px) {
  .provider-detail__close {
    display: none;
  }
}

@media (max-width: 768px) {
  .providers-table__header-cell,
  .providers-table__cell {
    padding: 12px 8px;
    font-size: 13px;
  }

  .providers-table__button {
    padding: 6px 16px;
    font-size: 13px;
  }
}

/* End Providers */

.btn-container {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  justify-content: flex-end;
}

.btn-outline-pink,
.btn-solid-pink {
  font-size: 16px;
  font-weight: 600;
  padding: 10px 30px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-outline-pink {
  background: white;
  color: #c21884;
  border: 2px solid #c21884;
}

.btn-outline-pink:hover {
  background: #c21884;
  color: white;
}

.btn-solid-pink {
  background: linear-gradient(90deg, #c21884, #e83e8c);
  color: white;
  border: none;
}

.btn-solid-pink:hover {
  filter: brightness(1.1);
}