html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  /* 4 Variantes del Verde Estratégico para Kadiel */
  --verde-accion: #16a34a; /* Verde de alta conversión en modo claro (legible en fondo blanco) */
  --verde-brand: #62d527; /* El Verde original del logotipo */
  --verde-texto-muted: #15803d; /* Verde pastel apagado medio para textos y legibilidad en modo claro */
  --verde-borde-glass: rgba(98, 213, 39, 0.12); /* Estructura fina y limpia */

  /* Mapeos del Sistema */
  --brand: var(--verde-brand);
  --brand-dark: #4eb51c; /* Tono hover de marca */
  --neon-green: var(--verde-accion);
  --category-green: var(--verde-texto-muted);

  --dark-bg: #0a0e0a;
  --dark-surface: #101410;
  --bg: #f4f9f5;
  --surface: #ffffff;
  --surface-strong: #eef5ee;
  --border: var(--verde-borde-glass);
  --text: #111511;
  --text-muted: #556655;
  --danger: #ff2e5e;
  --radius: 12px;
  --shadow: 0 24px 60px rgba(98, 213, 39, 0.06);
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: var(--verde-borde-glass);
}

body.dark-mode {
  --verde-accion: #00ff66; /* Verde eléctrico / fósforo de alto impacto */
  --verde-brand: #62d527;
  --verde-texto-muted: #86efac; /* Verde menta pastel apagado para confort visual */
  --verde-borde-glass: rgba(98, 213, 39, 0.15);

  --bg: #0a0e0a; /* Soporte neutro ultra-oscuro */
  --surface: rgba(16, 22, 16, 0.65);
  --surface-strong: rgba(24, 32, 24, 0.8);
  --border: var(--verde-borde-glass);
  --text: #e2e8f0; /* Blanco roto */
  --text-muted: #94a3b8;
  --glass: rgba(10, 14, 10, 0.65);
  --glass-border: var(--verde-borde-glass);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.7);

  --brand: var(--verde-brand);
  --brand-dark: #4eb51c;
  --neon-green: var(--verde-accion);
  --category-green: var(--verde-texto-muted);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
  overflow-x: hidden;
  /* Evita el scroll horizontal */
  position: relative;
}

h1, .h1-title {
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2, .h2-title {
  font-weight: 700;
  letter-spacing: -0.02em;
}

p, .body-text {
  font-weight: 400;
  line-height: 1.6;
}

body.dark-mode p, body.dark-mode .body-text {
  color: #a0a0a5;
}

button,
input,
textarea {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 9100;
  background: rgba(10, 14, 10, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  padding: 0;
  transition: background 0.3s ease, border 0.3s ease;
}

body.dark-mode .topbar {
  border-bottom: 1px solid var(--neon-green);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(98, 213, 39, 0.24);
}

.brand-text {
  display: grid;
  gap: 4px;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--neon-green);
  text-shadow: var(--neon-glow);
}

.brand-subtitle {
  margin: 0;
  font-size: 0.85rem;
  color: #888;
}

.search-wrapper {
  flex: 1;
  min-width: 240px;
  max-width: 640px;
}

/* --- ESTRATEGIA DE DOBLE ENCABEZADO --- */
.header-mobile {
  display: none;
}

.header-desktop {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 25px;
  /* Un margen lateral más limpio y pegado */
}

.header-desktop .search-wrapper {
  flex: 1;
  max-width: 600px;
}

.search-input {
  width: 100%;
  border: 1px solid var(--neon-green);
  border-radius: 999px;
  padding: 12px 20px;
  background: rgba(10, 14, 10, 0.5);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3), 0 0 8px rgba(0, 255, 65, 0.1);
  color: #fff;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.search-input:focus {
  outline: none;
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
  border-color: var(--neon-green);
}

@media (max-width: 768px) {
  .header-desktop {
    display: none !important;
  }

  .header-mobile {
    display: block !important;
    width: 100%;
  }

  .topbar {
    padding: 0 !important;
    /* El padding lo manejan las filas internas */
    height: auto !important;
  }

  .mobile-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
  }

  .mobile-logo {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .mobile-logo img {
    height: 48px;
    width: auto;
    border-radius: 10px;
  }

  .mobile-brand-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--neon-green);
    text-shadow: var(--neon-glow);
  }

  .mobile-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .mobile-search-row {
    padding: 0 15px 12px 15px;
  }

  .mobile-search-row .search-input {
    width: 100% !important;
    height: 42px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--neon-green);
    margin: 0 !important;
  }
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.btn-secondary,
.btn-tertiary {
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary,
.btn-whatsapp,
.btn-ml {
  background: transparent;
  color: var(--verde-accion);
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 2px solid var(--verde-accion);
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(98, 213, 39, 0.15);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  text-decoration: none;
}

/* Efecto de reflejo líquido al pasar el mouse (Estilo Premium) */
.btn-primary::before,
.btn-whatsapp::before,
.btn-ml::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: all 0.6s ease;
}

