*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body{
  background:#e9eef5;
  color:#0b1a2b;
}

/* ================= HEADER ================= */

header{
  background:#0b1f3a;
  color:white;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 50px;
  position:sticky;
  top:0;
  z-index:1000;
  box-shadow:0 6px 20px rgba(0,0,0,.35);
  flex-wrap:wrap;
}

.logo{height:60px}

.logo-area{
  display:flex;
  align-items:center;
  gap:15px;
}

header h1{
  font-size:22px;
  font-weight:600;
  letter-spacing:1px;
}

#search{
  width:35%;
  padding:14px 18px;
  border-radius:30px;
  border:none;
  outline:none;
  font-size:15px;
}

nav{
  display:flex;
  align-items:center;
  gap:25px;
}

nav a{
  color:white;
  text-decoration:none;
  font-weight:500;
}

.cart-btn{
  background:white;
  color:#0b1f3a;
  padding:10px 18px;
  border-radius:30px;
  cursor:pointer;
  font-weight:bold;
}

/* ================= PROVEEDORES ================= */

#providers{
  background:white;
  padding:30px 50px;
  border-bottom:1px solid #dfe6ee;
}

.carousel{
  display:flex;
  gap:60px;
  overflow-x:auto;
  align-items:center;
  padding:15px 0;
}

.carousel img{
  height:65px;
  filter:grayscale(100%);
  opacity:.5;
  transition:.4s;
}

.carousel img:hover{
  filter:none;
  opacity:1;
  transform:scale(1.1);
}

/* ================= FILTROS ================= */

#filters{
  padding:25px 50px;
}

#categoryFilter{
  padding:12px;
  border-radius:8px;
  font-size:15px;
  border:1px solid #ccc;
}

/* ================= PRODUCTOS GRID 4x4 ================= */

#products{
  padding:40px 50px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:35px;
}

.card{
  background:white;
  border-radius:14px;
  padding:20px;
  text-align:center;
  box-shadow:0 10px 25px rgba(0,0,0,.08);
  transition:.35s;
  height:340px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.card:hover{
  transform:translateY(-8px);
  box-shadow:0 18px 35px rgba(0,0,0,.2);
}

.card img{
  width:100%;
  height:170px;
  object-fit:contain;
  border-radius:10px;
  background:#f5f7fa;
  padding:12px;
}

.card h3{
  font-size:15px;
  margin:10px 0;
  height:45px;
}

.card p{
  font-size:18px;
  font-weight:bold;
  color:#0b1f3a;
}

button{
  background:#0b1f3a;
  color:white;
  border:none;
  padding:10px 16px;
  border-radius:8px;
  cursor:pointer;
}

/* ================= PAGINACIÓN ================= */

#pagination{
  text-align:center;
  padding:30px;
}

#pagination button{
  margin:6px;
  padding:8px 14px;
}

/* ================= CARRITO ================= */

.cart-modal{
  position:fixed;
  top:0;
  right:-450px;
  width:450px;
  height:100%;
  background:linear-gradient(180deg,#0b1f3a,#102a4a);
  box-shadow:-10px 0 35px rgba(0,0,0,.5);
  padding:30px;
  transition:.45s ease;
  overflow-y:auto;
  z-index:3000;
  color:white;
}

.cart-modal.show{
  right:0;
}

#cart-items div{
  background:white;
  color:#0b1f3a;
  padding:16px;
  border-radius:12px;
  margin-bottom:15px;
}

#cart-total{
  margin-top:25px;
  background:#25D366;
  padding:18px;
  border-radius:12px;
  text-align:center;
  font-size:22px;
}

/* ================= MODAL PRODUCTO ================= */

.product-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.6);
  display:none;
  justify-content:center;
  align-items:center;
  z-index:4000;
}

.product-content{
  background:white;
  padding:35px;
  border-radius:14px;
  width:520px;
  max-width:95%;
}

.product-content img{
  width:100%;
  height:260px;
  object-fit:contain;
}

/* ================= FOOTER PROFESIONAL ================= */

footer{
  background:#0b1f3a;
  color:white;
  padding:60px 50px;
  margin-top:60px;
  display:grid;
  grid-template-columns:2fr 2fr 2fr;
  gap:40px;
}

footer h2{
  margin-bottom:12px;
}

footer p, footer a{
  font-size:15px;
  line-height:1.8;
  color:#dbeafe;
  text-decoration:none;
}

.footer-phones{
  margin-top:15px;
  font-size:16px;
  font-weight:bold;
  color:white;
}

/* MAPA */

iframe{
  width:100%;
  height:260px;
  border-radius:12px;
  margin-top:15px;
}

/* ================= RESPONSIVE ================= */

@media(max-width:1000px){
  #products{grid-template-columns:repeat(2,1fr);}
  footer{grid-template-columns:1fr;}
}

@media(max-width:600px){
  #products{grid-template-columns:1fr;}
  header{flex-direction:column;gap:15px;}
  #search{width:100%;}
}
#pagination{
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin:30px 0;
}

#pagination button{
  padding:8px 14px;
  border-radius:6px;
  border:1px solid #0b1f3a;
  background:white;
  cursor:pointer;
  font-weight:600;
}

#pagination button:hover{
  background:#0b1f3a;
  color:white;
}

.active-page{
  background:#0b1f3a !important;
  color:white;
}

