@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");

/* BACKGROUND */
/* Margin: arriba/abajo, izq/der */
/* Margin: izq/der arriba/abajo, */

html {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: -1;
  scrollbar-width: none;
}

:root {
  --sombra-boton:
    0 2px 4px rgba(0, 0, 0, 0.5),
    inset 0 -3px 5px rgba(0, 0, 0, 0.25),
    inset 0 2px 3px rgba(255, 255, 255, 0.5);

  --arriba-glow:
    transform: translateY(50px),
    text-shadow: 0 0 10px rgba(252, 253, 253, 0.589);
}

/* PARA Q LAS IMAGENES NUNCA SE SALGAN !!!!! */
img, svg, video {
  max-width: 100%;
}

#video_bg {
  position: fixed;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  right: 0;
}
/* AJUSTES DE LAS CAJAS !! */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
  padding: 30px;
  margin: 0;
  justify-content: center;
}

/* TASK BAR */

.taskbar {
  display: flex;
  border-radius: 10px 10px 0 0;
  height: 50px;
  border: 5px solid #9FA0FF;
  box-shadow: #DAB6FC;
  background-color: #DAB6FC;
  border-bottom: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.barra-navegacion {
  display: flex;
  flex: 0.8;
  border-radius: 7px;
  height: 30px;
  width: 15px;
  margin: auto auto auto 30px;
  justify-content: left;
  background: #BBADFF;
  box-shadow: var(--sombra-boton);
}

.home {
  border: 2px solid #9FA0FF;
  border-radius: 13%;
  color: #0176b9;
  background: #BBADFF;
  font-size: 30px;
  line-height: 1rem;
  width: 2.5%;
  height: 90%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  justify-content: center;
  align-items: center;
  margin: 0 -12px 0px 20px;
  box-shadow: var(--sombra-boton);
}

.home:active {
  filter: brightness(0.9);
}

.taskbar-titulo {
  color: #7155ff;
  font-family: "BlinkyStar";
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1px;
  margin: auto 30px;
  letter-spacing: 2px;
  white-space: nowrap;
}

/* LOS CIRCULOS AHI EN AL TASKBAR PARA IMITAR MAC :VVVVVV*/
.circulo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  box-shadow: var(--sombra-boton);
  flex-shrink: 0; /* que no se aplasten */
}

.uno {
  background-color: #757BC8;
  left: 30px;
  margin-left: 30px;
}

.dos{
  background-color: #8187DC;
  left: 30px;
  margin-left: 30px;
}

.tres{
  background-color: #8E94F2;
  left: 30px;
  margin-left: 30px;
}

/* ESTILO DE CAJAS !! */

.caja {
  border: 5px solid #9FA0FF;
  box-shadow: 0 0 12px #8E94F2;
  box-sizing: border-box;
  gap: 10px;
  width: 50%;
  justify-content: center;
}

/* ORGANIZACION DE CAJAS !! */

.fila {
  display: flex;
  flex-direction: row;
  width: 100%;
  align-items: stretch;
  justify-content: center;
}

/* IZQUIERDA */

.info {
  align-self: flex-start;
  flex: 1;
  min-width: 0;
  text-align: left;
  background: #b2adff93;
  backdrop-filter: blur(10px);
}

/* AVATAR */

#avatar {
  object-fit: cover;
  aspect-ratio: 1/1;
  display: block;
  width: 125px;
  margin: 20px auto 20px;
  border-radius: 25%;
  box-shadow: 0px 0px 30px rgb(255, 255, 253);
  filter: saturate(100%);
}

/* NOMBRE DEBAJO DEL AVATAR  */

.nombre {
  color: white;
  text-align: center;
  line-height: 25px;
  margin: auto 0px auto;
  font-family: "Hevilla";
  font-weight: 400;
  font-size: 40px;
  letter-spacing: 2px;
}

/* CONTACTO  */

.div_botones_contacto {
  display: flex;
  flex: 0 1 250px;
  flex-wrap: nowrap;
  flex-shrink: 0;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  gap: 10px;
}

.div_botones_contacto button {
  max-width: 100%;
  width: 50px;
  font-size: 25px;
  border: none;
  background: none;
  transition: transform 0.2s ease, text-shadow 0.2s ease;
}

.div_botones_contacto button:hover {
    transform: translateY(-5px);
    text-shadow: 0 0 10px rgba(252, 253, 253, 0.589);
}