.btn-primary:hover::before,
.btn-whatsapp:hover::before,
.btn-ml:hover::before {
  left: 100%;
}

.btn-primary:hover,
.btn-whatsapp:hover,
.btn-ml:hover {
  background: var(--verde-accion) !important;
  color: #0a0e0a !important; /* El texto se apaga al color de fondo para contraste perfecto */
  box-shadow: 0 0 25px rgba(98, 213, 39, 0.5);
  transform: translateY(-2px);
}

.btn-primary:hover img,
.btn-whatsapp:hover img,
.btn-ml:hover img {
  filter: brightness(0);
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: none;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.05);
  box-shadow: none;
}

body.dark-mode .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-menu {
  font-size: 2.4rem !important;
  padding: 8px 12px !important;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.btn-menu:hover {
  opacity: 0.8;
}

.btn-menu:active {
  transform: scale(0.95);
}

.btn-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: contain;
}

.btn-secondary.icon-button {
  width: 70px;
  height: 70px;
  min-width: 70px;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
}

.top-actions .btn-secondary.icon-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.top-actions .btn-secondary {
  padding: 12px 14px;
}

.top-actions .btn-secondary span {
  font-size: 1rem;
}

.top-actions .btn-secondary img {
  width: 70px;
  height: 70px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  padding: 40px 24px 32px;
}

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--brand);
  border-radius: 999px;
}

.hero-title {
  margin: 20px 0 18px;
  font-size: clamp(2.8rem, 4vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero-text {
  margin: 0;
  max-width: 560px;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-visual {
  position: relative;
  min-height: 420px;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.category-navigation {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: relative;
  /* Cambiado de sticky a relative para que no persiga al usuario */
  z-index: 500;
}

.main-categories {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  overflow-x: auto;
}

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

.subcategories-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--surface-strong);
}

.subcategories-wrapper.active {
  max-height: 80px;
  border-top: 1px solid var(--border);
}

.category-highlights {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 12px 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.category-highlights::-webkit-scrollbar {
  display: none;
}

.category-card {
  background: transparent;
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
}

.category-card:hover {
  background: var(--surface-strong);
  color: var(--text);
  transform: translateY(-1px);
}

.category-card.active-dropdown,
.category-card[class*="active"] {
  color: var(--verde-brand);
}

.expand-icon {
  font-size: 1.2rem;
  margin-left: 4px;
  transition: transform 0.3s ease;
  color: var(--verde-brand);
}

.category-card.active-dropdown .expand-icon {
  transform: rotate(45deg);
  color: var(--danger);
}

.category-img-wrapper {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.category-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: inherit;
}

.category-card.active {
  color: var(--verde-brand);
}

.category-card p {
  display: none;
}

.section {
  display: none;
  padding: 0 24px 42px;
}

.section.active {
  display: block;
}

.section+.section {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.section-header h2 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--verde-brand);
  font-weight: 800;
}

.section-header .section-description {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}

.product-card {
  background: var(--surface) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow);
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 168, 204, 0.3);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 168, 204, 0.1);
}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background-color: var(--surface-strong);
  border-bottom: 1px solid var(--border);
}

.product-body {
  display: grid;
  gap: 10px;
  padding: 18px 18px 22px;
  flex: 1;
  border-radius: 0 0 24px 24px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.product-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text);
}

.product-price {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--neon-green);
}

.product-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(134, 239, 172, 0.06); /* Verde menta muy sutil */
  color: var(--verde-texto-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--border);
}

.badge-circle {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--verde-brand);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.search-section {
  display: none;
}

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

.empty-state {
  padding: 28px;
  text-align: center;
  color: var(--text-muted);
  background: transparent;
  border: none;
}

.loading-state {
  padding: 28px;
  text-align: center;
  color: var(--text-muted);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top: 2px solid var(--brand);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

  100% {
    transform: rotate(360deg);
  }
}

.footer {
  padding: 40px 24px;
  background: var(--surface);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center; /* Centrar todo horizontalmente */
  gap: 32px;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column; /* Apilar imagen y texto para centrar mejor */
  align-items: center;
  gap: 12px;
}

.footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-link {
  color: var(--brand-dark);
  font-weight: 700;
}

.sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(350px, 100%);
  height: 100%;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
  border-left: 1px solid var(--glass-border);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3500;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}

body.dark-mode .sidebar {
  background: rgba(18, 18, 18, 0.85);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar.active {
  right: 0;
}

.close-sidebar {
  width: 100%;
  text-align: right;
  font-size: 1.8rem;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text);
}

.sidebar h3 {
  margin: 0;
  font-size: 1.25rem;
}

.sidebar p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.8;
}

.sidebar-contact {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text);
}

