body{
    background-image: url(../CSS/SVG/fondo.svg) ;
    object-fit: cover;
    
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.contform{
    width: 650px;
    height: 100%;
    padding: 10px;
    display: flex;
    justify-content: center;
}

.title{
    width: 100%;
    text-align: center;
    color: #ffffff;
}
.form{
    background: transparent;
    box-sizing: border-box;
    box-shadow: 0 15px 25px rgba(0,0,0,.8);
    border: 2px solid rgb(0, 0, 0,0.5);
    backdrop-filter: blur(15px);
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    background-color: #ffffff11;
}
.InputGroup{
 width: 230px;
 padding: 10px;
}

.alert{
    display: none;
    font-size: 15px;
    align-items: center;
    width: 230px;
    margin-bottom: 5px;
}
.alert svg{
    width: 30px !important;
    height: 30px !important;
}
.alert p{
    font-family: 'Segoe UI', sans-serif;
    margin: 5px;
    color: #f35c41;
    width: 205px;
    word-wrap:break-word;
    text-align: start;
}
.alert-activo{
    display: flex;
}

/* ------- InputsText -------*/
.Inputext {
    font-family: 'Segoe UI', sans-serif;
    margin: 0.2rem;
    max-width: 220px;
    position: relative;
    background-color: #ffffff;
    border-radius: 20px;
  }
  
  .Inputext input {
    font-size: 100%;
    padding: 0.8em;
    outline: none;
    border: 2px solid #796a6a;
    background-color: transparent;
    border-radius: 20px;
    width: 100%;
  }
  
  .Inputext label {
    font-size: 100%;
    position: absolute;
    left: 0;
    padding: 0.8em;
    margin-left: 0.5em;
    pointer-events: none;
    transition: all 0.3s ease;
    color: #4b5563;
  }
  
  .Inputext :is(input:focus, input:valid)~label {
    transform: translateY(-50%) scale(.9);
    margin: 0em;
    margin-left: 1.3em;
    padding: 0.4em;
    background-color: #ffffff;
    border-radius: 10px;
  }
  
  .Inputext :is(input:focus, input:valid) {
    border-color: #796a6a;
  }

  /* ------- Validar InputsText -------*/
  .Inputext-Valido :is(input:focus, input:valid) {
    border-color: #53c46f;
  }
  .Inputext-Valido label{
    color: #53c46f;
  }

  .Inputext-InValido :is(input:focus, input:valid) {
    border-color: #f35c41;
  }
  .Inputext-InValido label{
    color: #f35c41;
  }
  .svgerror{
    fill: #f35c41;
  }
    /* ------- InputFile -------*/
    #file{
      display: none;
    }
    
    .custum-file-upload {
        font-family: 'Segoe UI', sans-serif;
        height: 200px;
        width: 400px;
        display: flex;
        flex-direction: column;
        align-items: space-between;
        gap: 20px;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        border: 2px dashed #796a6a;
        background-color: rgb(255, 255, 255);
        padding: 1.5rem;
        border-radius: 10px;
        box-shadow: 0px 48px 35px -48px rgba(177, 33, 33, 0.1);
      }
      .imagen-preview{
        border: 2px dashed #796a6a;
      }

      .custum-file-upload .icon {
        display: flex;
        align-items: center;
        justify-content: center;
      }
      
      .custum-file-upload .icon svg {
        height: 80px;
        fill: rgba(75, 85, 99, 1);
      }
      .custum-file-upload .text {
        display: flex;
        align-items: center;
        justify-content: center;
      }
      
      .custum-file-upload .text span {
        font-weight: 400;
        color: #4b5563;
      }
      
      .custum-file-upload input {
        display: none;
      }

      .custum-file-upload-InValido{
        border: 2px dashed #f35c41;
      }
      .custum-file-upload-Valido{
        border: 2px dashed #53c46f;
        padding: 0px;
        
      }
      .custum-file-upload-Valido :first-child{
        height: 100%;
        width: 100%;
        border-radius: 10px;
        
      }
