/* ---------- Global ---------- */
main {
  width: 100%;
  padding: 20px;
  margin: auto;
  margin-top: 220px;
  box-sizing: border-box;
}

/* ---------- Caja trasera ---------- */
.contenedor__todo {
  width: 100%;
  max-width: 800px;
  margin: auto;
  position: relative;
}

.caja__trasera {
  border-radius: 25px;
  width: 100%;
  padding: 10px 20px;
  display: flex;
  justify-content: center;
  background: #ff670156;
  backdrop-filter: blur(5px);
  border: solid 1px #FF6801;
  position: relative;
  overflow: hidden;
}

.caja__trasera div {
  margin: 100px 40px;
}

.caja__trasera h3 {
  font-size: 26px;
  font-weight: 600;
  color: #fff;
}

.caja__trasera p {
  font-size: 16px;
  font-weight: 300;
  margin-bottom: 30px;
  color: #fff;
}

.caja__trasera button {
  border-radius: 25px;
  padding: 5px 40px;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.caja__trasera button:hover {
  background: #fff;
  color: #ff6801;
}

/* ---------- Contenedor login/register ---------- */
.contenedor__login-register {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 760px; /* aumento para que el movimiento por JS tenga espacio */
  height: auto;
  position: relative;
  top: -210px;
  left: 10px; /* tu JS cambia esta propiedad: 0, 10px, 410px etc. */
  transition: left 500ms cubic-bezier(0.175, 0.885, 0.320, 1.275);
  box-sizing: border-box;
  overflow: visible;
}

/* 🔥 Aplicar fondo/sombra solo a los formularios principales
   Y controlar su posicionamiento absoluto para que JS mueva el contenedor */
.contenedor__login-register > .formulario__login,
.contenedor__login-register > .formulario__register {
  width: 380px;              /* ancho del "viewport" del form */
  padding: 50px 20px;
  background-color: #fff;
  position: absolute;
  left: 0;                   /* ambos empiezan en la misma posición */
  border-radius: 20px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, .4);
  box-sizing: border-box;
  overflow: hidden;
}

/* --- Visibilidad inicial y z-index para evitar combinar ambos --- */
/* Hacemos que por defecto solo INICIAR SESIÓN esté visible */
.formulario__login {
  height: 450px;
  display: block;   /* visible por defecto */
  z-index: 2;       /* arriba */
}

.formulario__register {
  display: none;    /* oculto por defecto */
  z-index: 1;
}

/* Cuando JS muestra el register (formulario_register.style.display = "block")
   se prevé que JS además oculte el otro form (formulario_login.style.display = "none").
   Si en algún momento quieres usar clases en lugar de estilos inline, podrías
   controlar visibilidad con clases, pero mantuve tu JS tal cual. */

.contenedor__login-register h2 {
  font-size: 30px;
  font-weight: 600;
  text-align: center;
  color: #ff6801;
  margin-bottom: 0;
}

.contenedor__login-register input {
  width: 100%;
  height: 35px;
  margin-top: 15px;
  padding: 10px 20px;
  border: none;
  background: #e8e8e856;
  font-size: 12px;
  border-radius: 25px;
  outline: none;
  box-sizing: border-box;
  backdrop-filter: blur(5px);
  color: #161616;
}




/*-------------------------------------------------------------------------*/
.contenedor__login-register button {
  --clr-font-main: hsla(0 0% 20% / 100);
  --btn-bg-1: rgb(255, 174, 0);
  --btn-bg-2: rgb(253, 106, 8);
  --btn-bg-color: hsla(360 100% 100% / 1);
  --radii: 0.5em;
  cursor: pointer;
  padding: 0.9em 1.4em;
  min-width: 120px;
  min-height: 44px;
  margin-top: 60px;
  font-size: var(--size, 1rem);
  font-weight: 500;
  transition: 0.8s;
  background-size: 280% auto;
  background-image: linear-gradient(
    325deg,
    var(--btn-bg-2) 0%,
    var(--btn-bg-1) 55%,
    var(--btn-bg-2) 90%
  );
  border: none;
  border-radius: 30px;
  color: var(--btn-bg-color);
  box-shadow:
    0px 0px 20px rgba(255, 181, 71, 0.5),
    0px 5px 5px -1px rgba(233, 151, 58, 0.25),
    inset 4px 4px 8px rgba(255, 227, 175, 0.5),
    inset -4px -4px 8px rgba(216, 131, 19, 0.35);
}
.contenedor__login-register button:hover {
  cursor: pointer;
  transform: scale(1.05);
   background-position: right top;
   color: #fff;
}

.contenedor__login-register button:is(:focus, :focus-visible, :active) {
  outline: none;
  color: #fff;
  box-shadow:
    0 0 0 3px var(--btn-bg-color),
    0 0 0 6px var(--btn-bg-2);
}

/*--------------------------------------------------------------------------*/


/* ---------- Switch Términos (no afectado por el estilo de formulario) ---------- */
.terminos {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 13px;
  color: #333;
}

.terminos input[type="checkbox"] {
  display: none;
}

.lbl-switch {
  width: 40px;
  height: 20px;
  background: #ccc;
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
}

.lbl-switch::after {
  content: "";
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 1px;
  left: 1px;
  transition: transform 0.3s;
}

#switch:checked + .lbl-switch {
  background: #ff6801;
}

#switch:checked + .lbl-switch::after {
  transform: translateX(20px);
}

.texto-terminos {
  flex: 1;
  line-height: 1.4;
}