.contact-card:hover {
  transform: translateY(-2px);
  background: var(--surface);
  border-color: var(--brand);
  box-shadow: 0 8px 20px rgba(98, 213, 39, 0.1);
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(98, 213, 39, 0.15);
  color: var(--brand-dark);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.contact-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.auth-overlay,
.sidebar-overlay,
.cart-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 9000;
  padding: 32px;
  padding-top: 100px;
  overflow: auto;
  overscroll-behavior: contain;
}

/* Fondo sólido opaco para el modal de productos sin difuminado de fondo */
.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: 9000;
  padding: 32px;
  padding-top: 100px;
  overflow: auto;
  overscroll-behavior: contain;
  transition: background 0.3s ease;
}

body.dark-mode .modal-overlay {
  background: #0a0e0a !important;
}

body.modal-open {
  overflow: hidden !important;
  height: 100vh !important;
  width: 100%;
}

.auth-overlay {
  z-index: 9700;
  padding-top: 32px;
}

.sidebar-overlay,
.cart-overlay {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(2px);
  z-index: 9500;
  padding: 0;
}

.sidebar,
.cart-sidebar {
  z-index: 9600;
}

.modal-overlay.active,
.auth-overlay.active,
.sidebar-overlay.active,
.cart-overlay.active {
  display: flex;
}

.modal-box {
  width: min(940px, 100%);
  max-height: 85vh;
  background: var(--surface) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: visible;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  box-shadow: var(--shadow);
}

.modal-media,
.modal-info {
  padding: 24px;
}

.modal-media {
  background: transparent;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  padding: 24px;
  border-top-left-radius: 28px;
  border-bottom-left-radius: 28px;
}

.modal-image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
}

#imagenProducto,
#modalImage,
.modal-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: transparent;
  cursor: crosshair;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-size: 1.35rem;
  color: var(--text);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
  z-index: 100;
  /* Asegurado por encima de todo */
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
  padding: 0 8px;
  flex-wrap: nowrap;
}

.modal-slider button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.08);
  color: var(--text);
  cursor: pointer;
  font-size: 1.15rem;
}

.modal-counter {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 700;
  min-width: 72px;
  text-align: center;
}

.modal-info h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.05;
}

.modal-info .precio {
  margin: 18px 0 14px;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--neon-green);
}

.modal-info .descripcion-box {
  background: var(--surface-strong);
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 18px;
  line-height: 1.8;
  color: var(--text-muted);
  max-height: 170px;
  overflow-y: auto;
}

.modal-info .ver-mas {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-dark);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.92rem;
}

.modal-info .caracteristicas {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.8;
  max-height: 140px;
  overflow-y: auto;
}

.modal-info .caracteristicas li {
  margin-bottom: 8px;
}

.modal-info .color-selector {
  margin: 20px 0;
  display: grid;
  gap: 12px;
}

.color-label {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.color-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.color-option:hover,
.color-option.active {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(98, 213, 39, 0.14);
}

.color-swatch-large {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.modal-actions {
  display: grid;
  gap: 14px;
  margin-top: auto;
}

.modal-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-decoration: none;
}

/* MI CUENTA / AUTH STYLES */
.auth-card {
  width: min(450px, 100%);
  background: var(--surface);
  border-radius: 28px;
  padding: 42px 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  position: relative;
  border: 1px solid var(--border);
  margin: 20px auto;
  transition: all 0.3s ease;
}

body.dark-mode .auth-card {
  background: rgba(30, 30, 30, 0.7);
  backdrop-filter: blur(20px);
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.auth-card h2 {
  margin: 0 0 8px;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.5px;
}

.auth-card p.auth-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.auth-card .form-group {
  margin-bottom: 20px;
  text-align: left;
}

.auth-card label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
  margin-left: 4px;
}

.auth-card input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 14px 18px;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.auth-card input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(98, 213, 39, 0.1);
}

.auth-card button {
  width: 100%;
  border-radius: 16px;
  padding: 16px;
  border: none;
  cursor: pointer;
  font-weight: 800;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.auth-card .primary-btn {
  background: var(--brand);
  color: white;
  box-shadow: 0 10px 20px rgba(98, 213, 39, 0.2);
}

.auth-card .primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(98, 213, 39, 0.3);
}

.auth-card .google-btn {
  background: var(--surface-strong);
  border: 1.5px solid var(--border);
  color: var(--text);
  margin-top: 24px;
}

.auth-card .google-btn:hover {
  background: var(--bg);
  border-color: var(--brand);
}

/* USER PROFILE DASHBOARD */
.user-profile {
  text-align: center;
}

.user-header {
  margin-bottom: 32px;
}

.user-avatar-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
}

.user-avatar {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 900;
  color: white;
  box-shadow: 0 15px 35px rgba(98, 213, 39, 0.4);
  border: 4px solid var(--surface);
}

.user-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #2563eb;
  color: white;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 99px;
  font-weight: 800;
  border: 3px solid var(--surface);
}

.user-info h3 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 900;
}

.user-info p {
  color: var(--text-muted);
  margin: 4px 0 0;
  font-size: 0.95rem;
}

