:root {
  --primary: #8b3e2f;
  --accent: #d8a772;
  --bg: #f8f0e8;
  --text: #3d2f28;
  --muted: rgba(61, 47, 40, 0.68);
  --radius: 20px;
  --shadow: 0 18px 40px rgba(60, 40, 30, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #fbf3e8 0%, #f2e5db 100%);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Georgia", serif;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(61, 47, 40, 0.12);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.powered-by {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
}

.powered-logo {
  width: 22px;
  height: 22px;
  object-fit: cover;
  border-radius: 999px;
}

.powered-by:hover {
  color: var(--brand-2);
}


.logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 22px;
  border: 1px solid rgba(139, 62, 47, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #f5ede7 100%);
  box-shadow: 0 16px 30px rgba(60, 40, 30, 0.18);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.logo:hover,
.logo:focus-visible {
  transform: translateY(-2px) scale(1.08);
  border-color: rgba(139, 62, 47, 0.45);
  box-shadow: 0 24px 48px rgba(60, 40, 30, 0.28);
  background: #fff;
}

.tagline {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.main-nav a {
  margin-left: 1.1rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--primary);
}

.main-nav a.active {
  color: var(--primary);
  font-weight: 700;
}

.hero {
  background: linear-gradient(150deg, rgba(139, 62, 47, 0.82), rgba(216, 167, 114, 0.55)),
    url("hero.jpg") center/cover no-repeat;
  color: white;
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("hero.jpg") center/cover no-repeat;
  animation: heroZoom 8s ease-out forwards;
  z-index: -1;
}

@keyframes heroZoom {
  from {
    transform: scale(1.1);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-text {
  max-width: 640px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text h2 {
  font-size: clamp(2.5rem, 3.5vw, 4rem);
  margin: 0 0 1rem;
  line-height: 1.05;
  text-shadow: 0 18px 32px rgba(0, 0, 0, 0.28);
  animation: heroHeadingSlide 0.8s ease-out 0.3s both;
}

@keyframes heroHeadingSlide {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-text p {
  max-width: 540px;
  margin: 0 0 1.6rem;
  opacity: 0.95;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

@media (max-width: 860px) {
  .hero {
    padding: 64px 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-text {
    text-align: center;
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.hero-actions .btn {
  animation: buttonPulse 0.8s ease-out 0.6s both;
}

@keyframes buttonPulse {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* NOTIFICACIÓN PROFESIONAL */
    #notification {
      position: fixed; top: 20px; right: 20px; padding: 15px 25px; 
      background: var(--dark); color: white; border-radius: 10px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.2); display: none; z-index: 2000;
      animation: slideIn 0.3s ease;
    }
    @keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }


.btn {
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 2px solid transparent;
  background: var(--accent);
  color: #472d22;
  box-shadow: 0 14px 30px rgba(60, 40, 30, 0.18);
  transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 18px 34px rgba(60, 40, 30, 0.22);
}

.btn:active,
.btn.btn-pressed {
  transform: translateY(0px) scale(0.98);
  box-shadow: 0 6px 14px rgba(60, 40, 30, 0.12);
  filter: brightness(0.96);
}

.btn.outline {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.55);
  color: white;
}

.section {
  padding: 5px 0;
}

.section.alt {
  background: rgba(216, 167, 114, 0.1);
}

.section h2 {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 2.4rem;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  margin: 0 auto 0.2rem;
  max-width: 680px;
}

.cards {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.active-promotions-banner {
  margin: 1.5rem 0;
}

.promotion-alert {
  background: #e9f8f0;
  border: 1px solid #b2e4c8;
  border-radius: 1rem;
  padding: 1rem 1.15rem;
}

.promotion-alert p {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.promotion-alert ul {
  margin: 0.85rem 0 0;
  padding-left: 1.2rem;
}

.promotion-alert li {
  margin-bottom: 0.35rem;
  color: #1a3f2d;
}

.promotion-alert-inactive {
  background: #fff4f0;
  border-color: #f4c8b4;
  color: #7d2f1b;
}

.promotion-alert-active {
  background: #e9f8f0;
  border-color: #b2e4c8;
  color: #11422d;
}

.promotions-grid {
  align-items: stretch;
  gap: 1rem;
  margin-bottom: 3rem;
}

.promotion-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-align: left;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1.05rem;
  box-shadow: 0 10px 24px rgba(44, 62, 80, 0.08);
}

.promotion-card-active {
  background: #eef8f1;
  border-color: #8ccfa8;
}

.promotion-card-inactive {
  background: #fff6ec;
  border-color: #efc18f;
}

.promotion-card-selected {
  outline: 3px solid rgba(216, 167, 114, 0.55);
  outline-offset: 3px;
}

.promotion-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.promotion-code,
.promotion-status {
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.promotion-code {
  background: rgba(44, 62, 80, 0.1);
  color: var(--primary);
}

.promotion-status-active {
  background: #e9f8f0;
  color: #116a18;
}

.promotion-status-inactive {
  background: #fff4f0;
  color: #8a2b06;
}

.promotion-value {
  color: var(--primary);
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0;
}

.promotion-details {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.promotion-details div {
  display: grid;
  gap: 0.15rem;
}

.promotion-details dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.promotion-details dd {
  margin: 0;
  font-size: 0.9rem;
}

.promotion-card .btn {
  align-self: flex-start;
  margin-top: auto;
  padding: 0.7rem 0.95rem;
  min-height: auto;
}

.promotion-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.promotion-products {
  margin: 2.5rem 0 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.promotion-products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.promotion-products-header h2,
.promotion-products-header .section-subtitle {
  text-align: left;
}

.promotion-products-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.promotion-product-card {
  box-shadow: var(--shadow);
}

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.85rem;
  text-align: center;
}

.card img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  object-fit: cover;
  height: 180px;
}

.card h3 {
  margin: 0 0 0.75rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card.promotion-card {
  gap: 0.55rem;
  padding: 1.05rem;
  text-align: left;
  box-shadow: 0 10px 24px rgba(44, 62, 80, 0.08);
}

.card.promotion-card-active {
  background: #eef8f1;
  border-color: #8ccfa8;
}

.card.promotion-card-inactive {
  background: #fff6ec;
  border-color: #efc18f;
}

@media (max-width: 700px) {
  .active-promotions-banner {
    margin: 1rem 0;
  }

  .promotions-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin: 1rem 0 2rem;
  }

  .card.promotion-card {
    border-radius: 10px;
    padding: 0.85rem;
  }

  .promotion-card-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.4rem;
  }

  .promotion-code,
  .promotion-status {
    max-width: 100%;
    white-space: normal;
    line-height: 1.2;
  }

  .promotion-card h3 {
    font-size: 0.95rem;
  }

  .promotion-value {
    font-size: 1.2rem;
  }

  .promotion-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 0.75rem;
  }

  .promotion-details div:last-child {
    grid-column: 1 / -1;
  }

  .promotion-card .btn {
    width: 100%;
    justify-content: center;
    padding: 0.72rem 0.85rem;
  }

  .promotion-products {
    margin: 1.5rem 0 3rem;
    padding-top: 1rem;
  }

  .promotion-products-header {
    align-items: stretch;
  }

  .promotion-products-header .btn-secondary {
    width: 100%;
  }

  .promotion-products-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 380px) {
  .promotion-details {
    grid-template-columns: 1fr;
  }

  .promotion-details div:last-child {
    grid-column: auto;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.1rem;
  align-items: start;
}

.contact-info h2 {
  margin-top: 0;
}

.contact-info p {
  margin: 0.65rem 0;
  color: var(--muted);
}

.contact-info a {
  color: var(--primary);
  font-weight: 600;
}

.social {
  margin-top: 1.5rem;
}

.social a {
  display: inline-block;
  margin-right: 0.9rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(61, 47, 40, 0.12);
  background: #fff;
  font-size: 0.95rem;
  color: var(--text);
}

.contact-map iframe {
  width: 100%;
  height: 280px;
  border-radius: var(--radius);
}

.site-footer {
  background: #3d2f28;
  color: rgba(255, 255, 255, 0.84);
  padding: 1.75rem 0;
  text-align: center;
  font-size: 0.95rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.92);
}

.shop-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-header {
  text-align: center;
  flex: 1;
}

.search-section {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.search-input {
  padding: 0.8rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 12px;
  font-family: inherit;
  color: var(--text);
  width: 100%;
  box-sizing: border-box;
}

.search-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.1rem;
}

@media (max-width: 768px) {
  .shop-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .search-input-wrapper {
    width: 100%;
  }

  .search-section {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.1rem; 
    margin-bottom: 0.2rem;

  }

  .search-section .badge {
    order: 2;
    margin-top: 0.15rem;
    margin-left: 0;
  }
}

.search-input-wrapper {
  position: relative;
  display: inline-block;
  margin-top: 0.15rem;
  padding: 0;
}

.clear-search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.clear-search-btn:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: var(--text);
}

.shop-layout {
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  gap: 2rem;
  align-items: start;
}

.product-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.shop-error {
  grid-column: 1 / -1;
  padding: 1.2rem 1rem;
  background: #fff1f0;
  border: 1px solid #f3c2c1;
  border-radius: 16px;
  color: #a11616;
  font-size: 1rem;
  line-height: 1.5;
}

.shop-loading {
  grid-column: 1 / -1;
  padding: 1.4rem 1rem;
  background: #eef4ff;
  border: 1px solid #cddbf1;
  border-radius: 16px;
  color: #1f3a6f;
  font-weight: 700;
  text-align: center;
}

.product-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.product-card:hover img {
  transform: scale(1.12);
  filter: brightness(1.04);
}

.product-card-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-card-content h3 {
  margin: 0;
  font-size: 1.05rem;
}

.product-card-content p {
  margin: 0;
  color: var(--muted);
  flex: 1;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.product-card-footer span {
  font-weight: 700;
}

.product-price-old {
  text-decoration: line-through;
  opacity: 0.75;
  margin-right: 0.5rem;
}

.product-promo {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
}

.product-promo-active {
  color: #116a18;
}

.product-promo-inactive {
  color: #8a2b06;
}

.product-card-footer button {
  border: none;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s, filter 0.18s;
  box-shadow: 0 4px 12px rgba(60, 40, 30, 0.15);
}

.product-card-footer button:hover {
  background: #163d58;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(60, 40, 30, 0.2);
}

.product-card-footer button:active,
.product-card-footer button.btn-pressed {
  transform: translateY(0px) scale(0.98);
  box-shadow: 0 2px 6px rgba(60, 40, 30, 0.1);
  filter: brightness(0.92);
}

  .btn-secondary {
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #f7f7f7;
    color: var(--text);
    padding: 0.7rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.18s, transform 0.18s;
  }

  .btn-secondary:hover {
    background: rgba(26, 75, 109, 0.08);
  }

  .image-viewer-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    z-index: 60;
    padding: 1.5rem;
  }

  .image-viewer-modal.open {
    display: flex;
  }

  .image-viewer-modal-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
  }

  .image-viewer-modal-content img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 95vh;
    object-fit: contain;
  }

  .image-viewer-modal-content .close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 10;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
  }

  .category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
    justify-content: center;
  }

  .category-filters button {
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    color: var(--text);
    padding: 0.7rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, border-color 0.2s;
    font-weight: 600;
  }

  .category-filters button:hover,
  .category-filters button.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
  }

  .category-group {
    margin-bottom: 2rem;
  }

  .category-group h3 {
    margin: 0 0 1rem;
    font-size: 1.3rem;
    color: var(--primary);
  }

  .category-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .cart-item-comment-label {
    display: block;
    margin-top: 0.85rem;
    font-size: 0.95rem;
    color: var(--muted);
  }

  .cart-item-comment-label textarea {
    width: 100%;
    min-height: 70px;
    margin-top: 0.45rem;
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 12px;
    padding: 0.8rem;
    resize: vertical;
    font-family: inherit;
    color: var(--text);
  }

  .view-cart-button {
    position: fixed;
    left: 1.2rem;
    bottom: 1.2rem;
    z-index: 20;
    border: none;
    background: var(--accent);
    color: #1a1a1a;
    padding: 0.95rem 1.3rem;
    border-radius: 999px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    display: none;
    transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
  }

  .view-cart-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
  }

  .view-cart-button:active,
  .view-cart-button.btn-pressed {
    transform: translateY(0px) scale(0.98);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    filter: brightness(0.96);
  }

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-info h4 {
  margin: 0 0 0.35rem;
}