#pagination span{
  padding:0 6px;
  font-weight:bold;
}
/* CARRUSEL */
.carousel{overflow:hidden}
.carousel-track{
  display:flex;
  gap:80px;
  animation:scroll 25s linear infinite;
}
.carousel-track img{
  height:120px;
  opacity:.7;
  filter:grayscale(100%);
  transition:.4s;
}
.carousel-track img:hover{
  filter:none;
  opacity:1;
  transform:scale(1.1);
}
@keyframes scroll{
  0%{transform:translateX(0)}
  100%{transform:translateX(-50%)}
}

/* Categorías */
#filters{
  display:flex;
  gap:15px;
  padding:30px;
  flex-wrap:wrap;
  justify-content:center;
}
.cat-btn{
  background:#1e293b;
  color:white;
  padding:10px 15px;
  border-radius:8px;
  cursor:pointer;
}

/* Modal producto */
.product-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.6);
  display:none;
  justify-content:center;
  align-items:center;
  z-index:4000;
}
.product-content{
  background:white;
  padding:30px;
  border-radius:12px;
  width:500px;
  max-width:90%;
}

/* WhatsApp flotante */
.whatsapp-float{
  position:fixed;
  bottom:25px;
  right:25px;
  background:#25D366;
  color:white;
  padding:15px;
  border-radius:50%;
  font-size:26px;
  text-decoration:none;
}

/* Sobre nosotros */
.about-big{
  background:#0f172a;
  color:white;
  padding:60px 40px;
  text-align:center;
  font-size:22px;
}
.facebook-box{
  margin-top:20px;
  background:#1877F2;
  padding:15px;
  border-radius:8px;
}
/* GRID DE PRODUCTOS PROFESIONAL */

#products{
  display:grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columnas */
  gap:25px;
  padding:30px;
}

/* Responsive tablet */
@media(max-width: 1024px){
  #products{
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Responsive móvil */
@media(max-width: 768px){
  #products{
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive móvil pequeño */
@media(max-width: 480px){
  #products{
    grid-template-columns: 1fr;
  }
}

/* Tarjeta producto */
.card{
  background:white;
  border-radius:12px;
  box-shadow:0 4px 12px rgba(0,0,0,.1);
  padding:15px;
  text-align:center;
  transition:.3s;
}

.card:hover{
  transform:translateY(-5px);
}

.card img{
  width:100%;
  height:200px;
  object-fit:contain;
  cursor:pointer;
}
/* GRID 3 x FILA */
#products{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:25px;
  padding:30px;
}

@media(max-width:900px){
  #products{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:500px){
  #products{grid-template-columns:1fr;}
}

/* Sobre nosotros */
#about{
  padding:40px;
  text-align:center;
  background:white;
}
#about h2{font-size:28px;margin-bottom:10px;}
#about p{font-size:18px;margin-bottom:20px;}

.facebook-box{
  display:inline-block;
  padding:12px 20px;
  background:#1877F2;
  color:white;
  border-radius:8px;
  text-decoration:none;
  font-weight:bold;
}

/* Carrusel proveedores */
.carousel{
  display:flex;
  gap:60px;
  overflow-x:auto;
  padding:20px;
}
.carousel img{
  height:80px;
  opacity:.7;
  transition:.3s;
}
.carousel img:hover{
  opacity:1;
}

/* Modal producto */
.product-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.6);
  display:none;
  justify-content:center;
  align-items:center;
}
.product-content{
  background:white;
  padding:25px;
  width:500px;
  border-radius:12px;
}
.product-content img{
  width:100%;
  height:250px;
  object-fit:contain;
}
/* ===== PAGINACIÓN PRO ===== */

#pagination{
  margin:30px 0;
  text-align:center;
}

#pagination button{
  background:#0f172a;
  color:white;
  border:none;
  margin:4px;
  padding:10px 14px;
  border-radius:8px;
  cursor:pointer;
  font-weight:bold;
  transition:.3s;
}

#pagination button:hover{
  background:#1e293b;
  transform:scale(1.1);
}

#pagination button.active{
  background:#25D366;
  color:white;
}


/* ===== CARRITO PRO MEJORADO ===== */

#cart-items div{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:14px;
  border-radius:10px;
  background:white;
  color:#0f172a;
  box-shadow:0 4px 10px rgba(0,0,0,.2);
}

#cart-items strong{
  font-size:15px;
}

.cart-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}

.cart-row input{
  width:60px;
  padding:6px;
  text-align:center;
  border-radius:6px;
  border:1px solid #ccc;
}

.remove-btn{
  background:#ef4444;
  color:white;
  border:none;
  padding:6px 10px;
  border-radius:6px;
  cursor:pointer;
}

/* Botones carrito */
.cart-actions{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:15px;
}

.btn-whatsapp{
  background:#25D366;
  padding:12px;
  border:none;
  border-radius:8px;
  color:white;
  font-weight:bold;
  cursor:pointer;
}

.btn-back{
  background:#0f172a;
  padding:12px;
  border:none;
  border-radius:8px;
  color:white;
  font-weight:bold;
  cursor:pointer;
}


/* ===== TELÉFONOS FOOTER ===== */

.phone-box{
  display:flex;
  gap:15px;
  flex-wrap:wrap;
  margin-top:10px;
}

.phone-box a{
  background:#25D366;
  padding:10px 14px;
  border-radius:8px;
  color:white;
  text-decoration:none;
  font-weight:bold;
}
