@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Poppins:wght@300;400;500;600&display=swap');

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Playfair Display', serif;
    }

    body {
      background:#91ADC8;
      color: #222;
      scroll-behavior: smooth;
    }

    /* Header */
    header {
      display: flex;              /* Activa flexbox */
      justify-content: center;    /* Centra horizontalmente el grupo (logo + texto) */
      align-items: center;
      padding: 12px 16px;
      background-color: #fff;
      box-shadow: 0 2px 10px rgba(208, 237, 255, 0.819);
      position: relative;
    }
    
    .logo {
      max-width: 66px; 
      height: auto;
      display: block;
      margin-left: 15px;           /* separación entre logo y texto */
    }

    header h1 {
      font-size: 2.4rem;
      color: #131313;
      font-family: 'Futura', sans-serif;
      margin: 0;  /* elimina márgenes por defecto */
      margin-left: 100px; /* mueve el texto hacia la derecha */
      top: -40px; /* Subirá el texto */
      position: relative;

    }


    /* (4) BARRA DE NAVEGACIÓN */
/* 🔹 Pega este bloque debajo de tus estilos del header */

nav {
  background-color: #f8f8f8; /* fondo claro que combina con estilo vintage */
  padding: 10px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* sutil sombra */
  position: static;
}

.nav-menu {
  list-style: none;
  display: flex;
  justify-content: center; /* centra horizontalmente */
  align-items: center;
  gap: 30px; /* espacio entre enlaces */
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  text-decoration: none;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: #333;
  font-size: 1.1rem;
  transition: color 0.3s ease, transform 0.2s ease;
}

.nav-menu li a:hover {
  color: #b88a44; /* tono dorado vintage */
  transform: scale(1.05);
}


    /* Hero con fondo */
    .hero {
      position: relative;
      width: 100%;
      height: 100vh;
      background: url("Imagen/fondo1.3.png") center/cover no-repeat;
      display: flex;
      justify-content: center;
      align-items: center;
      text-align: center;
      color: #fff;
      overflow: hidden;
    }

    .hero::after {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(236, 228, 228, 0.05); /* mucho más claro */
    }

    .hero-content {
      position: relative;
      z-index: 2;
      animation: fadeInUp 1s ease-in-out;
    }
    
    /* === Banner Promocional === */

    .promo-moneda {
  text-align: center;
  margin: 30px auto;
  width: 90%;
  max-width: 1200px;
}

