/* styles.css - Caleb Distribuciones (modern & responsive) */
:root{
  --mint:#A9D9B0;
  --accent:#8B5A2B;
  --white:#ffffff;
  --muted:#6b6b6b;
  --container:1100px;
  --shadow: 0 8px 24px rgba(0,0,0,0.08);
}
*{box-sizing:border-box}
body{font-family:Inter,system-ui,Arial,Helvetica,sans-serif;margin:0;color:#222;background:#fff;line-height:1.45}
.container{max-width:var(--container);margin:0 auto;padding:18px}
.container-nav{max-width:var(--container);margin:0 auto;padding:0}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:12px}
.logo{height:8rem; width: 8rem;object-fit:contain}
.main-nav a{margin:0 8px;text-decoration:none;color:#222}
.site-header{background:#fff;border-bottom:1px solid #eee;position:sticky;top:0;z-index:50;padding:8px 0}
.hamburger{display:none;background:none;border:none;font-size:24px}
.hero{background-image:url(assets/logo.png);background-size: cover; padding:60px 0;border-bottom:1px solid #eee; height: 30rem;}
.hero-inner{display:flex;gap:24px;align-items:center}
.hero-text h1{font-size:2.4rem;margin:0 0 8px;color:var(--white)}
.lead{color:var(--muted);margin:0 0 16px;font-size:1.05rem}
.btn{display:inline-block;padding:12px 18px;border-radius:10px;text-decoration:none;border:1px solid transparent;cursor:pointer}
.btn.primary{background:var(--accent);color:var(--white)}
.btn.outline{background:transparent;border:1px solid var(--accent);color:var(--accent)}
.btn.whatsapp{background:#25D366;color:#fff;border-radius:999px; margin-top: 1rem;}
.features{display:flex;gap:12px;margin-top:12px}
.feat{background:#fff;padding:16px;border-radius:8px;border:1px solid #eee;flex:1;text-align:center;box-shadow:var(--shadow)}
/* Contenedor del grid */
#productGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  padding: 20px 10px;
}

/* Cada producto */
.product {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  text-align: center;
  padding-bottom: 15px;
}

.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

/* Imagen del producto */
.product-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
  transition: transform 0.3s ease;
}

.product:hover img {
  transform: scale(1.05);
}

/* Texto */
.product-info {
  padding: 10px 15px 0;
}

.product h3 {
  font-size: 1.05rem;
  color: #222;
  margin: 10px 0 5px;
}

.product .brand {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 12px;
}

/* Botón */
.product .btn.small {
  background: #007bff;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.product .btn.small:hover {
  background: #0056b3;
}
/* === Ajustes específicos para Featured Products === */
#featuredGrid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  padding: 10px 5px 30px;
}

/* Productos destacados más compactos */
#featuredGrid .product {
  width: 220px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  padding-bottom: 10px;
}

#featuredGrid .product:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

/* Imagen un poco más pequeña */
#featuredGrid .product img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
  transition: transform 0.3s ease;
}

#featuredGrid .product:hover img {
  transform: scale(1.05);
}

/* Info más compacta */
#featuredGrid .product h3 {
  font-size: 1rem;
  color: #222;
  margin: 10px 0 4px;
}

#featuredGrid .product .brand {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 10px;
}

/* Botón más pequeño */
#featuredGrid .btn.small {
  background: #007bff;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  transition: background 0.3s;
}

#featuredGrid .btn.small:hover {
  background: #0056b3;
}

