* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #0a0a0a;
  color: #fff;
  overflow-x: hidden;
  transition: background 0.6s ease, color 0.6s ease;
}

.grid-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;

  /* Glow de fondo + rejilla */
  background: radial-gradient(circle at center, rgba(0,255,255,0.05), transparent 70%),
              linear-gradient(90deg, rgba(16, 211, 211, 0.3) 1px, transparent 1px),
              linear-gradient(rgba(0,255,255,0.3) 1px, transparent 1px);

  background-size: 40px 40px;
  transform: perspective(800px) rotateX(60deg);

  /* Animaciones */
  animation: gridGlow 3s ease-in-out infinite alternate,
             gridMove 20s linear infinite;

  z-index: -1;
  pointer-events: none;
}

@media screen and (max-width: 768px) {
  .main-nav {
    background-color: rgba(0,0,0,0);
  }
  
}

@keyframes gridGlow {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

@keyframes gridMove {
  0% { background-position: 0 0, 0 0, 0 0; }
  100% { background-position: 200px 200px, 100px 100px, 50px 50px; }
}

/* Animación de brillo (cambia la opacidad ligeramente para efecto futurista) */
@keyframes gridGlow {
  0% { background-color: rgba(0,0,0,0); }
  50% { background-color: rgba(0,255,255,0.05); }
  100% { background-color: rgba(0,0,0,0); }
}

/* Animación de movimiento de la rejilla */
@keyframes gridMove {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 200px 200px, 100px 100px; }
}



.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle, #000022, #000);
  padding: 0 1rem;
}

.intro-text {
  font-size: 4rem;
  color: #00f0ff;
  text-shadow: 0 0 10px #00f0ff, 0 0 30px #00f0ff;
  opacity: 0;
  transform: scale(0.8);
  transition: color 0.6s;
  
}

#nombre-portafolio {
  font-family: 'Poppins', sans-serif;
  color: #00f0ff;
  text-shadow: 0 0 10px #00f0ff, 0 0 30px #00f0ff;
  font-size: 4rem;
  text-align: center;
}


.subtitle {
  font-size: 1.5rem;
  margin-top: 1rem;
  color: #fff;
  opacity: 0;
  transition: color 0.6s;
}

#mode-toggle {
  margin-top: 2rem;
  padding: 0.5rem 1rem;
  background: #000000;
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.3s, color 0.3s;
  font-size: 1.2rem;
  user-select: none;
  ;
}
#mode-toggle:hover {
  background: #333;
}

.skills {
  padding: 4rem 2rem;
  max-width: 800px;
  margin: auto;
}
.skills h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
  text-align: center;
  color: #00f0ff;
  text-shadow: 0 0 10px #00f0ff;
}
.skill-bar {
  margin-bottom: 1.5rem;
}
.skill-bar span {
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 600;
}
.bar {
  width: 100%;
  height: 15px;
  background: #222;
  border-radius: 8px;
  overflow: hidden;
}
.fill {
  height: 100%;
  background: linear-gradient(to right, #00f0ff, #0066ff);
  border-radius: 8px;
  width: 0;
  transition: width 1s ease-in-out;
}

.projects {
  padding: 4rem 2rem;
  text-align: center;
}
.projects h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #00f0ff;
  text-shadow: 0 0 10px #00f0ff;
}
.project-carousel {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 1rem;
  scroll-behavior: smooth;
}
.project-card {
  min-width: 250px;
  background: #111;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0,255,255,0.2);
  transform: scale(0.9);
  opacity: 0;
  transition: background 0.3s;
  user-select: none;
  color: #ffffff;
}
.project-card:hover {
  background-color: rgba(0, 255, 255, 0.616);
  box-shadow: 0 0 40px #00f0ff;
  transform: scale(1);
  cursor: pointer;
  font-size: 1.1rem;
}

footer {
  text-align: center;
  padding: 2rem;
  background: rgba(0, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1rem;
}



/* Modo claro */
body.light-mode {
  background: rgba(2, 2, 2, 0.95);
  color: #000;
}
body.light-mode .grid-bg {
  background-image: linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px),
                    linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px);
}
body.light-mode .intro-text {
  color: #0066ff;
  text-shadow: none;
}
body.light-mode .subtitle {
  color: #333;
}
body.light-mode .project-card {
  background: rgba(20, 20, 20, 0.95);
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
/* boton cuerpo -> */
body.light-mode #mode-toggle {
  background: rgba(255, 254, 254, 0.95);
  color: #000;
}

#matrixCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Para que no bloquee el contenido */
  background: black;
}

