
body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #0f172a; 
  color: #e0e7ff; 
  line-height: 1.6;
}


header {
  position: sticky;
  top: 0;
  z-index: 998;
  padding: 40px 20px 20px 20px;
  text-align: center;
  background-color: #0f172a; 
  opacity: 1; 
  color: #e0e7ff;
  box-shadow: none;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
}

header p {
  margin-top: 10px;
  font-size: 1.1rem;
  opacity: 0.9;
}


nav#menu {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 20px;
}

nav#menu a {
  color: #c7d2fe; 
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav#menu a:hover {
  color: #38bdf8; 
}


#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;
}


@media (max-width: 768px) {
    header {
    background-color: #1e293b !important;
  }
  nav#menu {
    display: none;
    flex-direction: column;
    background-color: #0f172a;
    position: fixed; 
    top: 0;
    left: 0;
    width: 50vw; 
    height: 100vh; 
    padding: 20px 0;
    box-shadow: 2px 0 12px rgba(0,0,0,0.5); 
    z-index: 999; 
  }

  nav#menu.show {
    display: flex;
  }

  #btn-menu {
    display: flex;
    z-index: 1000; 
  }

  nav#menu a {
    padding: 12px 20px;
    border-top: 1px solid #2563eb;
  }
}




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; 
  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;
}


.proyecto {
  background-color: #1e293b; 
  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); 
}

.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 a {
  color: #93c5fd;
  font-weight: 600;
  text-decoration: none;
}

#contacto a:hover {
  text-decoration: underline;
  color: #38bdf8;
}


footer {
  background-color: #0f172a;
  color: #94a3b8;
  text-align: center;
  padding: 30px 20px;
  font-size: 0.9rem;
  border-top: 1px solid #1e293b;
}


@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@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; 
  max-height: 390px; 
  height: auto;
  width: auto;
  max-width: 90%;
  object-fit: contain;
  animation: fadeIn 1s ease-in-out;
}


@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;
}


#menu {
  border-bottom: 2px solid #00bfff; 
  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: center;
  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;
}


#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 {
  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);
}


.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #38bdf8; 
  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; 
}


.icono-compartir {
  color: #00bfff; 
  font-size: 28px;
  transition: transform 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

.icono-compartir:hover {
  color: #38bdf8; 
  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;
}






.btn-comprar-whatsapp {
    display: flex;
    justify-content: center; 
    align-items: center;     
    margin: 20px 0;          
}

.btn-comprar-whatsapp button:first-child {
    background-color: #16912a; 
    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; 
}




.productos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.producto-card {
  position: relative;
  background-color: #1e293b; 
  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); 
}

.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; 
}


.producto-etiqueta {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #e11d48; 
  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);
}


@media (max-width: 992px) {
  .productos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .productos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .productos-grid {
    grid-template-columns: 1fr;
  }
}



.btn-info {
  display: inline-block;
  margin: 12px auto 15px; 
  padding: 10px 18px;
  background-color: #1e40af; 
  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; 
  color: #0f172a;
  transform: scale(1.05);
}



.modal {
  display: none; 
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9); 
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

.modal img {
  max-width: 90%;
  max-height: 80vh; 
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  object-fit: contain; 
  transition: transform 0.3s ease;
}


@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);
}

.proyecto-img-wrap {
  width: 100%;
  height: 160px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.proyecto-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.proyecto-img-wrap.ilustracion {
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

.proyecto-img-wrap svg {
  width: 60px;
  height: 60px;
  opacity: 0.4;
}

.imagen-inicio {
  transition: all 0.3s ease;
}

.logo-mini {
  position: fixed;
  top: 8px;
  right: 20px;
  max-height: 75px;
  width: auto;
  z-index: 999;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.4s ease;
}
header.scrolled .logo-mini {
  opacity: 1;
}
@media (max-width: 768px) {
  .logo-mini { max-height: 50px; top: 6px; right: 12px; }
}
body:has(.portada) .logo-mini { opacity: 0; }
body:has(.portada) header.scrolled .logo-mini { opacity: 1; }