/* ========================================
   DROPDOWN UI PMA - VERSIÓN OPTIMIZADA
   ======================================== */

/* ===== VARIABLES CSS ===== */
:root {
  /* Colores originales */
  --pma-green: #bff300;
  --pma-dark-green: #03481c;
  --pma-blue: #00f1f1;
  --pma-dark-blue: #06538c;
  --pma-orange: #ffa500;
  --pma-dark-orange: #ff4800;
  --pma-black: #111111;
  --pma-white: #ffffff;
  --pma-dark: #333333;
}

/* ===== CONTENEDOR BASE ===== */
.dropdown-pma-container {
  min-width: 300px;
  width: 100%;
  display: block;
  position: relative;
  margin: 0 auto;
  box-sizing: border-box;
  flex-shrink: 0;
}

.dropdown-pma {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 auto;
  z-index: 999;
}

/* ===== SELECT2 CONTAINER OVERRIDES ===== */
.dropdown-pma-container .select2-container,
.dropdown-pma.select2-hidden-accessible + .select2-container {
  width: 100% !important;
  min-width: 300px;
  display: block !important;
}

.select2-container--default
  .select2-results__option--highlighted.select2-results__option--selectable {
  color: var(--dropdown-arrow-color);
  background-color: var(--dropdown-arrow-bg);
}

/* ===== ESTILOS BASE DEL SELECT (USANDO VARIABLES DINÁMICAS) ===== */
.dropdown-pma.select2-hidden-accessible
  + .select2-container
  .select2-selection--single {
  background: var(--dropdown-bg);
  border: 1px solid var(--pma-white);
  border-radius: 24px;
  height: auto;
  min-height: 44px;
  padding: 8px 12px 8px 16px;
  display: flex;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  font-family: 'Rawson Pro', 'Rawson', Sans-serif;
  font-size: 18px;
}

/* ===== TEXTO Y PLACEHOLDER ===== */
.dropdown-pma.select2-hidden-accessible
  + .select2-container
  .select2-selection__rendered {
  font-family: 'Rawson Pro', 'Rawson', Sans-serif;
  display: flex;
  align-items: center;
  height: 100%;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0;
  color: var(--dropdown-text);
}

.dropdown-pma.select2-hidden-accessible
  + .select2-container
  .select2-selection__placeholder {
  color: var(--dropdown-text);
  font-weight: 500;
  text-transform: uppercase;
}

.dropdown-pma.select2-hidden-accessible
  + .select2-container
  .select2-selection__placeholder-open {
  color: var(--dropdown-open-text);
  font-weight: 500;
  text-transform: uppercase;
}

/* ===== FLECHA ===== */
.dropdown-pma.select2-hidden-accessible
  + .select2-container
  .select2-selection__arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropdown-pma.select2-hidden-accessible
  + .select2-container
  .select2-selection__arrow
  b {
  background: var(--dropdown-arrow-bg);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  position: relative;
  margin: 0;
  top: auto;
  left: auto;
  border-width: 0;
  border-style: none;
}

.dropdown-pma.select2-hidden-accessible
  + .select2-container
  .select2-selection__arrow
  b::before {
  font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', 'FontAwesome';
  content: '\f062';
  font-weight: 400;
  font-size: 18px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
  line-height: 1;
}

/* Color diferente para cada flecha */
.dropdown-pma.select2-hidden-accessible
  + .select2-container
  .select2-selection__arrow
  b::before {
  /* Arrow UP - color normal */
  color: var(--dropdown-arrow-color);
}

.dropdown-pma.select2-hidden-accessible
  + .select2-container.select2-container--open
  .select2-selection__arrow
  b::before {
  /* Arrow DOWN - color diferente */
  color: var(--dropdown-open-arrow-color);
}

.dropdown-pma.select2-hidden-accessible
  + .select2-container.select2-container--open
  .select2-selection__rendered,
.dropdown-pma.select2-hidden-accessible
  + .select2-container.select2-container--open
  .select2-selection__placeholder {
  color: var(--dropdown-open-text) !important;
}

/* ===== ESTADO HOVER ===== */
.dropdown-pma.select2-hidden-accessible
  + .select2-container
  .select2-selection--single:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===== ESTADO ABIERTO ===== */
.dropdown-pma.select2-hidden-accessible
  + .select2-container.select2-container--open
  .select2-selection--single {
  background: var(--pma-white);
  color: var(--dropdown-open-text);
  border-radius: 35px;
  box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1001;
  border: 1px solid var(--dropdown-bg);
}

.dropdown-pma.select2-hidden-accessible
  + .select2-container.select2-container--open
  .select2-selection__rendered {
  color: var(--dropdown-arrow-color);
}