.cart-item-info p {
  margin: 0.25rem 0;
  color: var(--muted);
}

.price-old {
  text-decoration: line-through;
  opacity: 0.75;
  margin-right: 0.5rem;
}

.promo-status {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
}

.promo-active {
  color: #116a18;
}

.promo-inactive {
  color: #8a2b06;
}

.promo-note {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.cart-item-quantity button {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: #fff;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-quantity span {
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.cart-item-actions {
  min-width: 90px;
  text-align: right;
}

.cart-item-actions button {
  border: none;
  background: transparent;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
}

.cart-summary {
  margin-top: 1.25rem;
  font-weight: 700;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
  justify-content: center;
}

.pagination button {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  cursor: pointer;
}

.pagination button.active,
.pagination button:hover {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

.pagination-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.95rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--accent);
  color: #1a1a1a;
  font-weight: 700;
  padding: 0 0.75rem;
}

.empty-state {
  color: var(--muted);
  margin: 0.7rem 0;
}

@media (max-width: 980px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 840px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
  }
}

/* Menú móvil desplegable */
.logo-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.logo-btn:hover .logo {
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(139, 62, 47, 0.3);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(61, 47, 40, 0.1);
  border-bottom: 1px solid rgba(61, 47, 40, 0.1);
  box-shadow: 0 12px 32px rgba(60, 40, 30, 0.12);
  z-index: 99;
  flex-direction: column;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.32s ease, opacity 0.28s ease;
  opacity: 0;
}