.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg);
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.stat-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--brand);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
}

.logout-btn {
  background: transparent !important;
  color: #ef4444 !important;
  border: 1.5px solid rgba(239, 68, 68, 0.2) !important;
  margin-top: 16px;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.05) !important;
  border-color: #ef4444 !important;
}
.close-auth, .back-button {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text);
}

.auth-status {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
  min-height: 20px;
}

.auth-form-section {
  display: none;
}

.auth-form-section.active {
  display: block;
}

@media (max-width: 1024px) {
  .topbar {
    flex-wrap: wrap;
    justify-content: center;
    padding: 18px 18px 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 36px 18px 28px;
  }

  .category-highlights {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    padding: 0 18px 34px;
  }

  .section {
    padding: 24px 18px 34px;
  }

  .modal-box {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 32px);
    margin-top: 70px;
    /* Espacio para que el encabezado no tape la X */
  }

  .modal-media,
  .modal-info {
    padding: 22px;
  }

  .product-image {
    height: 200px;
  }

  .category-card {
    padding: 20px 16px;
  }

  .top-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* Estilos para zoom tipo Amazon */
.product-card-wrapper {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.product-image-container {
  position: relative;
  width: 100%;
  flex: 1;
}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background-color: #fff;
  border-radius: 24px 24px 0 0;
  border-bottom: 1px solid var(--border);
  display: block;
}

.product-image-zoom {
  position: absolute;
  top: 0;
  left: 100%;
  width: 300px;
  height: 300px;
  border: 2px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #f4f5f2;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 10;
  margin-left: 12px;
}

.product-image-zoom.active {
  display: block;
}

.product-image-zoom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
}

.zoom-box {
  position: absolute;
  width: 100px;
  height: 100px;
  border: 2px solid rgba(98, 213, 39, 0.8);
  background: rgba(98, 213, 39, 0.1);
  border-radius: 4px;
  display: none;
  box-shadow: inset 0 0 0 1px rgba(98, 213, 39, 0.6), 0 0 8px rgba(98, 213, 39, 0.4);
  pointer-events: none;
  z-index: 9;
}

.zoom-box.active {
  display: block;
}

/* Estilos específicos para zoom en modal */
.modal-zoom {
  position: absolute;
  top: 0;
  left: 100%;
  width: 350px;
  height: 350px;
  border: 2px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #f4f5f2;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 10;
  margin-left: 16px;
}

.modal-zoom.active {
  display: block;
}

.modal-zoom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.modal-zoom-box {
  position: absolute;
  width: 140px;
  height: 140px;
  border: 3px solid rgba(98, 213, 39, 0.8);
  background: rgba(98, 213, 39, 0.1);
  border-radius: 4px;
  display: none;
  box-shadow: inset 0 0 0 1px rgba(98, 213, 39, 0.6), 0 0 12px rgba(98, 213, 39, 0.5);
  pointer-events: none;
  z-index: 9;
}

.modal-zoom-box.active {
  display: block;
}

/* Responsive: ocultar zoom en pantallas pequeñas */
@media (max-width: 1024px) {
  .product-image-zoom {
    display: none !important;
  }

  .zoom-box {
    display: none !important;
  }

  .modal-zoom {
    display: none !important;
  }

  .modal-zoom-box {
    display: none !important;
  }
}

/* Esto arregla las tarjetas de la grilla */
.product-card .product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  /* Cuadrado perfecto */
  object-fit: contain;
  /* Producto completo, sin recortes */
  background-color: #fff;
  /* Rellena con blanco si la foto es flaca */
  display: block;
  border-bottom: 1px solid var(--border);
}

/* Esto arregla el visor grande donde está el zoom */
.product-detail-image-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  /* También cuadrado para que el zoom no salte */
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-detail-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* Imagen completa siempre */
}

/* CART STYLES */
.cart-sidebar {
  width: min(400px, 100%);
  padding: 24px 20px;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.cart-header h3 {
  font-size: 1.4rem;
  margin: 0;
}

.cart-header .close-sidebar {
  width: auto;
  text-align: right;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--surface-strong);
  border-radius: 16px;
  border: 1px solid var(--border);
}

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  background: #fff;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.2;
}

