@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap");

/* Asegurarse de ocultar el cursor del sistema en todos los elementos interactivos */
body, a, button, input, textarea, .btn, img, .skill-logo {
  cursor: none !important;
}

/* Ocultar el cursor por defecto */
body {
  cursor: none;
}

/* Cursor personalizado: diseño moderno, con transición y efecto de sombra */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: white;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1);
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-radius 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
  z-index: 12000;
  will-change: transform;
  box-shadow: 0 0 8px rgba(255,255,255,0.8);
}

/* Pseudo-elemento para el aura */
.custom-cursor::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border: 2px solid white;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

/* Al pasar sobre un elemento interactivo se activa el aura */
.custom-cursor.cursor-hover::before {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* Modo escritura: transición suave de círculo a barra vertical estilizada */
.custom-cursor.cursor-text {
  width: 2px;
  height: 30px;
  border-radius: 2px;
  background-color: #ffffff;
  box-shadow: none;
}
.custom-cursor.cursor-text::before {
  display: none;
}

/* Fondo de partículas */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  font-family: "Poppins", sans-serif;
}

html {
  font-size: 62.5%;
}

body {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: black;
  color: white;
}

/* Contenedor principal */
.container {
  width: 100%;
  height: 100%;
  transition: transform 0.1s ease-out;
}

/* Encabezado fijo */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 9%;
  background-color: transparent;
  filter: drop-shadow(10px 10px 10px rgba(0,0,0,0.5));
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.logo {
  font-size: 3rem;
  color: #8a817c;
  font-weight: 800;
  cursor: pointer;
  transition: 0.5s ease;
}

.logo:hover {
  transform: scale(1.1);
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  font-size: 1.8rem;
  color: white;
  margin-left: 4rem;
  font-weight: 500;
  transition: 0.3s ease;
  border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active {
  color: #8a817c;
  border-bottom: 3px solid #8a817c;
}

/* Menú hamburguesa (oculto en pantallas grandes) */
.menu-toggle {
  display: none;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
}

/* Contenedor de secciones */
.content {
  position: relative;
  width: 100%;
  height: 100vh;
  padding-top: 100px;
  overflow: hidden;
}

/* Transición de secciones: fade-in y slide-up */
.section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  padding: 2rem 9%;
  z-index: 1;
}

.section.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 2;
}

/* Estilos para "Sobre Mí" */
.home {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8rem;
  width: 100%;
  height: 100%;
}

.home-img {
  border-radius: 50%;
}

.home-img img {
  width: 32vw;
  border-radius: 50%;
  box-shadow: 0 0 25px solid #8a817c;
  cursor: none;
  transition: 0.2s linear;
}

.home-img img:hover {
  transform: scale(1.05);
}

.home-content h1 {
  font-size: 6rem;
  font-weight: 700;
  line-height: 1.3;
}

.home-content h3 {
  font-size: 4rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.home-content p {
  font-size: 1.6rem;
  margin: 1rem 0;
}

.home-content span {
  color: #8a817c;
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background-color: transparent;
  border: 0.2rem solid #8a817c;
  font-size: 2rem;
  border-radius: 50%;
  margin: 3rem 1.5rem 3rem 0;
  transition: 0.3s ease;
  color: #8a817c;
}

.social-icons a:hover {
  color: black;
  transform: scale(1.3) translateY(-5px);
  background-color: #8a817c;
  box-shadow: 0 0 25px #8a817c;
}

.btn {
  display: inline-block;
  padding: 1rem 2.8rem;
  background-color: black;
  border-radius: 4rem;
  font-size: 1.6rem;
  color: #8a817c;
  letter-spacing: 0.3rem;
  font-weight: 600;
  border: 2px solid #8a817c;
  transition: 0.3s ease;
  cursor: none;
}

.btn:hover {
  transform: scale(1.03);
  background-color: #8a817c;
  color: black;
  box-shadow: 0 0 25px #8a817c;
}

/* Efecto de cursor en el texto dinámico */
.typing-text {
  font-size: 3.4rem;
  font-weight: 600;
  min-width: 280px;
}

.typing-text span {
  position: relative;
}

.typing-text span::after {
  content: " ";
  position: absolute;
  width: 2px;
  height: 95%;
  background-color: #8a817c;
  right: -8px;
  animation: cursorBlink 0.6s infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ================================ */
/* Sección de Habilidades */
.skill-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  grid-gap: 40px;
  align-items: center;
  justify-items: center;
  width: 100%;
  height: 100%;
  padding: 2rem;
}

.skill-logo {
  position: relative;
  color: #8a817c;
  font-size: 13rem;
  transition: transform 0.3s ease;
  cursor: none;
}

.skill-logo:hover {
  transform: scale(1.2);
}

.skill-logo[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: rgba(138,129,124,0.9);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 1.4rem;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.skill-logo[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ================================ */
/* Sección Contacto */
.contacto-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8rem;
  width: 100%;
  height: 100%;
}

.contacto-img img {
  width: 32vw;
  border-radius: 50%;
  box-shadow: 0 0 25px solid #8a817c;
  cursor: none;
  transition: 0.2s linear;
}

.contacto-content h1 {
  font-size: 6rem;
  font-weight: 700;
  line-height: 1.3;
}

.contacto-content p {
  font-size: 1.6rem;
  margin: 1rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
  max-width: 500px;
}

#contact-form input,
#contact-form textarea {
  padding: 1rem;
  border: 2px solid #8a817c;
  background-color: transparent;
  color: white;
  border-radius: 4px;
  font-size: 1.6rem;
  resize: none;
}

#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  border-color: #8a817c;
  box-shadow: 0 0 10px #8a817c;
}

