/* index.css - Diseño del sitio de Super Vagos 64 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Paleta de colores cálida, familiar e inspirada en un mercado amigable */
  --primary: hsl(142, 45%, 35%);        /* Verde supermercado fresco */
  --primary-light: hsl(142, 45%, 93%);  /* Verde de fondo suave */
  --primary-dark: hsl(142, 45%, 22%);   /* Verde oscuro para textos */
  --secondary: hsl(38, 95%, 55%);       /* Amarillo cálido / Dorado */
  --secondary-light: hsl(45, 95%, 96%); /* Fondo crema súper cálido */
  --accent: hsl(4, 82%, 56%);           /* Rojo amigable para ofertas y precios */
  --accent-light: hsl(4, 82%, 95%);     /* Rojo suave de fondo */
  --text: hsl(210, 24%, 16%);           /* Slate oscuro para legibilidad */
  --text-muted: hsl(210, 16%, 45%);     /* Slate claro para detalles */
  --white: #ffffff;
  --bg-gradient: linear-gradient(135deg, hsl(45, 95%, 97%) 0%, hsl(142, 45%, 98%) 100%);
  
  /* Sombras y bordes redondeados (estilo familiar/amigable) */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset general */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg-gradient);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--primary-dark);
}

/* NAVEGACIÓN DYNAMIC GLASS */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(142, 200, 150, 0.2);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--secondary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.logo-block:hover .logo-img {
  transform: rotate(5deg) scale(1.05);
}

.logo-text h1 {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--primary);
  display: flex;
  flex-direction: column;
}

.logo-text span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-link-btn {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.nav-link-btn.active {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(45, 117, 72, 0.2);
}

/* SECCIONES Y TRANSICIÓN DE VISTAS */
.view-section {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.view-section.active {
  display: block;
}

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

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem 2rem;
}

/* HERO SECTION - INICIO */
.hero-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 2rem;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
  opacity: 0.15;
  pointer-events: none;
}

.hero-text h2 {
  color: var(--secondary);
  font-size: 2.8rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 550px;
}

.hero-badge-container {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-badge i {
  color: var(--secondary);
}

.hero-image-wrapper {
  position: relative;
  height: 100%;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-decor {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 4px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-md);
}

/* INFO CARDS (Dirección, Teléfono, Horario) */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.info-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(142, 200, 150, 0.1);
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  transition: var(--transition);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.info-icon {
  background: var(--primary-light);
  color: var(--primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.info-card:hover .info-icon {
  background: var(--primary);
  color: var(--white);
}

.info-details h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.info-details p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.info-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.info-action-btn:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* DESTACADOS EN HOME */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-left: 5px solid var(--secondary);
  padding-left: 1rem;
}

.section-header h2 {
  font-size: 1.8rem;
}

.section-header-btn {
  background: var(--primary-light);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.section-header-btn:hover {
  background: var(--primary);
  color: var(--white);
}

/* OFERTAS PAGE - CONTROLES */
.offers-control-bar {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  border: 1px solid rgba(142, 200, 150, 0.1);
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 280px;
}

.search-box i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 46px;
  border-radius: var(--radius-full);
  border: 2px solid hsl(210, 16%, 90%);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(45, 117, 72, 0.1);
}

.categories-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.category-filter-btn {
  background: var(--secondary-light);
  color: var(--text);
  border: 1px solid rgba(38, 95, 55, 0.1);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.category-filter-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.category-filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(45, 117, 72, 0.15);
}

.sheet-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: hsl(210, 20%, 96%);
  padding: 6px 12px;
  border-radius: var(--radius-full);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}

.status-dot.online {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.status-dot.offline {
  background: var(--secondary);
  box-shadow: 0 0 8px var(--secondary);
}

/* OFERTAS - GRILLA DE PRODUCTOS */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

/* TARJETA DE PRODUCTO */
.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(142, 200, 150, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(142, 200, 150, 0.3);
}

.product-img-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  background: hsl(210, 20%, 97%);
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img {
  transform: scale(1.08);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: var(--white);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.5px;
}

.product-category-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  color: var(--primary-dark);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(142, 200, 150, 0.2);
}

.product-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7rem;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  height: 2.4rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}

.product-prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
}

.price-offer {
  font-size: 1.6rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: var(--accent);
}

