﻿:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-accent: #10b981;
  --color-dark: #0f172a;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);
  --shadow-soft: 0 10px 30px -5px rgba(0, 0, 0, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 20px 35px -10px rgba(37, 99, 235, 0.18), 0 10px 20px -5px rgba(0, 0, 0, 0.08);
}

body {
    font-family: var(--font-main);
    color: #1e293b;
    background-color: #f8fafc;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

#preloader {
  z-index: 1000;
}

#productModal {
  z-index: 95;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

.animate-bounce-in {
    animation: bounceIn 0.8s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out;
}

/* Animación hover para las tarjetas de producto */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.03); /* sube y escala un poquito */
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15); /* sombra elegante */
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

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

.animate-spin-slow {
    animation: spin 2s linear infinite;
}


.gradient-bg {
  background: linear-gradient(135deg, #a3c169 0%, #fffbd5 100%);
  animation: bg-oliva-anim 10s ease-in-out infinite alternate;
}

@keyframes bg-oliva-anim {
  0% {
    background: linear-gradient(135deg, #a3c169 0%, #fffbd5 100%);
  }
  50% {
    background: linear-gradient(130deg, #b3d088 0%, #fffbd5 100%);
    /* Oliva más claro hacia el amarillo */
  }
  100% {
    background: linear-gradient(135deg, #a3c169 0%, #fffbd5 100%);
  }
}

.card-hover {
    transition: all 0.3s ease;
}

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

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-button.active {
    background: linear-gradient(135deg, #a3c169 0%, #fffbd5 100%);
    color: white;
}

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

.catalog-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  outline: none;
}

.catalog-input:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16);
}

.catalog-order-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.5rem 0.8rem;
  border-radius: 0.65rem;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  border: 0;
}

.public-product-card {
  cursor: pointer;
}

.public-presentation-select {
  min-height: 42px;
  padding: 0.55rem 0.7rem;
  font-size: 0.82rem;
}

.catalog-search-row {
  display: block;
}

.catalog-filter-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.catalog-search-wrap .catalog-input {
  padding-left: 3rem !important;
}

.catalog-search-wrap .fa-search {
  left: 1rem;
  width: 1.25rem;
  text-align: center;
  pointer-events: none;
}

.catalog-filter-panel {
  margin-top: 0.75rem;
}

.catalog-filter-header,
.catalog-apply-filters,
.catalog-panel-close,
.catalog-filter-backdrop,
.catalog-filter-trigger {
  display: none;
}

.catalog-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.cart-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 58px;
  padding: 0.65rem 0.85rem;
  border: 0;
  border-radius: 999px;
  background: #15803d;
  color: #fff;
  box-shadow: 0 10px 28px rgba(21, 128, 61, 0.32);
}

.cart-fab > i {
  font-size: 1.35rem;
}

.cart-fab-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.cart-fab-copy small {
  margin-top: 0.25rem;
  color: #dcfce7;
}

.cart-count {
  min-width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #fff;
  color: #166534;
  font-size: 0.75rem;
  font-weight: 800;
}

.cart-count.is-empty {
  opacity: 0.72;
}

.cart-backdrop,
.catalog-filter-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(2px);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  width: min(430px, 100%);
  height: 100dvh;
  background: #fff;
  box-shadow: -16px 0 40px rgba(15, 23, 42, 0.18);
  transform: translateX(105%);
  transition: transform 0.25s ease;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid #e5e7eb;
}

.cart-close,
.catalog-panel-close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #f3f4f6;
  color: #374151;
  font-size: 1.7rem;
  line-height: 1;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 0.4rem 1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.cart-item img {
  width: 64px;
  height: 64px;
  border-radius: 0.75rem;
  object-fit: cover;
}

.cart-item-info h3 {
  overflow: hidden;
  color: #1f2937;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item-info p {
  margin-top: 0.2rem;
  color: #6b7280;
  font-size: 0.75rem;
}

.cart-quantity {
  display: inline-flex;
  align-items: center;
  margin-top: 0.45rem;
  overflow: hidden;
  border: 1px solid #d1d5db;
  border-radius: 0.6rem;
}

.cart-quantity button {
  width: 34px;
  height: 32px;
  border: 0;
  background: #f9fafb;
  color: #166534;
  font-size: 1.15rem;
  font-weight: 700;
}

.cart-quantity strong {
  min-width: 30px;
  text-align: center;
  font-size: 0.85rem;
}

.cart-item-side {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  color: #166534;
  font-size: 0.85rem;
}

.cart-item-side button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #fef2f2;
  color: #dc2626;
}

.cart-checkout {
  max-height: 52vh;
  overflow-y: auto;
  padding: 1rem 1.15rem max(1rem, env(safe-area-inset-bottom));
  border-top: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 -10px 25px rgba(15, 23, 42, 0.06);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  color: #1f2937;
  font-size: 1.05rem;
}

.cart-total-row strong {
  color: #15803d;
  font-size: 1.25rem;
}

.cart-customer-fields {
  display: grid;
  gap: 0.65rem;
}

.cart-customer-fields label {
  color: #374151;
  font-size: 0.78rem;
  font-weight: 700;
}

.cart-customer-fields .catalog-input {
  margin-top: 0.25rem;
  min-height: 44px;
  font-size: 0.9rem;
  font-weight: 400;
}

.cart-customer-fields textarea.catalog-input {
  min-height: 64px;
  resize: vertical;
}

.cart-whatsapp-order,
.modal-add-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 50px;
  margin-top: 0.8rem;
  border: 0;
  border-radius: 0.8rem;
  background: #16a34a;
  color: #fff;
  font-weight: 800;
}

.catalog-apply-filters {
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 50px;
  margin-top: 0.8rem;
  border: 0;
  border-radius: 0.8rem;
  background: #16a34a;
  color: #fff;
  font-weight: 800;
}

.modal-add-cart {
  width: auto;
  padding: 0.7rem 1rem;
  margin-bottom: 1rem;
}

.modal-add-cart:disabled {
  background: #9ca3af;
}

.cart-form-error {
  margin-top: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.6rem;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.8rem;
  font-weight: 600;
}

