/*
  ==========================================================
  Vitrina Plus - Sistema de Estilos
  Estructura: Fundamentos · Base · Layout · Componentes · Utilidades · Responsivo · Animaciones
  ==========================================================
*/

/* ============================ */
/* Fundamentos (Design Tokens)  */
/* ============================ */
:root {
  /* Paleta */
  --color-bg: #fbfcfd;
  --color-surface: #ffffff;
  --color-text: #0f172a;         /* slate-900 */
  --color-muted: #475569;        /* slate-600 */
  --color-border: rgba(2, 6, 23, 0.08);
  --brand-emerald: #059669;
  --brand-emerald-strong: #047857;
  --brand-mint: #67c7b4;
  --brand-amber: #e8941f;
  --brand-sky: #75aefa;
  --brand-sky-strong: #5a90d8;
  --brand-mustard: #ffc107;

  /* Tipografía */
  --font-family: 'Montserrat', sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;

  /* Sombra, radios y contenedor */
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 6px 18px rgba(2, 6, 23, 0.08);
  --shadow-md: 0 12px 32px rgba(2, 6, 23, 0.12);
}

/* ============================ */
/* Base (Reset suave + cuerpo)  */
/* ============================ */
html, body { height: 100%; }
html { font-size: 100%; }
body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }

/* ============================ */
/* Layout                      */
/* ============================ */
/* Topbar */
.topbar-item i { color: var(--brand-emerald); }
#vp-open-badge { white-space: nowrap; }

/* Header/Hero */
.store-header {
  background: linear-gradient(135deg, var(--brand-emerald) 0%, var(--brand-mint) 100%);
}
.hero-height { height: 14rem; }

/* Grid contenedor de productos */
.vp-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .vp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) { .vp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .vp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ============================ */
/* Componentes                 */
/* ============================ */
/* Badge de categoría */
#vp-category-badge {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Tarjeta de producto */
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex;
  flex-direction: column; /* Asegura media arriba y texto abajo */
}

