/* Tipografía base */
body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #0f172a; /* Negro azulado oscuro */
  color: #e0e7ff; /* Azul muy claro para texto */
  line-height: 1.6;
}

/* Encabezado */
header {
  position: relative;
  padding: 40px 20px 20px 20px;
  text-align: center;
  background-color: #1e40af; /* Azul fuerte */
  color: #e0e7ff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
}

header p {
  margin-top: 10px;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Navegación y botón hamburguesa */
nav#menu {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 20px;
}

nav#menu a {
  color: #c7d2fe; /* Azul claro */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav#menu a:hover {
  color: #38bdf8; /* Azul turquesa suave */
}

/* Botón hamburguesa, oculto en escritorio */
#btn-menu {
  display: none;
  position: absolute;
  top: 20px;
  left: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1000;
  width: 30px;
  height: 25px;
  flex-direction: column;
  justify-content: space-between;
}

.hamburguer-line {
  display: block;
  height: 3px;
  background-color: #e0e7ff;
  border-radius: 2px;
}

/* Responsive para pantallas pequeñas */
@media (max-width: 768px) {
  nav#menu {
    display: none;
    flex-direction: column;
    background-color: #1e40af;
    position: fixed; /* para estar encima */
    top: 0;
    left: 0;
    width: 50vw; /* solo la mitad del ancho */
    height: 100vh; /* toda la altura */
    padding: 20px 0;
    box-shadow: 2px 0 12px rgba(0,0,0,0.5); /* sombra lateral */
    z-index: 999; /* encima de todo */
  }

  nav#menu.show {
    display: flex;
  }

  #btn-menu {
    display: flex;
    z-index: 1000; /* encima del menú */
  }

  nav#menu a {
    padding: 12px 20px;
    border-top: 1px solid #2563eb;
  }
}



/* Secciones */
main {
  padding: 60px 20px;
  max-width: 1000px;
  margin: auto;
}

section {
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

section:nth-of-type(2) { animation-delay: 0.2s; }
section:nth-of-type(3) { animation-delay: 0.4s; }
section:nth-of-type(4) { animation-delay: 0.6s; }
section:nth-of-type(5) { animation-delay: 0.8s; }

h2 {
  color: #93c5fd; /* Azul claro */
  font-size: 1.8rem;
  border-left: 4px solid #38bdf8;
  padding-left: 12px;
  margin-bottom: 20px;
}

ul {
  list-style: none;
  padding: 0;
}

ul li {
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
}

ul li::before {
  content: '✔';
  color: #38bdf8;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Portafolio */
.proyecto {
  background-color: #1e293b; /* Gris muy oscuro */
  border: 1px solid #334155;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.proyecto:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(56, 221, 248, 0.5); /* sombra azul turquesa */
}

.proyecto h3 {
  color: #38bdf8;
  margin-top: 0;
}

.proyecto a {
  display: inline-block;
  margin-top: 10px;
  background-color: #1e40af;
  color: #e0e7ff;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.proyecto a:hover {
  background-color: #38bdf8;
  color: #0f172a;
}

/* Contacto */
#contacto a {
  color: #93c5fd;
  font-weight: 600;
  text-decoration: none;
}

#contacto a:hover {
  text-decoration: underline;
  color: #38bdf8;
}

/* Footer */
footer {
  background-color: #0f172a;
  color: #94a3b8;
  text-align: center;
  padding: 30px 20px;
  font-size: 0.9rem;
  border-top: 1px solid #1e293b;
}

/* Animación */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 600px) {
  main {
    padding: 20px 15px;
  }

  header h1 {
    font-size: 2rem;
  }

  nav#menu a {
    margin: 0;
    font-size: 1rem;
  }

  .proyecto {
    padding: 15px;
  }
}
.imagen-inicio {
  display: block;
  margin: 40px auto 20px; /* arriba auto abajo */
  max-height: 390px; /* ajusta según tu imagen */
  height: auto;
  width: auto;
  max-width: 90%;
  object-fit: contain;
  animation: fadeIn 1s ease-in-out;
}

/* Animación suave de entrada */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInSutil {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.imagen-inicio {
  display: block;
  margin: 40px auto 20px;
  max-height: 390px;
  max-width: 90%;
  height: auto;
  width: auto;
  object-fit: contain;
  animation: fadeInSutil 1s ease-out;
}

/*aqui va la franja del menu nav*/
#menu {
  border-bottom: 2px solid #00bfff; /* Línea azul debajo */
  padding-bottom: 10px;
  margin-bottom: 30px;
  text-align: center;
}

#menu a {
  color: white;
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
  position: relative;
}

#menu a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #00bfff;
  transition: width 0.3s ease-in-out;
}

#menu a:hover::after {
  width: 100%;
}
.redes-sociales {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  margin-top: 20px;
}