.cart-empty {
  display: flex;
  min-height: 60vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.cart-empty > i {
  margin-bottom: 1rem;
  color: #bbf7d0;
  font-size: 3.5rem;
}

.cart-empty h3 {
  color: #1f2937;
  font-size: 1.1rem;
  font-weight: 800;
}

.cart-empty p {
  max-width: 260px;
  margin-top: 0.35rem;
  color: #6b7280;
  font-size: 0.85rem;
}

.cart-empty button {
  min-height: 44px;
  margin-top: 1rem;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 0.7rem;
  background: #dcfce7;
  color: #166534;
  font-weight: 700;
}

.mobile-bottom-nav {
  display: none;
}

.catalog-toast {
  position: fixed;
  left: 50%;
  bottom: 6rem;
  z-index: 100;
  max-width: calc(100% - 2rem);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: #1f2937;
  color: #fff;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.25);
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.catalog-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.panel-open {
  overflow: hidden;
}

@media (max-width: 768px) {
    body {
      padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }

    #public-site > nav {
      display: none;
    }

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

    .catalog-toolbar {
      position: sticky;
      top: 0;
      z-index: 30;
      margin-right: -0.5rem;
      margin-left: -0.5rem;
      padding: 0.75rem;
    }

    .catalog-search-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 0.5rem;
    }

    .catalog-filter-trigger {
      position: relative;
      display: inline-flex;
      min-width: 88px;
      min-height: 48px;
      align-items: center;
      justify-content: center;
      gap: 0.4rem;
      border: 1px solid #d1d5db;
      border-radius: 0.75rem;
      background: #fff;
      color: #166534;
      font-weight: 700;
    }

    .catalog-filter-count {
      position: absolute;
      top: -6px;
      right: -5px;
      display: inline-flex;
      width: 22px;
      height: 22px;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      background: #dc2626;
      color: #fff;
      font-size: 0.7rem;
    }

    .catalog-filter-panel {
      position: fixed;
      right: 0;
      bottom: 0;
      left: 0;
      z-index: 90;
      margin: 0;
      padding: 1rem 1rem max(1rem, env(safe-area-inset-bottom));
      border-radius: 1.25rem 1.25rem 0 0;
      background: #fff;
      box-shadow: 0 -15px 35px rgba(15, 23, 42, 0.2);
      transform: translateY(105%);
      transition: transform 0.25s ease;
    }

    .catalog-filter-panel.open {
      transform: translateY(0);
    }

    .catalog-filter-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 1rem;
    }

    .catalog-panel-close,
    .catalog-apply-filters,
    .catalog-filter-backdrop {
      display: flex;
    }

    .catalog-filter-fields {
      grid-template-columns: 1fr;
    }

    .catalog-categories {
      justify-content: flex-start;
      flex-wrap: nowrap;
      gap: 0.5rem;
      margin-right: -1rem;
      margin-left: -1rem;
      padding: 0 1rem 0.4rem;
      overflow-x: auto;
      scroll-snap-type: x proximity;
      scrollbar-width: none;
    }

    .catalog-categories::-webkit-scrollbar {
      display: none;
    }

    .category-filter {
      flex: 0 0 auto;
      min-height: 44px;
      padding-left: 0.9rem;
      padding-right: 0.9rem;
      font-size: 0.92rem;
    }

    .public-product-card {
      border-radius: 0.85rem;
      overflow: hidden;
    }

    .public-product-card h4 {
      font-size: 0.92rem;
    }

    .catalog-order-btn {
      min-height: 38px;
      padding-left: 0.7rem;
      padding-right: 0.7rem;
      font-size: 0.78rem;
    }

    .cart-fab {
      display: none;
    }

    .mobile-bottom-nav {
      position: fixed;
      right: 0;
      bottom: 0;
      left: 0;
      z-index: 60;
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      min-height: calc(64px + env(safe-area-inset-bottom));
      padding: 0.35rem 0.35rem env(safe-area-inset-bottom);
      border-top: 1px solid #e5e7eb;
      background: rgba(255, 255, 255, 0.97);
      box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
      backdrop-filter: blur(12px);
    }

    .mobile-bottom-nav button {
      display: flex;
      min-height: 56px;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0.2rem;
      border: 0;
      border-radius: 0.75rem;
      background: transparent;
      color: #6b7280;
      font-size: 0.68rem;
      font-weight: 700;
    }

    .mobile-bottom-nav button:active {
      background: #f0fdf4;
      color: #166534;
    }

    .mobile-bottom-nav button.active {
      background: #f0fdf4;
      color: #166534;
    }

    .mobile-bottom-nav i {
      font-size: 1.15rem;
    }

    .mobile-cart-icon {
      position: relative;
    }

    .mobile-cart-icon b {
      position: absolute;
      top: -11px;
      right: -14px;
      display: flex;
      min-width: 20px;
      height: 20px;
      align-items: center;
      justify-content: center;
      padding: 0 0.3rem;
      border: 2px solid #fff;
      border-radius: 999px;
      background: #dc2626;
      color: #fff;
      font-size: 0.62rem;
    }

    .cart-drawer {
      top: auto;
      bottom: 0;
      width: 100%;
      height: min(92dvh, 760px);
      border-radius: 1.25rem 1.25rem 0 0;
      transform: translateY(105%);
    }

    .cart-drawer.open {
      transform: translateY(0);
    }

    .cart-checkout {
      max-height: 48vh;
    }

}

@media (max-width: 420px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
    }

    .public-product-card {
      padding: 0.6rem;
    }

    .public-product-card img {
      height: 6.5rem;
    }

    .public-product-card > div:last-child {
      align-items: stretch;
      flex-direction: column;
    }

    .catalog-order-btn {
      width: 100%;
    }

    .cart-item {
      grid-template-columns: 54px minmax(0, 1fr) auto;
      gap: 0.55rem;
    }

    .cart-item img {
      width: 54px;
      height: 54px;
    }

    .cart-drawer-header,
    .cart-checkout {
      padding-right: 0.9rem;
      padding-left: 0.9rem;
    }
}

@media (max-width: 340px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

.floating-animation {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.admin-panel {
    display: none;
}

.admin-panel.active {
    display: block;
}

.scanner-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

#scanner-result {
    margin-top: 10px;
    padding: 10px;
    background-color: #f0f8ff;
    border-radius: 5px;
    border: 1px solid #ccc;
}
body.loading *:not(#preloader):not(#preloader *) {
visibility: hidden;
}

#preloader {
position: fixed;
inset: 0;
z-index: 99999;
background-color: white;
display: flex;
align-items: center;
justify-content: center;
transition: opacity 0.5s ease;
}

#preloader.hidden {
opacity: 0;
pointer-events: none;
}

/* ==== HERO SECTION NUEVO ==== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 75vh; /* Ajustado para reducir altura */
  display: flex;
  align-items: flex-start; /* Alineado arriba */
  justify-content: center;
  padding-top: 3rem; /* Espacio superior */
}

