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

body {
  background: radial-gradient(
    circle at center,
    #273c67 0%,           
    #0b0b10 42%,      
    #000000 90%
  );
  background-attachment: fixed;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
}

/* ENCABEZADO */
.header-contenedor {
  position: fixed;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 1000;
}

header {
  width: 90%;
  max-width: 1200px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.9rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
}

.encabezado .links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.encabezado .links a {
  color: #ccc;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.encabezado .links a:hover {
  color: #ffb347;
}

/* SECCION PERFIL */
.inicio {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 140px 2rem 3rem; 
  text-align: center;
  animation: introducir 1.5s ease-out;
}

.perfil-contentenido {
  max-width: 600px;
}

.perfil-contentenido h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.perfil-contentenido h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #ffb347 0%, #ffb347 60%, #ff4500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: color-animado 4s ease-in-out infinite alternate;
}

@keyframes color-animado {
  0% { background-position: 0% center; }
  100% { background-position: 100% center; }
}

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

.foto-perfil img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #000;
}

.frase {
  color: #e7e4e4;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.links2 {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.links2 a {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-weight: bold;
  transition: background 0.3s, transform 0.3s;
  text-decoration: none;
}

.links2 a:hover {
  background: #ffb347;
  color: #000;
  transform: scale(1.1);
}

/* INFORMACION */
.info-box {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
}

.info-box p {
  color: #ddd;
  line-height: 1.6;
}

.info-box span {
  color: #ffb347;
  font-weight: 600;
}

/* Experiencia */
.experiencia {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: auto;
  text-align: center;
  animation: introducir 1.5s ease-out;
}

.content-experiencia {
  position: relative;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
}

.content-experiencia p {
  color: #ddd;
  line-height: 1.6;
  font-size: 17px;
}

.content-experiencia h2 {
  padding-bottom: 2rem;
}

/* Animaciones de borde */
.info-box::after,
.content-experiencia::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 2px solid transparent;
  padding: 2px;
  background: linear-gradient(
    90deg,
    rgba(255,179,71,0) 0%,
    rgba(255,179,71,0.3) 25%,
    rgba(255,179,71,0.8) 50%,
    rgba(255,179,71,0.3) 75%,
    rgba(255,179,71,0) 100%
  ) repeat-x;
  background-size: 300% 100%;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter: blur(1.5px);
  animation: recorrer-borde 5s linear infinite;
}

@keyframes recorrer-borde {
  0% { background-position: 0 0; }
  100% { background-position: 300% 0; }
}

/* Animacion de entrada */
@keyframes introducir {
  0% { opacity: 0; transform: translateY(50px); }
  100% { opacity: 1; transform: translateY(0); }
}
/* SECCIÓN PROYECTOS */
.proyectos{
  display: flex; 
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: auto;
  padding: 80px 2rem 3rem; 
  text-align: center;
  animation: introducir 1.5s ease-out;
}
.proyectos-box {
  width: 90%;
  display: grid;
   grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  justify-content: center;
}

.proyecto-contenido {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}

.proyecto-contenido img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
  height: 300px;     
}

.proyecto-contenido h3 {
  margin-bottom: 1rem;
  color: #fff;
}

.proyecto-contenido p {
  color: #ddd;
  line-height: 1.5;
  font-size: 15px;
}

/* Borde animado */
.proyecto-contenido::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 2px solid transparent;
  padding: 2px;
  background: linear-gradient(
    90deg,
    rgba(255,179,71,0) 0%,
    rgba(255,179,71,0.3) 25%,
    rgba(255,179,71,0.8) 50%,
    rgba(255,179,71,0.3) 75%,
    rgba(255,179,71,0) 100%
  ) repeat-x;
  background-size: 300% 100%;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter: blur(1.5px);
  animation: recorrer-borde 5s linear infinite;
}
/* SECCIÓN TECNOLOGÍAS */
.tecnologias {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 2rem 3rem;
  text-align: center;
  animation: introducir 1.5s ease-out;
}

.tecnologias h2 {
  font-size: 2rem;
  color: #ffb347;
  margin-bottom: 2rem;
}

.tecnologias-box {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  width: 100%;
  max-width: 1100px;
}

.tecnologia {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

.tecnologia i {
  font-size: 4rem;
  margin-bottom: 0.8rem;
}

.tecnologia.html i { color: #E34F26; }       
.tecnologia.css i { color: #1572B6; }       
.tecnologia.js i { color: #F7DF1E; }         
.tecnologia.python i { color: #3776AB; }    
.tecnologia.mysql i { color: #4479A1; }      
.tecnologia.mongo i { color: #47A248; } 
.tecnologia.java{color: #f89820;}     
.tecnologia.springboot{color: #6db33f;}
.tecnologia p {
  color: #ddd;
  font-size: 1rem;
  font-weight: 500;
}

.tecnologia:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.1);
}

/* SECCIÓN CONTACTO */
.contacto {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 2rem 3rem;
  text-align: center;
  animation: introducir 1.5s ease-out;
}
.contacto a {
  text-decoration: none; 
  color: #ddd;         
  transition: color 0.3s ease;
}
.contacto a:hover{
  color: #ffb347;
}
.contacto h2 {
  font-size: 2rem;
  color: #ffb347;
  margin-bottom: 1.5rem;
}

.contacto p {
  color: #ddd;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.contacto p i {
  margin-right: 0.5rem;
  color: #ffb347;
  font-weight: 500;
  font-size: 1rem;
  margin: 0.5rem 0;
}
/* BOTÓN HAMBURGUESA */

.menu-hamburguesa {
  display: none;
  cursor: pointer;
  font-size: 1.8rem;
  color: #ffb347;
  z-index: 1100;
}

/* Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-overlay.active {
  display: flex;
  opacity: 1;
}

.menu-contenido {
  text-align: center;
  position: relative;
}

.menu-overlay ul {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}

.menu-overlay ul li {
  margin: 1.2rem 0;
}

.menu-overlay ul li a {
  color: #ddd;
  font-size: 1.6rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.menu-overlay ul li a:hover {
  color: #ffb347;
}

.cerrar-menu {
  position: absolute;
  top: 18rem;
  left: 3.5rem;
  font-size: 2rem;
  color: #ddd;
  cursor: pointer;
}


/* RESPONSIVE */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .encabezado .links {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .content-experiencia,
  .info-box {
    max-width: 90%;
    width: 100%;
    margin: 0 auto;
    padding: 1rem;
  }

  .experiencia {
    padding: 2rem 1rem;
  }
  .proyectos-box {
    grid-template-columns: 1fr;}
  .tecnologias-box {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }
  .menu-hamburguesa {
    display: block;
  }
  .encabezado .links {
    display: none; 
  }
  .proyecto-contenido img {
  height: 160px;     
  object-fit: cover;
  border-radius: 8px;
}
}
body h2{
  color:#ffb347;
}
.info-box,
.content-experiencia p {
  font-weight: 600;
  text-shadow:
    2px 2px 4px rgba(0, 0, 0, 0.9),
    0 0 8px rgba(0, 0, 0, 0.7);
}
html {
  scroll-behavior: smooth;
}
span {
  color: #ffb347;
  font-weight: 600;
}