/* Flecha cuando está abierto */
.dropdown-pma.select2-hidden-accessible
  + .select2-container.select2-container--open
  .select2-selection__arrow
  b::before {
  transform: translate(-50%, -50%) rotate(180deg);
}

.dropdown-pma.select2-hidden-accessible
  + .select2-container.select2-container--open
  .select2-selection__arrow
  b {
  background: var(--dropdown-open-arrow-bg);
}

/* ===== DROPDOWN FLOTANTE ===== */
.select2-dropdown {
  animation: fadeInDown 0.3s ease-out;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.select2-dropdown .select2-search--dropdown {
  padding: 12px;
  background: transparent;
}

.select2-dropdown .select2-search--dropdown .select2-search__field {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 8px 12px;
  font-family: 'Rawson Pro', 'Rawson', Sans-serif;
}

.select2-dropdown .select2-results__options {
  max-height: 300px;
  overflow-y: auto;
}

.select2-dropdown .select2-results__option {
  padding: 12px 16px;
  font-family: 'Rawson Pro', 'Rawson', Sans-serif;
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* ===== HOVER EN OPCIONES ===== */

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .dropdown-pma-container {
    min-width: 250px;
  }

  .dropdown-pma.select2-hidden-accessible
    + .select2-container
    .select2-selection--single {
    min-height: 50px;
    border-radius: 30px;
    padding: 0 20px;
  }

  .dropdown-pma.select2-hidden-accessible
    + .select2-container
    .select2-selection__rendered {
    font-size: 14px;
    letter-spacing: 1px;
  }

  .dropdown-pma.select2-hidden-accessible
    + .select2-container
    .select2-selection__arrow {
    width: 30px;
    height: 30px;
    right: 10px;
  }

  .dropdown-pma.select2-hidden-accessible
    + .select2-container
    .select2-selection__arrow
    b {
    width: 30px;
    height: 30px;
  }
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== SCROLL PERSONALIZADO ===== */
.select2-dropdown .select2-results__options::-webkit-scrollbar {
  width: 6px;
}

.select2-dropdown .select2-results__options::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.select2-dropdown .select2-results__options::-webkit-scrollbar-thumb {
  background: var(--dropdown-hover-bg) !important;
  border-radius: 3px;
}

.select2-dropdown .select2-results__options::-webkit-scrollbar-thumb:hover {
  background: var(--dropdown-hover-bg) !important;
}



/* MODAL */
#seattle-pop {
  cursor: pointer;
  color: black;
}

.modal {
  visibility: hidden;
  transition: all 0.4s;
  opacity: 0;
}

.modal.open {
  visibility: visible;
  opacity: 1;
  z-index: 1000;
}

.modal,
.modal-overlay {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 100vw;
  z-index: 100;
}

.modal,
.modal-card,
.modal-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-content {
  overflow: auto;
  overflow-x: hidden;
  flex-grow: 1;
  font-family: 'Rawson Pro', 'Rawson', Sans-serif;
}

.modal-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.modal-body {
  z-index: 101;
  margin: auto;
  border-radius: 20px;
  overflow: hidden;
  width: 100%;
  background: #fff;
  border: 3px solid #BFF300;
  max-width: 870px;
  padding: 20px;
  height: 100%;
  max-height: 70vh; /*100vh;*/
}

.modal-header,
.modal-content,
.modal-footer {
  padding: 0 1rem;
}

.modal-header {
  background: #fff;
  text-transform: capitalize;
  font-size: 1.25rem;
  color: white;
  font-weight: bold;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
}

.modal-header .messaje {
  width: 100%;
  max-width: 650px;
  margin: 0 auto 30px;
  font-family: 'Rawson Pro', 'Rawson', Sans-serif;
}

.modal-header .messaje a {
  color: white;
}

.modal-footer {
  display: flex;
  justify-content: center;
}

.modal-content .form {
  display: none;
}

#closeModal {
  font-family: 'Rawson Pro', 'Rawson', Sans-serif;
    letter-spacing: 2px;
    fill: #03481C;
    color: #03481C;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    background-color: #03481c;
    border-color: #03481c;
    border-radius: 6px 6px 6px 6px;
    padding: 5px 18px 5px 18px;
}

#closeModal:hover {
    background-color: #FFFFFF;
    color: #03481c;
    /*border-color: #FFFFFF;*/
}

.closeModal {
  border-radius: 0;
  padding: 10px 20px;
  border: 4px;
  border-color: #03481c !important;
  background-color: #03481c !important;
  color: white !important;
  border-radius: 29px !important;
    min-width: 150px;
    margin-top: 15px;
}

.closeModal:hover {
  color:#03481c !important; 
  background-color: #FFFFFF !important;
  border-color: #03481c !important;
}

.dynamic-area .ivan-custom-wrapper .vc_row {
  z-index: 1 !important;
}

.z_index99 {
  z-index: 99 !important;
}