.hero__content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
  padding: 0 1rem; /* Eliminado padding vertical */
}

.hero__text {
  flex: 1 1 400px;
  max-width: 550px;
  text-align: left;
}

.hero__text h1 {
  font-size: clamp(1.5rem, 4vw, 2.5rem); /* Reducido */
  margin-bottom: 1rem;
  line-height: 1.3;
  overflow: hidden;
}

.hero__text h1 span {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards;
}

.hero__text h1 span:nth-child(1) { animation-delay: 0.2s; }
.hero__text h1 span:nth-child(2) { animation-delay: 0.35s; }
.hero__text h1 span:nth-child(3) { animation-delay: 0.5s; }
.hero__text h1 span:nth-child(4) { animation-delay: 0.65s; }
.hero__text h1 span:nth-child(5) { animation-delay: 0.8s; }
.hero__text h1 span:nth-child(6) { animation-delay: 0.95s; }
.hero__text h1 span:nth-child(7) { animation-delay: 1.1s; }
.hero__text h1 span:nth-child(8) { animation-delay: 1.25s; }

.hero__text p {
  font-size: clamp(1rem, 3vw, 1.125rem);
  margin-bottom: 2rem;
  color: #555;
  opacity: 0;
  animation: fadeIn 1s 1.5s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Botón amarillo animado */
.btn--primary {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: #fcb900;
  color: #fff;
  font-weight: bold;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: scale(0.8);
  opacity: 0;
  animation: popIn 0.8s 1.8s forwards;
  transition: transform 0.2s;
}

.btn--primary:hover {
  transform: scale(1.05);
}

@keyframes popIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero__image {
  flex: 1 1 250px; /* Ajustado tamaño mínimo */
  max-width: 400px;
  text-align: center;
  opacity: 0;
  animation: fadeIn 1s 1.2s forwards;
  margin-top: 1rem;
}

.hero__image img {
  max-width: 100%;
  max-height: 250px; /* Limita altura */
  height: auto;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.hero__wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  pointer-events: none;
  animation: moveWave 8s linear infinite;
}

.hero__wave svg {
  display: block;
  width: 200%;
  height: auto;
}

@keyframes moveWave {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeIn 1s 2.2s forwards;
}

.scroll-indicator span {
  display: block;
  width: 24px;
  height: 24px;
  border-left: 3px solid #555;
  border-bottom: 3px solid #555;
  transform: rotate(-45deg);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) rotate(-45deg);
  }
  40% {
    transform: translateY(10px) rotate(-45deg);
  }
  60% {
    transform: translateY(5px) rotate(-45deg);
  }
}

/* Responsive para móvil */
@media (max-width: 768px) {
  .hero__content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
  }
  .hero__text {
    max-width: 100%;
  }
  .hero__image {
    max-width: 80%;
    margin: 0 auto;
  }
}

.oferta-popup {
  position: fixed;
  top: 8.5rem;
  right: 2rem;
  max-width: 360px;
  background: linear-gradient(135deg, #fff7cd, #ffe082);
  border: 2px solid #fbc02d;
  color: #5d4037;
  font-size: 1.1rem;
  padding: 1.5rem 2rem 1.5rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  z-index: 65;
  animation: slideInDown 0.6s ease-out;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .oferta-popup {
    top: 1rem;
    right: 0.75rem;
    left: 0.75rem;
    max-width: none;
    padding: 1.1rem 2.5rem 1.1rem 1rem;
    font-size: 0.95rem;
  }
}

@keyframes slideInDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}



@keyframes slideInUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cerrar-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  font-weight: bold;
  color: #b71c1c;
  cursor: pointer;
  line-height: 1;
  margin-left: auto;
  padding: 0;
  position: absolute;
  top: 10px;
  right: 15px;
}

.hidden {
  display: none !important;
}

.auth-modal-panel {
  max-height: calc(100vh - 2rem);
}

.texto-oferta {
  flex: 1;
  font-weight: 600;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: #e5e7eb #fff;
}
.carousel-item {
  min-width: 250px;
  max-width: 260px;
  flex: 0 0 250px;
  scroll-snap-align: center;
  cursor: pointer;
  transition: box-shadow 0.18s, transform 0.18s;
}
.carousel-item:active {
  transform: scale(0.96);
}
.carousel-track::-webkit-scrollbar {
  height: 8px;
}
.carousel-track::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 4px;
}
.carousel-track::-webkit-scrollbar-track {
  background: transparent;
}
.ring-4 {
  box-shadow: 0 0 0 4px #fcb900 !important;
}
.ring-yellow-400 {
  box-shadow: 0 0 0 4px #fcb900 !important;
}
@media (max-width: 700px) {
  .carousel-item {
    min-width: 70vw;
    max-width: 90vw;
  }
  .carousel-track {
    gap: 0.6rem;
    padding-left: 6px;
    padding-right: 6px;
  }
}

/* Animación de entrada del modal */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in {
  animation: fade-in 0.3s ease-out;
}

/* Estrellas interactivas */
#ratingStars i {
  font-size: 20px;
  transition: color 0.2s ease;
}
#ratingStars i:hover,
#ratingStars i:hover ~ i {
  color: #facc15 !important; /* Tailwind amarillo-400 */
}

/* Comentarios del cliente */
#commentsSection div {
  padding: 10px 12px;
  background-color: #f9fafb; /* Tailwind gray-50 */
  border-radius: 8px;
  border-left: 4px solid #60a5fa; /* Tailwind blue-400 */
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Botón cerrar */
#closeModal:hover {
  transform: scale(1.2);
  color: #ef4444; /* Tailwind red-500 */
  transition: 0.2s;
}

/* Ajuste responsive */
@media (max-width: 640px) {
  #productModal .max-w-2xl {
    margin: 20px;
    max-height: 90vh;
    overflow-y: auto;
  }
}

/* ========================================================================== */
/* EXPERIENCIA PÚBLICA 2026                                                    */
/* ========================================================================== */
.public-storefront {
  --store-ink: #17352a;
  --store-muted: #66756e;
  --store-green: #1d6b45;
  --store-green-dark: #125134;
  --store-lime: #b9d978;
  --store-cream: #f7f5ec;
  --store-yellow: #f7b733;
  --store-line: rgba(23, 53, 42, 0.1);
  color: var(--store-ink);
  background:
    radial-gradient(circle at 3% 26%, rgba(185, 217, 120, 0.14), transparent 20rem),
    #fbfcf8;
}

.public-storefront button,
.public-storefront a,
.public-storefront input,
.public-storefront select,
.public-storefront textarea {
  -webkit-tap-highlight-color: transparent;
}