.redes-sociales a {
  color: #00bfff;
  font-size: 28px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.redes-sociales a:hover {
  transform: scale(1.2);
  color: #ffffff;
}

/* === GALERÍA DE IMÁGENES === */
#galeria {
  margin-top: 60px;
}

#galeria h2 {
  color: #93c5fd;
  font-size: 1.8rem;
  border-left: 4px solid #38bdf8;
  padding-left: 12px;
  margin-bottom: 20px;
}

.carrusel-container {
  position: relative;
  max-width: 100%;
  margin: auto;
  padding: 10px 0;
}

#carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 10px;
  padding: 10px;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

#carousel::-webkit-scrollbar {
  display: none;
}

.slide {
  scroll-snap-align: start;
  flex: 0 0 80%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(56, 221, 248, 0.2);
  background: #1e293b;
  transition: transform 0.3s ease;
}

.slide:hover {
  transform: scale(1.02);
}

.image-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  cursor: pointer;
}

/* Modal de imagen ampliada */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.modal img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
}
.boton-ver-mas {
  text-align: center;
  margin-top: 40px;
}

.btn-azul {
  background-color: #1e40af;
  color: #e0e7ff;
  padding: 20px 100px;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  display: inline-block;
  font-size: 20px;
}

.btn-azul:hover {
  background-color: #38bdf8;
  color: #0f172a;
  transform: scale(1.05);
}

/* Boton flotante de whatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #38bdf8; /* Azul turquesa, igual a tu sitio */
  color: white;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 26px;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.7);
  background-color: #0ea5e9; /* Un azul más intenso al pasar el mouse */
}


.icono-compartir {
  color: #00bfff; /* mismo tono azul de los otros iconos */
  font-size: 28px;
  transition: transform 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

.icono-compartir:hover {
  color: #38bdf8; /* azul turquesa */
  transform: scale(1.2);
}


footer .footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: right;
  gap: 40px;
  margin-bottom: 20px;
}

footer .footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}

footer .footer-links a {
  color: #c7d2fe;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

footer .footer-links a:hover {
  color: #38bdf8;
}

footer p {
  color: #94a3b8;
  font-size: 0.9rem;
  margin: 10px 0 0 0;
}





/* Contenedor centrado y botón estilo WhatsApp */
.btn-comprar-whatsapp {
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: center;     /* Centra verticalmente si quieres */
    margin: 20px 0;          /* Espaciado opcional */
}

.btn-comprar-whatsapp button:first-child {
    background-color: #16912a; /* Verde WhatsApp */
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-comprar-whatsapp button:first-child:hover {
    background-color: #38ee7a; /* Verde más oscuro al pasar el mouse */
}



/* ==== Tarjetas de productos ==== */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.producto-card {
  position: relative;
  background-color: #1e293b; /* Igual al estilo de .proyecto */
  border: 1px solid #334155;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.producto-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5); /* Turquesa al hover */
}

.producto-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #334155;
}

.producto-info {
  padding: 15px;
  text-align: center;
}

.producto-nombre {
  font-size: 1.1rem;
  font-weight: bold;
  color: #e0e7ff;
  margin-bottom: 8px;
}

.producto-precio {
  font-size: 1rem;
  font-weight: bold;
  color: #38bdf8; /* Azul turquesa */
}

/* Etiqueta superior derecha (ej. descuento, nuevo, oferta) */
.producto-etiqueta {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #e11d48; /* rojo fuerte para contraste */
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* Responsivo */
@media (max-width: 992px) {
  .productos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .productos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* Botón "Más información" en productos */
.btn-info {
  display: inline-block;
  margin: 12px auto 15px; /* margen arriba/abajo centrado */
  padding: 10px 18px;
  background-color: #1e40af; /* Azul fuerte de tu paleta */
  color: #e0e7ff;
  font-size: 0.9rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.btn-info:hover {
  background-color: #38bdf8; /* Azul turquesa */
  color: #0f172a;
  transform: scale(1.05);
}

/* ajuste de imagenes si no funciana borra desde aqui para que no se rompa el codigo*/
/* Estilos para el Modal de la Galería */
.modal {
  display: none; /* Oculto por defecto */
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9); /* Fondo oscuro */
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

.modal img {
  max-width: 90%;
  max-height: 80vh; /* No más del 80% de la altura de la pantalla */
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  object-fit: contain; /* Mantiene la proporción */
  transition: transform 0.3s ease;
}

/* En móviles, permitimos que la imagen sea un poco más grande */
@media (max-width: 768px) {
  .modal img {
    max-width: 95%;
    max-height: 70vh;
  }
}

.boton-proyectos {
  text-align: center;
  margin-top: 40px;
}

.btn-azul2 {
  background-color: #1e40af;
  color: #e0e7ff;
  padding: 18px 40px;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  display: inline-block;
  font-size: 20px;
}

.btn-azul2:hover {
  background-color: #38bdf8;
  color: #0f172a;
  transform: scale(1.05);
}
