/* Estilos Globales y Fondo de Pantalla */
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(rgba(27, 27, 50, 0.85), rgba(27, 27, 50, 0.85)), 
              url('Imagenes/Fondo de pantalla.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; 
  font-family: 'Quicksand', sans-serif;
  color: white;
}

/* Sección Hero */
.hero {
  
  min-height: 450px;
  text-align: center;
  color: rgb(136, 13, 236); 
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent; 
}

/* Barra de navegacion */
.navbar {
  padding: 2rem;
  background-color: #280246d8;
}

.navbar-nav {
  gap: 2rem;
}

.navbar .nav-link {
  color: white !important;
  font-family: 'Share Tech Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 1.15rem;
  position: relative;
  padding-bottom: 4px !important;
  transition: color 0.3s ease;
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #7ade30;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar .nav-link:hover {
  color: #7ade30 !important;
}

.navbar .nav-link:hover::after {
  width: 100%;
}

.navbar .nav-link.active {
  color: #7ade30 !important;
}

.navbar .nav-link.active::after {
  width: 100%;
}


.navbar-collapse {
  align-items: center;
  justify-content: space-between;
}

/* Estilos generales */
section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent; 
}

h1 {
  font-size: 2.5rem;
  font-family: 'Berkshire Swash', cursive;
  color: #7ade30; 
  text-shadow: 2px 2px 10px rgb(255, 255, 255);
}

.seccion-oscura {
  color: white;
  background-color: rgba(27, 27, 50, 0.5); 
}

.seccion-clara {
  color: white; 
  background-color: transparent;
}

.seccion-titulo {
  font-size: 2.5rem;
  padding: 15px 0;
  font-family: 'Berkshire Swash', cursive;
  color: white;
}

.seccion-descripcion {
  font-size: 1.2rem;
  color: #d1c4e9; 
}

.seccion-texto {
  font-size: 1.2rem;
}

.btn-info {
  font-size: 1.1rem;
  margin: 20px;
}

/* Hero Principal Content */
.hero-principal {
  padding: 3rem;
}

.hero-imagen-desarrollador {
  width: 200px;
  height: 200px;
  margin: 30px;
  object-fit: cover;
  border: none;
  outline: 3px solid #7ade30;
  outline-offset: 6px;
  box-shadow: 0 0 15px rgba(122, 222, 48, 0.35);
}

.hero-principal h2 {
  font-size: 1.5rem;
  color: #e0e0e0;
}

.btn-descargar-cv {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 28px;
  background-color: #7ade30;
  color: #0a0a23;
  font-weight: bold;
  font-family: 'Share Tech Mono', monospace;
  text-decoration: none;
  border-radius: 100px;
  transition: 0.3s;
}

.btn-descargar-cv:hover {
  background-color: #64c11f;
  color: #0a0a23;
  transform: translateY(-2px);
}

.hero-inferior-imagen {
  width: 100%;
  max-width: 500px;
  margin-top: 20px;
}

/* Sobre mi */
.sobre-mi {
  height: auto;
  padding: 80px 20px;
}

.sobre-mi .contenedor {
  max-width: 600px;
  text-align: center;
}

.separador-verde {
  width: 60px;
  height: 3px;
  background-color: #7ade30;
  margin: 0 auto 25px;
  border-radius: 2px;
}

.resaltado {
  color: #7ade30;
  font-weight: bold;
}

/* Experiencia */
.experiencia {
  padding: 60px 40px;
}

.experiencia .columna {
  padding: 30px;
  border: 2px solid #8080804d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-in;
  border-radius: 15px;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.05); 
  backdrop-filter: blur(5px); 
}

.experiencia .columna:hover {
  color: white;
  background-color: rgba(27, 27, 50, 0.8);
}

.experiencia i {
  font-size: 2.5rem;
  color: #7ade30;
  background-color: #0a0a23;
  padding: 10px 20px;
  border-radius: 50%;
  margin-bottom: 15px;
}

.experiencia-titulo {
  font-size: 26px;
  font-family: 'Berkshire Swash', cursive;
  margin-bottom: 15px;
}

.badges-contenedor {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin-top: 15px;
}

.badge {
  padding: 8px 12px;
  font-size: 0.9rem;
}

/* Proyectos */
.proyectos-recientes {
  padding: 60px 20px;
}

.proyecto {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  height: 250px;
  background-color: #8803e0ce;
  margin-bottom: 20px;
}

.proyecto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(27, 27, 50, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: white;
  padding: 10px;
}

.proyecto:hover img {
  transform: scale(1.1);
}

.proyecto:hover .overlay {
  opacity: 1;
}

.overlay p {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: center;
}

.overlay .iconos-contenedor {
  display: flex;
  gap: 20px;
}

.overlay i {
  color: white;
  font-size: 35px;
  transition: color 0.2s;
}

.overlay i:hover {
  color: #7ade30;
}

/* Mi Enfoque */
.articulos {
  padding: 60px 20px 120px;
}

.articulos .container {
  max-width: 1100px;
}

.enfoque-item {
  padding: 30px;
  border: 2px solid #8080804d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.2s ease-in;
  border-radius: 15px;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
}

.enfoque-item:hover {
  background-color: rgba(27, 27, 50, 0.8);
}

.enfoque-item i {
  font-size: 2.2rem;
  color: #7ade30;
  background-color: #0a0a23;
  padding: 10px 20px;
  border-radius: 50%;
  margin-bottom: 15px;
}

.enfoque-titulo {
  font-size: 20px;
  font-weight: bold;
  color: white;
  margin-bottom: 8px;
}

.enfoque-item p {
  color: #d1c4e9;
  font-size: 0.95rem;
}

/* Contacto */
.contacto .rectangulo {
  margin-top: -5rem;
  background: linear-gradient(135deg, rgba(56, 8, 94, 0.95), rgba(27, 27, 50, 0.95));
  border: 1px solid rgba(122, 222, 48, 0.6);
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 0 35px rgba(122, 222, 48, 0.4);
}

.contacto button {
  color: white;
  font-weight: bold;
  background-color: transparent;
  border: 2px solid #7ade30;
  padding: 15px 30px;
  border-radius: 100px;
  transition: 0.3s;
}

.contacto button:hover {
  background-color: #7ade30;
  color: #0a0a23;
  border-color: #7ade30;
}

/* Footer */
footer {
  padding: 60px 20px;
  background-color: rgba(27, 27, 50, 0.9);
}

.footer-logo {
  height: 60px;
  margin-bottom: 20px;
}

.iconos-redes-sociales a {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px;
  border: 2px solid white;
  border-radius: 50%;
  text-decoration: none;
  color: white;
}

.iconos-redes-sociales a:hover {
  background-color: white;
  color: #1b1b32;
}

/* Responsivo */
@media screen and (max-width: 767px) {
  .navbar-brand { display: none; }
  .contacto .rectangulo { margin-top: 2rem; }
  body { background-attachment: scroll; }
}

/* Botón flotante de WhatsApp */
.whatsapp-flotante {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  transition: transform 0.2s ease;
}

.whatsapp-flotante i {
  color: white;
  font-size: 32px;
}

.whatsapp-flotante:hover {
  transform: scale(1.1);
}