@import url('https://fonts.googleapis.com/css2?family=Inria+Sans:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Roboto:wght@400;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: white;
  background-color: #212121!important;
  font-family: 'Roboto', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
}

#main {
  background-color: #212121;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 101vh;
  flex-direction: column;
}

.scrolling-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.scrolling-text {
  white-space: nowrap;
  font-size: 15vh;
  color: #212121;
  text-shadow: 1px 1px 0px white, -1px 1px 0px white, -1px -1px 0px white, 1px -1px 0px white;
  animation: scroll-left 150s linear infinite;
}

.scrolling-text:nth-child(odd) {
  animation: scroll-right 150s linear infinite;
}

.name {
  position: absolute;
  color: white;
  font-size: 30vh;
  text-align: center;
  font-weight: bold;
  z-index: 10;
}

section {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 70vh;
  color: white;
  width: 100%;
  overflow: hidden;
}

.hidden {
  opacity: 0;
  filter: blur(5px);
  transform: translate(-100%);
  transition: all 1s;
}

.show {
  filter: blur(0);
  transform: translateX(0);
  opacity: 1;
}

.container {
  display: flex;
  justify-content: space-between;
  padding: 20px;
}
.contact-info {
  display: flex;
  flex-direction: column;
}
.contact-info a {
  color: white;
  text-decoration: none;
  margin-bottom: 10px;
}
.form-container {
  display: flex;
  flex-direction: column;
  width: 40%;
}
input, textarea {
  background-color: #212121;
  border: 1px solid white;
  color: white;
  padding: 10px;
  margin-bottom: 10px;
}

.iconos {
  padding: 10px; /* Añadir padding alrededor de la imagen */
  width: 100px; /* Tamaño fijo de los cuadros */
  height: 100px; 
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px; /* Bordes redondeados */
}

.blancos {
  background-color: white;
}

.iconos img {
  max-width: 100%; /* Controlar el tamaño máximo de las imágenes dentro del cuadro */
  max-height: 100%; /* Evitar que la imagen se desborde */
}

.iconos p {
  text-align: center;
  font-size: 0.8rem; /* Tamaño de fuente ajustado */
}

.presentacion div div .texto p {
  font-size: 1.2rem;
}

.proyectos img {
  transition: transform 1s ease;
}

.proyectos a img:hover {
  transform: scale(1.05);
  z-index: 10;
  position: relative;
}


.proyectos div img:hover {
  transform: scale(1.05);
  z-index: 10;
  position: relative;
}

.container {
  display: flex;
  justify-content: space-between;
}

.titulo {
  white-space: nowrap;
  font-size: 10vh;
  color: #212121;
  text-shadow: 1px 1px 0px white, -1px 1px 0px white, -1px -1px 0px white, 1px -1px 0px white;
}

.titulo-2 {
  white-space: nowrap;
  font-size: 6vh;
  color: #212121;
  text-shadow: 1px 1px 0px white, -1px 1px 0px white, -1px -1px 0px white, 1px -1px 0px white;
}

.titulo {
  view-timeline-name: --title;
  view-timeline-axis: block;

  animation-timeline: --title;
  animation-name: show-title;

  animation-range: entry 25% cover 80%;
  animation-fill-mode: both;
}

.text-1 {
  font-size: 20px;
  padding-right: 10.5%;
}

.justify-text {
  text-align: justify;
}

.entrada-left {
  view-timeline-name: --left;
  view-timeline-axis: block;

  animation-timeline: --left;
  animation-name: entry-left;

  animation-range: entry 25% cover 35%;
  animation-fill-mode: both;
}

.boton {
  font-size: 18px;
  margin-left: 10px;
}

.cuerpo {
  display: flex;
  justify-content: space-between;
}

.tarjeta {
  width: 25em;
  height: 40em;
  background: #171717;
  transition: 1s ease-in-out;
  clip-path: polygon(30px 0%, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0% 30px);
  border-top-right-radius: 20px;
  border-bottom-left-radius: 20px;
  display: flex;
  flex-direction: column;
  margin-top: 10vh;
  margin-bottom: 10vh; 
}

.tarjeta span {
  font-weight: bold;
  color: white;
  text-align: center;
  display: block;
  font-size: 1.5em;
}

.tarjeta .info {
  font-weight: 400;
  color: white;
  display: block;
  text-align: center;
  font-size: 1em;
  margin: 1em;
}

.tarjeta .img {
  width: 6em;
  height: 6em;
  background: white;
  border-radius: 15px;
  margin: auto;

}

.tarjeta .share {
  margin-top: 1em;
  display: flex;
  justify-content: center;
  gap: 1em;
}