.promo-moneda img {
  width: 100%;
  height: 150%;          /* mantiene proporción original */
  object-fit: cover; 
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(78, 79, 58, 0.4);
  animation: fadeInUp 1s ease-in-out;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease-in-out;
}



    .promo-moneda h2 {
      font-size: 58px;
      margin-bottom: 10px;
    }

    .promo-moneda p {
      font-size: 26px;
      margin-bottom: 10px;
      font-family: 'Poppins', sans-serif;
    }

    .promo-moneda ul {
      list-style: none;
      padding: 0;
      margin-bottom: 15px;
    }

    .promo-moneda ul li {
      font-size: 26px;
      margin: 5px 0;
      font-family: 'Poppins', sans-serif;
    }

    .promo-moneda small {
      display: block;
      margin-top: 10px;
      font-size: 18px;
      opacity: 0.8;
      font-family: 'Poppins', sans-serif;
    }

    @keyframes fadeInUp {
      from { opacity: 0; transform: translateY(40px); }
      to { opacity: 1; transform: translateY(0); }
    }

    
    /* Estilo para el footer */
  .footer {
  background-color: #323131;
  color: #fff;
  text-align: center;
  padding: 15px;
  font-size: 14px;
  margin-top: 30px;
  border-top: 1px solid #333;
  }

  /* 🔹 Mejora N°4: Hover accesible en enlaces del footer */
  .footer a {
   color: #fff;
   text-decoration: none;
   transition: color 0.3s;
  }
  .footer a:hover,
  .footer a:focus {
   color: #ccc;
   text-decoration: underline;
   outline: none;
  }


    /* Banner flotante */
    .banner-flotante {
      position: fixed;
      bottom: 20px;
      right: 20px;
      background: #ff7e5f;
      color: #fff;
      padding: 15px 20px;
      border-radius: 15px;
      box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
      font-size: 14px;
      text-align: center;
      z-index: 1000;
      animation: pulse 1.5s infinite;
      transition: transform 0.3s ease;
    }
    .banner-flotante:hover {
     transform: scale(1.05);
    }

    .banner-flotante a {
      display: inline-block;
      color: #fff;
      font-weight: bold;
      margin-top: 5px;
      text-decoration: underline;
    }

    @keyframes pulse {
      0% { transform: scale(1); }
      50% { transform: scale(1.05); }
      100% { transform: scale(1); }
    }

    /* Catálogo de productos */
    .productos {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
      gap: 25px;
      padding: 40px;
      max-width: 1200px;
      margin: auto;
    }

    .producto {
      background: #fff;
      border-radius: 15px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
      overflow: hidden;
      cursor: pointer;
      transition: transform 0.3s ease;
    }

    .producto:hover {
      transform: translateY(-5px);
    }

    .producto img {
      width: 100%;
      height: 220px;
      object-fit: cover;
      
    }

    .producto-info {
      padding: 15px;
      text-align: center;
    }

    .producto-info h3 {
      font-size: 18px;
      margin-bottom: 5px;
    }

    .producto-info p {
      font-size: 14px;
      color: #777;
      margin-bottom: 8px;
    }

    .precio {
      font-size: 20px;
      font-weight: bold;
      color: #000;
    }

    /* Modal */
    .modal {
      display: none;
      position: fixed;
      z-index: 999;
      inset: 0;
      background-color: rgba(0, 0, 0, 0.7);
      justify-content: center;
      align-items: center;
      padding: 20px;
    }

    .modal-content {
      background-color: #fff;
      padding: 20px;
      border-radius: 15px;
      max-width: 700px;
      width: 100%;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
      position: relative;
      animation: fadeIn 0.3s ease-in-out;
      display: flex;               
      flex-direction: column;
      align-items: center;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: scale(0.95); }
      to { opacity: 1; transform: scale(1); }
    }

    .modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 18px;
      margin-bottom: 15px;
    }

    .close {
     position: absolute;     /* ✅ coloca la X en la esquina */
     top: 15px;              /* distancia desde arriba */
     right: 20px;            /* distancia desde la derecha */
     font-size: 28px;        /* tamaño más visible */
     color: #333;
     cursor: pointer;
     transition: color 0.3s ease;
     z-index: 10; 
    }
    .close:hover {
     color: #ff7e5f; /* 🔹 Mejora N°7: feedback visual */
    }

   /* ======= CARRUSEL AJUSTADO ======= */
  .slider-container {
    position: relative;
    width: 100%;
    max-width: 650px;
    height: 400px;
    overflow: hidden;
    margin: 0 auto;
  }

  .slider-images {
   display: flex;
   transition: transform 0.45s ease-in-out;
   will-change: transform;
  }

.slider-images img {
  min-width: 100%;      /* cada imagen ocupa todo el ancho del contenedor */
  height: auto;
  object-fit: contain;     /* mantiene imagen completa en el contenedor, sin deformar */
  flex-shrink: 0;
  display: block;
  border-radius: 8px;    /* opcional, bordes suaves */
  max-height: 70vh;
}


    

    .prev, .next {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(0, 0, 0, 0.5);
      color: white;
      border: none;
      padding: 10px;
      cursor: pointer;
      font-size: 18px;
      border-radius: 50%;
      z-index: 10;
    }

    .prev { left: 10px; }
    .next { right: 10px; }

    /* Puntos indicadores */
    .dots {
      text-align: center;
      margin-top: 10px;
    }

    .dot {
      height: 10px;
      width: 10px;
      margin: 0 3px;
      background-color: #bbb;
      border-radius: 50%;
      display: inline-block;
      cursor: pointer;
      transition: background-color 0.3s;
    }

    .dot.active {
      background-color: #333;
    }

    /* Descripción del producto en el modal */
    .modal-description {
     margin: 15px 0;
     font-size: 15px;
     line-height: 1.5;
     color: #333;
     text-align: justify;
     font-family: 'Poppins', sans-serif; /* para que combine con lo demás */
    }

    /* Botón WhatsApp */
    .whatsapp-btn {
      display: inline-block;
      background-color: #25d366;
      color: #fff;
      padding: 12px 20px;
      border-radius: 50px;
      text-decoration: none;
      font-size: 16px;
      margin-top: 15px;
      transition: transform 0.2s ease-in-out;
    }

    .whatsapp-btn:hover {
      transform: scale(1.05);
      background-color: #1ebe5d;
    }

    .whatsapp-btn img {
      width: 20px;
      vertical-align: middle;
      margin-right: 8px;
      animation: bounce 1s infinite;
    }

    @keyframes bounce {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-5px); }
    }

   
  /* ===============================
   BOTÓN FLOTANTE WHATSAPP
   =============================== */
  .whatsapp-link {
  position: fixed;
  top: 20px;      /* ajusta la distancia desde arriba */
  right: 20px;    /* ajusta la distancia desde la derecha */
  font-size: 20px;
  color: #424242;    /* gris plomo */
  text-decoration: none;
  font-family: Arial, sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;       /* espacio entre icono y texto */
  background: #f9f9f9;  /* fondo opcional, puedes quitarlo */
  padding: 8px 12px;
  border-radius: 30px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: all 0.2s ease-in-out;
}