.close {
  border: 2px solid #9FA0FF;
  border-radius: 13%;
  color: #0176b9;
  background: #BBADFF;
  font-size: 30px;
  line-height: 0px;
  padding: 0;
  width: 3rem;
  height: 2rem;
  justify-content: center;
  align-items: center;
  margin: 0 50px;
  box-shadow: var(--sombra-boton);
}


/* ------------------- DOBLE DIV  ------------------ */

.doble-div {
  display: flex;
  flex-direction: row;
  max-width: 100%;
  min-width: 100%;
  
}


/* ------------------- REPRODUCTOR ------------------ */

#reproductor .popup {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: auto;
  max-height: none;
  min-height: 0;
  box-sizing: border-box;
  margin: 20px 10px;
   background: linear-gradient(#09017a80, #00aeff) 
}

#reproductor .popup-titulo {
line-height: 0;
}

#reproductor .popup-barra {
  height: 30px;
  background: #57c1ff;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  min-width: 0%;
  max-width: 100%;
}

.reproductor {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0%;
  max-width: 100%;
  margin-top: 0px;
  border: 4px solid #57c1ff;
}

.info-cancion {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: baseline;
  gap: 5px;
  margin-top: 0px;
}

.reproductor h1 {
  box-shadow: none;
  margin-top: 8px;
  font-family: "Pixelta";
  font-size: 1.25rem;
  margin-bottom: 0px;
  text-shadow: none;
}

.reproductor p {
  box-shadow: none;
  font-family: "Pixelta";
  font-size: 1.25rem;
  margin-bottom: 0px;
  text-shadow: none;
}

#progreso {
  appearance: none;
  cursor: pointer;
  background: #00a2ff;
  margin: 0px 0 10px 0;
  height: 10px;
  width: 75%;
  border-radius: 6px;
  box-shadow: var(--sombra-boton);
}

#progreso::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  background-color: #0011ff;
  width: 10px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  outline: 3px solid white;
}

.controles button {
  justify-content: center;
  align-items: center;
  width: 35px;
  aspect-ratio: 1/1;
  background-color: #00c3ff;
  border-radius: 50%;
  border: 3px solid #00c3ff8f;
  box-shadow: var(--sombra-boton);
  margin: 0px;
  font-size: 1rem;
}

.playlist {
  color: rgba(254, 254, 255, 0.966);
  font-family: "Anak Orang";
  font-size: 0.8rem;
  margin-top: 0.25rem;
  font-weight: lighter;
  letter-spacing: 2.5px;
  margin-bottom: 8px;
  text-shadow: none;
}

#reproductor .close {
  display: grid;
  width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
  margin-right: 0rem;
  line-height: 0;
  padding: 0;
  font-size: 25px;
}

/* ------------------- CAJA DE FIRMAS ------------------ */

.caja-firmas-div {
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  height: 100%;
  max-height: none;
}

#caja-de-firmas .popup {
  width: 14rem;
  max-width: 100%;
  min-width: 0;
  margin: 50px 0px 0px 20px;
  flex: 0 1 auto;
  box-sizing: border-box;
}

#caja-de-firmas .popup-barra {
  width: 100%;
  height: 10%;
  min-height: 0;
  max-height: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

#caja-de-firmas .popup-titulo {
  font-size: 15px;
  margin: 5px auto auto auto;
}

#caja-de-firmas .firmas_contenido {
  border: 4px solid #57c1ff; 
  justify-items: center;
  background: linear-gradient(#09017a80, #00aeff) ;
  height: 8rem;
  min-height: 0;
  max-height: 100%;
}

#caja-de-firmas p {
  font-weight: lighter;
  margin: 10px;
  font-weight: bold;
}

#caja-de-firmas .close {
  display: grid;
  width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
  margin-right: 0rem;
  line-height: 0;
  padding: 0;
  font-size: 25px;
  background: none;
  border-color: rgb(159, 160, 255);
  box-shadow: var(--sombra-boton);
  color: #0176b9;
  background: #BBADFF;
}

#caja-de-firmas button {
  justify-content: center;
  align-items: center;
  background-color: #ff0000;
  border: 1px solid white;
  width: 70%;
  height: 25%;
  margin: 5px 0px 0px 30px;
  box-shadow: 3px 3px 0 black;
  font-weight: bold;
  font-size: 14px;
}