/* Para darle color al texto desarrollador web */
.futuristic-text {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: #00fff7;
  text-shadow:
    0 0 5px #00fff7,
    0 0 10px #00fff7,
    0 0 20px #00d9ff,
    0 0 40px #00b3ff;
  animation: glow-color-change 5s linear infinite;
}

@keyframes glow-color-change {
  0% {
    color: #00fff7;
    text-shadow:
      0 0 5px #00fff7,
      0 0 10px #00fff7,
      0 0 20px #00d9ff,
      0 0 40px #00b3ff;
  }
  25% {
    color: #ff00ff;
    text-shadow:
      0 0 5px #ff00ff,
      0 0 10px #ff00ff,
      0 0 20px #d900d9,
      0 0 40px #b300b3;
  }
  50% {
    color: #00ffea;
    text-shadow:
      0 0 5px #00ffea,
      0 0 10px #00ffea,
      0 0 20px #00d9b3,
      0 0 40px #00b377;
  }
  75% {
    color: #ff0066;
    text-shadow:
      0 0 5px #ff0066,
      0 0 10px #ff0066,
      0 0 20px #d9004d,
      0 0 40px #b3003f;
  }
  100% {
    color: #00fff7;
    text-shadow:
      0 0 5px #00fff7,
      0 0 10px #00fff7,
      0 0 20px #00d9ff,
      0 0 40px #00b3ff;
  }
}

.futuristic-text {
  transition: transform 0.1s ease-out;
}

/* --- Estilos Generales (Enfoque "Desktop First") --- */

.main-nav {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);

  display: flex;               /* Flexbox */
  justify-content: space-between; /* Espacio entre enlaces y botón */
  align-items: center;         /* Centrar vertical */
  padding: 0.5rem 2rem;        /* Espaciado horizontal */
}

.main-nav ul {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 20px; /* Espacio entre enlaces */
  
}

.main-nav ul li {
  margin: 0;
}

.main-nav ul li a {
  color: #0ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
  gap: 8px; /* Espacio entre icono y texto */
  align-items: center; /* Alinea icono y texto */
  padding: 6px 10px;
  border-radius: 6px;
}

.main-nav ul li a:hover,
.main-nav ul li a:focus {
  color: #fff;
  text-shadow: 0 0 8px #0ff;
  font-size: 1.2rem;
  background-color: rgba(0, 255, 255, 0.2);
  box-shadow: 0 0 8px #0ff;
}


.main-nav ul li a svg {
  width: 20px;
  height: 20px;
  fill: #0ff;
  transition: fill 0.3s;
}

.main-nav ul li a:hover svg,
.main-nav ul li a:focus svg {
  fill: #fff;
}

.main-nav ul li a svg {
  width: 20px;
  height: 20px;
  fill: #0ff;
  vertical-align: middle;
}


/* Botón modo oscuro */
#mode-toggle {
    padding: 0.5rem 1rem;
    background: #111;
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.3s, color 0.3s;
    font-size: 1.2rem;
    user-select: none;
    margin-top: 0; /* Asegura la alineación correcta en escritorio */
}
/* portatil pequeño estara chulo?*/

.typed-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  animation: typing 3s steps(30) 1 forwards;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

.laptop-container {
  position: relative;
  display: inline-block;
  width: 290px; /* ajusta tamaño a gusto */
  
  
}

.laptop-svg {
  width: 100%;
  height: auto;
  display: block;
}

.laptop-screen-text {
  position: absolute;
  top: 40%; /* ajusta vertical */
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: rgb(5, 241, 241);
  white-space: nowrap;
  overflow: hidden;
  
}

.cursor {
  display: inline-block;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* estilo formulario */

  .contact {
    background: rgba(10, 10, 10, 0.85);
    border-radius: 15px;
    margin: 40px auto;
    max-width: 700px;
    padding: 40px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    text-align: center;
    color: #00ffea;
    transition: all 0.3s ease;
  }

  /* Efecto hover para todo el formulario */
/* Formulario */
#form-contacto {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

#form-contacto:hover {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 35px rgba(0, 255, 255, 0.5);
  transform: scale(1.02);
}

/* Inputs y textarea */
.contact-input, .contact-textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  color: #fff;
  transition: all 0.3s ease;
}

.contact-input:focus, .contact-textarea:focus {
  border-color: #00ffff;
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
  outline: none;
}

/* Botón */
.contact-button {
  background: #00ffff;
  color: #000;
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.contact-button:hover {
  background: #15a3a3;
  transform: scale(1.05);
  color:#ddd
}

/* Labels invisibles para accesibilidad */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}


