* {
    font-family: 'Roboto', sans-serif;
}

body {
    background: radial-gradient(circle at 30% 40%, #0d1320, #06080f 70%),
            radial-gradient(circle at 70% 60%, #10182a, #06080f 80%),
            #06080f;
}
a {
    text-decoration: none;
}

.nav {
    display: flex;
    justify-content: center;
}

.nav__list {
    display: flex;
    list-style: none;
    justify-content: center;
    position: fixed;
    color: rgba(255, 255, 255, 0.2);
    gap: 2rem;
    font-size: 1rem;
    border: 0.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 2.5rem;
    max-width: 25rem;
    padding: 0.8rem 2rem;
    background-color: transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin: 1rem 1rem 0 1rem;
    z-index: 10;
}

.nav__link {
  color: rgba(255, 255, 255, 0.2);
}

.nav__link--active {
  color: #ffffff;
}

.nav__link:hover {
  color: #ddd;
}

.nav__link--active:hover {
  color: #ffffff;
}

.nav__item {
    cursor: pointer;
}

.nav__item:hover {
    color:#ddd;
}

.titulo {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 3rem;
    margin-top: 0;
}

.titulo__1 {
    color: var(--color-titulo1);
    margin-bottom: 0.5rem;
}

.titulo__2 {
    color: var(--color-titulo2);
}

.tituloo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
}

.descripcion {
    color: var(--color-texto-claro);
    font-size: 1.5rem;
    margin: 0 1rem 24px 1rem;
    text-align: center;
}

.btn {
    margin-top: 2rem;
    position: relative;
    padding: 16px 24px; /* un poco más de padding vertical */
    font-size: 1.3rem;
    color: #fff;
    background: #06080f;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    z-index: 0;
  
    display: flex;
    flex-direction: column; /* 👈 flecha abajo */
    align-items: center;
    text-align: center;
  }

  /* Borde animado */
  .btn {
    border: 2px solid transparent;
    background: linear-gradient(#06080f, #06080f) padding-box,
                linear-gradient(45deg, #3b82f6, #22d3ee, #6366f1, #3b82f6) border-box;
    background-size: 100% 100%, 300% 300%;
    animation: bordeAnimado 3s ease infinite;
  }

  @keyframes bordeAnimado {
    0% {
      background-position: 0% 0%, 0% 50%;
    }
    50% {
      background-position: 0% 0%, 100% 50%;
    }
    100% {
      background-position: 0% 0%, 0% 50%;
    }
  }
  
  /* Flecha animada */
  .flecha {
    display: inline-flex;
    align-items: center;
    animation: saltar 1.2s infinite ease-in-out;
  }
  
  @keyframes saltar {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(4px);
    }
  }


.proyectos__cards {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.proyecto__card {
  background-color: var(--color-principal);
  padding: 1rem;
  border-radius: 16px;
  min-height: 300px; /* Altura mínima para cada carta */
  flex: 1; /* Permite que las cartas se expandan equitativamente */
  max-width: 570px; /* Máximo ancho por carta */
  display: flex;
  flex-direction: column;
  border: 0.5px solid rgba(255, 255, 255, 0.086);
}

/* Estilos para los elementos internos de las cartas */
.imagen__cotizador {
  width: 100%;
  height: 250px;
  background-image: url(../imagenes/cotizador.webp);
  background-size: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.imagen__aerogym {
  width: 100%;
  height: 250px;
  background-image: url(../imagenes/aerogym.webp);
  background-size: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.imagen__jardin {
  width: 100%;
  height: 250px;
  background-image: url(../imagenes/jardin.webp);
  background-size: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.imagen__ingles {
  width: 100%;
  height: 250px;
  background-image: url(../imagenes/ingles.webp);
  background-size: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.titulo__proyecto {
  color: #ffffff;
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

.descripcion__proyecto {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  flex-grow: 1; /* Para que ocupe el espacio disponible */
}

.descripcion__texto {
  margin: 0;
  overflow: hidden;
  line-height: 1.4;
  max-height: 2.5rem; /* Altura de exactamente 2 líneas (1.4 * 2) */
  max-width: 32.5rem;
  transition: max-height 2s ease;
}

.descripcion__texto.expandido {
  max-height: 8rem; /* Altura más proporcional para animación uniforme */
}

.ver-mas-btn {
  background: none;
  border: none;
  color: var(--color-texto-claro);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.3rem 0;
  margin-top: 0.5rem;
  transition: color 0.3s ease;
}


.tecnologias {
  display: flex;
  gap: 0.5rem;
}

.tecnologia {
  color: #a855f7;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  font-size: 0.8rem;
  align-self: flex-start;
  
  /* Borde animado igual que el botón */
  border: 2px solid transparent;
  background: linear-gradient(var(--color-principal), var(--color-principal)) padding-box,
              linear-gradient(45deg, #ec4899, #a855f7, #d946ef, #ec4899) border-box;
  background-size: 100% 100%, 300% 300%;
  animation: bordeAnimado 3s ease infinite;
}

.botones__proyecto {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.boton__proyecto {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex: 1;
  background: linear-gradient(135deg, #8B5CF6, #A855F7);
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.boton__proyecto::before {
  content: "";
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.boton__proyecto:hover {
  background: linear-gradient(135deg, #7C3AED, #9333EA);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.boton__proyecto:active {
  transform: translateY(0);
}

.boton__github {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.056);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.boton__github:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.boton__github:active {
  transform: translateY(0);
}

.sobremi {
  margin-top: 10rem;
}

.sobremi__container {
  display: flex;
  max-width: 60rem;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  gap: 10rem;
}

.sobremi__img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 1/1;
}

.sobremi__descripcion {
  color: #ddd;
  font-size: 1.1rem;
  line-height: 1.5;
}

/* Estilos para las cartas de habilidades */
.habilidades__cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 6rem;
  flex-wrap: wrap;
}

.habilidad__card {
  border: 2px solid transparent;
  background: linear-gradient(var(--color-principal), var(--color-principal)) padding-box,
              linear-gradient(45deg, #3b82f6, #22d3ee, #6366f1, #3b82f6) border-box;
  background-size: 100% 100%, 300% 300%;
  animation: bordeAnimado 3s ease infinite;
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
  max-width: 280px;
  flex: 1;
  min-width: 250px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.habilidad__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.habilidad__icono {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.habilidad__titulo {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.habilidad__descripcion {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.contacto {
  margin-top: 10rem;
}

/* Estilos para la sección de contacto */
.contacto__container {
  display: flex;
  max-width: 80rem;
  margin: 0 auto;
  gap: 3rem;
  padding: 0 2rem;
}

.contacto__formulario {
  flex: 1;
  background-color: var(--color-principal);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: bordeAnimado 3s ease infinite;
  border-radius: 16px;
  padding: 2.5rem;
  transition: all 0.3s ease;
}

.contacto__formulario:hover {
  border-color: #2563eb;
  transform: translateY(-2px);
}

.contacto__titulo {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  margin-top: 0;
  text-align: center;
}

/* Estilos del formulario */
.form__grupo {
  margin-bottom: 1.5rem;
}

.form__label {
  display: block;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #ffffff;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: #3b82f6;
  background-color: rgba(255, 255, 255, 0.08);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form__textarea {
  min-height: 120px;
  max-height: 250px;
  resize: vertical;
}

.form__btn {
  width: 100%;
  background: linear-gradient(135deg, #8B5CF6, #A855F7);
  color: white;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.form__btn:hover {
  background: linear-gradient(135deg, #7C3AED, #9333EA);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

/* Estilos para las tarjetas de información */
.contacto__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contacto__card {
  background-color: var(--color-principal);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.contacto__card2 {
  background-color: var(--color-principal);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contacto__card2:hover {
  border-color: #2563eb;
  transform: translateY(-2px);
}

.contacto__card:hover {
  border-color: #2563eb;
  transform: translateY(-2px);
}

.contacto__card__titulo {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  margin-top: 0;
}

.contacto__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.contacto__item:last-child {
  margin-bottom: 0;
}

/* Estilos para las redes sociales */
.contacto__redes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.contacto__red {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.contacto__red:hover {
  background-color: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.3);
  transform: translateY(-1px);
}

.contacto__descripcion {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.contacto__btn {
  display: inline-block;
  background: linear-gradient(135deg, #8B5CF6, #A855F7);
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
  margin-top: 1.15rem;
}

.contacto__btn:hover {
  background: linear-gradient(135deg, #7C3AED, #9333EA);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

/* Estilos para el footer */
.footer {
  background-color: var(--color-principal);
  border-top: 1px solid #2563eb;
  padding: 2rem 0;
  margin-top: 8rem;
  text-align: center;
}

.footer__texto {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin: 0;
  font-weight: 400;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}