.cart-item-color {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cart-item-price {
  font-weight: 800;
  color: var(--brand);
  font-size: 1rem;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.cart-qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 8px;
}

.cart-qty-controls button {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.cart-qty {
  font-weight: 700;
  font-size: 0.9rem;
  min-width: 16px;
  text-align: center;
}

.btn-remove-item {
  background: transparent;
  border: none;
  color: var(--danger);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
}

.cart-footer {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 16px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.btn-checkout {
  width: 100%;
  text-align: center;
  display: block;
  font-size: 1.05rem;
}

.cart-icon-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--danger);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(255, 46, 94, 0.3);
  border: 2px solid var(--dark-bg);
}

.btn-add-to-cart-grid {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(98, 213, 39, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 2;
}

.btn-add-to-cart-grid:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 24px rgba(98, 213, 39, 0.4);
}

.btn-add-to-cart-grid img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.btn-add-to-cart-modal {
  background: var(--brand);
  color: white;
  margin-bottom: 12px;
}

/* DARK MODE */
body.dark-mode {
  --bg: #111111;
  --surface: #1a1a1a;
  --surface-strong: #222222;
  --border: #333333;
  --text: #ffffff;
  --text-muted: #a0a0a0;
}

/* SIDEBAR NAV STYLES */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.sidebar-nav-item:hover {
  background: var(--surface-strong);
  transform: translateX(4px);
  border-color: var(--brand);
  box-shadow: 0 4px 12px rgba(98, 213, 39, 0.1);
}

.sidebar-nav-item:active {
  transform: scale(0.98);
}

.sidebar-nav-item i,
.sidebar-nav-item .icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

/* SUBNAV STYLES */
.sidebar-subnav {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
  padding-left: 12px;
  margin-left: 12px;
  border-left: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-subnav.active {
  max-height: 200px;
  opacity: 1;
  margin-top: 4px;
  margin-bottom: 12px;
}

.sidebar-nav-item.has-arrow::after {
  content: '›';
  margin-left: auto;
  font-size: 1.4rem;
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.sidebar-nav-item.has-arrow.active::after {
  transform: rotate(90deg);
}

.sidebar-section-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin: 24px 0 12px 0;
  font-weight: 800;
}

/* DARK MODE TOGGLE */
.theme-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: var(--surface-strong);
  border-radius: 12px;
  margin-bottom: 24px;
}

.theme-toggle-label {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: var(--brand);
}

input:checked+.slider:before {
  transform: translateX(22px);
}

/* FAVORITES BUTTON */
.btn-favorite-grid {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  font-size: 1.2rem;
  color: var(--text-muted);
}

.btn-favorite-grid:hover {
  transform: scale(1.1);
}

.btn-favorite-grid.active {
  color: var(--danger);
  border-color: var(--danger);
}

/* AI CHAT STYLES */
.ai-chat-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: min(380px, calc(100vw - 48px));
  height: 500px;
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 2000;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  transform: translateY(20px);
  opacity: 0;
}

.ai-chat-container.active {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.ai-chat-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-chat-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-chat-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background 0.2s;
}

.ai-chat-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.ai-chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 5;
}

.ai-message {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.5;
  word-wrap: break-word;
}

.ai-message.user {
  align-self: flex-end;
  background: var(--brand);
  color: white;
  border-bottom-right-radius: 4px;
}

.ai-message.bot {
  align-self: flex-start;
  background: var(--surface-strong);
  color: var(--text);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border);
  pointer-events: auto !important;
  user-select: text;
  position: relative;
  z-index: 10;
}

.ai-message button,
.ai-message a {
  pointer-events: auto !important;
  position: relative;
  z-index: 20;
  cursor: pointer !important;
}

.ai-chat-input-wrapper {
  padding: 16px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
}

.ai-chat-input {
  flex: 1;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.9rem;
  resize: none;
  max-height: 100px;
}

.ai-chat-input:focus {
  outline: none;
  border-color: var(--brand);
}

.ai-chat-send {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.ai-chat-send:hover {
  transform: scale(1.05);
}

.ai-chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  background: var(--surface-strong);
  border-radius: 18px;
  width: fit-content;
}

.dot {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}

.dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {

  0%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-6px);
  }
}

/* --- ELIMINADOS LOS AJUSTES VIEJOS DE MOBILE HEADER --- */