@media (max-width: 767px) {
  .product-card {
    border-radius: 0;
  }
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-emerald);
}
@media (max-width: 480px) {
  .product-card:hover { transform: translateY(-2px); }
}
@media (min-width: 769px) {
  .product-card:hover { transform: translateY(-6px); }
}
.product-card__media { width: 100%; aspect-ratio: 1 / 1; background: #f1f5f9; flex: 0 0 auto; position: relative; }
@media (max-width: 480px) { .product-card__media { aspect-ratio: 1 / 1; } }
@media (min-width: 481px) and (max-width: 768px) { .product-card__media { aspect-ratio: 1 / 1; } }
@media (min-width: 769px) { .product-card__media { aspect-ratio: 1 / 1; } }
.product-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Contenedor de imagen principal clickeable */
.product-image-container {
  width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.product-image-container[data-clickable="true"]:hover {
  transform: scale(1.02);
}

.product-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-image-container:hover .product-main-image {
  transform: scale(1.05);
}

/* Badge de múltiples imágenes */
.multiple-images-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

@media (max-width: 767px) {
  .multiple-images-badge {
    border-radius: 0;
  }
}

.multiple-images-badge i {
  font-size: 10px;
}

@media (max-width: 480px) {
  .multiple-images-badge {
    top: 6px;
    right: 6px;
    padding: 3px 6px;
    font-size: 11px;
  }
}

/* Modal de imagen ampliada */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.image-modal.active {
  opacity: 1;
  visibility: visible;
}

.image-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.image-modal__content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.image-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 10;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

@media (max-width: 767px) {
  .image-modal__close {
    border-radius: 0;
  }
}

.image-modal__close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.image-modal__header {
  position: absolute;
  top: 20px;
  left: 20px;
  color: white;
  z-index: 10;
}

.image-modal__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.image-modal__counter {
  display: block;
  font-size: 14px;
  opacity: 0.8;
  margin-top: 4px;
}

.image-modal__gallery {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal__main {
  max-width: 90%;
  max-height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal__image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

@media (max-width: 767px) {
  .image-modal__image {
    border-radius: 0;
  }
}

.image-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 10;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

@media (max-width: 767px) {
  .image-modal__nav {
    border-radius: 0;
  }
}

.image-modal__nav:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.image-modal__nav--prev {
  left: 20px;
}

.image-modal__nav--next {
  right: 20px;
}

.image-modal__thumbnails {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  max-width: 90%;
  overflow-x: auto;
  padding: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@media (max-width: 767px) {
  .image-modal__thumbnails {
    border-radius: 0;
  }
}

.image-modal__thumb {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.7;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .image-modal__thumb {
    border-radius: 0;
  }
}

.image-modal__thumb:hover {
  opacity: 1;
  transform: scale(1.05);
}

.image-modal__thumb.active {
  opacity: 1;
  border-color: var(--brand-emerald);
  transform: scale(1.1);
}

.image-modal__indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.image-modal__indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

@media (max-width: 767px) {
  .image-modal__indicator {
    border-radius: 0;
  }
}

.image-modal__indicator.active {
  background: var(--brand-emerald);
  transform: scale(1.3);
}

.image-modal__indicator:hover {
  background: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  .image-modal__content {
    padding: 10px;
  }
  
  .image-modal__close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  .image-modal__header {
    top: 10px;
    left: 10px;
  }
  
  .image-modal__title {
    font-size: 16px;
  }
  
  .image-modal__nav {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  
  .image-modal__nav--prev {
    left: 10px;
  }
  
  .image-modal__nav--next {
    right: 10px;
  }
  
  .image-modal__thumbnails {
    bottom: 60px;
    gap: 6px;
  }
  
  .image-modal__thumb {
    width: 50px;
    height: 50px;
  }
  
  .image-modal__indicators {
    bottom: 15px;
    gap: 6px;
  }
  
  .image-modal__indicator {
    width: 10px;
    height: 10px;
  }
}
.product-card__body { padding: 0.75rem; background: var(--color-surface); position: relative; flex: 1 1 auto; }
@media (max-width: 480px) { .product-card__body { padding: 0.625rem; } }
@media (min-width: 769px) { .product-card__body { padding: 1rem; } }
.product-card__title { font-weight: 600; margin: 0 0 .25rem; }
.product-card__desc { color: var(--color-muted); font-size: .9375rem; }
.product-card__footer { margin-top: .5rem; display: flex; align-items: center; justify-content: space-between; }
.price-tag { color: var(--brand-emerald); font-weight: 700; }

/* Botón de like (corazón) */
.like-btn {
  appearance: none;
  border: 1px solid var(--color-border);
  background: #fff;
  color: #9ca3af; /* slate-400 */
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, color .15s ease, background-color .15s ease, border-color .15s ease;
}

@media (max-width: 767px) {
  .like-btn {
    border-radius: 0;
  }
}
.like-btn:hover { color: #ef4444; border-color: #fecaca; background: #fff5f5; }
.like-btn.is-liked { color: #ef4444; background: #fee2e2; border-color: #fecaca; box-shadow: var(--shadow-sm); }

/* Variación de etiqueta de precio (como test.html) */
.price-tag--chip {
  display: inline-block;
  background: var(--brand-amber);
  color: #fff;
  font-weight: 700;
  font-size: .875rem;
  line-height: 1;
  padding: .375rem .625rem;
  border-radius: .5rem;
}

/* Botones (si se requieren fuera de Tailwind) */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; height: 2.5rem; padding: 0 1rem;
  border-radius: 999px; border: 1px solid transparent;
  background: var(--brand-emerald); color: #fff; font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-1px); background: var(--brand-emerald-strong); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--brand-emerald); color: #fff; }
.btn--primary:hover { background: var(--brand-emerald-strong); }

/* Botón secundario de acción (como test.html) */
.action-btn {
  background-color: var(--brand-emerald);
  color: #fff;
  transition: all .2s ease;
}
.action-btn:hover { background-color: var(--brand-emerald-strong); transform: scale(1.05); }

/* Logos e imágenes */
#vp-banner { object-fit: cover; }
#vp-logo {
  background: #fff;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.8);
  border-radius: 999px;
}

/* ============================ */
/* Utilidades                  */
/* ============================ */
.hidden { display: none !important; }
.elevation-sm { box-shadow: var(--shadow-sm); }
.elevation-md { box-shadow: var(--shadow-md); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }

/* Estados de apertura */
#vp-open-badge.bg-green { background-color: #10b981; }
#vp-open-badge.bg-red { background-color: #ef4444; }

/* Estados abiertos/cerrados (compat test.html) */
.status-open { background-color: #10b981; color: #fff; }
.status-closed { background-color: #ef4444; color: #fff; }

/* ============================ */
/* Responsivo extra             */
/* ============================ */
@media (max-width: 639.98px) {
  .hero-height { height: 11rem; }
}

/* ============================ */
/* Animaciones                  */
/* ============================ */
@keyframes vp-fade-in-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.vp-appear { animation: vp-fade-in-up .35s ease-out both; }

/* Compat: clase usada en test.html */
.animate-fade-in { animation: vp-fade-in-up .6s ease-out forwards; }

/* Chips de filtro (compat test.html) */
.filter-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .375rem .75rem; border-radius: 999px;
  background: #e5f6f1; color: var(--brand-emerald);
  transition: all .2s ease;
}

@media (max-width: 767px) {
  .filter-chip {
    border-radius: 0;
  }
}
.filter-chip.active { background: var(--brand-emerald); color: #fff; }

/* Insignia ecológica (compat test.html) */
.eco-badge { background: var(--brand-mint); color: #0b1220; border-radius: 999px; padding: .25rem .625rem; font-weight: 600; }

@media (max-width: 767px) {
  .eco-badge {
    border-radius: 0;
  }
}

/* ============================ */
/* Nuevos estilos vplus-*       */
/* ============================ */
/* Contenedor y página */
.vplus-page { background: var(--color-bg); color: var(--color-text); }
.vplus-container { max-width: 1120px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }

/* Responsive para móviles pequeños */
@media (max-width: 480px) {
  .vplus-container { padding-left: 12px; padding-right: 12px; }
}

/* Topbar */
.vplus-topbar { background: #fff; border-bottom: 1px solid var(--color-border); }
.vplus-topbar__grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 8px; padding: 8px 0; }
@media (max-width: 480px) { .vplus-topbar__grid { gap: 6px; padding: 6px 0; } }
@media (min-width: 481px) and (max-width: 768px) { .vplus-topbar__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 10px 0; } }
@media (min-width: 769px) and (max-width: 1024px) { .vplus-topbar__grid { grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 12px 0; } }
@media (min-width: 1025px) { .vplus-topbar__grid { grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 12px 0; } }
.vplus-topbar__item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--color-muted); }
@media (max-width: 480px) { .vplus-topbar__item { gap: 4px; font-size: 11px; } }
@media (min-width: 481px) and (max-width: 768px) { .vplus-topbar__item { gap: 6px; font-size: 13px; } }
@media (min-width: 769px) { .vplus-topbar__item { gap: 8px; font-size: 14px; } }
.vplus-topbar__icon { color: var(--brand-emerald); font-size: 14px; }
@media (max-width: 480px) { .vplus-topbar__icon { font-size: 12px; } }
@media (min-width: 769px) { .vplus-topbar__icon { font-size: 16px; } }
.vplus-link { color: var(--brand-emerald); text-decoration: none; }
.vplus-link:hover { text-decoration: underline; }

/* Badges */
.vplus-badge { display: inline-block; padding: 6px 10px; border-radius: 999px; font-weight: 600; font-size: 12px; }

@media (max-width: 767px) {
  .vplus-badge {
    border-radius: 0;
  }
}
.vplus-badge--glass { background: rgba(255,255,255,.9); color: #0b1220; box-shadow: var(--shadow-sm); }
.vplus-badge--state { color: #fff; }
.status-open { background-color: #10b981; }
.status-closed { background-color: #ef4444; }
.vplus-hidden { display: none !important; }

/* Hero */
.vplus-hero { 
  color: #fff; 
  background: linear-gradient(135deg, #6a11cb, #2575fc, #a24aca, #5a67ff);
  background-size: 300% 300%;
  animation: gradient-animation 15s ease infinite;
  border-radius: 0 0 16px 16px;
}

/* Forzar el título del negocio en blanco dentro del hero */
.vplus-hero .vplus-title,
.vplus-hero #vp-name {
  color: #ffffff !important;
}

@media (max-width: 767px) {
  .vplus-hero {
    border-radius: 0;
  }
}

@keyframes gradient-animation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.vplus-hero__wrap { display: flex; flex-direction: column; gap: 16px; padding: 24px 0; }
@media (max-width: 480px) { .vplus-hero__wrap { gap: 12px; padding: 16px 0; } }
@media (min-width: 481px) and (max-width: 768px) { .vplus-hero__wrap { gap: 14px; padding: 20px 0; } }
@media (min-width: 769px) and (max-width: 1024px) { .vplus-hero__wrap { flex-direction: row; justify-content: space-between; align-items: center; gap: 18px; padding: 28px 0; } }
@media (min-width: 1025px) { .vplus-hero__wrap { flex-direction: row; justify-content: space-between; align-items: center; gap: 20px; padding: 32px 0; } }
.vplus-hero__info { flex: 1 1 auto; }
.vplus-hero__brand {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas:
    "logo logo"
    "name badge"
    "desc desc";
  align-items: center;
  gap: 4px 6px;
  margin-bottom: 6px;
}
@media (max-width: 480px) { .vplus-hero__brand { gap: 3px 4px; margin-bottom: 4px; } }
.vplus-logo { width: 72px; height: 72px; border-radius: 50%; border: 2px solid rgba(255,255,255,.85); background: #fff; object-fit: cover; }
#vp-logo { grid-area: logo; }
#vp-name { grid-area: name; }
#vp-verified { grid-area: badge; }
#vp-description { grid-area: desc; }

/* Mostrar logo y badge verificado */
#vp-logo { display: block; }
#vp-verified { display: inline-flex; }

@media (max-width: 767px) {
  .vplus-logo {
    border-radius: 0;
  }
}
@media (max-width: 480px) { .vplus-logo { width: 60px; height: 60px; } }
.vplus-title { 
  font-size: 18px; 
  font-weight: 800; 
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  line-height: 1.2;
}
@media (max-width: 480px) {
  .vplus-title { font-size: 16px; }
}
@media (min-width: 481px) and (max-width: 768px) {
  .vplus-hero__brand { gap: 10px; margin-bottom: 7px; }
  .vplus-logo { width: 80px; height: 80px; }
  .vplus-title { font-size: 20px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .vplus-hero__brand { gap: 12px; margin-bottom: 8px; }
  .vplus-logo { width: 88px; height: 88px; }
  .vplus-title { font-size: 24px; }
}
@media (min-width: 1025px) {
  .vplus-hero__brand { gap: 12px; margin-bottom: 8px; }
  .vplus-logo { width: 104px; height: 104px; }
  .vplus-title { font-size: 32px; }
}
.vplus-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  vertical-align: middle;
  color: #ffffff; /* blanco */
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.4));
  animation: badge-pop 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.vplus-verified-badge:hover {
  transform: scale(1.1) rotate(5deg);
  animation: badge-glow 1s ease-in-out infinite;
}

.vplus-verified-badge .verified-badge-icon { 
  width: 28px;
  height: 28px;
  color: #ffffff;
  animation: badge-pulse 1500ms cubic-bezier(0.4, 0, 0.6, 1) infinite;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center;
}

.vplus-verified-badge:hover .verified-badge-icon {
  transform: rotate(360deg) scale(1.1);
}

@keyframes badge-pop {
  0% { 
    transform: scale(0.3) rotate(-45deg); 
    opacity: 0; 
    filter: blur(4px);
  }
  25% {
    transform: scale(0.8) rotate(-15deg);
    opacity: 0.5;
    filter: blur(2px);
  }
  50% { 
    transform: scale(1.3) rotate(15deg); 
    opacity: 0.8;
    filter: blur(0px);
  }
  75% {
    transform: scale(0.95) rotate(-5deg);
    opacity: 1;
  }
  100% { 
    transform: scale(1) rotate(0deg); 
    opacity: 1; 
    filter: blur(0px);
  }
}

@keyframes badge-pulse {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.4));
  }
  25% {
    opacity: 0.9;
    transform: scale(1.08) rotate(2deg);
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.6));
  }
  50% { 
    opacity: 0.7; 
    transform: scale(1.15) rotate(0deg);
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.8));
  }
  75% {
    opacity: 0.9;
    transform: scale(1.08) rotate(-2deg);
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.6));
  }
}

@keyframes badge-glow {
  0%, 100% { 
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.25));
  }
  50% { 
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.6)) drop-shadow(0 0 25px rgba(255,255,255,0.3));
  }
}
.vplus-description { 
  opacity: .95; 
  max-width: 640px; 
  margin: 6px 0 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
  font-size: 14px;
  line-height: 1.4;
}
@media (max-width: 480px) {
  .vplus-description { 
    font-size: 13px;
    margin: 4px 0 0;
  }
}
@media (min-width: 481px) and (max-width: 768px) {
  .vplus-description { 
    font-size: 15px;
    margin: 7px 0 0;
  }
}
@media (min-width: 769px) {
  .vplus-description { 
    font-size: 16px;
    margin: 8px 0 0;
  }
}
.vplus-hero__features { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
@media (max-width: 480px) { .vplus-hero__features { gap: 6px; margin-top: 8px; } }
@media (min-width: 481px) and (max-width: 768px) { .vplus-hero__features { gap: 10px; margin-top: 12px; } }
@media (min-width: 769px) { .vplus-hero__features { gap: 12px; margin-top: 14px; } }
.vplus-feature { background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3); padding: 4px 8px; border-radius: 999px; font-weight: 600; font-size: 12px; }

