/* Layout */
.site-header {
  background: var(--bg-blanco);
  box-shadow: 0 2px 12px rgba(79, 56, 48, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.5rem 0;
}

.site-header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  color: var(--verde-musgo);
}

.site-header__logo img {
  height: 110px;
  width: auto;
  display: block;
}

.site-header__logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-header__logo .logo-name {
  font-size: 1.65rem;
  letter-spacing: 0.02em;
}

.site-header__logo .logo-tagline {
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cafe-raiz);
  opacity: 0.85;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__list {
  display: flex;
  gap: 1.5rem;
}

.nav__link {
  position: relative;
  color: var(--cafe-raiz);
  font-weight: 600;
  padding: 0.35rem 0;
  transition: color 0.2s ease;
  opacity: 0.9;
}

.nav__link:hover {
  color: var(--verde-musgo);
  opacity: 1;
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--verde-musgo);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link--active::after {
  width: 100%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav__actions .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(99, 134, 60, 0.1);
  color: var(--verde-musgo);
  transition: all 0.2s ease;
}

.nav__actions .icon-btn:hover {
  background: var(--verde-musgo);
  color: white;
  transform: scale(1.05);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.menu-toggle__bar {
  width: 28px;
  height: 3px;
  background: var(--verde-musgo);
  border-radius: 2px;
  transition: all 0.2s ease;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(80%, 320px);
    height: 100vh;
    background: var(--bg-blanco);
    flex-direction: column;
    padding: 4rem 1.5rem;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    gap: 0;
  }

  .nav--open {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav__link {
    padding: 1rem 0;
    border-bottom: 1px solid var(--borde-suave);
  }

  .nav__actions {
    margin-top: 2rem;
    flex-direction: column;
    gap: 1rem;
  }
}

.site-footer {
  background: var(--cafe-raiz);
  color: var(--bg-tierra);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.site-footer__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.site-footer__logo {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bg-tierra);
  margin-bottom: 0.25rem;
}

.site-footer__tagline {
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.85;
  margin-bottom: 1rem;
}

.site-footer__heading {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--acento-arcilla);
}

.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer__link {
  color: var(--bg-tierra);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.site-footer__link:hover {
  opacity: 1;
  color: var(--acento-arcilla);
}

.site-footer__bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(228, 229, 212, 0.2);
  font-size: 0.85rem;
  opacity: 0.7;
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(228, 229, 212, 0.15);
  transition: transform 0.2s ease, background 0.2s ease;
}

.site-footer__social-link:hover {
  transform: translateY(-3px);
  background: rgba(228, 229, 212, 0.3);
}

.site-footer__social-link img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--texto-secundario);
  margin-bottom: 1.5rem;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
}

.breadcrumb__separator {
  color: var(--acento-arcilla);
  font-size: 0.75rem;
}

.breadcrumb__item:last-child a {
  color: var(--cafe-raiz);
  font-weight: 500;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
  .site-header__container {
    padding: 0 1rem;
  }

  .site-footer {
    padding: 2rem 1rem 1rem;
  }

  .site-footer__container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .container {
    padding: 1rem;
  }
}

/* Quotation panel */
.quotation-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(420px, 90vw);
  height: 100vh;
  background: var(--bg-blanco);
  box-shadow: -8px 0 30px rgba(79, 56, 48, 0.15);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  transition: right 0.35s ease;
}

.quotation-panel--open {
  right: 0;
}

.quotation-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--borde-suave);
}

.quotation-panel__header h3 {
  font-size: 1.25rem;
  color: var(--cafe-raiz);
}

.quotation-panel__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--cafe-raiz);
  background: var(--bg-tierra);
  transition: all 0.2s ease;
}

.quotation-panel__close:hover {
  background: var(--acento-arcilla);
  color: white;
}

.quotation-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.quotation-panel__footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--borde-suave);
  background: var(--bg-tierra);
}

.quotation-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--texto-secundario);
}

.quotation-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--borde-suave);
}

.quotation-item__info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

.quotation-item__name {
  font-weight: 600;
  color: var(--cafe-raiz);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quotation-item__price {
  font-size: 0.9rem;
  color: var(--verde-musgo);
  font-weight: 600;
}

.quotation-item__controls {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.quotation-item__quantity {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 600;
}

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(79, 56, 48, 0.4);
  backdrop-filter: blur(2px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.backdrop--visible {
  opacity: 1;
  visibility: visible;
}

.w-full {
  width: 100%;
}