.recorted {
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.75);
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9;
  display: none;
  align-items: center;
  justify-content: center;
}

#cropperModal {
  width: 300px;
  max-width: 90vw;
  max-height: 92vh;
  background: #12082a;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  z-index: 300;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 18px 16px 16px;
  gap: 0;
}

#cropperImage {
  max-width: 100%;
  max-height: 340px;
  width: auto;
  height: auto;
  display: block;
}

/* Botones del cropper */
.recorted button {
  flex: 1;
  padding: 11px 0;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}
.recorted button:active { opacity: 0.75; }

#btnRecortarFoto {
  background: linear-gradient(90deg, #6200ea, #00C597);
  color: #fff;
}

#btnCancelarCrop {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2) !important;
}

/* Tag de plantilla activa */
#cropperPlantillaTag {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
}

/* ── Modo Western: crop box circular ── */
#cropperModal.western-mode .cropper-view-box {
  border-radius: 50%;
  outline-color: #c9a048;
}
#cropperModal.western-mode .cropper-face {
  border-radius: 50%;
}
#cropperModal.western-mode .cropper-dashed {
  display: none;
}
.uploadFoto {
  display: inline-block; 
  padding: 0px 0px 0px 0px;
  border-radius: 10px; 
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.25); 
  background-color: #ffffff; 
  z-index: 4;
}

/*fecha*/
.fechacontainer {
  display: none;
  position: absolute;
  z-index: 10;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  padding: 10px;
}
.picker-container {
  display: flex;
  gap: 10px;
  overflow: hidden;
  border-radius: 10px;
  background: white;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  position: relative; /* Asegura que el indicador se posicione correctamente */
}

.picker-indicator {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 40px; /* Igual a la altura de cada opción */
  margin-top: -20px; /* Centra la línea sobre la opción */
  pointer-events: none;
  border-top: 2px solid #00c597;
  border-bottom: 2px solid #00c597;
  background: rgba(0, 197, 151, 0.10); /* Fondo suave verde */
  z-index: 2;
  transition: background 0.2s;
}

.picker {
  height: 108px;
  width: 80px;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  text-align: center;
  border-right: 1px solid #ccc;
}

.picker:last-child {
  border-right: none;
}

.picker div,
.pais-picker div,
.departamento-picker div {
  height: 40px;
  line-height: 40px;
  scroll-snap-align: center;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.picker div.long-text span,
.pais-picker div.long-text span,
.departamento-picker div.long-text span {
  display: inline-block;
  min-width: 100%;
  position: absolute;
  left: 0;
  top: 0;
  animation: scrollText 5s linear infinite;
}

@keyframes scrollText {
  0% { left: 0; }
  100% { left: calc(-100% + 200px); } /* 200px es el ancho visible, ajusta según tu picker */
}

.acept {
  width: 100%;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #7200ff;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
}

/*paises*/
.pais-container {
  display: none;
  position: absolute;
  /*margin-left: -26px;
  margin-top: 23px;*/
  z-index: 10;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  padding: 10px;
  width: 260px;
}

.pais-picker {
  height: 120px; /* 3 elementos de 40px */
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  text-align: center;
  border-radius: 10px;
  border: 1px solid #ccc;
  position: relative; /* ← agrega esto */
}

.pais-picker::-webkit-scrollbar {
  display: none;
}

.pais-picker div {
  height: 40px;
  line-height: 40px;
  scroll-snap-align: center;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.pais-picker div.long-text span {
  display: inline-block;
  min-width: 100%;
  position: absolute;
  left: 0;
  top: 0;
  animation: scrollText 5s linear infinite;
}

@keyframes scrollText {
  0% { left: 0; }
  100% { left: calc(-100% + 200px); } /* 200px es el ancho visible, ajusta según tu picker */
}

.picker-wrapper {
  position: relative;
}

.pais-indicator {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 40px;
  margin-top: -20px;
  pointer-events: none;
  border-top: 2px solid #7200ff;
  border-bottom: 2px solid #7200ff;
  background: rgba(0, 197, 151, 0.1);
  z-index: 1;
}

.acept {
  width: 100%;
  margin-top: 10px;
  padding: 10px 20px;
  background-color: rgb(0, 189, 145);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
}

/*departamentos*/
.departamento-container {
  display: none;
  position: absolute;
  z-index: 10;
  /*margin-top: -81px;
  margin-left: -26px;*/
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  padding: 10px;
  width: 275px;
}

.departamento-picker {
  height: 108px;
  width: 275px;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  text-align: center;
  background: white;
  border: 1px solid #ccc;
  border-radius: 10px;
}

.departamento-picker div {
  height: 40px;
  line-height: 40px;
  scroll-snap-align: center;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.departamento-picker div.long-text span {
  display: inline-block;
  min-width: 100%;
  position: absolute;
  left: 0;
  top: 0;
  animation: scrollText 5s linear infinite;
}

@keyframes scrollText {
  0% { left: 0; }
  100% { left: calc(-100% + 200px); } /* 200px es el ancho visible, ajusta según tu picker */
}

.picker-wrapper {
  position: relative;
}

.departamento-indicator {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 40px;
  margin-top: -20px;
  pointer-events: none;
  border-top: 2px solid #00c597;
  border-bottom: 2px solid #00c597;
  background: rgba(0, 197, 151, 0.1);
  z-index: 1;
}

.picker-select {
  width: 100%;
  font-size: 1.1em;
  background: white;
  border: 1.5px solid #00c597;
  border-radius: 5px;
  color: #222;
  padding: 1px 19px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  appearance: none;
  outline: none;
  transition: border-color 0.2s;
}

.custom-picker-wrapper {
  position: relative;
  width: 75%;
}
.picker-input {
  width: 96%;
  cursor: pointer;
  background: #f0f0f0;
}
.custom-picker-list {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  border: 1px solid #ccc;
  z-index: 10;
  max-height: 180px;
  overflow-y: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.custom-picker-list div {
  padding: 10px;
  cursor: pointer;
}
.custom-picker-list div:hover {
  background: #e0e0ff;
}