/* Estilo base de inputs */
  .contact-input, .contact-textarea {
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    transition: border 0.3s, box-shadow 0.3s;
  }

  /* Al enfocar */
  .contact-input:focus, .contact-textarea:focus {
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    outline: none;
  }

  /* Estado válido */
  .valid {
    border-color: #0f0;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
  }

  /* Estado inválido */
  .invalid {
    border-color: #f00;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
  }

  
 /* Estilo similar al botón de enviar, pero con otro color */
  .reset-button {
    background: #ff4d4d; /* rojo suave */
    margin-left: 10px;
  }

  .reset-button:hover {
    background: #ff1a1a;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.6);
  }

  .reset-button:active {
    transform: scale(0.95);
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.3);
  }


 /* Estilo card habilidades nuevo...*/
.skills-grid {
  display: grid;
  grid-template-columns: repeat(5, auto); 
  grid-template-rows: repeat(2, auto);
  gap: 2rem;
  justify-content: center;  
  margin-top: 2rem;
}

/* Tablet: 3 columnas */
@media (max-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
  }
}

/* Móvil: 2 columnas */
@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
}

/* carta habilidades */
.skill-card {
  perspective: 1000px;
  width: 180px;
  height: 220px;
}

.skill-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  cursor: pointer;
}

.skill-card:hover .skill-inner,
.skill-card.active .skill-inner {
  transform: rotateY(180deg);
}

.skill-front,
.skill-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,255,255,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.skill-front {
  background: #111;
  color: #00f0ff;
}

.skill-front img {
  width: 80px;
  margin-bottom: 10px;
}

.skill-back {
  background: #0ff;
  color: #000;
  transform: rotateY(180deg);
}

.skill-back p {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;            /* Negrita */
  font-size: 1rem;            /* Tamaño un poco más grande */
  color: #ffffff;               /* Blanco */
  text-shadow: 0 0 5px #87dfdf, 0 0 10px #00b3ff; /* Brillo futurista */
  transition: color 0.3s, text-shadow 0.3s; /* Suaviza animaciones */
  cursor: default;              /* No cambia el cursor */
}

/* Opcional: efecto hover */
.skill-back p:hover {
  color: rgb(2, 17, 17);
  text-shadow: 0 0 10px #0ff, 0 0 20px #00b3ff;
  transform: scale(1.05);
}


.skill-card {
  perspective: 1000px;
  width: 200px;       /* puedes ajustar */
  height: 270px;      /* más alto para que quepa */
}

.skill-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.skill-card:hover .skill-inner {
  transform: rotateY(180deg);
}

.skill-front, .skill-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  padding: 15px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* evita que el texto se desborde */
}

.skill-back {
  background: rgba(20, 20, 20, 0.95);
  transform: rotateY(180deg);
  text-align: center;
}

.stars {
  font-size: 1.2rem;
  color: #06f3fc;
  margin: 5px 0;
  white-space: nowrap; /* evita que salten de línea */
}

.level-text {
  font-size: 0.85rem;
  font-weight: bold;
  color: #0ff;
  text-shadow: 0 0 5px #0ff;
}


/* carta habilidades */

/* calendario estilo */

.calendar {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(1, 211, 248, 0.3);
  text-align: center;
  color: #06eeff;
}

#calendar {
  max-width: 98%;
  margin: 2rem auto;
  background-color: rgba(1, 211, 248, 0.3);
  
}

/* Número del día */
.fc-daygrid-day-number {
  font-size: 1.5rem; /* Ajusta el tamaño a tu gusto */
  font-weight: bold;
  color: rgb(243, 248, 248); /* Opcional: color futurista */
}



.fc-col-header-cell-cushion {
  font-size: 1.2rem;
  font-weight: bold;
  color: rgb(239, 243, 243);
}


/* Eventos del calendario */
.fc-event {
  background-color: transparent !important; /* Fondo transparente */
  border: 1px solid #00ffff;                /* Borde futurista */
  color: #00ffff !important;                /* Color del texto */
  border-radius: 6px;                        /* Bordes redondeados */
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.4); /* Pequeño glow */
}

/* Título dentro del evento */
.fc-event-title {
  background-color: transparent !important;  /* Fondo transparente */
  color: #f0f7f7 !important;                 /* Texto futurista */
  font-weight: bold;
  text-shadow: 0 0 5px #00ffff, 0 0 10px #00d9ff; /* Glow */
  font: 1.2rem 'Poppins', sans-serif;
}


/* hora actual del usuario con geoverse*/

.clock-widget {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  color: #00ffff;
  text-shadow: 
    0 0 5px #00ffff, 
    0 0 10px #00b3ff, 
    0 0 20px #00b3ff, 
    0 0 30px #00f0ff;
  gap: 0.8rem;
  margin: 1rem auto;
}

.clock-widget .icon {
  font-size: 1.6rem;
  animation: blink 1.2s infinite alternate;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}

.main-nav {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);

  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
}

