:root {
  --background-color: #0d1117;
  --text-color: #c9d1d9;
  --accent-color: #58a6ff;
  --highlight-color: #f78166;
  --card-bg: #161b22;
  --button-bg: #21262d;
  --button-hover: #30363d;
  --color-white: #ffffff;
  --color-verde: #00bcd4;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: 'Montserrat', sans-serif;
  margin: 0 auto;
  overflow-x: hidden;
}

h1, h2 {
  color: var(--color-white);
  text-align: center;
  text-transform: uppercase;
}

img {
  max-width: 100%;
  height: auto;
}

header .titulo {
  font-size: 2rem;
}

header .span {
  color: var(--accent-color);
  font-size: 1.5rem;
  font-weight: bold;
}

header .span span {
  color: var(--highlight-color);
  font-size: 1.1rem;
}

/* Carrusel */
.portafolio {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 85vh;
  background-color: #131a25;
}

@media (max-width: 768px) {
  .portafolio {
    height: 70vh;
  }
  
}

@media (max-width: 480px) {
  .portafolio {
    height: 60vh;
  }
  
}


.carrusel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  
}

.contenedor {
  position: relative;
  width: 220px;
  height: 320px;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateY(0deg);
  transition: transform 1s;
  margin: 0 auto;
}

.contenedor span {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotateY(calc(var(--i) * 45deg)) translateZ(325px);
  transform-style: preserve-3d;
  font-size: 0; /* Oculta cualquier texto no intencional */
  }
  


.contenedor img {
  width: 250px;
  height: 350px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 15px 25px rgba(255, 255, 255, 0.2);
}



.nav-button:hover {
  background-color: var(--button-hover);
}

/* Responsive */
@media (max-width: 768px) {
  .contenedor img {
    width: 200px;
    height: 300px;
  }

  .nav-button {
    font-size: 1.5rem;
    padding: 0.4rem 0.8rem;
  }
}

@media (max-width: 480px) {
  .contenedor img {
    width: 150px;
    height: 250px;
    margin-top: 2rem;
  }

  .nav-button {
    font-size: 1.2rem;
  }

  .contenedor span {
    transform: rotateY(calc(var(--i) * 45deg)) translateZ(225px);
  }
}

@media (max-width: 320px) {
  .contenedor img {
    width: 100px;
    height: 150px;
    margin-top: 5rem;
  }

  .nav-button {
    font-size: 1rem;
    padding: 0.3rem 0.6rem;
  }

  .contenedor span {
    transform: rotateY(calc(var(--i) * 45deg)) translateZ(175px);
  }
}

/* Imagen destacada */
.imagen-1 {
  text-align: center;
  margin: 0 auto;
}

.imagen-1 img {
  width: 60%;
  border-top-right-radius: 25px;
  border-top-left-radius: 25px;
}

@media (max-width: 768px) {
  .imagen-1 img {
    width: 100%;
  }
  
}

/* Footer */
.footer {
  display: flex;
  justify-content: center;
  background-color: var(--button-bg);
  color: var(--accent-color);
  padding: 1rem 0;
  text-transform: uppercase;
}

.footer-links a {
  color: var(--color-white);
  margin: 0.2rem;
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--highlight-color);
}

.footer-contenedor p {
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.contenedor span img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

/* Efecto zoom al hacer hover */
.contenedor span:hover img {
  transform: scale(1.2);
  box-shadow: 0 25px 35px rgba(255, 255, 255, 0.35);
  z-index: 10;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.lightbox span {
  position: absolute;
  top: 2rem;
  right: 3rem;
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
}

.hidden {
  display: none;
}











