/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
}

/* Header / navegación */
header {
  background-color: #1a1a1a;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo img {
  height: 42.5px;
  width: auto;
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 500;
}

nav ul li a:hover {
  color: #f0a500;
}

/* Sección hero */
.logo1 img {
  height: 250px;
  width: 250px;
}
.hero {
  background: url('imagenes/logo1.jpg') center/cover no-repeat;
  color: #595A5C;
  text-align: center;
  padding: 6rem 2rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.25rem;
}

/* Nosotros */
.section-nosotros {
  background-color: white;
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.section-nosotros h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.section-nosotros p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
}

/* Portafolio */
.section-portafolio {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.section-portafolio h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #1a1a1a;
}

.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.galeria img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.galeria img:hover {
  transform: scale(1.05);
}

/* Botón de descarga */
.descarga-portafolio {
  margin-top: 2rem;
}

.boton-descarga {
  display: inline-block;
  background-color: #595A5C;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.boton-descarga:hover {
  background-color: #f0a500;
  color: black;
}

/* Contacto */
.section-contacto {
  background-color: white;
  padding: 3rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.section-contacto h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.section-contacto p {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.section-contacto a {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 500;
}

.section-contacto a:hover {
  color: #f0a500;
}
/* Redes sociales */
#redes {
  background: #f5f5f5;
  padding: 60px 20px;
  text-align: center;
}

#redes h2 {
  font-size: 2rem;
  margin-bottom: 25px;
  color: #222;
}

.redes-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.redes-links a {
  font-size: 2rem;
  color: #333;
  transition: transform 0.3s, color 0.3s;
}

.redes-links a:hover {
  transform: scale(1.2);
  color: #f7c301;
}

/* Footer */
footer {
  background-color: #1a1a1a;
  color: white;
  text-align: center;
  padding: 1.5rem 2rem;
}

footer p {
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    display: none;
  }
}
/* Estilos para ventana emergente de imagen */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.image-modal.show {
  opacity: 1;
  pointer-events: all;
}

.image-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.image-modal-content img {
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

.image-modal-close {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 28px;
  color: #fff;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  padding: 4px 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.image-modal-close:hover {
  background: rgba(0,0,0,0.8);
}
/* Estilos para el carrusel de imágenes */
/* --- CSS del Carrusel --- */

.carrusel-container {
    max-width: 800px; /* Ajusta el ancho según tu necesidad */
    position: relative; /* ¡CLAVE! Hace que este sea el contenedor de referencia para las flechas */
    margin: auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.carrusel-slide img {
    width: 100%;
    height: auto;
    vertical-align: middle;
    /* Asegúrate de que todas las imágenes tengan un tamaño consistente para que los botones se queden en un lugar fijo */
    max-height: 450px; 
    object-fit: cover; 
}

/* Opcional: Estilos para las flechas de navegación */
.prev, .next {
    cursor: pointer;
    position: absolute; /* ¡CLAVE! Posiciona las flechas en relación con el contenedor relativo */
    top: 50%; /* Coloca el borde superior de la flecha a la mitad del contenedor */
    /* Lo siguiente centra verticalmente la flecha, moviéndola la mitad de su propia altura hacia arriba */
    transform: translateY(-50%); 
    
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    user-select: none;
    background-color: rgba(0,0,0,0.5); 
    z-index: 10; /* Asegura que las flechas estén por encima de la imagen */
}

/* Flecha Anterior (Izquierda) */
.prev {
    left: 0; /* Lo empuja completamente a la izquierda */
    border-radius: 0 3px 3px 0;
}

/* Flecha Siguiente (Derecha) */
.next {
    right: 0; /* Lo empuja completamente a la derecha */
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}
