:root {
  --primary: #3b4550;
  --primary-dark: #0a3d66;
  --primary-hover: #0d5ba8;
  --primary-light: #09f;
  --background: #06182a;
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.1);
  --card-bg: #1e293b;
  --shadow: rgba(0, 0, 0, 0.3);
  --input-bg: #1e293b;
  --hsla-example: hsla(210, 100%, 56%, 1);
  --verde: #7fff58;
}

body {
  /* font-family: 'Inter', sans-serif; */
  font-family: 'Press Start 2P', monospace;
  scroll-behavior: smooth;
  /* background-color: black; */
  background-color: #282828;

}

.bg-dark {
  background-color: black !important;
}

.container {
  max-width: 90%;
}

.navbar-brand:hover {
  scale: 0.9;
  text-decoration: none;

}

/* HERO */
.hero {
  min-height: 50vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  padding-top: 2rem;
  color: #7fff58;
  font-size: 4rem;
  font-weight: 700;
}

.hero h2 {

  font-size: 2rem;
  font-weight: 700;
}

.hero p.lead {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.nav-link {
  text-decoration: none;
  /* Esto elimina el subrayado */
  color: white;
}

.nav-link:hover {
  text-decoration: none;
  /* También asegura que no se subraye al pasar el ratón */
  color: var(--verde);
  scale: 0.9;
}



.btn-primary {
  text-decoration: none;

  background: #238636;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  text-decoration: none;

  transform: scale(1.05) translateY(-3px);
  background: #2ea043;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* PROYECTOS */
.project-card {
  background: #111;
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

h2 {
  font-weight: 700;
  margin-bottom: 2rem;
}

/* LINKS */
a {
  color: #58a6ff;
  text-decoration: none;
}

a:hover {
  color: #1f6feb;
  text-decoration: underline;
}

/* SECCIONES */

.section {
  color: white;
  /* background-color: #282828; */
  background-color: black;
  /* opacity: 0.2; */
  /* transform: scale(0.98); */
  /* ligeramente más pequeña */
  /* transition: opacity 0.8s ease, transform 0.8s ease; */
}




.bi {
  font-size: xx-large;
  padding: 0.2%;
}

.titulo {
  padding: 2%;
  border: 2px solid var(--verde);
  border-radius: 1rem 1rem 10rem 1rem;
}


.titulo-animado {
  display: inline-block;
  animation: moverArribaAbajo 1.5s ease-in-out infinite;
}

@keyframes moverArribaAbajo {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}




p {
  font-size: large;
}

/* revelar al 20%*/
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

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

.colorhero {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
}


.project-card {
  background-color: #1c1c1c;
  border: none;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 1);
  height: 100%;
  justify-content: stretch;

}


.card-title {
  font-weight: bold;
  margin-bottom: 15px;
  border-radius: 1rem 1rem 10rem 1rem;
  background-color: var(--verde);

  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  text-align: center;
  color: black;
}


.card-text {
  margin-bottom: 15px;
  color: white;
  /* Color de texto secundario */

}

.project-card:hover {
  transform: translateY(-5px);
  transition: transform 0.3s ease;
}



.image-grid img:hover {
  transform: scale(1.05);
}

.image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  justify-content: center;
}

.image-grid img {
  flex: 1 1 150px; 
  max-width: 250px;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* fondo de imagen */
 .card {
  background-color: #1c1c1c; 
  border: none;
}

/* .card img{
border-radius: 10px solid while;
} */






/* LIGHTBOX */


.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  z-index: 5000;
  padding: 20px;
  overflow-y: auto;
}

.lightbox-content {
  background: #111;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 70%;
  max-height: 70%;
  color: #fff;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
}

.lightbox.show {
  display: flex;
}

/* BOTON LIGHTBOX*/
.lightbox-close {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 2%;
  right: 2%;
  /* background: #f44336;  */
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 10px 10px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-close:hover {
  background: #d32f2f;
}


/* lupa de card */

.project-card::after {
  content: "🔍";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-500%, -50%) scale(0);
  font-size: 2rem;
  transition: all 0.3s ease;
}

.project-card:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(2);
}