/* ------ Radio Button ------ */
.RadioDesc{
    text-align: center;
    background-color: #ffffff;
    width: 230px;
    border: 2px solid #796a6a;
}
.ContRadioButton {
    --background: #ffffff;
    --text: #414856;
    --radio: #7C96B2;
    --radio-checked: #53c46f;
    --radio-size: 20px;
    --width: 230px;
    font-family: 'Segoe UI', sans-serif;
    background: var(--background);
    width: var(--width);
    height: var(--height);
    border-radius: 0 0 10px 10px;
    color: var(--text);
    position: relative;
    box-shadow: 0 10px 30px rgba(65, 72, 86, 0.05);
    padding: 30px 20px;
    display: grid;
    grid-template-columns: auto var(--radio-size);
    align-items: center;
    border: 2px solid #796a6a;
  }
  
  .ContRadioButton label {
    cursor: pointer;
    margin-top: 5px;
    margin-bottom: 5px;
  }
  
  .ContRadioButton input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    height: var(--radio-size);
    width: var(--radio-size);
    outline: none;
    margin: 0;
    cursor: pointer;
    border: 2px solid var(--radio);
    background: transparent;
    border-radius: 50%;
    display: grid;
    justify-self: end;
    justify-items: center;
    align-items: center;
    overflow: hidden;
    transition: border .5s ease;
  }
  
  .ContRadioButton input[type="radio"]::before, .ContRadioButton input[type="radio"]::after {
    content: "";
    display: flex;
    justify-self: center;
    border-radius: 50%;
  }
  
  .ContRadioButton input[type="radio"]::before {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--background);
    z-index: 1;
    opacity: var(--opacity, 1);
  }
  
  .ContRadioButton input[type="radio"]::after {
    position: relative;
    width: calc(100% /2);
    height: calc(100% /2);
    background: var(--radio-checked);
    top: var(--y, 100%);
    transition: top 0.5s cubic-bezier(0.48, 1.97, 0.5, 0.63);
  }
  
  .ContRadioButton input[type="radio"]:checked {
    --radio: var(--radio-checked);
  }
  
  .ContRadioButton input[type="radio"]:checked::after {
    --y: 0%;
    animation: stretch-animate .3s ease-out .17s;
  }
  
  .ContRadioButton input[type="radio"]:checked::before {
    --opacity: 0;
  }
  
  .ContRadioButton input[type="radio"]:checked ~ input[type="radio"]::after {
    --y: -100%;
  }
  
  .ContRadioButton input[type="radio"]:not(:checked)::before {
    --opacity: 1;
    transition: opacity 0s linear .5s;
  }
  
  @keyframes stretch-animate {
    0% {
      transform: scale(1, 1);
    }
  
    28% {
      transform: scale(1.15, 0.85);
    }
  
    50% {
      transform: scale(0.9, 1.1);
    }
  
    100% {
      transform: scale(1, 1);
    }
  }
  
  .socials {
    position: fixed;
    display: block;
    left: 20px;
    bottom: 20px;
  }
  
  .socials > a {
    display: block;
    width: 30px;
    opacity: .2;
    transform: scale(var(--scale, 0.8));
    transition: transform 0.3s cubic-bezier(0.38, -0.12, 0.24, 1.91);
  }
  
  .socials > a:hover {
    --scale: 1;
  }
  /* ------ Validar RadioButton -------- */
  .ContRadioButton-Valido{
    border: 2px solid #53c46f;
  }
  .ContRadioButton-InValido{
    border: 2px solid #f35c41;
  }
  
  /* ------ Boton Agregar -------------- */

  .register {
    --primary-color: #fefeff;
    --secondary-color: #000000;
    --hover-color: #91bdff;
    --arrow-width: 10px;
    --arrow-stroke: 2px;
    box-sizing: border-box;
    border: 0;
    border-radius: 20px;
    color: var(--secondary-color);
    padding: 1em 1.8em;
    background: var(--primary-color);
    display: flex;
    transition: 0.2s background;
    align-items: center;
    gap: 0.6em;
    font-weight: bold;
    width: 180px;
    margin: 10px;
    justify-content: space-between;
  }
  
  .register .arrow-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .register .arrow {
    margin-top: 1px;
    width: var(--arrow-width);
    background: var(--primary-color);
    height: var(--arrow-stroke);
    position: relative;
    transition: 0.2s;
  }
  
  .register .arrow::before {
    content: "";
    box-sizing: border-box;
    position: absolute;
    border: solid var(--secondary-color);
    border-width: 0 var(--arrow-stroke) var(--arrow-stroke) 0;
    display: inline-block;
    top: -3px;
    right: 3px;
    transition: 0.2s;
    padding: 3px;
    transform: rotate(-45deg);
  }
  
  .register:hover {
    background-color: var(--hover-color);
  }
  
  .register:hover .arrow {
    background: var(--secondary-color);
  }
  
  .register:hover .arrow:before {
    right: 0;
  }

  /*------------- Pupuo --------------*/