@media (min-width: 769px) {
  .header-mobile {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .header-desktop {
    display: none !important;
  }

  .topbar {
    padding: 0px 8px !important; /* Mínimo absoluto para que no toque los bordes pero aproveche todo */
    width: 100% !important;
    overflow: hidden !important;
    background: #111111 !important; /* Negro como pediste */
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .header-mobile {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important; /* Cero espacio entre logo y buscador */
  }

  .mobile-top-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 2px 0 !important; /* Reducido al máximo */
  }

  .mobile-logo {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin: 0 !important; /* Totalmente a la izquierda */
  }

  .mobile-actions {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin: 0 !important; /* Totalmente a la derecha */
  }

  .mobile-search-row {
    width: 100% !important;
    padding: 0 0 6px 0 !important; /* Solo un pequeño margen abajo */
    margin: 0 !important;
  }

  .mobile-search-row .search-input {
    width: 100% !important;
    height: 38px !important; /* Más compacto */
    border-radius: 8px !important;
    margin: 0 !important;
    padding: 0 12px !important;
  }

  .mobile-logo span {
    color: var(--brand) !important; /* Verde neón original */
  }

  .mobile-menu-toggle, .cart-icon {
    color: #ffffff !important; /* Blanco para fondo negro */
  }

  /* Ajuste de superposición de capas (Z-Index) exclusivo para celular */
  .topbar {
    z-index: 9100 !important;
  }

  /* Encabezado por debajo de los menús laterales */
  .sidebar,
  .cart-sidebar {
    z-index: 9600 !important;
  }

  /* Menús laterales arriba de todo */
  .sidebar-overlay,
  .cart-overlay {
    z-index: 9500 !important;
  }

  .auth-overlay {
    z-index: 9700 !important;
  }

  /* Login siempre encima de todo */
  .modal-overlay {
    z-index: 9000 !important;
  }

  /* Producto arriba del chat */
  .ai-chat-container {
    z-index: 2000 !important;
  }

  /* Chat base */

  /* Eliminar cuadrado verde al tocar en móvil */
  .product-card,
  .category-card,
  button,
  a {
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
  }

  /* X de cerrar siempre visible en el modal en celu */
  .modal-close {
    top: 14px !important;
    right: 14px !important;
    width: 44px !important;
    height: 44px !important;
    z-index: 200 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    font-size: 1.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .brand-title {
    font-size: 1.1rem !important;
    margin: 0 !important;
  }

  .brand-subtitle {
    display: none !important;
  }

  .top-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    order: 2 !important;
  }

  .search-wrapper {
    width: 100% !important;
    order: 3 !important;
    margin-top: 5px !important;
  }

  .search-input {
    height: 38px !important;
    border-radius: 20px !important;
    font-size: 14px !important;
  }

  /* Categorías: Scroll Horizontal */
  .category-highlights {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding: 10px 5px !important;
    gap: 10px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .category-highlights::-webkit-scrollbar {
    display: none !important;
  }

  .category-card {
    flex: 0 0 auto !important;
    min-width: 90px !important;
    margin: 0 !important;
  }

  /* Productos: 2 por fila, prolijos y centrados */
  .products-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    padding: 16px 14px !important; /* Más espacio a los costados */
    width: 100% !important;
    max-width: 100vw !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  .product-card {
    width: 100% !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
  }


}

.user-initial-circle {
  width: 36px;
  height: 36px;
  background: var(--brand);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  border: 2px solid white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.ai-chat-floating-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25D366;
  /* El verde original */
  color: white;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  z-index: 1500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-chat-floating-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
}

.ai-chat-floating-button img {
  width: 52px;
  /* Tamaño ajustado para no ser excesivo */
  height: 52px;
  object-fit: cover;
}

.ai-chat-floating-button.hidden {
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

.back-button {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 4px 12px 4px 0;
  display: none;
  /* Se muestra solo en mobile */
  align-items: center;
  justify-content: center;
  line-height: 1;
}

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

  .ai-chat-floating-button span {
    display: none;
  }

  .ai-chat-floating-button {
    padding: 8px;
    bottom: 80px;
    /* Evitar el botón de WhatsApp flotante original si existe */
  }
}

/* MI CUENTA / DASHBOARD PROFESSIONAL STYLES */
.account-dashboard {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.account-card {
  background: var(--surface);
  border-radius: 30px;
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode .account-card {
  background: rgba(30, 30, 30, 0.6);
  backdrop-filter: blur(25px);
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.profile-avatar-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.profile-avatar-wrapper img {
  width: 100%;
  height: 100%;
  border-radius: 40px; /* Squircle style */
  object-fit: cover;
  border: 4px solid var(--surface-strong);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.status-online {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  background: var(--brand);
  border: 4px solid var(--surface);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--brand);
}

.profile-info h3 {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -1px;
}

.profile-info p {
  margin: 6px 0 16px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.badge-row {
  display: flex;
  gap: 10px;
}

.badge-status, .badge-status-alt {
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-status {
  background: rgba(98, 213, 39, 0.1);
  color: var(--brand);
  border: 1px solid rgba(98, 213, 39, 0.2);
}

.badge-status-alt {
  background: var(--surface-strong);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.column-title {
  font-size: 1rem;
  font-weight: 900;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
}

.action-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--surface-strong);
  border-radius: 24px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.action-item:hover {
  transform: scale(1.03) translateY(-4px);
  background: var(--surface);
  border-color: var(--brand);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.action-icon {
  font-size: 1.8rem;
  background: var(--bg);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

.action-text .action-title {
  margin: 0;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
}

.action-text .action-desc {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.logout-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-account-switch {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 24px;
  border-radius: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-account-switch:hover {
  background: var(--surface-strong);
  border-color: var(--text-muted);
}

.btn-logout-main {
  background: #ef4444;
  color: white;
  padding: 12px 28px;
  border-radius: 14px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(239, 68, 68, 0.2);
  transition: 0.3s;
}

.btn-logout-main:hover {
  background: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(239, 68, 68, 0.3);
}

@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .account-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .logout-section {
    flex-direction: column;
    gap: 16px;
  }
  
  .profile-info h3 {
    font-size: 1.8rem;
  }
  
  .badge-row {
    justify-content: center;
  }
}



/* ==============================
   SKELETON LOADING SYSTEM
   ============================== */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--surface-strong) 25%, var(--surface) 50%, var(--surface-strong) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite ease-in-out;
  border-radius: 10px;
}

.skeleton-card {
  pointer-events: none;
}

.skeleton-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  margin-bottom: 12px;
}

.skeleton-title {
  height: 14px;
  width: 80%;
  margin-bottom: 10px;
}

.skeleton-price {
  height: 18px;
  width: 50%;
  margin-bottom: 10px;
}

.skeleton-badge {
  height: 12px;
  width: 65%;
}

/* ==============================
   MICRO-ANIMACIONES & TRANSICIONES
   ============================== */
.product-image {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.product-card {
  transition: box-shadow 0.3s ease, transform 0.3s ease !important;
}

.product-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.12) !important;
  transform: translateY(-4px) !important;
}

/* Cart badge bounce animation */
@keyframes cartBounce {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.5); }
  60% { transform: scale(0.9); }
}

.cart-badge-bounce {
  animation: cartBounce 0.4s ease;
}

/* Button interaction feedback */
.btn-primary, .btn-whatsapp, .btn-ml, .action-item, .category-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Deep Black OLED dark mode */
body.dark-mode {
  --bg: #000000;
  --surface: #0d0d0d;
  --surface-strong: #1a1a1a;
  --border: #2a2a2a;
}

body.dark-mode .skeleton {
  background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite ease-in-out;
}

/* ==============================
   SELECTOR DE FOTOS DE PERFIL
   ============================== */
.btn-edit-photo {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  font-size: 0.9rem;
  transition: transform 0.2s, background 0.2s;
  z-index: 2;
}

.btn-edit-photo:hover {
  transform: scale(1.1);
  background: var(--surface-strong);
}

.foto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.foto-opcion {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s, border-color 0.2s;
}

.foto-opcion:hover {
  transform: scale(1.05);
  border-color: var(--brand);
}

.foto-opcion.selected {
  border-color: var(--brand);
  box-shadow: 0 0 12px rgba(98, 213, 39, 0.4);
}


/* --- SERVICIOS SECTION --- */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.servicio-card {
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
}

.servicio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--brand);
}

.servicio-img-placeholder {
  height: 200px;
  background: var(--surface-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.servicio-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.servicio-title {
  margin: 0 0 12px 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}

.servicio-desc {
  margin: 0 0 24px 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  flex: 1;
}

.btn-servicio {
  display: inline-block;
  text-align: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 20px rgba(98, 213, 39, 0.2);
}

.btn-servicio:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(98, 213, 39, 0.3);
}

body.dark-mode .servicio-img-placeholder {
  background: #1a1a1a;
  color: #999;
}

/* --- CURSOS MARKETING SECTION --- */
.cursos-marketing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.curso-marketing-card {
  background: linear-gradient(135deg, var(--surface), var(--surface-strong));
  border-radius: 24px;
  border: 1px solid var(--border);
  padding: 32px 24px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 220px;
}

.curso-marketing-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, transparent, rgba(98, 213, 39, 0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.curso-marketing-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--brand);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), inset 0 0 0 1px var(--brand);
}

.curso-marketing-card:hover::before {
  opacity: 1;
}

.curso-marketing-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text);
  margin: 0 0 12px 0;
  position: relative;
  z-index: 1;
  letter-spacing: -0.03em;
}