#caja-de-firmas button:active {
  filter: brightness(0.9);
}

#caja-de-firmas .firma_gratis {
  position: absolute;
  right: -10px;
  bottom: 270px;        
  width: 80px;
  rotate: -25deg;         
  pointer-events: none; 
  animation: pulsacion 1.5s linear infinite;
}

@keyframes pulsacion {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.1); }
}


/* ------------------- HABILIDADES ------------------ */

#habilidades .html,
#habilidades .css,
#habilidades .js,
#habilidades .mysql,
#habilidades .diseño_ui {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-top: 10px;
}

#habilidades .popup {
  width: 19rem;
  max-width: 100%;
  min-width: 0;
  height: auto;
  margin: 20px auto;
  border: 0px transparent;
  justify-content: center;
  border: 4px solid #57c1ff;
  box-sizing: border-box;
}

#habilidades .popup-barra {
  height: 30px;
  background: #57c1ff;
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  gap: 10px;
  box-sizing: border-box;
  border-top: none;
  justify-content: space-between;
}

#habilidades .popup-titulo {
  color: #ffffff;
  font-family: "Anak Orang";
  font-size: 15px;
  letter-spacing: 2px;
  border-top: none;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#habilidades .close {
  position: static;
  inset: auto;
  transform: none;
  float: none;
  margin: 0 0 10px auto;
  display: grid;
  place-items: center;
  width: 20px;
  height: 25px;
  padding: 0;
  flex: 0 0 28px;
  line-height: 0;
  justify-content: center;
  align-items: center;
}

#habilidades .close i {
  display: block;
  line-height: 1;
  font-size: 1.5rem;
}


#habilidades .html img,
#habilidades .css img,
#habilidades .js img, 
#habilidades .mysql img, 
#habilidades .diseño_ui img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  object-fit: contain;
  margin-right: 2%;
}

#habilidades .css p,
#habilidades .html p,
#habilidades .js p, 
#habilidades .mysql p, 
#habilidades .diseño_ui p {
  color: rgba(254, 254, 255, 0.966);
  font-family: "Pixelta";
  font-size: 1rem;
  margin: 0;
  gap: 0px;
  font-weight: lighter;
  letter-spacing: 0px;
  width: 4rem;
  flex-shrink: 0;
}

#habilidades .barra-habilidad {
  flex: 1;
  width: 25%;
  height: 10px;
  background-color: #3639647c;
  border-radius: 5px;
  margin-top: 5px;
  margin-left: 20px;
  margin-right: 20px;
}

#habilidades .progreso_css,
#habilidades .progreso_html,
#habilidades .progreso_js, 
#habilidades .progreso_mysql, 
#habilidades .progreso_diseño_ui {
  width: 15%;
  height: 10px;
  background: linear-gradient(90deg, #fc4fa0, #f87ed0);
  border-radius: 5px;
  border: 1px solid rgb(189, 0, 94);
}


/* ------------------- CENTRO ------------------ */

.centro {
  flex: 3;
  min-width: 0; /* deja que la columna se encoja en vez de desbordarse */
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-left: none;
  text-align: center;
  background: #bbadff93;
  backdrop-filter: blur(5px);
}

.columna_medio {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 0;
}

#logo {
 height: 70%;
 width: 70%;
}

.frase {
  color: white;
  text-align: center;
  margin: -10px 3px 0px;
  font-family: "Hevilla";
  font-weight: 400;
  font-size: 40px;
  letter-spacing: 2px;
}

/* ANIMACION */

.onda span span {
  display: inline-block;
  animation: ola 1.5s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.05s);
}

@keyframes ola {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}


/* BOTONES ESTO ES UN DESMADRE LUEGO ME PIERDO */

/* .botones es el div que da el orden */

.botones {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  margin: 20px;
  align-items: center;
  justify-content: center;
}


