/* SOLO PARA MOVILES */
@media (max-width:768px){

.titulos-modulos{
margin-top:-5px !important; /* más abajo solo en móvil */
}

}

/* =========================
   SELECT2 / TELÉFONO
========================= */

#phone_country_code.select2-hidden-accessible + .select2-container .select2-selection--single {
  height: 38px !important;
  display: flex;
  align-items: center;
}

#phone_country_code.select2-hidden-accessible + .select2-container .select2-selection__rendered {
  display: flex !important;
  align-items: center;
}

#phone_country_code.select2-hidden-accessible + .select2-container {
  min-width: 80px !important;
}

#phone_number { height: 38px; }

.select2-results__option span.fi { 
  margin-right: 8px; 
}

.note-text { 
  color: #C68946; 
}

/* Placeholder */
.select2-search__field::placeholder {
  color: #aaa;
  opacity: 1;
}

/* Ancho completo */
#country,
.select2-container {
  width: 100% !important;
}

.select2-container--default .select2-selection--single {
  width: 100% !important;
  height: calc(2.25rem + 2px);
  line-height: 1.5;
  padding: 0.375rem 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
}

.select2-results__option img {
  vertical-align: middle;
}

.select2-selection__rendered img {
  vertical-align: middle;
}

/* =========================
   REGISTER MODAL PERSONALIZADO
========================= */

.register-modal{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.7);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

.register-box{
  background:#1b1b1b;
  padding:24px 34px;
  border-radius:6px;
  text-align:left;
  color:#fff;
  font-size:16px;
  border:2px solid #C68946;
  max-width:420px;
  line-height:1.5;
  width:90%;
  box-sizing:border-box;
}

.register-box i{
  font-size:34px;
  margin-bottom:10px;
}

/* =========================
   MODAL BOOTSTRAP (AISLADO)
========================= */

#termsModal .modal-content { 
  border-radius: 10px; 
}

#termsModal .modal-footer {
  justify-content: center !important;
  text-align: center;
  width: 100%;
}

.modal-open { 
  overflow: hidden; 
}

/* =========================
   ROTATE OVERLAY
========================= */

#rotateOverlay {
  display: none;
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background: rgba(255, 223, 128, 0.95);
  z-index: 2000;
  text-align: center;
  padding: 20px;
}

#rotateOverlay .overlay-content {
  position: absolute;
  top: 50%; 
  left: 50%;
  transform: translate(-50%, -50%);
}

#rotateOverlay .icon {
  width: 60px;
  height: 100px;
  margin: 0 auto 15px;
  border: 4px solid #000;
  border-radius: 12px;
  position: relative;
  animation: phoneRotate 4s infinite ease-in-out;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

#rotateOverlay .icon .arrow {
  font-size: 42px;
  color: #000;
  animation: arrowRotate 4s infinite ease-in-out;
}

#rotateOverlay .icon::before {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 6px;
  background: #000;
  border-radius: 3px;
}

/* Animaciones */
@keyframes phoneRotate {
  0%   { transform: rotate(0deg); }
  30%  { transform: rotate(90deg); }
  60%  { transform: rotate(90deg); }
  100% { transform: rotate(0deg); }
}

@keyframes arrowRotate {
  0%   { transform: rotate(0deg); }
  30%  { transform: rotate(90deg); }
  60%  { transform: rotate(90deg); }
  100% { transform: rotate(0deg); }
}

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

@media (max-width: 991px) {
  #termsModal .modal-dialog { 
    max-width: 720px; 
    margin: 1.75rem auto; 
  }
  #termsModal .modal-body { 
    font-size: 14px; 
  }
}

/* Select2 móvil */
@media (max-width: 576px) {

  .select2-dropdown {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0;
    max-height: 60vh;
    overflow: hidden;
  }

  .select2-results {
    max-height: 60vh !important;
    overflow-y: auto !important;
  }

  .select2-search__field {
    padding-left: 1.8rem !important;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23888' viewBox='0 0 16 16'><path d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242.656a5.5 5.5 0 1 1 0-11 5.5 5.5 0 0 1 0 11z'/></svg>") no-repeat 6px center;
    background-size: 16px 16px;
  }

  #termsModal .modal-dialog {
    width: 90% !important;
    max-width: 320px !important;
    margin: 10px auto !important;
  }

  #termsModal .modal-content {
    max-height: calc(100vh - 60px);
    overflow: hidden;
    border-radius: 10px;
    font-size: 12px;
  }

  #termsModal .modal-body {
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.4;
    text-align: justify;
  }

  #termsModal .modal-header h5 { 
    font-size: 14px; 
    text-align: center; 
    width: 100%; 
  }

  #termsModal .modal-footer .btn { 
    font-size: 13px; 
  }

  .register-box{
    padding:18px 20px;
    font-size:12px;
    max-width:95%;
  }

  .register-box i{
    font-size:24px;
  }
}

/* Muy pequeños */
@media (max-width: 320px) {

  #termsModal .modal-dialog { 
    max-width: 260px !important; 
    margin: 8px auto !important; 
  }

  #termsModal .modal-content { 
    font-size: 11px; 
    border-radius: 8px; 
  }

  #termsModal .modal-header h5 { 
    font-size: 13px; 
  }

  #termsModal .modal-body { 
    font-size: 11px; 
    line-height: 1.4; 
    padding: 6px 10px; 
    text-align: justify; 
  }

  #termsModal .modal-footer .btn { 
    font-size: 12px; 
  }
}