.public-storefront button:focus-visible,
.public-storefront a:focus-visible,
.public-storefront input:focus-visible,
.public-storefront select:focus-visible,
.public-storefront textarea:focus-visible {
  outline: 3px solid rgba(29, 107, 69, 0.24);
  outline-offset: 3px;
}

.store-announcement {
  background: var(--store-green-dark);
  color: #eff8e8;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.store-announcement > div {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.store-announcement i {
  margin-right: 0.42rem;
  color: var(--store-lime);
}

.store-header {
  position: relative;
  z-index: 52;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--store-line);
}

.store-header__inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.store-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  padding: 0;
  color: var(--store-ink);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.store-brand__mark {
  position: relative;
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  overflow: hidden;
  border-radius: 15px 15px 15px 4px;
  background: var(--store-green);
  color: #fff;
  box-shadow: 0 8px 20px rgba(29, 107, 69, 0.22);
  transform: rotate(-3deg);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
}

.store-brand:hover .store-brand__mark {
  transform: rotate(5deg) scale(1.06);
}

.store-brand__copy {
  display: flex;
  align-items: baseline;
  gap: 0.26rem;
  font-family: var(--font-heading);
  line-height: 1;
}

.store-brand__copy strong {
  font-size: 1.42rem;
  letter-spacing: -0.045em;
}