/* Contenedor del reloj */
.clock-widget {
  display: flex;
  align-items: center;
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  color: #00ffff;
  text-shadow: 0 0 5px #00ffff, 0 0 10px #00b3ff;
  gap: 0.5rem;
  margin-left: 1rem;
  white-space: nowrap;
}

/* Opcional: parpadeo del icono */
.clock-widget .icon {
  font-size: 1.2rem;
  animation: blink 1.2s infinite alternate;
}
@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}

/* Alineamos los elementos del nav a la derecha */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  
}

/* nuevo apartado sobre mi*/
.about-me {
  padding: 4rem 2rem;
  text-align: center;
  max-width: 1200px;
  margin: auto;
}

.about-me h2 {
  font-size: 2.5rem;
  color: #00f0ff;
  text-shadow: 0 0 10px #00f0ff;
  margin-bottom: 3rem;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.about-card {
  background: rgba(10, 10, 10, 0.85);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 8px 25px rgba(0,255,255,0.3);
  color: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.about-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 35px rgba(0,255,255,0.6);
}

.about-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.about-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #0ff;
  text-shadow: 0 0 5px #0ff;
}

.about-card p {
  font-size: 0.8rem;
  line-height: 1.6;
}


/* nuevo apartado sobre mi*/
@media screen and (max-width: 1450px) {
  .main-nav {
    background-color: transparent;
  }

  .main-nav ul li a {
    background-color: transparent !important;
    box-shadow: none !important;
  }
}
/* colores contacto */

#contacto .project-card:nth-child(1) a { color: #cc1da3; }     /* GitHub */
#contacto .project-card:nth-child(2) a { color: #16ce72; } /* LinkedIn */
#contacto .project-card:nth-child(3) a { color: #1833ca; } /* InfoJobs */
#contacto .project-card:nth-child(4) a { color: #ce6118; } /* TecnoEmpleo */
#contacto .project-card:nth-child(5) a { color: #d12010; } /* Gmail */


#juego1 { color: #1ccc33; } /* enlace juegos */
#juego2 { color: #b5c01b; } /* enlace juegos */
#juego3 { color: #bb2a1d; } /* enlace juegos */
#juego4 { color: #bb1d79; } /* enlace juegos */
#juego5 { color: #1621c2; } /* enlace juegos */
#juego6 { color: #bb14ad; } /* enlace juegos */

/* ==== CHATBOT ==== */
.chatbot-container {
  max-width: 420px;
  margin: 40px auto;
  background: rgba(0, 255, 255, 0.05);
  border: 1px solid #0ff;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
  font-family: 'Poppins', sans-serif;
  color: #0ff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(6px);
}

.chat-header {
  background: rgba(0, 255, 255, 0.15);
  padding: 10px;
  text-align: center;
  font-weight: bold;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #0ff;
}

.chat-body {
  padding: 10px;
  height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-body::-webkit-scrollbar {
  width: 6px;
}
.chat-body::-webkit-scrollbar-thumb {
  background: #0ff;
  border-radius: 10px;
}

.bot-message, .user-message {
  padding: 8px 12px;
  border-radius: 10px;
  max-width: 80%;
  word-wrap: break-word;
  animation: fadeIn 0.3s ease;
}

.bot-message {
  background: rgba(0,255,255,0.1);
  align-self: flex-start;
}

.user-message {
  background: #0ff;
  color: #000;
  align-self: flex-end;
}

.chat-input-area {
  display: flex;
  border-top: 1px solid #0ff;
}

.chat-input-area input {
  flex: 1;
  padding: 10px;
  background: transparent;
  border: none;
  color: #0ff;
  outline: none;
}

.chat-input-area button {
  background: #0ff;
  color: #000;
  border: none;
  padding: 10px 15px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.chat-input-area button:hover {
  background: #00ffff80;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media screen and (max-width: 768px) {
  .hero {height: 130vh;
  }
  
}

/* Pantallas pequeñas (móviles) */
@media screen and (max-width: 768px) {
  #nombre-portafolio {
    font-size: 2.3rem;
    flex-direction: column; /* Pone cada parte del nombre en una línea */
    gap: 0.2rem;
    margin-top: 100px;
  }
}

h1.intro-text span {
  margin-left: 7px;
}

.weather-widget {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #00ffff;
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 5px 10px;
  border-radius: 10px;
  margin-left: 10px;
  
}

.weather-widget span {
  font-family: 'Poppins', sans-serif;
}

#weather-icon {
  font-size: 2.2rem;
  filter: drop-shadow(0 0 6px #00ffff);
  transition: transform 0.3s ease, filter 0.3s ease;
}

#weather-icon:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 12px #00ffff);
}