.enlace-naranja {
  color: #ff6801;
  text-decoration: none;
  font-weight: 600;
}

.enlace-naranja:hover {
  text-decoration: underline;
}

/* ---------- Botón volver ---------- */
.bt-volver button {
  width: 250px;
  padding: 5px;
  background-color: white;
  border: none;
  text-align: center;
  margin-top: 100px;
  border-radius: 25px;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, .4);
  color: #ff6801;
  font-size: 20px;
  transition: .3s;
}

.bt-volver button:hover {
  color: #fff;
  background-color: #ff6801;
}

.centrar-btn {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 850px) {
  main {
    margin-top: 50px;
  }

  .caja__trasera {
    max-width: 350px;
    height: 300px;
    flex-direction: column;
    margin: auto;
  }

  .caja__trasera div {
    margin: 0;
    position: absolute;
  }

  .contenedor__login-register {
    top: -10px;
    left: -5px;
    max-width: 380px;
  }

  /* En móvil hacemos que los formularios pierdan position:absolute para que
     la estructura fluya y no haya solapamientos al mostrarse uno tras otro */
  .contenedor__login-register > .formulario__login,
  .contenedor__login-register > .formulario__register {
    position: relative;
    width: 100%;
    left: 0;
    box-shadow: 0px 0px 8px rgba(0,0,0,0.15);
  }

  .terminos {
    flex-direction: column;
    align-items: flex-start;
  }
}

footer{
  background: #191919;
  padding: 60px 0 30px 0;
  margin: auto;
  overflow: hidden;
}

.contenedor-footer{
  display: flex;
  width: 90%;
  justify-content: space-evenly;
  margin: auto;
  padding-bottom: 50px;
  border-bottom: 1px solid #ccc;
}

.content-foo{
  text-align: center;
}

.content-foo h4{
  color: #fff;
  border-bottom: 3px solid #FF6801;
  padding-bottom: 5px;
  margin-bottom: 10px;
}

.content-foo p{
  color: #ccc;
}

.titulo-final{
  text-align: center;
  font-size: 24px;
  margin: 20px 0 0 0;
  color: #9e9797;
}

.terminos-condiciones-t{
  text-align: left;
  max-width: 700px;
  font-size: 25px;
}

.terminos-condiciones-s{
  max-width: 700px;
  text-align: left;
}

.icon-redes{
  width: 30px;
  align-items: flex-start;
  padding-right: 5px;
}


.icon-footer{
  height: 20PX;
  align-content: center;
  margin-left: 90px;
  float: center;
  margin-top: 30px;
  max-width: 60%;
}

.icon-ubi{
  width: 25px;
}

.Derechos{
  text-align: center;
  font-size: 8px;
  color: #9e9797;
}

.terminos-condiciones-t{
  text-align: left;
  max-width: 700px;
  font-size: 25px;
}

.terminos-condiciones-s{
  max-width: 700px;
  text-align: left;
  color: #fff;
}

.ver-mas{
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.vm{
  align-content: flex-start;
  margin-top: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  align-items: flex-start;
  justify-content: left;
  justify-items: left;
  text-decoration: none;
}

.vm:hover{
  text-decoration: none;
  color: #ff6801;
}
.instrucciones{
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  color: #191919;
}
.ver-mas{
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.ver-mas:hover{
  color: #ff6801;
}
.tc{
  font-size: 12px;
}
.tc a{
  color: #FF6801;
}
.tc a:hover{
  color: #FF6801;
  
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 60px;
  margin-right: 10px;
}
  
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
  
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 34px;
  height: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 1px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #ff6801;
}

input:focus + .slider {
  box-shadow: 0 0 1px #ff6801;
}

input:checked + .slider:before {
  -webkit-transform: translateX(19px);
  -ms-transform: translateX(19px);
  transform: translateX(19px);
}

.icon-redesYT{
  width: 35px;
  margin-bottom: 2.5px;
}
s

.olvide{
  font-size: 12px;
  margin-top: 40px;
  margin-left: 30px;

}
.olvide a{
  color: #ff6801;
  font-size: 13px;
  margin-top: 40px;
  text-decoration: none;
}
.olvide a:hover{
  color: #ff6801;
  text-decoration: underline;
}
.icon-redes:hover{
  transform: translateY(-5px);
  transition: 0.2s;
}

.iconos-campos{
  width: 20px;
}

.Derechos{
  margin-top: 8px;
  text-align: center;
  font-size: 14px;
  color: #9e9797;
}

.modal-titulo{
  font-size: 25px;
  font-weight: 500;
  color: #ff6801;
  text-align: center;
  margin-bottom: 0px;
}



.lbl-restablecer{
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 0px;
  margin-left: 20px;
}



input{
  width: 100%;
  height: 35px;
  margin-top: 15px;
  padding: 10px 20px 10px 20px;
  border: none;
  background: #e8e8e8;
  font-size: 12px;
  outline: none;
  border-radius: 25px;
}
input:focus{
  outline: 2px solid #ff6801;

  border-color: #ff5100;
  box-shadow: 0 4px 15px rgba(255, 123, 0, 0.35);
}

input::placeholder { color: rgb(95, 95, 95);}


.btn-accion-01{
  border-radius: 25px;
  padding: 5px 30px 5px 30px;
  background-color: transparent;
  border: solid 2px #ff6801;
  color: #ff6801;
  transition: .2s;
  margin-left: 10px;
}
.btn-accion-01:hover{
  background-color: #ff6801;
  color: #fff;
  transform: scale(1.05);
}