.price-original {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* SKELETON LOADER FOR PRODUCTS */
.skeleton-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 380px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.skeleton-img {
  height: 200px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

.skeleton-text {
  padding: 1.25rem;
}

.skeleton-title {
  height: 20px;
  width: 80%;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  margin-bottom: 0.8rem;
  border-radius: 4px;
}

.skeleton-desc {
  height: 14px;
  width: 95%;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  margin-bottom: 1.5rem;
  border-radius: 4px;
}

.skeleton-price {
  height: 30px;
  width: 50%;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* UBICACIÓN & CONTACTO */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-header h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.contact-header p {
  color: var(--text-muted);
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-channel-card {
  background: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(142, 200, 150, 0.1);
  transition: var(--transition);
}

.contact-channel-card:hover {
  transform: translateX(5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.contact-channel-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--white);
  flex-shrink: 0;
}

.contact-channel-icon.phone {
  background: #3b82f6; /* Azul llamada */
}

.contact-channel-icon.whatsapp {
  background: #25d366; /* Verde WhatsApp */
}

.contact-channel-icon.map {
  background: #ef4444; /* Rojo mapa */
}

.contact-channel-text h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
  color: var(--text);
}

.contact-channel-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--white);
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* SETTINGS BUTTON */
.admin-trigger-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(142, 200, 150, 0.3);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-trigger-btn:hover {
  background: var(--white);
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

/* SETTINGS MODAL / DIALOG */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--white);
  width: 90%;
  max-width: 500px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-overlay.open .modal-card {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-header h3 {
  font-size: 1.4rem;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.form-group input {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 2px solid hsl(210, 16%, 90%);
  outline: none;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
}

.form-group input:focus {
  border-color: var(--primary);
}

.modal-body ol {
  padding-left: 1.2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-body ol li strong {
  color: var(--text);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 1rem;
}

.btn-secondary {
  background: hsl(210, 16%, 94%);
  color: var(--text);
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: hsl(210, 16%, 88%);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(45, 117, 72, 0.15);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

/* NO OFFERS STATE */
.empty-offers-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(142, 200, 150, 0.1);
}

.empty-offers-state i {
  font-size: 3rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.empty-offers-state h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.empty-offers-state p {
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto;
}

/* FOOTER */
footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 2rem;
  border-top: 5px solid var(--secondary);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.footer-links-col h4 {
  color: var(--secondary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links-col a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links-col a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-contact-col h4 {
  color: var(--secondary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-contact-col p {
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-contact-col i {
  color: var(--secondary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* RESPONSIVE DESIGN ADJUSTMENTS */
@media (max-width: 768px) {
  .hero-card {
    grid-template-columns: 1fr;
    padding: 2rem;
    text-align: center;
  }
  
  .hero-text h2 {
    font-size: 2.2rem;
  }
  
  .hero-badge-container {
    justify-content: center;
  }
  
  .hero-image-wrapper {
    min-height: 200px;
  }
  
  .nav-container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
}

/* GALERÍA DEL LOCAL */
.gallery-container {
  display: grid;
  grid-template-columns: 1.6fr 0.4fr;
  gap: 1.5rem;
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 3.5rem;
  border: 1px solid rgba(142, 200, 150, 0.15);
}

@media (max-width: 768px) {
  .gallery-container {
    grid-template-columns: 1fr;
    padding: 1rem;
    margin-bottom: 2.5rem;
  }
}

.gallery-main-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 480px;
  background: hsl(210, 20%, 97%);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .gallery-main-wrapper {
    height: 280px;
  }
}

.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease, transform 0.5s ease;
}

.gallery-main-wrapper:hover .gallery-main-img {
  transform: scale(1.015);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.6) 70%, transparent 100%);
  color: var(--white);
  padding: 2.5rem 1.5rem 1.5rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.gallery-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
}

.gallery-thumbnails::-webkit-scrollbar {
  width: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
  background-color: rgba(142, 200, 150, 0.3);
  border-radius: 3px;
}

@media (max-width: 768px) {
  .gallery-thumbnails {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    padding-bottom: 8px;
    padding-right: 0;
  }
}

.thumbnail-wrapper {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 110px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  background: hsl(210, 20%, 97%);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .thumbnail-wrapper {
    width: 110px;
    height: 80px;
  }
}

.thumbnail-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.thumbnail-wrapper:hover img {
  opacity: 0.85;
}

.thumbnail-wrapper.active {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(45, 117, 72, 0.35);
}

.thumbnail-wrapper.active img {
  filter: brightness(0.85);
}

/* ===== BOTÓN DE REFRESCO MANUAL ===== */
.refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--primary);
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.refresh-btn:hover:not(:disabled) {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(45, 117, 72, 0.25);
  transform: translateY(-1px);
}

.refresh-btn:active:not(:disabled) {
  transform: translateY(0);
}

.refresh-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  border-color: var(--text-muted);
  color: var(--text-muted);
}

/* BADGE DE ESTADO (status indicator) */
.sheet-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(142, 200, 150, 0.25);
  border-radius: var(--radius-full);
  padding: 5px 12px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
  transition: background 0.4s ease;
}

.status-dot.online {
  background: hsl(142, 72%, 40%);
  box-shadow: 0 0 0 3px hsl(142, 72%, 88%);
  animation: pulse-green 2s infinite;
}

.status-dot.offline {
  background: hsl(38, 95%, 55%);
  box-shadow: 0 0 0 3px hsl(38, 95%, 88%);
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 3px hsl(142, 72%, 88%); }
  50%       { box-shadow: 0 0 0 6px hsl(142, 72%, 93%); }
}

/* ========================================================
   WHATSAPP GLOBAL & GENERAL ORDER STYLES
   ======================================================== */
/* BOTÓN FLOTANTE PERMANENTE DE WHATSAPP */
.whatsapp-float-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  z-index: 999;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float-btn:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
  color: white;
}

.whatsapp-float-tooltip {
  position: absolute;
  right: 72px;
  background: #1e293b;
  color: white;
  padding: 8px 14px;
  border-radius: 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: all 0.25s ease;
}

.whatsapp-float-btn:hover .whatsapp-float-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* BOTÓN WHATSAPP EN HERO */
.hero-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: white;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  transition: var(--transition);
  margin-top: 1.4rem;
}

.hero-whatsapp-btn:hover {
  background: #20ba59;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
  color: white;
}

/* BANNER DE PEDIDO GENERAL */
.general-order-banner {
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 50%, #388e3c 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 2.2rem 2.5rem;
  margin-top: 3.5rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.general-order-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.general-order-text h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.general-order-text p {
  font-size: 0.95rem;
  opacity: 0.92;
  max-width: 600px;
  line-height: 1.55;
}

.general-order-btn {
  background: #25d366;
  color: white;
  border: none;
  padding: 0.95rem 1.8rem;
  border-radius: var(--radius-md);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.general-order-btn:hover {
  background: #20ba59;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  color: white;
}

