/*************************************
 *         IMPORTACIÓN DE FUENTE
 *************************************/
 @import url("https://fonts.googleapis.com/css2?family=Catamaran:wght@300;400;600;700&display=swap");

 /*************************************
  *         ESTILOS GLOBALES
  *************************************/
 :root {
  --Background: #fff;
  --Surface: #0f172a;
  --Primary: #fff;
  --Secondary: #fff;
  --OnColor: #121212;
  --OnBackground: #fff;
}

/* Eliminamos el uso de flex en body para evitar conflictos */
body {
  margin: 0;
  padding: 0;
  font-family: "Catamaran", sans-serif;
  background-color: var(--Background);
  color: #f0ffff;
}

/*************************************
 *        MENÚ LATERAL
 *************************************/
#BackgroundMenu {
  position: fixed;
  height: 100vh;
  width: 100%;
  z-index: 1;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
  transition: all 0.6s ease;
}

#AsideMenu {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--Surface);
  width: 40px;
  height: 90vh;
  margin: 0;
  padding: 0;
  z-index: 10;
  overflow: hidden;
  pointer-events: auto;
  transition: all 0.6s ease;
  left: 0;
  border-radius: 0 5px 5px 0;
}

#AsideMenuIcon {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  top: 0;
  left: 0;
  overflow: hidden;
  border-radius: 0 5px 0 0;
  transition: all 0.6s ease;
}

#AsideMenuIcon i {
  color: var(--OnBackground);
  font-size: 20px;
  font-weight: 900;
}

#AsideList,
#AsideList ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#AsideList {
  display: flex;
  flex-direction: column;
  row-gap: 20px;
  opacity: 0;
  transition: all 0.6s ease;
}

#AsideMenu:hover {
  width: 350px;
  transition: all 0.6s ease;
}

#AsideMenu:hover #AsideMenuIcon {
  opacity: 0;
  width: 350px;
  transition: all 0.6s ease;
}

#AsideMenu:hover #AsideList {
  opacity: 1;
  transition: all 0.6s ease;
}

#BackgroundMenu:hover {
  background-color: #0f172a;
  transition: all 0.6s ease;
}

/* Submenús con animación de altura */
.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

/* Flechas en submenús */
.has-submenu > a::after {
  content: "▶";
  float: right;
  margin-right: 10px;
  transition: transform 0.3s;
}
.has-submenu.expanded > a::after {
  content: "▼";
  transform: rotate(90deg);
}

/* Estilos de enlaces */
.AsideItem a {
  color: #fff;
  text-decoration: none;
}
.AsideItem a:hover {
  color: #ccc;
  text-decoration: none;
}
.AsideItem.indent a {
  padding-left: 30px;
}

/*************************************
 *    FORMULARIO DESLIZANTE
 *************************************/

/* Renombramos .body => .form-body */
.form-body {
  background: #122041;
  transition: all 0.5s;
  padding: 1px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contenedor general (veen) */
.veen {
  width: 70%;
  margin: 100px auto;
  background: rgba(255, 255, 255, 0.5);
  min-height: 400px;
  display: table;
  position: relative;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.14),
              0 4px 8px rgba(0, 0, 0, 0.28);
}

.veen > div {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  color: #fff;
}

/* Botones del formulario */
.veen button {
  background: transparent;
  display: inline-block;
  padding: 10px 30px;
  border: 3px solid #fff;
  border-radius: 50px;
  background-clip: padding-box;
  position: relative;
  color: #FFF;
  transition: all 0.25s;
}

.veen button.dark {
  border-color: #0f172a;
  background: #0f172a;
}

.veen .move button.dark {
  border-color: #0f172a;
  background: #0f172a;
}

.veen .splits p {
  font-size: 18px;
}

.veen button:active {
  box-shadow: none;
}

.veen button:focus {
  outline: none;
}

/* Contenedor interno (wrapper) */
.veen > .wrapper {
  position: absolute;
  width: 40%;
  height: 120%;
  top: -10%;
  left: 5%;
  background: #fff;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.14),
              0 4px 8px rgba(0, 0, 0, 0.28);
  transition: all 0.5s;
  color: #303030;
  overflow: hidden;
}

.veen .wrapper > form {
  padding: 15px 30px 30px;
  width: 100%;
  transition: all 0.5s;
  background: #fff;
}

.veen .wrapper > form:focus {
  outline: none;
}

.veen .wrapper #login {
  padding-top: 20%;
  visibility: visible;
}

.veen .wrapper #register {
  transform: translateY(-80%) translateX(100%);
  visibility: hidden;
}

.veen .wrapper.move #register {
  transform: translateY(-80%) translateX(0%);
  visibility: visible;
}

.veen .wrapper.move #login {
  transform: translateX(-100%);
  visibility: hidden;
}

.veen .wrapper > form > div {
  position: relative;
  margin-bottom: 15px;
}

.veen .wrapper label {
  position: absolute;
  top: -7px;
  font-size: 12px;
  white-space: nowrap;
  background: #fff;
  text-align: left;
  left: 15px;
  padding: 0 5px;
  color: #999;
  pointer-events: none;
}

.veen .wrapper h3 {
  margin-bottom: 25px;
}

.veen .wrapper input {
  height: 40px;
  padding: 5px 15px;
  width: 100%;
  border: solid 1px #999;
}

.veen .wrapper input:focus {
  outline: none;
  border-color: #0f172a;
}

.veen > .wrapper.move {
  left: 45%;
}



/*************************************
 *       RESPONSIVE
 *************************************/
@media (max-width: 767px) {
  .veen {
    padding: 5px;
    margin: 0;
    width: 100%;
    display: block;
  }
  .veen > .wrapper {
    position: relative;
    height: auto;
    top: 0;
    left: 0;
    width: 100%;
  }
  .veen > div {
    display: inline-block;
  }
  .splits {
    width: 50%;
    background: #fff;
    float: left;
  }
  .splits button {
    width: 100%;
    border-radius: 0;
    background: #505050;
    border: 0;
    opacity: 0.7;
  }

  .splits p {
    display: none;
  }
  .veen > .wrapper.move {
    left: 0%;
  }
}

/* Quita color amarillo en autocompletar */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  box-shadow: inset 0 0 0 50px #fff;
}
/* Burbujas de redes sociales:
   - .social-bubbles: es el contenedor que se posiciona de forma fija en la esquina inferior derecha de la pantalla.
   - display: flex; flex-direction: column; gap: 10px; organiza los íconos en una columna con espacio entre ellos.
   - .social-bubbles a: define cada burbuja como un círculo de 50x50 píxeles, con fondo #222 (mismo color que el menú), íconos blancos y una sombra sutil.
   - La transición y el hover permiten un efecto de escalado al pasar el cursor.
*/
.social-bubbles {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-bubbles a {
  width: 50px;
  height: 50px;
  background-color: #0f172a; /* mismo color que el menú */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
  text-decoration: none;
  color: white; /* íconos en blanco */
}

.social-bubbles a:hover {
  transform: scale(1.1);
}

.social-bubbles a i {
  font-size: 24px;
}