* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #fff0f6; /* rosado suave */
  color: #222;
}


/* ===== HEADER ===== */
header {
  background-image:
    linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
    url("../images/hero.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 80px 16px;
  text-align: center;
}


/* ===== CONTENEDOR ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

h2 {
  margin: 20px 0;
  font-size: 28px;
}

/* ===== GRID PRODUCTOS ===== */
.grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  align-items: start;
}

/* ===== TARJETA PRODUCTO ===== */
.producto{
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
  transition: transform .15s ease;
}

.producto:hover{ transform: translateY(-3px); }

/* ===== IMAGEN PRODUCTO ===== */
.producto img{
  width: 100%;
  height: 160px;      /* 👈 más chico aún */
  object-fit: cover;
  display: block;
}

/* ===== INFO ===== */
.producto .info{
  padding: 12px 12px 14px;
  text-align: left;
}

.producto h3{
  margin: 0 0 6px;
  font-size: 16px;
}

.precio{
  font-weight: bold;
  font-size: 15px;
  margin: 0 0 10px 0;
}


/* ===== BOTÓN ===== */
button {
  width: 100%;
  border: none;
  padding: 12px;
  background: #ff2e7a;
  color: white;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
}

button:hover {
  background: #e61f67;
}

button,
a {
  cursor: pointer;
}

/* ===== FOOTER ===== */
footer {
  margin-top: 30px;
  padding: 20px;
  text-align: center;
  color: #444;
}

/* ===== WHATSAPP FLOTANTE ===== */
.whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #25D366;
  color: white;
  padding: 14px 16px;
  border-radius: 999px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.whatsapp:hover {
  filter: brightness(0.95);
}

/* ===== NAVBAR PRO ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;

  background: linear-gradient(
    90deg,
    rgba(255, 182, 193, 0.85),
    rgba(255, 140, 180, 0.85)
  );
  backdrop-filter: blur(10px);

  color: white;
}
/* ===== SOLO MÓVIL: navbar flotante (fixed) ===== */
@media (max-width: 768px) {
  .navbar {
    position: fixed;   /* <- esto lo hace flotante de verdad */
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;

    /* opcional: sombrita */
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  }

  /* evita que el contenido quede debajo del navbar */
  body {
    padding-top: 74px; /* ajusta si tu navbar es más alto/bajo */
  }
}


.nav-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
  font-weight: bold;
}
.brand-icon { font-size: 20px; }
.brand-name { letter-spacing: 0.3px; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: white;
  text-decoration: none;
  opacity: 0.9;
  font-size: 14px;
}
.nav-links a:hover { opacity: 1; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 999px;
  overflow: hidden;
}

.search input {
  width: 220px;
  padding: 10px 12px;
  border: none;
  outline: none;
  background: transparent;
  color: white;
  caret-color: #ff2e7a;
}
.search input::placeholder { color: rgba(255,255,255,0.75); }

.search button {
  width: auto;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: white;
  cursor: pointer;
  border-radius: 0;
}

.icon-btn {
  border: 1px solid rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.12);
  color: white;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.icon-btn:hover {
  background: rgba(255,255,255,0.18);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ff2e7a;
  color: white;
  font-size: 12px;
  font-weight: bold;
}

/* ===== HERO con imagen ===== */
.hero {
  background-image:
    linear-gradient(rgba(0,0,0,0.40), rgba(0,0,0,0.40)),
    url("../images/hero.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 90px 16px;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  margin: 0;
  font-size: 44px;
  letter-spacing: 0.3px;
}

.hero p {
  margin-top: 12px;
  font-size: 18px;
  opacity: 0.95;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: #ff2e7a;
  color: white;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: bold;
}
.btn-primary:hover { background: #e61f67; }

.btn-ghost {
  border: 1px solid rgba(255,255,255,0.45);
  color: white;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: bold;
  background: rgba(255,255,255,0.10);
}
.btn-ghost:hover { background: rgba(255,255,255,0.16); }

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .search input { width: 150px; }
  .hero h1 { font-size: 34px; }
}

.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
}

.lightbox.open{ display: flex; }

.lightbox img{
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}

/* Grid más tipo catálogo */
.grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  align-items: start;
}

/* Tarjeta */
.producto{
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

/* Imagen tamaño fijo (no gigante) */
.producto img{
  width: 100%;
  height: 170px;      /* ajusta: 150-200 */
  object-fit: cover;  /* recorta bonito */
  display: block;
}

/* Info compacta */
.producto .info{
  padding: 12px 12px 14px;
}

.producto .info h3{
  margin: 0 0 6px;
  font-size: 1rem;
}

.producto .precio{
  margin: 0 0 10px;
  font-weight: 700;
}

.producto button{
  width: 100%;
  border: 0;
  padding: 10px 12px;
  border-radius: 10px;
}

body.lightbox-open{
  overflow: hidden;
}

body.lightbox-open .container,
body.lightbox-open header,
body.lightbox-open .navbar{
  filter: blur(6px) brightness(0.9);
  transform: scale(0.98);
  transition: filter .2s ease, transform .2s ease;
}

#productos-grid{
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

#productos-grid .producto img{
  height: 160px;
}

body.lightbox-open{
  overflow: hidden;
}
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}

.lightbox .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  color: white;
  cursor: pointer;
  user-select: none;
  padding: 10px;
}

.lightbox .prev { left: 30px; }
.lightbox .next { right: 30px; }

.lightbox .nav:hover {
  color: #ff3b8d;
}
.nav-links li a {
  font-weight: 600;
}

.nav-links li:last-child a {
  font-weight: normal;
  opacity: 0.85;
}
/* ===== Fix general mobile width ===== */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Asegura que contenedores no se pasen del ancho */
* {
  box-sizing: border-box;
}
@media (max-width: 768px) {

  nav,
  header,
  main,
  footer {
    width: 100%;
    max-width: 100%;
  }

  .grid {
    width: 100%;
  }

  .producto {
    width: 100%;
  }
}
@media (max-width: 768px){
  .whatsapp{
    position: fixed;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 18px;
    padding: 14px 26px;
    font-size: 18px;
    border-radius: 999px;
    min-width: 220px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
}
/* ===== UBICACIÓN / DIRECCIÓN ===== */
.location {
  margin: 40px auto 10px;
  text-align: center;
  padding: 20px;
}

.location h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.location .address {
  margin: 6px 0 14px;
  font-size: 16px;
  color: #444;
}

.map-link {
  display: inline-block;
  padding: 12px 18px;
  background: #ff2e7a;
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
}

.map-link:hover {
  background: #e61f67;
}
/* ===== BOTÓN VOLVER ARRIBA (SOLO MÓVIL) ===== */
#btnTop{
  position: fixed;
  bottom: 110px;       /* no choca con WhatsApp */
  right: 16px;
  z-index: 9999;

  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;

  display: none;       /* JS controla visibilidad */
  align-items: center;
  justify-content: center;

  background: linear-gradient(135deg, #ff4fa3, #ff87b7);
  color: #fff;
  font-size: 20px;
  line-height: 1;

  box-shadow: 0 12px 28px rgba(0,0,0,.2);
  cursor: pointer;

  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .2s ease;
}

/* visible */
#btnTop.show{
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

/* SOLO MÓVIL */
@media (min-width: 769px){
  #btnTop{
    display: none !important;
  }
}