.showcase .more{text-align:center;margin-top:12px}
.contact{background:#f9f9f9;padding:20px;border-radius:8px;margin-top:18px}
.card{background:#fff;padding:16px;border-radius:8px;border:1px solid #eee;margin-bottom:12px}
.admin-header{display:flex;justify-content:space-between;align-items:center}
.catalog-hero{margin:18px 0}
.search-row{display:flex;gap:8px;margin-top:12px}
.search-row input, .search-row select{flex:1;padding:10px;border:1px solid #ddd;border-radius:8px}
.product-detail-wrap{padding:24px 0}
.product-detail{display:grid;grid-template-columns:360px 1fr;gap:20px;align-items:start}
.product-detail img{width:100%;height:320px;object-fit:cover;border-radius:8px}
.no-price{font-weight:700;color:var(--accent)}
.about-mvv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.mvv-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.mvv-card:hover {
  transform: translateY(-6px);
}

.mvv-card .icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  color: #2b9348; /* verde profesional */
}

.mvv-card svg {
  width: 100%;
  height: 100%;
}

.mvv-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: #1a1a1a;
}

.mvv-card p, .mvv-card ul {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

.mvv-card ul {
  list-style: none;
  padding: 0;
}

.mvv-card ul li::before {
  content: "✔";
  color: #2b9348;
  margin-right: 8px;
}

.about-values {
  text-align: center;
  margin-top: 4rem;
  padding: 2rem 1rem;
}

.about-values h2 {
  color: #165f27;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-values p {
  max-width: 750px;
  margin: 0 auto 2.5rem;
  color: #333;
  line-height: 1.7;
  font-size: 1rem;
}

.values-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.value-card {
  background: #f9f9f9;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  padding: 2rem 1.5rem;
  width: 280px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.value-card i {
  font-size: 3rem;
  color: #1a6133;
  margin-bottom: 1rem;
}

.value-card h4 {
  color: #165f27;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.value-card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .value-card {
    width: 100%;
  }
}

.about {
  margin-top: 3rem;
  padding: 2rem 0;
}
.about-hero{
  background-image: url(assets/about-banner.jpg)
}
.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.about-text {
  flex: 1 1 400px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #444;
}

.about-text p {
  margin-bottom: 1rem;
}

.about-image {
  flex: 1 1 300px;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
  }
}

.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  text-align: center;
}

