* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 60px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.navbar-container {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #f0f4f0
}

/* Logo */
.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #617254;
  text-decoration: none;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

/* Desktop Nav */
.nav-desktop {
  display: none;
  flex: 1;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: none;
  border: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.nav-link:hover,
.nav-link:focus {
  background: #f0f4f0;
  color: #617254;
}

.chevron {
  transition: transform 0.2s;
}

.has-dropdown:hover .chevron,
.has-dropdown:focus-within .chevron {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  list-style: none;
  z-index: 100;
}

.has-dropdown {
  position: relative;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  position: relative;
}

.dropdown-item > a,
.submenu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: #374151;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.dropdown-item > a:hover,
.submenu-toggle:hover {
  width: 100%;
  background: #f0f4f0;
  color: #617254;
}

/* Submenu (segundo nivel) */
.submenu {
  position: absolute;
  left: 100%;
  top: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: all 0.2s ease;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.submenu a {
  display: block;
  padding: 9px 16px;
  font-size: 0.875rem;
  color: #4b5563;
  text-decoration: none;
  transition: background 0.15s;
}

.submenu a:hover {
  background: #f0f4f0;
  color: #617254;
}

/* Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  border-radius: 8px;
  color: #374151;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.action-btn:hover {
  background: #f0f4f0;
  color: #617254;
}

/* Cart badge */
.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: #617254;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Tooltips */
.action-wrapper {
  position: relative;
}

.tooltip {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 200px;
  background: #1f2937;
  color: #fff;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s ease;
  z-index: 200;
  pointer-events: none;
  text-align: center;
}

.tooltip p {
  font-weight: 600;
  margin-bottom: 2px;
}

.tooltip span {
  opacity: 0.85;
  font-size: 0.75rem;
}

.tooltip::before {
  content: "";
  position: absolute;
  bottom: 100%;
  right: 14px;
  border: 6px solid transparent;
  border-bottom-color: #1f2937;
}

.action-wrapper.show-tooltip .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #374151;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.mobile-menu.open {
  max-height: 80vh;
  overflow-y: auto;
}

.mobile-menu-inner {
  padding: 12px 16px 24px;
}

.mobile-category {
  border-bottom: 1px solid #f3f4f6;
}

.mobile-category-btn,
.mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 4px;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  color: #1f2937;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
}

.mobile-category-btn svg {
  transition: transform 0.25s;
}

.mobile-category.open .mobile-category-btn svg {
  transform: rotate(180deg);
}

.mobile-submenu {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 12px;
}

.mobile-category.open .mobile-submenu {
  max-height: 400px;
  padding-bottom: 8px;
}

.mobile-submenu a {
  display: block;
  padding: 10px 8px;
  font-size: 0.9rem;
  color: #4b5563;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s;
}

.mobile-submenu a:hover {
  background: #f0f4f0;
  color: #617254;
}


/* Botones */



h4{
    margin: 0.7rem 1rem;
    line-height: 1.5
}







/* ===== Products Header ===== */

.products-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
  margin-bottom: 24px;
  padding-left: 16px;
  padding-right: 16px;
}

.products-header .title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  letter-spacing: -0.3px;
  color: var(--color-primary);
}

/* Search form */
.search-form {
  width: 100%;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input-wrapper input {
  width: 100%;
  height: 44px;
  padding: 0 48px 0 16px;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #1f2937;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.search-input-wrapper input::placeholder {
  color: #9ca3af;
}

.search-input-wrapper input:focus {
  border-color: #617254;
  box-shadow: 0 0 0 3px rgba(97, 114, 84, 0.15);
}

/* Botón de búsqueda integrado */
.search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #617254;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.search-btn:hover {
  background: #4f5e45;
}

.search-btn:active {
  transform: translateY(-50%) scale(0.96);
}







/*  FOOTER   */

footer{
    /* position: absolute;
    top: calc(100% - 200px);
    left: 0px;
    z-index: 4; */
    display: flex;
    padding-top: 5px;
    color: #336633;
    /* max-height: 400px; */
    background-color: #f1f8ec;
  }

  .grid-footer {
    width: 100%;
    display: grid;
    grid-template-columns: 2fr 1.5fr;
    gap: 2px;
    padding-top: 15px;
  }

.foot-schedule{
    display: flex;
    flex-direction: column;
    justify-content: center;
    grid-area: 1 / 1 / 2 / 3;
    padding: 0px 5px;
}
.schedule-item {
    display: flex;
    flex-direction:row;
    flex-grow: 1;
    align-items: center;
    min-height: 24px;
    background-color: rgb(227, 247, 227);
    margin-bottom: 2px;
}
.schedule-item .icon{
    display: flex;
    align-items: center;
    justify-content: center;
    
    margin: 0px 5px;
}

.foot-schedule div span{
    text-align: left;
    padding: 3px 5px;
    line-height: 1.2;
}

/*CONTACT Footer */

.foot-contact{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    padding-left: 5px;
    grid-area: 2 / 1 / 4 / 2;
}
  
.contact-row{
  display: flex;
  align-items: center;
  gap: 1px;
}

.contact-row .icon{
  fill:  #3a5625;
    width: 1.5rem;
    height: 1.5rem;
    line-height: 20px;
}

.foot-robot {
    display: none;
   /*  height: 10rem;
    overflow: hidden; */
}
.foot-robot > img{
    height: 120px;
    float: right;
}

.foot-logo{
    display: flex;
    align-items: center;
    justify-content: center;
    grid-area: 2 / 2 / 3 / 3;
}
  
.foot-logo > img {
    max-height: 40px;
}

.social-box{
  grid-area: 3 / 2 / 4 / 3;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}
.social-icon{
    fill:  #3a5625;
    width: 2.5rem;
    height: 2.5rem;
    line-height: 20px;
}
.social-fb{
    fill:  #3a5625;
    width: 2rem;
    height: 2rem;
}

.foot-copy{
  display: flex;
  flex-wrap: wrap;
  grid-area: 4 / 1 / 5 / 3;
  padding: 25px 0px;
  align-items: center;
  justify-content: center;
}
.elem{
  margin: 5px 10px;
}

.consultar{
  color: #617254;
}


/* ════════════════════════════════
   WHATSAPP FLOAT
════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 2rem; right: 1.5rem;
  z-index: 999;
  display: flex; flex-direction: column; align-items: flex-end; gap: .6rem;
}
.whatsapp-bubble {
  background: var(--color-white);
  color: var(--color-dark);
  font-size: .82rem;
  font-weight: 500;
  padding: .5rem .9rem;
  border-radius: 12px 12px 2px 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  white-space: nowrap;
  animation: fadeSlide .4s ease;
  display: none;
}
.whatsapp-float:hover .whatsapp-bubble { display: block; }
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.whatsapp-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  text-decoration: none;
  transition: transform .25s, box-shadow .25s;
  animation: whatsappPulse 3s infinite;
}
.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}
@keyframes whatsappPulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,0.7), 0 0 0 8px rgba(37,211,102,0.1); }
}
.whatsapp-btn svg { width: 30px; height: 30px; }