.curso-marketing-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0;
  position: relative;
  z-index: 1;
  background: rgba(98, 213, 39, 0.1);
  padding: 6px 16px;
  border-radius: 99px;
  display: inline-block;
}

body.dark-mode .curso-marketing-card {
  background: linear-gradient(135deg, var(--surface), #1a1a1a);
}

/* --- PILARES DE NAVEGACION HOME --- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 32px 24px;
}

.pillar-card {
  background: var(--surface) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow);
}

.pillar-card:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 20px rgba(16, 185, 129, 0.1);
}

.pillar-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.pillar-card h3 {
  margin: 0 0 8px 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand);
}

.pillar-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- BANNER SOCIAL PROOF / DATA --- */
.social-proof-banner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 32px 24px;
  margin: 32px 24px;
  background: rgba(16, 185, 129, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(8px);
}

.proof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.proof-stat:hover {
  transform: scale(1.08);
}

.stat-num {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--brand);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-lbl {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.proof-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

@media (max-width: 768px) {
  .proof-divider {
    display: none;
  }
  .social-proof-banner {
    flex-direction: column;
    gap: 24px;
  }
}

/* --- TEMAS DE MODALES DINAMICOS --- */
/* Cyberpunk Theme (IA) */
.theme-cyberpunk .modal-box {
  background: rgba(6, 9, 7, 0.96) !important;
  border-color: rgba(16, 185, 129, 0.25) !important;
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.15) !important;
  /* Scanline effect */
  background-image: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(16, 185, 129, 0.03) 50%) !important;
  background-size: 100% 4px !important;
}
.theme-cyberpunk .modal-info h2 {
  color: #10b981 !important;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}
.theme-cyberpunk .modal-info .precio {
  color: #ff0055 !important;
  text-shadow: 0 0 10px rgba(255, 0, 85, 0.3);
}
.theme-cyberpunk .btn-primary,
.theme-cyberpunk .btn-whatsapp {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4) !important;
}
.ia-dynamic-ui {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  font-family: monospace;
  font-size: 0.85rem;
  color: #10b981;
}
.ia-dynamic-ui p {
  margin: 4px 0;
}
.blink {
  animation: blink-anim 1s infinite alternate;
}
@keyframes blink-anim {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* Education Theme (Cursos) */
.theme-education .modal-box {
  background: rgba(252, 255, 253, 0.98) !important;
  border-color: rgba(16, 185, 129, 0.15) !important;
  box-shadow: 0 20px 50px rgba(16, 185, 129, 0.1) !important;
  color: #1a2c22 !important;
}
body.dark-mode .theme-education .modal-box {
  background: rgba(18, 26, 20, 0.98) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #f7fafc !important;
}
.theme-education .modal-info h2 {
  font-family: Georgia, serif;
  font-weight: 700;
}
.course-dynamic-ui {
  background: rgba(16, 185, 129, 0.04);
  border: 1px solid rgba(16, 185, 129, 0.1);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.course-progress-wrapper {
  margin-bottom: 12px;
}
.course-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-muted);
}
.course-progress-bar {
  height: 6px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 3px;
  overflow: hidden;
}
body.dark-mode .course-progress-bar {
  background: rgba(255, 255, 255, 0.08);
}
.course-progress-fill {
  height: 100%;
  background: var(--brand);
  border-radius: 3px;
}
.course-syllabus-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.syllabus-item {
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
}
.syllabus-item .badge {
  font-size: 0.7rem;
  background: var(--brand-dark);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Technical Theme (Servicios) */
.theme-technical .modal-box {
  background: rgba(15, 25, 20, 0.95) !important;
  border-color: rgba(16, 185, 129, 0.2) !important;
}
.service-dynamic-ui {
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
  padding: 12px 0;
  margin-bottom: 16px;
}
.service-guarantee {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.guarantee-item {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ESTILOS PARA LA NUEVA ESTRUCTURA CORPORATIVA */
.corporate-header {
  text-align: center;
  margin: 40px 0;
}

.corporate-header .brand-title {
  color: var(--brand); /* Tu verde de logo */
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  margin-bottom: 5px;
  text-shadow: 0 0 20px rgba(98, 213, 39, 0.2);
}

.corporate-header .brand-subtitle {
  color: #a0a5b0;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  font-weight: 600;
}

/* El Grid de Control Principal */
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.matrix-card {
  background: rgba(21, 25, 21, 0.6); /* Tu color dark-surface con transparencia */
  backdrop-filter: blur(12px);
  border: 1px solid rgba(98, 213, 39, 0.15);
  border-radius: 8px;
  padding: 30px 20px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.matrix-card:hover {
  transform: translateY(-4px);
  border-color: var(--neon-green); /* El verde claro de acción */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 255, 65, 0.1);
}

.matrix-card h3 {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.matrix-card p {
  color: #a0a5b0;
  font-size: 0.85rem;
  line-height: 1.4;
}

.matrix-status {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--brand);
  border: 1px solid var(--brand);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

/* Efecto pulsante para la celda de Inteligencia Artificial */
.text-pulse {
  color: var(--neon-green);
  border-color: var(--neon-green);
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { opacity: 0.6; box-shadow: 0 0 5px rgba(0, 255, 65, 0.2); }
  50% { opacity: 1; box-shadow: 0 0 15px rgba(0, 255, 65, 0.5); }
  100% { opacity: 0.6; box-shadow: 0 0 5px rgba(0, 255, 65, 0.2); }
}

.section-title-green {
  color: var(--verde-brand);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

/* SOBRE NOSOTROS (Estilo Corporativo Prolijo) */
.about-modal-box {
  background: var(--surface) !important;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 40px;
  width: min(800px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-sizing: border-box;
}

.about-header {
  text-align: center;
  margin-bottom: 28px;
}

.about-title {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--brand);
  letter-spacing: -0.05em;
  margin: 0 0 8px 0;
  text-shadow: 0 0 15px rgba(98, 213, 39, 0.15);
}

.about-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.about-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.about-pillar-card {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all 0.3s ease;
}

.about-pillar-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  box-shadow: 0 8px 24px rgba(98, 213, 39, 0.08);
}

.about-pillar-icon {
  font-size: 1.6rem;
  background: var(--surface);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.about-pillar-info h4 {
  margin: 0 0 6px 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}

.about-pillar-info p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}