.loader {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #222;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

.loader-container p {
  color: #444;
  font-size: 1.1rem;
  font-weight: 500;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Footer */
.site-footer{background:#fff;border-top:1px solid #eee;padding:18px;margin-top:24px;text-align:center}

/* WhatsApp float */
.whats-float{position:fixed;right:18px;bottom:18px;z-index:999;display:inline-flex;align-items:center;justify-content:center;width:56px;height:56px;background:#25D366;border-radius:999px;text-decoration:none;box-shadow:0 6px 18px rgba(0,0,0,0.12)}
.whats-float img{width:28px;height:28px}

/* Forms */
label{display:block;margin-bottom:8px;font-weight:600}
input[type="text"], input[type="search"], textarea, select, input[type="password"]{width:100%;padding:10px;border:1px solid #ddd;border-radius:8px;margin-top:6px}
.row{display:flex;gap:8px;align-items:center;margin-top:10px}
.row .btn{flex:0}
.contact {
  margin-top: 3rem;
  padding: .5rem 0;
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.contact-info {
  flex: 1 1 300px;
  font-size: 1.1rem;
  color: #333;
}

.contact-info p a {
  color: #0a7e2d;
  text-decoration: none;
  font-weight: 500;
}

.contact-info p a:hover {
  text-decoration: underline;
}

.contact-map {
  flex: 1 1 350px;
}

@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
  }

  .contact-map iframe {
    height: 250px;
  }
}

.instagram {
  margin-top: 3rem;
  text-align: center;
}

.instagram h2 {
  margin-bottom: 1rem;
}

.instagram p {
  color: #555;
  margin-bottom: 2rem;
}

.insta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  justify-items: center;
}

.insta-video iframe {
  width: 100%;
  height: 350px;
  border: none;
  border-radius: 1rem;
  background-color: #f4f4f4;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.insta-btn {
  margin-top: 2rem;
  display: inline-block;
  background-color: #25D366;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  text-decoration: none;
  transition: background 0.3s;
}

.insta-btn:hover {
  background-color: #1ebd5b;
}

@media (max-width: 768px) {
  .insta-video iframe {
    height: 300px;
  }
}

/* Responsive */
@media(max-width:900px){
  .hero-inner{flex-direction:column;text-align:center;padding:30px 0}
  .product-detail{grid-template-columns:1fr;grid-auto-rows:auto}
  .hamburger{display:block}
  .main-nav{display:none;position:fixed;left:0;top:64px;background:#fff;width:100%;padding:12px;box-shadow:0 6px 18px rgba(0,0,0,0.08)}
  .main-nav a{display:block;margin:8px 0}
  .logo{height:5rem}
}

/* === Responsive para móviles === */
@media (max-width: 768px) {

  body {
    font-size: 15px;
    line-height: 1.5;
  }

  .container {
    padding: 12px;
  }

  /* --- Header & navegación --- */
  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .logo {
    height: 5rem;
  }

  .hamburger {
    display: block;
    background: none;
    border: none;
    font-size: 26px;
    color: var(--accent);
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: var(--shadow);
    flex-direction: column;
    padding: 10px 0;
  }

  .main-nav a {
    display: block;
    margin: 10px 0;
    text-align: center;
    font-size: 1.1rem;
  }

  /* --- Hero section --- */
  .hero {
    padding: 40px 0;
    text-align: center;
  }

  .hero-inner {
    flex-direction: column;
    gap: 16px;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .lead {
    font-size: 1rem;
  }

  .features {
    flex-direction: column;
  }

  /* --- Productos --- */
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
  }

  .product {
    padding: 10px;
  }

  .product img {
    height: 140px;
  }

  .product h3 {
    font-size: 1rem;
  }

  .btn.small {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  /* --- Detalle del producto --- */
  .product-detail {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .product-detail img {
    height: 260px;
  }

  /* --- Formularios --- */
  .search-row {
    flex-direction: column;
    gap: 8px;
  }

  input[type="text"],
  input[type="search"],
  textarea,
  select {
    font-size: 1rem;
  }

  /* --- Secciones About, Contact, Instagram --- */
  .about-content,
  .contact-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .about-text,
  .contact-info {
    font-size: 1rem;
  }

  .insta-video iframe {
    height: 220px;
  }

  /* --- Footer --- */
  .site-footer {
    font-size: 0.95rem;
    padding: 16px;
  }

  /* --- WhatsApp botón flotante --- */
  .whats-float {
    right: 14px;
    bottom: 14px;
    width: 50px;
    height: 50px;
  }

  .whats-float img {
    width: 26px;
    height: 26px;
  }
}
/* --- Secciones del panel admin --- */
#publicosList, #borradoresList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 12px;
  margin: 16px 0 32px;
}

/* Cartas compactas del admin */
#publicosList .product,
#borradoresList .product {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  text-align: center;
  font-size: 13px;
  transition: transform 0.15s ease;
}

#publicosList .product:hover,
#borradoresList .product:hover {
  transform: translateY(-3px);
}

/* Imagen más pequeña y uniforme */
#publicosList .product img,
#borradoresList .product img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
}

/* Nombre y categoría */
#publicosList .product h4,
#borradoresList .product h4 {
  font-size: 14px;
  margin: 6px 0 2px;
  color: #333;
}

#publicosList .product .brand,
#borradoresList .product .brand {
  font-size: 12px;
  color: #777;
}

/* Botones más compactos */
#publicosList .product .btn,
#borradoresList .product .btn {
  font-size: 12px;
  padding: 4px 6px;
  border-radius: 6px;
  flex: 1;
  white-space: nowrap;
}

/* Contenedor de botones */
#publicosList .product div,
#borradoresList .product div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-top: 6px;
}
.categories-section {
  padding: 60px 20px;
  text-align: center;
  background: #f7f7f7;
}
.categories-section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #222;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.category-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.category-card img {
  width: 100%;
  height: 28rem;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-card:hover img {
  transform: scale(1.05);
}

.category-card p {
  margin: 10px 0 15px;
  font-weight: 600;
  color: #333;
  text-align: center;
  font-size: 1rem;
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
  .category-card img {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .category-card {
    border-radius: 10px;
  }

  .category-card img {
    height: 200px;
  }

  .category-card p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .category-card {
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
  }

  .category-card img {
    height: auto; /* Ajusta dinámicamente según proporción */
    max-height: 315px;
  }

  .category-card p {
    font-size: 0.9rem;
    margin: 8px 0 12px;
  }
}


/* Responsive: pantallas pequeñas */
@media (max-width: 600px) {
  #publicosList, #borradoresList {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
  }
  #publicosList .product img,
  #borradoresList .product img {
    height: 90px;
  }
}