/* .boton es el estilo */
.boton {
  /* estilo xd */
  display: flex;
  flex: 0 1 250px;
  align-items: center;
  justify-content: center;
  width: 250px;
  max-width: 100%;
  height: 50px;
  margin: 20px 10px;
  transition: transform 0.3s ease;
  min-height: 50px;
  padding: 0 1rem;
  box-sizing: border-box;
  min-width: 0;

  /* borde redondp */
  border: 3px solid transparent;
  border-radius: 20px;

  /* fondo y borde aca con degradado*/
  background:
    linear-gradient(#8E94F2, #8E94F2) padding-box,
    linear-gradient(90deg, #6f00ff9c, #31007083) border-box;

  /* SOMBRA */
  box-shadow: var(--sombra-boton)
}

.boton:hover {
    transform: translateY(-12px);
    text-shadow: 0 0 10px rgba(252, 253, 253, 0.589);
}

.boton:active {
  filter: brightness(0.9);
}

.texto {
  color: white;
  font-family: "BlinkyStar";
  font-weight: 400;
  font-size: 25px;
  letter-spacing: 0px;
  min-height: 0px;
}

.ventana {
  box-sizing: border-box;
  max-width: 100%;
  transition: transform 0.3s ease;
  animation: deslizamiento-abajo 0.5s ease-out;
}

.ventana .popup {
  gap: 0;
  background-size: cover;
  background-repeat: no-repeat;
  width: 800px;
  max-width: 100%;
  margin: 30px 30px 30px 0px;
  display: flex;
  flex: 0 1 458px;
  min-width: 300px;
  flex-direction: column;
  flex-shrink: 0;
  border: 4px solid #57c1ff;
  background-color: rgba(25, 0, 255, 0.411);
}

.ventana .popup-barra {
  height: 30px;
  background: #57c1ff;
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
}

.ventana .contenido_sobre_mi {
  color: white;
  font-family: "SmoochSans";
  font-weight: 600;
  font-size: 25px;
  letter-spacing: 0px;
  min-height: 0px;
  margin: 0px 0px 0px 5px;
  text-align: left;
  line-height: 1.25;
  padding: 10px 5px;
  text-shadow: 0 2px 1.5px rgb(0, 0, 0);
  text-wrap: pretty;
}

.ventana .contenido_creemos_algo {
  color: white;
  font-family: "SmoochSans";
  font-weight: 600;
  font-size: 25px;
  letter-spacing: 0px;
  min-height: 0px;
  margin: 0px 0px 0px 5px;
  text-align: left;
  line-height: 1.25;
  padding: 10px 15px;
  text-shadow: 0 2px 1.5px rgb(0, 0, 0);
  text-wrap: pretty;
}

.ventana li {
  list-style-position: inside;
}

@keyframes deslizamiento-abajo {
  from {
    opacity: 0;
    transform: translateY(-5%);
  }
  to {
    opacity: 1;
    transform: translateY(0%);
  }
}


/* IMAGENES */

.popup {
  gap: 0;
  width: 258px;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  min-width: 0;
  margin: 30px 30px 30px 0px;
  display: flex;
  flex: 0 1 458px;
  flex-direction: column;
  flex-shrink: 0;
  box-shadow: var(--sombra-boton);
  border: 0px transparent;
}

.popup-barra {
  height: 30px;
  background: #57c1ff;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 10px;
  box-sizing: border-box;
  border-top: none;
}

.iconos_1 {
  justify-items: left;
  margin: 50px;
}

.iconos_2 {
  justify-items: left;
  margin-top: 1.5%;
  margin-left: auto;
}

.popup-titulo {
  position: absolute;
  color: #ffffff;
  font-family: "Anak Orang";
  font-size: 16px;
  letter-spacing: 2px;
}

#fullbody {
  object-fit: cover;
  display: block;
  height: auto;
  width: 100%;
  border: 4px solid #57c1ff;
}


.oculto {
  display: none !important;
}

.close-popup {
  position: static;
  inset: auto;
  transform: none;
  float: none;
  border: 2px solid #9FA0FF;
  border-radius: 13%;
  color: #0176b9;
  background: #BBADFF;
  font-size: 25px;
  line-height: 0px;
  padding: 0;
  width: 3rem;
  height: 1.5rem;
  justify-content: center;
  display: grid;
  align-items: center;
  margin: 0 25rem;
  box-shadow: var(--sombra-boton);
}



/* --------------------------------------------------*/
/* --------------- LAYOUT PARA LOW RES  ------------- */
/* --------------------------------------------------*/

@media (max-width: 1000px) {
  body {
    padding: 20px;
  }

  .nombre,
  .frase {
    font-size: 32px;
  }

  .boton {
    width: 220px;
    margin: 15px;
  }

  .ventana .popup {
    width: 100%;
    margin: 20px auto;
  }

  .texto {
    font-size: 20px;
  }
}

/* El hover solo en dispositivos con mouse */
@media (hover: none) {
  .boton:hover,
  .div_botones_contacto button:hover {
    transform: none;
    text-shadow: none;
  }
}

/* --------------------------------------------------*/
/* --------------- LAYOUT PARA CELULAR  ------------- */
/* --------------------------------------------------*/

@media (max-width: 768px) {
  html {
    background-attachment: scroll;
  }

  body {
    padding: 10px;
    justify-content: flex-start;
    overflow-x: hidden;
  }

  /* TASKBAR mas compacta */
  .taskbar {
    height: 44px;
    border-width: 4px;
    overflow: hidden;
  }

  .circulo {
    width: 20px;
    height: 20px;
  }

  .uno, .dos, .tres {
    margin-left: 8px;
    left: 0;
  }

  .barra-navegacion {
    height: 22px;
    margin: auto 8px;
    flex: 1;
    min-width: 0;
  }

  .home {
    width: 32px;
    height: 32px;
    font-size: 20px;
    margin: 0 4px 0 8px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
  }

  .taskbar-titulo {
    font-size: 14px;
    letter-spacing: 1px;
    margin: auto 8px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* LAS COLUMNAS SE APILAN */
  .fila,
  .doble-div {
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
  }

  .caja,
  .info,
  .centro {
    width: 100%;
    flex: none;
    align-self: stretch;
  }

  .centro {
    flex-direction: column;
    align-items: center;
  }

  .columna_medio {
    width: 100%;
    flex: none;
  }

  #logo {
    width: 60%;
    height: auto;
  }

  .nombre,
  .frase {
    font-size: 28px;
    letter-spacing: 1px;
  }

  /* CONTACTO */
  .div_botones_contacto {
    flex: 0 1 auto;
    flex-wrap: wrap;
  }

  /* BOTONES */
  .botones {
    flex-direction: column;
    margin: 10px;
    width: calc(100% - 20px);
  }

  .boton {
    flex: 0 0 auto;      /* <-- arregla los 250px de alto */
    width: 100%;
    max-width: 320px;
    height: 50px;
    margin: 8px 0;
  }

  .texto {
    font-size: 20px;
  }

  /* POPUPS Y VENTANAS */
  .popup,
  .ventana .popup,
  #habilidades .popup {
    width: 100%;
    min-width: 0;
    flex: 0 1 auto;
    flex-shrink: 1;
    margin: 15px auto;
  }

  .popup-titulo {
    font-size: 13px;
    letter-spacing: 1px;
  }

  .iconos_1 {
    margin: 20px;
  }

  .ventana .contenido_sobre_mi,
  .ventana .contenido_creemos_algo {
    font-size: 20px;
  }

  /* REPRODUCTOR */
  #reproductor .popup {
    margin: 15px auto;
  }

  .reproductor h1,
  .reproductor p {
    font-size: 1rem;
  }

  .info-cancion {
    flex-wrap: wrap;
    text-align: center;
  }

  #progreso {
    width: 85%;
  }

  .playlist {
    letter-spacing: 1.5px;
  }

  /* CAJA DE FIRMAS */
  .caja-firmas-div {
    position: relative;
    height: auto;
  }

  #caja-de-firmas .popup {
    width: 100%;
    max-width: 320px;
    margin: 15px auto;
  }

  #caja-de-firmas .firma_gratis {
    right: 5px;
    bottom: auto;
    top: -10px;
    width: 60px;
  }

  /* HABILIDADES */
  #habilidades .barra-habilidad {
    margin-left: 10px;
    margin-right: 10px;
  }
}

/* --------------------------------------------------*/
/* --------------- LAYOUT PARA IHPONES JODIDOS ------------- */
/* --------------------------------------------------*/
@media (max-width: 400px) {
  .nombre,
  .frase {
    font-size: 24px;
  }

  .texto {
    font-size: 18px;
  }

  .taskbar-titulo {
    font-size: 12px;
  }

  #avatar {
    width: 100px;
  }

  .ventana .contenido_sobre_mi,
  .ventana .contenido_creemos_algo {
    font-size: 18px;
  }

  #habilidades .css p,
  #habilidades .html p,
  #habilidades .js p,
  #habilidades .mysql p,
  #habilidades .diseño_ui p {
    font-size: 0.7rem;
    width: 2.5rem;
  }
}