.whatsapp-link i {
  font-size: 22px;
}

.whatsapp-link:hover {
  background: #eee;
  color: #000;
  transform: scale(1.05); /* 🔹 Mejora extra: efecto visual hover */
}
/* 🔹 Mejora extra: botón flotante moderno */
#btn-up {
  position: fixed;
  bottom: 90px;
  right: 25px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 20px;
  cursor: pointer;
  display: none;
  z-index: 999;
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease, transform 0.3s ease;
}
#btn-up:hover {
  background-color: #555;
  transform: translateY(-3px);
}
   /* ===========================
   📱 MÓVILES (menos de 768px)
   =========================== */
@media (max-width: 768px) {
  header nav ul {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
   /* Contenedor del logo y nombre */
  .logo-container {
    display: flex;
    flex-direction: row;        /* ✅ Logo y texto en línea */
    align-items: center;        /* ✅ Centra verticalmente */
    justify-content: center;    /* ✅ Centra horizontalmente */
    gap: 8px;                   /* Espacio entre logo y texto */
    text-align: center;         /* ✅ Refuerzo para el texto */
  }
  
  .logo {
    width: 50px;
    height: auto;
    margin-left: 0; /* ✅ Elimina desplazamiento lateral si había */
  }

  header h1 {
    font-size: 1.6rem;
    margin-left: 0;
    top: 0;
    position: static;
    text-align: center; /* ✅ Asegura centrado del texto */
  }

  .productos {
    grid-template-columns: 1fr;
  }

  .whatsapp-link {
   right: 12px;              /* lo acerca un poco al borde */
   bottom: 12px;
   padding: 10px;            /* más compacto */
   font-size: 0;             /* oculta el texto visualmente */
   border-radius: 50%;       /* lo convierte en un círculo */
   width: 50px;
   height: 50px;
   justify-content: center;  /* centra el ícono dentro */
   align-items: center;
 }

  /* 🔹 Opcional: ocultar texto para que quede solo el icono */
  .whatsapp-link span,
  .whatsapp-link::after {
    display: none;
  }

  .whatsapp-link i {
    font-size: 22px;
  }

  .slider-container {
    max-width: 90%;
    height: auto;
    margin: 0 auto;
  }

  .slider-images img,
  #slider-images img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    max-height: 50vh;
    display: block;
  }

  #modal {
    width: 95%;
    padding: 10px;
  }

  .hero {
    height: 42vh;
    background-position: top;
    background-size: contain;
    overflow: hidden;
  }

  .hero-content {
    padding: 20px;
  }

  .promo-moneda {
  margin-top: 5px !important;   /* reduce el salto entre ambas secciones */
  }

}

  .hero {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  }

  /*.promo-moneda {
  margin-top: 5px !important;   /* reduce el salto entre ambas secciones */
 /* }/*

/* ===========================
   📲 TABLETS (768px – 1024px)
   =========================== */
  @media (min-width: 768px) and (max-width: 1024px) {
   .productos {
    grid-template-columns: repeat(2, 1fr); /* dos columnas */
   }

   .slider-container {
    max-width: 85%;       
    height: auto;         
    margin: 0 auto;       
   }

   .slider-images img,
   #slider-images img {
    width: 100%;
    height: auto;
    object-fit: contain;  /* 🔹 mantiene proporciones sin deformar */
    max-height: 60vh;     /* 🔹 evita que tape botones o desborde */
    display: block;
  }

   header nav ul {
    gap: 20px;
   }
  }

/* ===========================
   🖥️ COMPUTADORAS (más de 1024px)
   =========================== */
  @media (min-width: 1024px) {
   .productos {
    grid-template-columns: repeat(3, 1fr); /* tres columnas en pantallas grandes */
  }

   .slider-container {
    height: auto;
    max-width: 800px;
    margin: 0 auto;
  }

  .slider-images img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 70vh;
  display: block;
}

 }