@media (max-width: 767px) {
  .vplus-feature {
    border-radius: 0;
  }
}
@media (max-width: 480px) { .vplus-feature { padding: 3px 6px; font-size: 11px; } }
@media (min-width: 481px) and (max-width: 768px) { .vplus-feature { padding: 5px 9px; font-size: 13px; } }
@media (min-width: 769px) { .vplus-feature { padding: 6px 10px; font-size: 14px; } }

.vplus-hero__banner { position: relative; width: 100%; max-width: 560px; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-md); }

@media (max-width: 767px) {
  .vplus-hero__banner {
    border-radius: 0;
  }
}
.vplus-hero__banner::before { content: ""; display: block; padding-bottom: 56.25%; }
.vplus-banner { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vplus-hero .vplus-badge--glass { position: absolute; top: 10px; right: 10px; }

/* Main / Sección */
.vplus-main { padding: 20px 0 24px; }
@media (max-width: 480px) { .vplus-main { padding: 16px 0 20px; } }
@media (min-width: 481px) and (max-width: 768px) { .vplus-main { padding: 22px 0 28px; } }
@media (min-width: 769px) { .vplus-main { padding: 28px 0 36px; } }
.vplus-section__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
@media (max-width: 480px) { .vplus-section__head { margin-bottom: 8px; } }
@media (min-width: 481px) and (max-width: 768px) { .vplus-section__head { margin-bottom: 11px; } }
@media (min-width: 769px) { .vplus-section__head { margin-bottom: 12px; } }
.vplus-section__title { font-size: 18px; font-weight: 700; margin: 0; }
@media (max-width: 480px) { .vplus-section__title { font-size: 16px; } }
@media (min-width: 481px) and (max-width: 768px) { .vplus-section__title { font-size: 19px; } }
@media (min-width: 769px) { .vplus-section__title { font-size: 20px; } }
.vplus-section__meta { color: var(--color-muted); font-size: 13px; }
@media (max-width: 480px) { .vplus-section__meta { font-size: 12px; } }
@media (min-width: 481px) and (max-width: 768px) { .vplus-section__meta { font-size: 13px; } }
@media (min-width: 769px) { .vplus-section__meta { font-size: 14px; } }

/* Grid de productos */
.vplus-grid { display: grid; gap: 16px; grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (max-width: 480px) { .vplus-grid { gap: 14px; } }
@media (min-width: 481px) and (max-width: 768px) { .vplus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 769px) and (max-width: 1024px) { .vplus-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1025px) and (max-width: 1199px) { .vplus-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1200px) { .vplus-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }

/* Empty state */
.vplus-empty { text-align: center; color: var(--color-muted); padding: 40px 0; }
.vplus-empty__icon { font-size: 28px; margin-bottom: 6px; }
.vplus-empty__text { margin: 0; }

/* Tarjetas (usa .product-card existente) */
.vplus-grid .product-card__media { height: auto; aspect-ratio: 1 / 1; }

/* Animaciones para modal */
@keyframes modal-fade-in {
  from { 
    opacity: 0;
    transform: scale(0.9);
  }
  to { 
    opacity: 1;
    transform: scale(1);
  }
}

.image-modal.active .image-modal__content {
  animation: modal-fade-in 0.3s ease;
}

@keyframes image-zoom-in {
  from { 
    opacity: 0;
    transform: scale(0.8);
  }
  to { 
    opacity: 1;
    transform: scale(1);
  }
}

.image-modal__image {
  animation: image-zoom-in 0.4s ease;
}

/* ============================ */
/* Sección Sobre (About)        */
/* ============================ */
.vplus-about { margin-top: 48px; padding-top: 8px; }
.vplus-about__grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .vplus-about__grid { grid-template-columns: 1.2fr .8fr; } }
.vplus-about__title { color: var(--brand-emerald); margin: 0 0 10px; font-size: 22px; font-weight: 800; }
.vplus-about__text p { margin: 0 0 12px; color: var(--color-muted); }
.vplus-about__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.vplus-about__images { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 520px; }
.vplus-about__imgcard { background: #fff; border: 1px solid var(--color-border); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); }

@media (max-width: 767px) {
  .vplus-about__imgcard {
    border-radius: 0;
  }
}
.vplus-about__imgcard img { width: 100%; height: 90px; object-fit: cover; display: block; }

/* ============================ */
/* Estilos para 3 imágenes iguales en modal */
/* ============================ */
.images-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.image-upload-container {
  position: relative;
  aspect-ratio: 1;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.image-upload-container:hover {
  border-color: #059669;
  background: #f0fdf4;
}

.image-upload-container.has-image {
  border: none;
  background: transparent;
}

.upload-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.upload-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #64748b;
  font-size: 12px;
}

.upload-placeholder i {
  font-size: 24px;
  display: block;
  margin-bottom: 4px;
}

.remove-image-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.image-upload-container:hover .remove-image-btn {
  opacity: 1;
}

@media (max-width: 640px) {
  .images-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .image-upload-container {
    aspect-ratio: 16/9;
  }
}

@media (min-width: 641px) and (max-width: 768px) {
  .images-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 769px) {
  .images-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================ */
/* Modo Oscuro                  */
/* ============================ */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0f172a;
    --color-surface: #1e293b;
    --color-text: #f1f5f9;
    --color-muted: #94a3b8;
    --color-border: rgba(255, 255, 255, 0.1);
  }
  
  body {
    background: var(--color-bg);
    color: var(--color-text);
  }
  
  /* Tarjetas de producto */
  .product-card {
    background: var(--color-surface);
    border-color: var(--color-border);
  }
  
  .product-card__body {
    background: var(--color-surface);
  }
  
  /* Títulos de productos - CRÍTICO */
  .product-card__title {
    color: #ffffff !important;
  }
  
  /* Descripciones */
  .product-card__desc {
    color: var(--color-muted);
  }
  
  /* Topbar */
  .vplus-topbar {
    background: var(--color-surface);
    border-bottom-color: var(--color-border);
  }
  
  .vplus-topbar__item {
    color: var(--color-muted);
  }
  
  /* Logo background */
  #vp-logo,
  .vplus-logo {
    background: var(--color-surface);
    border-color: rgba(255, 255, 255, 0.2);
  }
  
  /* Botón de like */
  .like-btn {
    background: var(--color-surface);
    border-color: var(--color-border);
    color: var(--color-muted);
  }
  
  .like-btn:hover {
    background: #1e293b;
    border-color: #fecaca;
  }
  
  /* Sección About */
  .vplus-about__title {
    color: var(--brand-emerald);
  }
  
  .vplus-about__text p {
    color: var(--color-muted);
  }
  
  .vplus-about__imgcard {
    background: var(--color-surface);
    border-color: var(--color-border);
  }
  
  /* Sección títulos */
  .vplus-section__title {
    color: #ffffff;
  }
  
  .vplus-section__meta {
    color: var(--color-muted);
  }
  
  /* Empty state */
  .vplus-empty {
    color: var(--color-muted);
  }
  
  /* Upload containers */
  .image-upload-container {
    background: var(--color-surface);
    border-color: var(--color-border);
  }
  
  .image-upload-container:hover {
    border-color: var(--brand-emerald);
    background: rgba(5, 150, 105, 0.1);
  }
  
  .upload-placeholder {
    color: var(--color-muted);
  }
  
  /* Media de productos */
  .product-card__media {
    background: #0f172a;
  }
}