.popup-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

.popup {
  background-color: #fff;
  width: 430px;
  padding: 20px;
  position: absolute;
  left: 50%;
  margin-top: -10%;
  transform: translateX(-50%);
}

.popup.open {
  animation: popupSlideIn 0.5s forwards;
}

.popup.close {
  animation: popupSlideOut 0.5s forwards;
}

@keyframes popupSlideIn {
  from {
    top: -400px;
  }
  to {
    top: 50%;
  }
}

@keyframes popupSlideOut {
  from {
    top: 50%;
  }
  to {
    top: -400px;
  }
}

/* ------------ loading ----------*/
.loader {
  display: block;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 400px;
}

.loader-text {
  font-size: 24px;
  color: rgb(0, 0, 0);
  margin-bottom: 20px;
  align-self: center;
}

.loader-bar {
  width: 30%;
  height: 10px;
  border-radius: 5px;
  background-color: rgb(0, 0, 0);
  animation: loader-bar-animation 2s ease-in-out infinite;
}

@keyframes loader-bar-animation {
  0% {
    transform: translateX(-100%);
  }

  50% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

/*------- Exitoso ------- */
.success-checkmark {
  margin-top: 110px;
  margin-left: 130px;
  position: flex;
  width: 120px;
  height: 120px;
  }
  .success-checkmark__circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: #0e2b88;
  fill: transparent;
  animation: stroke 1.2s cubic-bezier(0.65, 0, 0.45, 1) forwards;
  }
  .success-checkmark__check {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke-width: 2;
  stroke: #12437a;
  fill: transparent;
  animation: stroke 1.2s cubic-bezier(0.65, 0, 0.45, 1) forwards;
  }
  @keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
  }
  .successCheckmark-text{
    text-align: center;
    color: #0e2b88;
    padding: 5px;
    font-size: 20px;
  }
  /* ------- Error ------ */ 
  .error-crossmark {
    margin-top: 110px;
    margin-left: 130px;
    position: relative;
    width: 120px;
    height: 120px;
  }
  
  .error-crossmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #FF0000;
    fill: transparent;
    animation: stroke 1.2s cubic-bezier(0.65, 0, 0.45, 1) forwards;
  }
  
  .error-crossmark__cross {
    stroke-width: 2;
    stroke: #FF0000; 
    fill: transparent;
    animation: stroke 1.2s cubic-bezier(0.65, 0, 0.45, 1) forwards;
  }
  
  @keyframes stroke {
    100% {
      stroke-dashoffset: 0;
    }
  }
  
  .errorCrossmark-text{
      text-align: center;
      color: #bd360d;
      padding: 5px;
      font-size: 20px;
  }
  /* --- Advertencia ---*/
  .warning {
    margin-top: 70px;
    margin-left: 130px;
    width: 120px;
    height: 190px;
  }
  
  .warning-icon__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #FFCA28;
    fill: transparent;
    animation: stroke 1.2s cubic-bezier(0.65, 0, 0.45, 1) forwards;
  }
  
  @keyframes stroke {
    100% {
      stroke-dashoffset: 0;
    }
  }
  
  .warningIcon-text {
    text-align: center;
    color: #79621e;
    padding: 5px;
    font-size: 20px;
  }
  
  .loader{
    display: none;
  }
  .succesfull{
    margin-bottom: 70px;
    display: none;
  }
  .failed{
    margin-bottom: 70px;
    display: none;
  }
  .warning{
    display: none;
  }