#contact-form input:hover,
#contact-form textarea:hover {
  border-color: #8a817c;
  box-shadow: 0 0 10px #8a817c;
  transition: 0.3s ease;
}

.small-btn {
  padding: 0.5rem 1rem;
  font-size: 1.4rem;
}

#emailLink {
  color: #8a817c;
  font-weight: 700;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}
  
#emailLink:hover {
  transform: scale(1.05);
  text-shadow: 0 0 8px #8a817c;
}

/* ================================ */
/* Notificación emergente */
#notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #000;
  color: #fff;
  padding: 1.5rem 2rem;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.5s ease, bottom 0.5s ease;
  z-index: 11000;
  max-width: 90%;
  font-family: "Poppins", sans-serif;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  overflow: hidden;
}

#notification.show {
  opacity: 1;
  bottom: 20px;
}

#notification #notification-close {
  margin-left: 20px;
  cursor: none !important;
  font-size: 1.8rem;
  font-weight: bold;
}

#notification, #notification * {
  cursor: none !important;
}

/* ================================ */
/* Ajustes para móviles */
@media (max-width: 768px) {
  .home-content h1 {
    font-size: 3rem; /* Reducir el tamaño del título principal */
    text-align: center; /* Centrar el texto */
  }

  .home-content h3 {
    font-size: 2rem; /* Reducir el tamaño del subtítulo */
    text-align: center; /* Centrar el texto */
  }

  .home-content p {
    font-size: 1.4rem; /* Reducir el tamaño del párrafo */
    text-align: center; /* Centrar el texto */
    margin: 1rem 0; /* Ajustar márgenes */
  }

  .home {
    flex-direction: column; /* Cambiar a disposición vertical */
    gap: 1rem; /* Reducir el espacio entre elementos */
    padding: 1rem; /* Ajustar el padding */
  }

  .home-img img {
    width: 50vw; /* Reducir el tamaño de la imagen */
    max-width: 200px; /* Limitar el tamaño máximo */
  }

  .social-icons {
    justify-content: center; /* Centrar los íconos sociales */
  }

  .social-icons a {
    margin: 1rem; /* Ajustar el margen de los íconos sociales */
  }

  .btn {
    font-size: 1.4rem; /* Reducir el tamaño del botón */
    padding: 0.8rem 1.6rem; /* Ajustar el padding del botón */
  }

  .typing-text {
    font-size: 2rem; /* Reducir el tamaño del texto dinámico */
    text-align: center; /* Centrar el texto */
  }

  .skill-container {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); /* Reducir el tamaño de las columnas */
    grid-gap: 10px; /* Reducir el espacio entre íconos */
  }

  .skill-logo {
    font-size: 4rem; /* Reducir el tamaño de los íconos de habilidades */
  }

  .contacto-container {
    flex-direction: column; /* Cambiar a disposición vertical */
    gap: 1rem; /* Reducir el espacio entre elementos */
    padding: 1rem; /* Ajustar el padding */
  }

  .contacto-content h1 {
    font-size: 2.5rem; /* Reducir el tamaño del título */
    text-align: center; /* Centrar el texto */
  }

  .contacto-content p {
    font-size: 1.4rem; /* Reducir el tamaño del párrafo */
    text-align: center; /* Centrar el texto */
  }

  #contact-form {
    max-width: 100%; /* Ajustar el ancho del formulario */
  }

  #contact-form input,
  #contact-form textarea {
    font-size: 1.4rem; /* Reducir el tamaño de la fuente del formulario */
  }
  @media (max-width: 768px) {
    body, * {
      cursor: none !important;
    }
    .custom-cursor {
      display: none;
    }
  }
  
}

/* ================================ */
/* Ajustes para tabletas */
@media (max-width: 995px) {
  .menu-toggle {
    display: block;
  }
  
  nav {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    border-left: none;
    border-bottom: none;
    border-bottom-left-radius: 0;
    padding: 1rem;
    background-color: rgba(22, 22, 22, 0.95);
    backdrop-filter: blur(10px);
    border-top: 0.1rem solid rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    z-index: 999;
  }
  
  nav.active {
    display: flex;
  }
  
  nav a {
    display: block;
    font-size: 2rem;
    margin: 1.5rem 0;
    text-align: center;
  }
  
  nav a:hover,
  nav a.active {
    padding: 1rem;
    border-radius: 0.5rem;
    border-bottom: 0.5rem solid #8a817c;
  }
}