.mobile-menu.open {
  display: flex;
  max-height: 400px;
  opacity: 1;
}

.mobile-menu a {
  padding: 1rem 1.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  border-bottom: 1px solid rgba(61, 47, 40, 0.07);
  transition: background 0.18s, color 0.18s;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  background: rgba(139, 62, 47, 0.06);
  color: var(--primary);
}

.site-header {
  position: relative;
}

/* Catalogo + filtros */
.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 1.8rem;
}

.catalog-filters button {
  padding: 0.55rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.18s, transform 0.18s;
}

.catalog-filters button:hover {
  transform: translateY(-1px);
  background: rgba(26, 75, 109, 0.06);
}

.catalog-filters button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Galería dinámica */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.gallery-grid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.18s, filter 0.18s;
}

.gallery-grid img:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.gallery-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.65);
  z-index: 50;
}

.gallery-modal.open {
  display: flex;
}

.gallery-modal-content {
  position: relative;
  max-width: 960px;
  width: min(92%, 960px);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42);
}

.gallery-modal img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-modal .close,
.gallery-modal .prev,
.gallery-modal .next {
  position: absolute;
  background: rgba(0, 0, 0, 0.45);
  border: none;
  color: white;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.05rem;
  transition: background 0.18s;
}

.gallery-modal .close {
  top: 16px;
  right: 16px;
}

.gallery-modal .prev {
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
}

.gallery-modal .next {
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
}

.gallery-modal .close:hover,
.gallery-modal .prev:hover,
.gallery-modal .next:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* Botón de WhatsApp flotante */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: #25d366;
  color: #0a3b22;
  font-weight: 700;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  border: none;
  transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.28);
}

.whatsapp-float:active,
.whatsapp-float.btn-pressed {
  transform: translateY(0px) scale(0.98);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  filter: brightness(0.95);
}

.whatsapp-float svg {
  width: 1.3rem;
  height: 1.3rem;
}

/* Estilos para presentaciones */
.badge-presentaciones {
  background: var(--accent);
  color: var(--text);
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  margin-left: 0.5rem;
  font-weight: 600;
}

.presentaciones-selector {
  margin-bottom: 0.5rem;
}

.presentaciones-selector label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.presentaciones-selector select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 8px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
}

.product-card.has-presentaciones {
  grid-template-rows: auto auto 1fr;
}

.product-card.has-presentaciones .product-card-content {
  padding-top: 0.5rem;
}