.tarjeta a {
  color: white;
  transition: .4s ease-in-out;
}

.tarjeta a:hover {
  color:#00BFFF;
}

.tarjeta button {
  padding: 0.8em 1.7em;
  display: block;
  margin: auto;
  border-radius: 25px;
  border: none;
  font-weight: bold;
  background: #ffffff;
  color: rgb(0, 0, 0);
  transition: .4s ease-in-out;
}

.tarjeta button:hover {
  background: #00BFFF;
  color: white;
  cursor: pointer;
}

.destacado{
  color: #00BFFF;
}

/* From Uiverse.io by codebykay101 */ 
.container-p {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.container-p .glass {
  position: relative;
  width: 180px;
  height: 200px;
  background: linear-gradient(#fff2, transparent);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 25px rgba(0, 0, 0, 0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.5s;
  border-radius: 10px;
  margin: 0 -45px;
  backdrop-filter: blur(10px);
  transform: rotate(calc(var(--r) * 1deg));
}

.container-p:hover .glass {
  transform: rotate(0deg);
  margin: 0 10px;
}

.container-p .glass::before {
  content: attr(data-text);
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
}
.container-p .glass svg {
  font-size: 2.5em;
  fill: #fff;
}

.sobre-mi h2 {
  padding-top: 5em;
}

.carta {
  position: relative;
  width: 300px;
  height: 200px;
  background-image: url(../images/web-spotify.png);
  background-size: contain;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.carta svg {
  width: 48px;
  fill: #333;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.carta:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.carta__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  width: 100%;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
  background-color: #fff;
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.carta:hover .carta__content {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 1;
}

.carta__title {
  margin: 0;
  font-size: 24px;
  color: #333;
  font-weight: 700;
}

.carta__description {
  margin: 10px 0 0;
  font-size: 14px;
  color: #777;
  line-height: 1.4;
}

.carta:hover svg {
  scale: 0;
  transform: rotate(-45deg);
}

/* From Uiverse.io by mrhyddenn */ 
.uiverse {
  position: relative;
  background: #ffffff;
  color: #000;
  padding: 15px;
  margin: 10px;
  border-radius: 10px;
  width: 150px;
  height: 50px;
  font-size: 17px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.tooltip {
  position: absolute;
  top: 0;
  font-size: 14px;
  background: #ffffff;
  color: #ffffff;
  padding: 5px 8px;
  border-radius: 5px;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.tooltip::before {
  position: absolute;
  content: "";
  height: 8px;
  width: 8px;
  background: #ffffff;
  bottom: -3px;
  left: 50%;
  transform: translate(-50%) rotate(45deg);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.uiverse:hover .tooltip {
  top: -45px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

svg:hover span,
svg:hover .tooltip {
  text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.1);
}

.uiverse:hover,
.uiverse:hover .tooltip,
.uiverse:hover .tooltip::before {
  background: #00BFFF;
  color: #ffffff;
}

.contacto a{
  text-decoration: none;
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: center;
  }
}

@media(prefers-reduced-motion) {
  .hidden {
    transition: none;
  }
}

@keyframes scroll-left {
  0% {
    transform: translateX(100);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes scroll-right {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100);
  }
}

@keyframes show {
  from {
    opacity: 0;
    scale: 25%;
  }

  to {
    opacity: 1;
    scale: 100%;
  }
}

@keyframes entry-left {
  from{
    opacity: 0;
    transform: translateX(-50%) ;
  }

  to {
    opacity: 1;
    transform: translateX(0%) ;
  }
}

/* Estilos generales para la sección de experiencia */
#experiencia {
  padding: 60px 20px;
  background-color: #ffffff;
}

#experiencia .contenedor {
  max-width: 1200px;
  margin: 0 auto;
}

#experiencia .titulo-seccion {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 40px;
  color: #333333;
}

.experiencia {
  margin-bottom: 40px;
}

.experiencia h3 {
  font-size: 1.5rem;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.experiencia h3 span {
  color: #555555;
  font-weight: normal;
}

.experiencia .fecha {
  font-size: 0.95rem;
  color: #777777;
  margin-bottom: 15px;
}

.experiencia ul {
  padding-left: 20px;
  list-style-type: disc;
}

.experiencia ul li {
  margin-bottom: 10px;
  color: #444444;
  line-height: 1.6;
}

/* Estilos responsivos para dispositivos móviles */
@media (max-width: 768px) {
  #experiencia {
    padding: 40px 15px;
  }

  #experiencia .titulo-seccion {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .experiencia h3 {
    font-size: 1.3rem;
  }

  .experiencia .fecha {
    font-size: 0.9rem;
  }
}