.store-brand__copy small {
  color: var(--store-green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.store-header__promise {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: auto;
  color: var(--store-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.store-header__promise span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #48a36c;
  box-shadow: 0 0 0 5px rgba(72, 163, 108, 0.13);
  animation: storeStatusPulse 2.2s ease-in-out infinite;
}

.store-auth-actions button,
.store-login-button,
.store-register-button {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.store-login-button,
.store-auth-actions #btn-open-login-modal {
  color: var(--store-ink) !important;
  background: #fff !important;
  border: 1px solid rgba(23, 53, 42, 0.14) !important;
  box-shadow: none !important;
}

.store-register-button,
.store-auth-actions #btn-open-register-modal {
  color: #fff !important;
  background: var(--store-green) !important;
  border: 1px solid var(--store-green) !important;
  box-shadow: 0 9px 20px rgba(29, 107, 69, 0.18) !important;
}

.store-auth-actions button:hover {
  transform: translateY(-2px) !important;
}

.store-user-pill {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 45px;
  padding: 0.4rem 0.48rem 0.4rem 0.72rem;
  border: 1px solid var(--store-line);
  border-radius: 999px;
  background: #f7faf4;
  color: var(--store-ink);
  font-size: 0.7rem;
}

.store-user-pill > i { color: var(--store-green); font-size: 1.15rem; }
.store-user-pill p { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-user-pill small { display: block; margin-top: 0.13rem; color: var(--store-muted); font-size: 0.57rem; }
.store-user-pill > button { width: 32px; min-height: 32px; padding: 0; border: 0; border-radius: 50%; background: #fff0ed; color: #b74838; box-shadow: none !important; }
.store-user-pill__admin-link { padding: 0.48rem 0.7rem; border-radius: 999px; background: var(--store-yellow); color: #4e3500; font-size: 0.62rem; font-weight: 900; }

.store-nav {
  background: rgba(255, 255, 255, 0.91);
  border-bottom: 1px solid var(--store-line);
  box-shadow: 0 8px 28px rgba(23, 53, 42, 0.04);
  backdrop-filter: blur(16px);
}

.store-nav__inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.store-nav .tab-button {
  position: relative;
  min-height: 58px;
  padding: 0 1.05rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #66756e;
  font-size: 0.83rem;
  font-weight: 750;
  transition: color 0.25s ease;
}

.store-nav .tab-button::after {
  content: '';
  position: absolute;
  right: 1rem;
  bottom: 0;
  left: 1rem;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--store-green);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
}

.store-nav .tab-button:hover,
.store-nav .tab-button.active {
  color: var(--store-green-dark);
  background: transparent;
}

.store-nav .tab-button.active::after,
.store-nav .tab-button:hover::after {
  transform: scaleX(1);
}

.store-nav__badge {
  display: inline-flex;
  margin-left: 0.25rem;
  padding: 0.12rem 0.35rem;
  border-radius: 999px;
  background: #fff0cf;
  color: #a76200;
  font-size: 0.57rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.store-nav__cart {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
  padding: 0.55rem 0.8rem;
  border: 0;
  border-radius: 999px;
  background: #edf5e5;
  color: var(--store-green-dark);
  font-size: 0.78rem;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease;
}

.store-nav__cart:hover {
  background: #e3efd9;
  transform: translateY(-1px);
}

.store-nav__cart b {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--store-green);
  color: #fff;
  font-size: 0.65rem;
}

.home-shell {
  padding-top: 1.5rem;
  padding-bottom: 4rem;
}

.public-storefront .hero {
  min-height: 560px;
  align-items: center;
  justify-content: center;
  padding: 3.6rem clamp(1.5rem, 5vw, 5rem);
  overflow: hidden;
  isolation: isolate;
  border-radius: 32px;
  background:
    radial-gradient(circle at 82% 10%, rgba(255, 255, 255, 0.32) 0 3px, transparent 4px) 0 0 / 32px 32px,
    linear-gradient(122deg, #eef4dc 0%, #f9f8ed 47%, #e4efd0 100%);
  box-shadow: 0 30px 80px rgba(30, 75, 51, 0.09);
}

.public-storefront .hero::before,
.public-storefront .hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(1px);
}

.public-storefront .hero::before {
  width: 330px;
  height: 330px;
  top: -210px;
  left: 30%;
  border: 1px solid rgba(29, 107, 69, 0.16);
  box-shadow: 0 0 0 42px rgba(29, 107, 69, 0.035), 0 0 0 88px rgba(29, 107, 69, 0.025);
}

.public-storefront .hero::after {
  right: -70px;
  bottom: -150px;
  width: 330px;
  height: 330px;
  background: rgba(185, 217, 120, 0.23);
}

.public-storefront .hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  max-width: 1120px;
  padding: 0;
}

.public-storefront .hero__text {
  max-width: 620px;
  text-align: left;
}

.hero__eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
  padding: 0.48rem 0.78rem;
  border: 1px solid rgba(29, 107, 69, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--store-green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  opacity: 0;
  animation: heroReveal 0.65s 0.08s ease forwards;
}

.public-storefront .hero__text h1 {
  max-width: 650px;
  margin: 0 0 1.2rem;
  color: var(--store-ink);
  font-size: clamp(2.75rem, 5vw, 4.8rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.065em;
  opacity: 0;
  overflow: visible;
  animation: heroReveal 0.72s 0.16s cubic-bezier(.2,.8,.2,1) forwards;
}

.public-storefront .hero__text h1 em {
  display: block;
  position: relative;
  width: fit-content;
  color: var(--store-green);
  font-style: normal;
}

.public-storefront .hero__text h1 em::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -0.1em;
  left: 0.08em;
  height: 0.13em;
  border-radius: 100%;
  background: var(--store-yellow);
  transform: rotate(-1deg) scaleX(0);
  transform-origin: left;
  animation: underlineGrow 0.65s 0.78s ease forwards;
}

.public-storefront .hero__text > p {
  max-width: 580px;
  margin: 0 0 1.8rem;
  color: #5d6d65;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.75;
  opacity: 0;
  animation: heroReveal 0.7s 0.27s ease forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  opacity: 0;
  animation: heroReveal 0.7s 0.37s ease forwards;
}

.public-storefront .btn--primary,
.public-storefront .btn--secondary {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.68rem;
  padding: 0.78rem 1.25rem;
  border-radius: 999px;
  font-size: 0.87rem;
  font-weight: 800;
  opacity: 1;
  transform: none;
  animation: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.public-storefront .btn--primary {
  border: 1px solid var(--store-green);
  background: var(--store-green);
  color: #fff;
  box-shadow: 0 12px 28px rgba(29, 107, 69, 0.22);
}

.public-storefront .btn--secondary {
  border: 1px solid rgba(23, 53, 42, 0.13);
  background: rgba(255, 255, 255, 0.7);
  color: var(--store-ink);
}

.public-storefront .btn--primary:hover,
.public-storefront .btn--secondary:hover {
  transform: translateY(-3px);
}

.public-storefront .btn--primary:hover {
  background: var(--store-green-dark);
  box-shadow: 0 16px 34px rgba(29, 107, 69, 0.28);
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.8rem;
  opacity: 0;
  animation: heroReveal 0.7s 0.46s ease forwards;
}

.hero__trust p {
  margin: 0;
  color: var(--store-muted);
  font-size: 0.7rem;
  line-height: 1.35;
}

.hero__trust strong {
  color: var(--store-ink);
  font-size: 0.78rem;
}

.hero__avatars {
  display: flex;
  padding-left: 0.5rem;
}

.hero__avatars span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  margin-left: -0.5rem;
  border: 2px solid #f2f6e6;
  border-radius: 50%;
  background: #d4e5bc;
  color: var(--store-green-dark);
  font-size: 0.55rem;
  font-weight: 900;
}

.hero__avatars span:nth-child(2) { background: #f8dba1; }
.hero__avatars span:nth-child(3) { background: #c7dfd0; }
.hero__avatars span:last-child { background: var(--store-green); color: #fff; }

.public-storefront .hero__image {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
  max-width: none;
  margin: 0;
  opacity: 0;
  animation: imageReveal 0.9s 0.22s cubic-bezier(.2,.8,.2,1) forwards;
}

.public-storefront .hero__image img {
  position: relative;
  z-index: 3;
  width: min(100%, 470px);
  max-height: 430px;
  object-fit: contain;
  filter: drop-shadow(0 28px 22px rgba(23, 53, 42, 0.14));
  animation: storeFloat 5s 1.1s ease-in-out infinite;
}

.hero__image-glow {
  position: absolute;
  z-index: 1;
  width: 82%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 0 1px rgba(29, 107, 69, 0.06);
}

.hero__orbit {
  position: absolute;
  z-index: 2;
  border: 1px dashed rgba(29, 107, 69, 0.2);
  border-radius: 50%;
  animation: orbitSpin 24s linear infinite;
}

.hero__orbit::after {
  content: '';
  position: absolute;
  top: 11%;
  left: 7%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--store-yellow);
  box-shadow: 0 0 0 6px rgba(247, 183, 51, 0.12);
}

.hero__orbit--one { width: 94%; aspect-ratio: 1; }
.hero__orbit--two { width: 68%; aspect-ratio: 1; animation-direction: reverse; animation-duration: 17s; }

.hero__floating-card {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.62rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 35px rgba(23, 53, 42, 0.13);
  backdrop-filter: blur(12px);
  animation: cardBob 4s ease-in-out infinite;
}

.hero__floating-card > span {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #e9f3dd;
  color: var(--store-green);
}

.hero__floating-card strong,
.hero__floating-card small {
  display: block;
  line-height: 1.25;
}

.hero__floating-card strong { color: var(--store-ink); font-size: 0.73rem; }
.hero__floating-card small { margin-top: 0.14rem; color: var(--store-muted); font-size: 0.59rem; }
.hero__floating-card--delivery { top: 14%; left: -5%; }
.hero__floating-card--rating { right: -5%; bottom: 14%; animation-delay: -1.8s; }
.hero__floating-card--rating > span { background: #fff2cd; color: #df9500; }

.benefit-strip {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 980px;
  margin: -34px auto 0;
  overflow: hidden;
  border: 1px solid var(--store-line);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 18px 45px rgba(23, 53, 42, 0.09);
  backdrop-filter: blur(16px);
}

.benefit-strip article {
  min-height: 91px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem;
}

.benefit-strip article + article { border-left: 1px solid var(--store-line); }
.benefit-strip article > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: #edf5e5; color: var(--store-green); }
.benefit-strip strong, .benefit-strip small { display: block; }
.benefit-strip strong { font-size: 0.77rem; }
.benefit-strip small { margin-top: 0.2rem; color: var(--store-muted); font-size: 0.65rem; }

.home-section { margin: 6.5rem 0 4rem; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.8rem; }
.section-heading h3 { margin: 0.25rem 0 0; color: var(--store-ink); font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.045em; }
.section-kicker { color: var(--store-green); font-size: 0.68rem; font-weight: 900; letter-spacing: 0.13em; text-transform: uppercase; }
.section-heading > button { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.7rem 0; border: 0; background: transparent; color: var(--store-green); font-size: 0.8rem; font-weight: 800; }
.section-heading > button i { transition: transform 0.2s ease; }
.section-heading > button:hover i { transform: translateX(4px); }

#productos3 .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
#productos3 .product-grid > div,
.community-favorites .carousel-item {
  position: relative;
  overflow: hidden;
  padding: 0.75rem;
  border: 1px solid var(--store-line);
  border-radius: 19px;
  box-shadow: 0 10px 30px rgba(23, 53, 42, 0.055);
}

#productos3 .product-grid > div::before,
.community-favorites .carousel-item::before {
  content: '';
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 14px rgba(23, 53, 42, 0.1);
}

#productos3 .product-grid > div::after,
.community-favorites .carousel-item::after {
  content: '\f004';
  position: absolute;
  z-index: 3;
  top: 1.56rem;
  right: 1.55rem;
  color: #8a9b92;
  font: 900 0.78rem/1 'Font Awesome 6 Free';
}

#productos3 .product-grid img,
.community-favorites .carousel-item img { height: 195px; border-radius: 14px; transition: transform 0.55s cubic-bezier(.2,.8,.2,1); }
#productos3 .product-grid > div:hover img,
.community-favorites .carousel-item:hover img { transform: scale(1.055); }
#productos3 .product-grid h4 { margin-top: 0.2rem; font-size: 1rem; }
#productos3 .product-grid > div > div { padding: 0.35rem 0.3rem; }

.home-stats { margin: 4.8rem 0 5rem; }
.home-stats .stat-card { position: relative; padding: 1.35rem 1rem; overflow: hidden; border: 1px solid var(--store-line); border-radius: 17px; box-shadow: none; }
.home-stats .stat-card::after { content: ''; position: absolute; right: -15px; bottom: -20px; width: 55px; height: 55px; border-radius: 50%; background: rgba(185, 217, 120, 0.16); transition: transform 0.3s ease; }
.home-stats .stat-card:hover::after { transform: scale(1.45); }
.home-stats .stat-card i { color: var(--store-green) !important; }
.home-stats .stat-card h4 { margin-bottom: 0.2rem; font-size: 1.35rem; }
.home-stats .stat-card p { font-size: 0.7rem; }

.community-favorites { margin-top: 0; }
.carousel-controls { display: flex; gap: 0.5rem; }
.carousel-controls button { width: 41px; height: 41px; display: grid; place-items: center; border: 1px solid var(--store-line); border-radius: 50%; background: #fff; color: var(--store-ink); transition: all 0.2s ease; }
.carousel-controls button:hover { border-color: var(--store-green); background: var(--store-green); color: #fff; transform: translateY(-2px); }
.community-favorites .carousel-track { gap: 1rem; padding: 0.2rem 0.2rem 1.2rem; scroll-behavior: smooth; scrollbar-width: none; }
.community-favorites .carousel-track::-webkit-scrollbar { display: none; }
.community-favorites .carousel-item { min-width: 232px; max-width: 232px; flex-basis: 232px; }
.community-favorites .carousel-item img { height: 150px; }

.category-showcase { position: relative; overflow: hidden; background: var(--store-cream) !important; }
.category-showcase::before { content: ''; position: absolute; top: -160px; left: -100px; width: 350px; height: 350px; border: 1px solid rgba(29, 107, 69, 0.08); border-radius: 50%; box-shadow: 0 0 0 45px rgba(29, 107, 69, 0.02), 0 0 0 90px rgba(29, 107, 69, 0.018); }
.category-showcase__heading h2 { margin-top: 0.4rem; color: var(--store-ink); letter-spacing: -0.045em; }
.category-showcase__heading p { color: var(--store-muted); font-size: 1rem; line-height: 1.7; }
.category-showcase .product-card { position: relative; padding: 1.65rem; border: 1px solid rgba(23, 53, 42, 0.08); border-radius: 20px; background: rgba(255, 255, 255, 0.82); box-shadow: 0 8px 28px rgba(23, 53, 42, 0.045); }
.category-showcase .product-card:hover { transform: translateY(-9px); border-color: rgba(29, 107, 69, 0.25); box-shadow: 0 18px 40px rgba(23, 53, 42, 0.1); }
.category-showcase .product-card > div { transition: transform 0.35s cubic-bezier(.2,.8,.2,1); }
.category-showcase .product-card:hover > div { transform: rotate(-6deg) scale(1.08); }
.category-showcase .product-card h3 { color: var(--store-ink); }
.category-showcase .product-card p { color: var(--store-muted); font-size: 0.82rem; line-height: 1.55; }

.public-storefront footer { background: #102c22 !important; }
.public-storefront footer .text-gray-300 { color: #b9c9c1 !important; }
.public-storefront footer .text-green-500 { color: var(--store-lime) !important; }

.public-storefront .cart-fab { background: var(--store-green); box-shadow: 0 12px 30px rgba(29, 107, 69, 0.3); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.public-storefront .cart-fab:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(29, 107, 69, 0.34); }

.public-storefront .oferta-popup {
  top: auto;
  right: auto;
  bottom: 1.5rem;
  left: 1.5rem;
  max-width: 330px;
  padding: 1rem 2.5rem 1rem 1rem;
  border: 1px solid rgba(29, 107, 69, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--store-ink);
  font-size: 0.82rem;
  box-shadow: 0 16px 40px rgba(23, 53, 42, 0.16);
  backdrop-filter: blur(14px);
  animation: offerToastIn 0.5s cubic-bezier(.2,.8,.2,1);
}

.public-storefront .oferta-popup::before {
  content: 'Oferta';
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 0.22rem 0.48rem;
  border-radius: 999px;
  background: #fff0cf;
  color: #9b6100;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-storefront .oferta-popup .cerrar-btn {
  top: 7px;
  right: 10px;
  color: #718078;
  font-size: 1.15rem;
}

@keyframes offerToastIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}

.public-storefront [data-reveal].animate-scale-in,
.public-storefront [data-reveal].animate-fade-in,
.public-storefront [data-reveal].animate-bounce-in,
.public-storefront [data-reveal].animate-slide-up {
  animation: none;
}

.public-storefront #preloader > i { color: var(--store-green) !important; }
.public-storefront #universalAuthModal > div > .bg-gradient-to-r { background: linear-gradient(135deg, var(--store-green-dark), var(--store-green)) !important; }
.public-storefront #auth-tab-login-btn { border-color: var(--store-green) !important; color: var(--store-green) !important; }
.public-storefront .catalog-input:focus { border-color: var(--store-green); box-shadow: 0 0 0 3px rgba(29, 107, 69, 0.14); }
.public-storefront .category-filter.active { background: var(--store-green) !important; }
.public-storefront .public-product-card { border: 1px solid var(--store-line); border-radius: 18px !important; box-shadow: 0 8px 28px rgba(23, 53, 42, 0.06) !important; }
.public-storefront .public-product-card:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(23, 53, 42, 0.11) !important; }

/* Contacto centrado y mapa de carga diferida */
.contact-page {
  min-height: 72vh;
}

.contact-heading {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.contact-heading h2 {
  margin: 0.35rem 0 0.7rem;
  color: var(--store-ink);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.contact-heading p {
  color: var(--store-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.contact-layout {
  width: 100%;
  max-width: 1180px;
  align-items: start;
  margin: 0 auto;
}

.contact-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  margin: 0 !important;
  border: 1px solid var(--store-line);
  border-radius: 20px !important;
  box-shadow: 0 12px 34px rgba(23, 53, 42, 0.075) !important;
}

.contact-card > h3 {
  color: var(--store-ink);
  letter-spacing: -0.025em;
}

.contact-list__item {
  min-height: 58px;
  padding: 0.5rem 0.25rem;
  border-bottom: 1px solid rgba(23, 53, 42, 0.07);
}

.contact-list__item:last-child {
  border-bottom: 0;
}

.contact-list__item > i {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  margin-right: 0.9rem !important;
  border-radius: 13px;
  background: #f4f8ee;
  color: var(--store-green) !important;
}

.contact-list__item .font-semibold {
  color: var(--store-ink);
  font-size: 0.86rem;
}

.contact-list__item .text-gray-600 {
  margin-top: 0.15rem;
  color: var(--store-muted) !important;
  font-size: 0.78rem;
}

.contact-social {
  text-align: center;
}

.contact-social__links {
  justify-content: center;
  gap: 0.75rem;
}

.contact-social__links a {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 14px;
}

.contact-map-shell {
  position: relative;
  width: 100%;
  height: 330px;
  overflow: hidden;
  border: 1px solid rgba(29, 107, 69, 0.1);
  border-radius: 15px;
  background:
    radial-gradient(circle at 75% 25%, rgba(185, 217, 120, 0.22), transparent 8rem),
    #f3f7ee;
}

.contact-map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1.5rem;
  text-align: center;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.contact-map-loader {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 0.8rem;
  border-radius: 18px 18px 18px 5px;
  background: var(--store-green);
  color: #fff;
  box-shadow: 0 10px 22px rgba(29, 107, 69, 0.2);
}

.contact-map-shell.is-loading .contact-map-loader {
  animation: mapMarkerPulse 1.3s ease-in-out infinite;
}

.contact-map-placeholder strong {
  color: var(--store-ink);
  font-size: 0.9rem;
}

.contact-map-placeholder small {
  margin: 0.3rem 0 0.85rem;
  color: var(--store-muted);
  font-size: 0.7rem;
}

.contact-map-placeholder a {
  color: var(--store-green);
  font-size: 0.7rem;
  font-weight: 800;
}

.contact-map-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.contact-map-shell.is-loaded .contact-map-frame {
  opacity: 1;
  pointer-events: auto;
}

.contact-map-shell.is-loaded .contact-map-placeholder {
  visibility: hidden;
  opacity: 0;
}

.contact-map-shell.is-slow .contact-map-placeholder small::after {
  content: ' Puedes abrir Google Maps con el enlace de abajo.';
}

.contact-cta {
  margin: 0 !important;
  border-radius: 20px !important;
  background: linear-gradient(125deg, var(--store-green-dark), #2b9a68) !important;
  box-shadow: 0 14px 30px rgba(29, 107, 69, 0.18);
  text-align: center;
}

.contact-cta h3 {
  margin-bottom: 0.45rem;
  letter-spacing: -0.025em;
}

.contact-cta p {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
}

.contact-cta__button {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--store-green-dark) !important;
}

@keyframes mapMarkerPulse {
  0%, 100% { transform: translateY(0); box-shadow: 0 10px 22px rgba(29, 107, 69, 0.2); }
  50% { transform: translateY(-5px); box-shadow: 0 16px 28px rgba(29, 107, 69, 0.26); }
}

[data-reveal="left"] { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal].is-visible { opacity: 1; transform: translate(0, 0); }

@keyframes heroReveal { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes imageReveal { from { opacity: 0; transform: translateX(28px) scale(0.94); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes underlineGrow { to { transform: rotate(-1deg) scaleX(1); } }
@keyframes storeFloat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(0.6deg); } }
@keyframes cardBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
@keyframes storeStatusPulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(72, 163, 108, 0.12); } 50% { box-shadow: 0 0 0 7px rgba(72, 163, 108, 0.03); } }

@media (max-width: 920px) {
  .store-header__promise { display: none; }
  .store-auth-actions { margin-left: auto; }
  .public-storefront .hero { min-height: auto; padding: 3rem 2rem 4.5rem; }
  .public-storefront .hero__content { grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr); gap: 2rem; }
  .public-storefront .hero__text h1 { font-size: clamp(2.65rem, 6vw, 4rem); }
  .public-storefront .hero__image { min-height: 360px; }
  .hero__floating-card--delivery { left: -2%; }
  .hero__floating-card--rating { right: -2%; }
}

@media (max-width: 768px) {
  .store-announcement__aside { display: none; }
  .store-announcement > div { justify-content: center; }
  .store-header__inner { min-height: 69px; gap: 0.75rem; }
  .store-brand__mark { width: 39px; height: 39px; }
  .store-brand__copy strong { font-size: 1.16rem; }
  .store-brand__copy small { display: none; }
  .store-auth-actions { gap: 0.38rem; }
  .store-auth-actions button { min-height: 39px; padding: 0.5rem 0.72rem; font-size: 0.7rem; }
  .store-register-button i { display: none; }
  .home-shell { padding-top: 0.75rem; }
  .public-storefront .hero { padding: 2.5rem 1.35rem 4.5rem; border-radius: 24px; }
  .public-storefront .hero__content { display: flex; flex-direction: column; gap: 1.25rem; }
  .public-storefront .hero__text { max-width: 620px; text-align: center; }
  .hero__eyebrow { margin-right: auto; margin-left: auto; }
  .public-storefront .hero__text h1 { font-size: clamp(2.45rem, 12vw, 4rem); }
  .public-storefront .hero__text h1 em { margin: 0 auto; }
  .public-storefront .hero__text > p { margin-right: auto; margin-left: auto; font-size: 0.94rem; }
  .hero__actions { justify-content: center; }
  .hero__trust { justify-content: center; }
  .public-storefront .hero__image { width: min(100%, 430px); min-height: 330px; margin: 0 auto; }
  .public-storefront .hero__image img { max-height: 330px; }
  .hero__floating-card--delivery { top: 10%; left: -1%; }
  .hero__floating-card--rating { right: -1%; bottom: 8%; }
  .benefit-strip { grid-template-columns: 1fr; max-width: 430px; margin-top: -30px; }
  .benefit-strip article { min-height: 74px; justify-content: flex-start; padding: 0.8rem 1.3rem; }
  .benefit-strip article + article { border-top: 1px solid var(--store-line); border-left: 0; }
  .home-section { margin: 4.5rem 0 3rem; }
  .section-heading { align-items: center; }
  .section-heading h3 { font-size: 1.72rem; }
  #productos3 .product-grid { grid-template-columns: 1fr; gap: 0.85rem; }
  #productos3 .product-grid img { height: 220px; }
  .home-stats { margin: 3.8rem 0; }
  .community-favorites .carousel-item { min-width: 72vw; max-width: 72vw; flex-basis: 72vw; }
  .carousel-controls { display: none; }
  .public-storefront .oferta-popup { top: auto; right: 0.75rem; bottom: calc(76px + env(safe-area-inset-bottom)); left: 0.75rem; max-width: none; padding: 0.9rem 2.4rem 0.9rem 0.9rem; font-size: 0.76rem; }
  .contact-page { padding-top: 2.5rem !important; padding-bottom: 3rem !important; }
  .contact-heading { margin-bottom: 1.75rem; }
  .contact-layout { grid-template-columns: 1fr; gap: 1.25rem; }
  .contact-column { gap: 1.25rem; }
  .contact-card { padding: 1.15rem !important; }
  .contact-map-shell { height: 290px; }
}

@media (max-width: 480px) {
  .store-brand__copy { display: none; }
  .store-auth-actions button span { white-space: nowrap; }
  .public-storefront .hero { padding: 2.1rem 1rem 4rem; }
  .hero__eyebrow { font-size: 0.62rem; }
  .public-storefront .hero__text h1 { font-size: 2.55rem; }
  .hero__actions { display: grid; grid-template-columns: 1fr; }
  .public-storefront .btn--primary, .public-storefront .btn--secondary { width: 100%; }
  .public-storefront .hero__image { min-height: 280px; }
  .public-storefront .hero__image img { max-height: 280px; }
  .hero__floating-card { padding: 0.56rem 0.62rem; }
  .hero__floating-card > span { width: 30px; height: 30px; }
  .hero__floating-card strong { font-size: 0.64rem; }
  .hero__floating-card small { font-size: 0.52rem; }
  .section-heading > button { font-size: 0; }
  .section-heading > button i { font-size: 0.9rem; }
  #productos3 .product-grid img { height: 190px; }
  .home-stats { gap: 0.65rem; }
  .home-stats .stat-card { padding: 1rem 0.65rem; }
}


/* ==============================================================================
 * BASE GLOBAL — EVITAR DESBORDAMIENTO HORIZONTAL
 * ============================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; width: 100%; }
body { overflow-x: hidden; width: 100%; max-width: 100vw; }
img, video, iframe, canvas, svg { max-width: 100%; height: auto; }
#public-site { width: 100%; min-width: 0; padding-bottom: calc(85px + env(safe-area-inset-bottom, 0px)); }


/* ENCABEZADO Y ACCESO MÓVIL (< 479px en CSS Grid, >= 480px en Flexbox) */
.store-auth-desktop { display: inline-flex; align-items: center; gap: 0.5rem; }
.store-auth-mobile { display: none !important; }

.store-mobile-access-button {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--store-green, #10b981) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.28) !important;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}
.store-mobile-access-button:hover,
.store-mobile-access-button:focus {
  background: #059669 !important;
  transform: scale(1.05);
}

.store-mobile-access-dropdown {
  z-index: 100 !important;
  pointer-events: auto !important;
}

@media (max-width: 479px) {
  .store-auth-desktop { display: none !important; }
  .store-auth-mobile { display: block !important; position: relative !important; }

  .store-header__inner {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 44px !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 58px !important;
    padding: 0.4rem 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .store-brand {
    grid-column: 1 !important;
    width: 44px !important;
    height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .store-brand__mark {
    width: 38px !important;
    height: 38px !important;
    margin: 0 !important;
  }

  .store-brand__copy { display: none !important; }
  .store-header__promise { display: none !important; }

  .store-branch-select-container {
    grid-column: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    padding: 0.35rem 0.6rem !important;
    box-sizing: border-box !important;
  }

  .store-branch-select-container select {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    font-size: 0.72rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  #header-user-container {
    grid-column: 3 !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    width: 44px !important;
    margin: 0 !important;
  }
}

/* GENERALES MÓVIL <= 768px */
@media (max-width: 768px) {
  .store-nav__inner { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-left: 0.75rem; padding-right: 0.75rem; }
  .store-nav__inner::-webkit-scrollbar { display: none; }
  .tab-button { font-size: 0.8rem; padding: 0.6rem 0.75rem; white-space: nowrap; flex-shrink: 0; }
  .product-card, .offer-card, .benefit-strip article { max-width: 100%; width: 100%; }
  .contact-map-shell, .contact-map-shell iframe { width: 100% !important; max-width: 100% !important; }
  .store-header__promise { display: none; }
}

/* MODALES — login y registro en móvil */
@media (max-width: 599px) {
  #universal-auth-modal > div { align-items: flex-start !important; padding-top: env(safe-area-inset-top, 0.5rem) !important; }
  #universal-auth-modal .relative, #universal-auth-modal [class*="rounded"] { width: calc(100% - 24px) !important; max-width: 420px !important; max-height: 90dvh !important; overflow-y: auto !important; margin: 0.75rem auto !important; padding: 1.25rem !important; border-radius: 16px !important; }
  #universal-auth-modal input, #universal-auth-modal select, #universal-auth-modal textarea { width: 100% !important; min-height: 44px; font-size: 1rem; }
  #universal-auth-modal button[type="submit"], #universal-auth-modal button.w-full { width: 100% !important; min-height: 46px; }
}

/* BREAKPOINTS 412 / 390 / 360 / 320 */
@media (max-width: 420px) {
  .store-branch-select-container select { font-size: 0.72rem; }
  .hero__actions { display: flex; flex-direction: column; gap: 0.6rem; }
  .public-storefront .btn--primary, .public-storefront .btn--secondary { width: 100%; text-align: center; }
}

@media (max-width: 360px) {
  .store-brand__mark { width: 34px; height: 34px; }
  .store-branch-select-container { font-size: 0.68rem; }
  .hero__eyebrow { font-size: 0.6rem; }
  .public-storefront .hero__text h1 { font-size: 2.1rem; }
  .home-stats { gap: 0.5rem; }
  .home-stats .stat-card { padding: 0.8rem 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .public-storefront *, .public-storefront *::before, .public-storefront *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
