:root {
  --color-fondo: #0f1724;
  --color-superior: #0b1220;
  --color-acento: #ff6b6b;
  --color-primario: #06b6d4;
  --color-secundario: var(--color-texto-claro);
  --color-texto: #e6eef6;
  --color-texto-claro: #ffffff;
  --max-width: 1100px;
  --color-borde: #3a4a5c;
  --color-superficie: #1a2332;
  --color-card: #243241;
  --color-fondo-tarjeta: #1a2332;
  --color-exito: #10b981;
  
  /* Variables adicionales para theming */
  --bg-primary: #0f1724;
  --bg-secondary: #1a2332;
  --bg-card: #243241;
  --text-primary: #e6eef6;
  --text-secondary: #ffffff;
  --border-color: #3a4a5c;
}

/* Desplazamiento suave para anclas sin depender de JS */
html {
  scroll-behavior: smooth;
}

/* Variables para modo claro - SOLO cuando se active manualmente */
body.light-mode {
  --color-fondo: #f5f7fa;
  --color-superior: #ffffff;
  --color-texto: #1a202c;
  --color-texto-claro: #2d3748;
  --color-borde: #dee2e6;
  --color-superficie: #ffffff;
  --color-card: #ffffff;
  --bg-primary: #f5f7fa;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --text-primary: #1a202c;
  --text-secondary: #2d3748;
  --border-color: #dee2e6;
  background: linear-gradient(180deg, #f5f7fa, #e2e8f0) !important;
}
* {
  box-sizing: border-box;
}

/* Utilidades */
.hidden-element {
  display: none;
}

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

.empty-table-cell {
  text-align: center;
  padding: 40px;
}

body {
  margin: 0;
  font-family:
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  background: linear-gradient(180deg, var(--color-fondo), #071021);
  color: var(--color-texto);
  -webkit-font-smoothing: antialiased;
}
.skip-link {
  position: absolute;
  left: 8px;
  top: 8px;
  background: var(--color-primario);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 6px;
  transform: translateY(-120%);
  transition: transform 0.18s ease;
  z-index: 60;
}
.skip-link:focus {
  transform: translateY(0);
}

/* Focus-visible for keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-primario);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Panel de Notificaciones Mejorado */
.notification-panel {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.btn-notificaciones-flotante {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primario), #0891b2);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: float 3s ease-in-out infinite;
}

.btn-notificaciones-flotante:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.6);
}

.btn-notificaciones-flotante:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-notificaciones-flotante.activado {
  background: linear-gradient(135deg, #10b981, #059669);
  animation: none;
}

.btn-notificaciones-flotante.denegado {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  animation: shake 0.5s;
}

.notification-icon {
  font-size: 28px;
  position: relative;
  animation: ring 2s ease-in-out infinite;
}

.btn-notificaciones-flotante.activado .notification-icon,
.btn-notificaciones-flotante.denegado .notification-icon {
  animation: none;
}

.notification-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.5);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.btn-notificaciones-flotante.activado .notification-pulse,
.btn-notificaciones-flotante.denegado .notification-pulse {
  display: none;
}

/* Menú desplegable de notificaciones */
.notification-menu {
  position: absolute;
  top: 70px;
  right: 0;
  width: 320px;
  background: var(--color-superficie);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  overflow: hidden;
  border: 1px solid var(--color-borde);
}

.notification-panel:hover .notification-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.notification-menu-header {
  background: linear-gradient(135deg, var(--color-primario), #0891b2);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.notification-menu-icon {
  font-size: 24px;
}

.notification-menu-title {
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
}

.notification-menu-content {
  padding: 20px;
}

.notification-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--color-card);
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid var(--color-borde);
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #9ca3af;
  animation: pulse-slow 2s ease-in-out infinite;
}

.notification-status.active .status-indicator {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.notification-status.denied .status-indicator {
  background: #ef4444;
  animation: none;
}

.status-text {
  color: var(--color-texto);
  font-weight: 500;
  font-size: 0.95rem;
}

.notification-description {
  color: var(--color-texto);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
  opacity: 0.8;
}

.notification-actions {
  display: flex;
  gap: 10px;
  flex-direction: column;
}

.btn-notification-action {
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary-action {
  background: linear-gradient(135deg, var(--color-primario), #0891b2);
  color: white;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
}

.btn-primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.5);
}

.btn-secondary-action {
  background: var(--color-card);
  color: var(--color-texto);
  border: 1px solid var(--color-borde);
}

.btn-secondary-action:hover {
  background: var(--color-borde);
  transform: translateY(-2px);
}

.btn-icon {
  font-size: 1.2rem;
}

@keyframes pulse-slow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
  }
}

@keyframes ring {
  0%, 100% {
    transform: rotate(0deg);
  }
  10%, 30% {
    transform: rotate(-10deg);
  }
  20%, 40% {
    transform: rotate(10deg);
  }
  50% {
    transform: rotate(0deg);
  }
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .notification-panel {
    top: 15px;
    right: 15px;
  }

  .btn-notificaciones-flotante {
    width: 50px;
    height: 50px;
  }
  
  .notification-icon {
    font-size: 24px;
  }
  
  .notification-menu {
    width: 280px;
    top: 60px;
  }
}

/* Improve tappable areas */
.menu-toggle {
  padding: 8px 10px;
}

/* Mobile menu animation (use class .is-open) */
@media (max-width: 768px) {
  .menu-principal {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition:
      opacity 0.22s ease,
      transform 0.22s ease,
      max-height 0.25s ease;
  }
  .menu-principal.is-open {
    max-height: 480px;
    opacity: 1;
    transform: none;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .skip-link,
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  textarea:focus-visible,
  .menu-principal {
    transition: none;
  }
}
.contenedor {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px;
}
.encabezado {
  background: var(--color-superior);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 40;
}
.logo-link {
  color: var(--color-texto-claro);
  font-weight: 700;
  text-decoration: none;
}
.menu-principal {
  display: flex;
  gap: 14px;
  align-items: center;
}
.menu-principal a {
  color: var(--color-texto);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px;
}
.menu-toggle {
  background: none;
  border: none;
  color: var(--color-texto-claro);
  font-size: 1.25rem;
  display: none;
}
.hero {
  padding: 64px 20px;
  text-align: center;
}
.hero {
  padding: 72px 20px;
}
.hero-content {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
}
.hero-text {
  flex: 1;
  max-width: 900px;
  color: var(--color-texto);
}
.hero-text {
  margin: 0 auto;
  text-align: center;
}
.hero h1 {
  font-size: 2.5rem;
  margin: 0 0 12px;
  color: var(--color-texto-claro);
}
.hero-text > p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: var(--color-texto);
}

/* Role Selector Cards */
.role-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.role-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 30px 24px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.role-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

.role-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.role-card h3 {
  font-size: 1.5rem;
  margin: 0 0 12px;
  color: var(--color-texto-claro);
}

.role-card p {
  font-size: 1rem;
  color: var(--color-texto);
  margin: 0 0 24px;
  min-height: 48px;
}

.btn-role {
  display: block;
  width: 100%;
  padding: 12px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-role-secondary {
  display: block;
  width: 100%;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-align: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-texto);
}

.btn-role-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-cliente {
  background: #28a745;
  color: white;
}

.btn-cliente:hover {
  background: #218838;
  transform: scale(1.02);
}

.btn-repartidor {
  background: #007bff;
  color: white;
}

.btn-repartidor:hover {
  background: #0056b3;
  transform: scale(1.02);
}

.btn-comercio {
  background: #ff6b6b;
  color: white;
}

.btn-comercio:hover {
  background: #e05555;
  transform: scale(1.02);
}

.hero-ctas {
  margin-top: 12px;
}

/* Sección Cómo Funciona */
.seccion-como-funciona {
  padding: 80px 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
}

.funciona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.funciona-card {
  background: var(--color-card);
  border: 1px solid var(--color-borde);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.funciona-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.funciona-icono {
  font-size: 5rem;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.funciona-card h3 {
  font-size: 1.8rem;
  margin: 0 0 30px;
  color: var(--color-texto-claro);
}

.pasos {
  text-align: left;
  margin-bottom: 30px;
}

.paso {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.paso-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-primario);
  color: white;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.paso p {
  margin: 0;
  color: var(--color-texto);
  font-size: 1rem;
  line-height: 1.5;
}

.btn-funciona {
  display: inline-block;
  padding: 14px 28px;
  background: var(--color-primario);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.btn-funciona:hover {
  background: #0891b2;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .funciona-grid {
    grid-template-columns: 1fr;
  }
  
  .role-selector {
    grid-template-columns: 1fr;
  }
}
/* Hero illustration eliminado a pedido; si se repone, usar object-fit: contain */
.hero-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.6));
  pointer-events: none;
}
.hero {
  position: relative;
  background-image: url('https://images.unsplash.com/photo-1545235617-9465f9e8c9f9?auto=format&fit=crop&w=1400&q=60');
  background-size: cover;
  background-position: center;
  color: var(--color-texto);
}
.btn-primario,
.btn-secundario {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
}
.btn-primario {
  background: var(--color-primario);
  color: #ffffff;
}
.btn-secundario {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-texto);
}
.seccion-rol {
  padding: 48px 20px;
}
.seccion-secundaria {
  background: rgba(255, 255, 255, 0.02);
}
footer {
  padding: 20px 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
}

/* --- Mensajes de error inline y filas de formulario --- */
.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.form-row label {
  font-size: 0.9rem;
  color: var(--color-texto-claro);
  font-weight: 500;
}

.error {
  font-size: 0.85rem;
  color: #ef4444; /* rojo Tailwind-like */
  min-height: 18px; /* evita salto de layout */
}

.form-success {
  font-size: 0.9rem;
  color: #16a34a; /* verde éxito */
  margin-top: 6px;
}

/* Inputs y selects coherentes */
input[type='text'],
input[type='email'],
input[type='tel'],
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-borde, #3a4a5c);
  border-radius: 8px;
  background: var(--color-superficie);
  color: var(--color-texto-claro);
}

select option {
  background: var(--color-superficie);
  color: var(--color-texto-claro);
}

input::placeholder,
textarea::placeholder {
  color: #8899aa;
}

@media (prefers-color-scheme: light) {
  input::placeholder,
  textarea::placeholder {
    color: #6c757d;
  }
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-acento);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.25);
}

/* Estado visual para inputs con error */
.input-error {
  border-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.08);
}

.input-error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
}

/* Animaciones de entrada */
.is-visible {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-principal {
    flex-direction: column;
    gap: 6px;
  }
  .menu-toggle {
    display: inline-block;
  }
  .menu-principal {
    display: none;
  }
  .hero-content {
    flex-direction: column;
    align-items: center;
  }
  .hero-illustration {
    width: 100%;
    height: 160px;
  }
}

/* Contact form */
.contacto-contenedor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.contacto-text h3 {
  margin-top: 0;
}
.contacto-form {
  background: rgba(255, 255, 255, 0.02);
  padding: 18px;
  border-radius: 10px;
}
.form-row {
  margin-bottom: 12px;
}
.form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: var(--color-texto);
}
.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.form-success {
  color: var(--color-primario);
  font-weight: 600;
}
.error {
  color: #ffb4b4;
  font-size: 0.9rem;
  min-height: 18px;
}

@media (max-width: 768px) {
  .contacto-contenedor {
    grid-template-columns: 1fr;
  }
}

/* Comercios: grid de tarjetas */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.comercio-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.5);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.comercio-card:focus {
  outline: none;
  box-shadow: 0 8px 22px rgba(6, 22, 40, 0.6);
}
.comercio-card:hover {
  transform: translateY(-6px);
}
.thumb {
  background-size: cover;
  background-position: center;
  height: 140px;
}
.card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card-body h4 {
  margin: 0;
  font-size: 1.05rem;
}
.meta {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}
.desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}
.card-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}
.card-actions .btn-secundario {
  padding: 8px 12px;
  border-radius: 8px;
}
.card-actions .btn-primario {
  padding: 8px 12px;
  border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .comercio-card {
    transition: none;
  }
}

/* Estilos para la nueva grid de comercios y tarjetas simples */
.grid-comercios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 18px;
  margin-bottom: 12px;
}
.tarjeta-comercio {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  padding: 12px;
  border-radius: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease;
}
.tarjeta-comercio img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 10px;
}
.tarjeta-comercio h4 {
  margin: 6px 0 0;
  font-size: 1.05rem;
}
.tarjeta-comercio .badge {
  background: var(--color-primario);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
  display: inline-block;
}
.tarjeta-comercio .categoria {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}
.tarjeta-comercio .tiempo {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 6px;
}
.tarjeta-comercio .btn-tarjeta {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  background: var(--color-primario);
  color: #ffffff;
  font-weight: 600;
}
.tarjeta-comercio:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 22px rgba(6, 22, 40, 0.5);
}

/* Botón WhatsApp en tarjetas */
.btn-wa {
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
}
.btn-wa:hover {
  filter: brightness(1.06);
}

@media (max-width: 480px) {
  .tarjeta-comercio img {
    width: 72px;
    height: 72px;
  }
}

/* --- ESTILOS ESPECÍFICOS PARA TARJETAS DE COMERCIO --- */

.grid-comercios {
  display: grid;
  /* Cuadrícula responsiva: 
       Crea columnas de al menos 280px. Si el espacio lo permite,
       mostrará 2, 3 o más columnas automáticamente. */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px; /* Espacio entre tarjetas */
  margin-top: 40px;
  margin-bottom: 40px;
}

.tarjeta-comercio {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.45);
  padding: 20px;
  text-align: center;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
  color: var(--color-texto);
}

.tarjeta-comercio h4 {
  color: var(--color-texto);
  margin-bottom: 6px;
}
.tarjeta-comercio .categoria {
  color: rgba(230, 238, 246, 0.85);
  font-size: 0.92em;
  font-weight: 600;
  margin-bottom: 6px;

  .tarjeta-comercio .categoria {
    color: var(--color-primario);
    font-size: 0.9em;
    font-weight: 700;
    margin-bottom: 6px;
  }

  .tarjeta-comercio .tiempo {
    color: rgba(230, 238, 246, 0.8);
    font-size: 0.9em;
    margin-bottom: 12px;
  }

  /* Indicador de entrega estimada con colores */
  .tiempo.badge-time {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
  }
  .badge-time.verde {
    background: rgba(34, 197, 94, 0.18);
    color: #22c55e;
  }
  .badge-time.amarillo {
    background: rgba(234, 179, 8, 0.18);
    color: #eab308;
  }
  .badge-time.rojo {
    background: rgba(239, 68, 68, 0.18);
    color: #ef4444;
  }

  .btn-tarjeta {
    background-color: var(--color-acento);
    color: var(--color-texto-claro);
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 700;
    display: inline-block;
  }

  /* Estilos para el formulario de búsqueda dentro de #comercios */
  .formulario-busqueda {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
    margin: 10px 0 18px;
    padding: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.02));
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(2, 6, 23, 0.25);
    flex-wrap: wrap;
  }
  .formulario-busqueda .input-busqueda {
    flex: 1 1 360px;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
    color: var(--color-texto);
  }
  .formulario-busqueda .select-filtro {
    flex: 0 0 220px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
    color: var(--color-texto);
  }
  .btn-buscar {
    flex: 0 0 auto;
    background: var(--color-primario);
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 700;
  }
  .catalog-actions {
    display: flex;
    justify-content: center;
    margin-top: 10px;
  }
  .catalog-actions .btn-secundario {
    padding: 10px 16px;
  }
  .btn-buscar.secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-texto);
  }

  /* Barra de categorías */
  .categorias {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-right: 12px;
  }
  .cat-btn {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: var(--color-texto);
    cursor: pointer;
  }
  .cat-btn.active {
    background: var(--color-primario);
    color: #ffffff;
    border-color: transparent;
  }

  @media (max-width: 520px) {
    .categorias {
      flex-wrap: nowrap;
      overflow-x: auto;
      padding-bottom: 8px;
    }
    .cat-btn {
      min-height: 44px; /* objetivo táctil recomendado */
      padding: 10px 14px;
      font-size: 0.95rem;
    }
    .categorias::-webkit-scrollbar {
      height: 6px;
    }
    .categorias::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.15);
      border-radius: 999px;
    }
  }

  /* Mejorar separación táctil en tarjetas y acciones en móvil */
  @media (max-width: 520px) {
    .grid-comercios {
      gap: 22px;
    }
    .tarjeta-comercio {
      padding: 18px;
    }
    .tarjeta-comercio h4 {
      font-size: 1.1rem;
      line-height: 1.3;
    }
    .tarjeta-comercio .categoria {
      font-size: 1rem;
    }
    .card-actions,
    .detalles-actions {
      gap: 12px;
    }
    .btn-tarjeta,
    .btn-primario,
    .btn-secundario {
      min-height: 44px;
      padding: 10px 16px;
    }
  }

  @media (max-width: 768px) {
    .formulario-busqueda {
      flex-direction: column;
      align-items: stretch;
      gap: 10px;
    }
    .formulario-busqueda .input-busqueda,
    .formulario-busqueda .select-filtro {
      flex: 1 1 auto;
      width: 100%;
    }
    .btn-buscar {
      width: 100%;
      padding: 12px;
    }
  }
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: bold;
  display: inline-block;
}

/* --- Beneficios para Repartidores --- */
.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 20px;
  margin-bottom: 18px;
}
.beneficio-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  padding: 18px;
  border-radius: 12px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  box-shadow: 0 6px 16px rgba(2, 6, 23, 0.45);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease;
}
.beneficio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 26px rgba(6, 22, 40, 0.5);
}
.beneficio-icon {
  font-size: 28px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
}
.beneficio-card h4 {
  margin: 0;
  font-size: 1.05rem;
}
.beneficio-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}
.cta-repartidor {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
}

@media (max-width: 520px) {
  .beneficios-grid {
    grid-template-columns: 1fr;
  }
  .beneficio-card {
    text-align: left;
  }
  .cta-repartidor {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Estilos para la nueva sección de repartidores (features) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 18px;
  margin-bottom: 18px;
}
.feature-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  padding: 18px;
  border-radius: 12px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  box-shadow: 0 6px 16px rgba(2, 6, 23, 0.45);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 26px rgba(6, 22, 40, 0.5);
}
.feature-card .icon {
  font-size: 26px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
}
.feature-card h4 {
  margin: 0;
  font-size: 1.05rem;
}
.feature-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}
.subtitulo {
  color: rgba(255, 255, 255, 0.9);
  margin-top: 6px;
  margin-bottom: 12px;
}

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

/* --- ESTILOS ADICIONALES PARA LA SECCIÓN DE BENEFICIOS (REPARTIDORES) --- */

/* Estilo para el subtítulo debajo del H3 */
.seccion-rol .subtitulo {
  font-size: 1.1em;
  color: #6c757d;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Estilos de la Cuadrícula de Beneficios */
.features-grid {
  display: grid;
  /* Cuadrícula responsiva de tres columnas para escritorio, ajustándose a una en móviles */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.feature-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  padding: 22px 18px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(2, 6, 23, 0.45);
  text-align: left;
  border-top: 4px solid var(--color-primario);
  color: var(--color-texto);
}

.feature-card h4 {
  color: var(--color-texto);
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.feature-card p {
  color: rgba(230, 238, 246, 0.9);
}

/* --- Estilos para el formulario rápido de comercios --- */
.comercio-form {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.02));
  padding: 16px;
  border-radius: 10px;
  margin: 18px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  align-items: end;
}
.comercio-form .form-row {
  margin-bottom: 0;
}
.comercio-form label {
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: rgba(230, 238, 246, 0.9);
}
.comercio-form input,
.comercio-form select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--color-borde);
  background: var(--color-superficie);
  color: var(--color-texto-claro);
}

.comercio-form select option {
  background: var(--color-superficie);
  color: var(--color-texto-claro);
}
.comercio-form .form-actions {
  grid-column: 1/-1;
  display: flex;
  gap: 12px;
  align-items: center;
}
.comercio-form .btn-primario {
  padding: 10px 16px;
}
.comercio-form .form-success {
  margin-left: 8px;
}

@media (max-width: 520px) {
  .comercio-form {
    grid-template-columns: 1fr;
  }
  .comercio-form .form-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Estilo para los Íconos (emojis en este caso) */
.feature-card .icon {
  font-size: 2.5em;
  margin-bottom: 15px;
  /* Dejamos el color por defecto del emoji o usamos un color de marca si fuera una imagen/SVG */
}

/* --- ESTILOS DEL FOOTER (PIE DE PÁGINA) --- */

footer {
  background-color: var(--color-superior);
  color: var(--color-texto-claro);
  padding: 40px 0;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  /* Tres columnas uniformes para escritorio */
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-grid h4 {
  color: var(--color-acento);
  margin-bottom: 15px;
}

.footer-links a,
.footer-social a {
  color: #ccc;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  font-size: 0.95em;
  transition: color 0.3s;
}

.footer-links a:hover,
.footer-social a:hover {
  color: var(--color-primario);
}

/* Responsividad para el Footer en Móviles */
@media (max-width: 768px) {
  .footer-grid {
    /* Apila las columnas una debajo de la otra en móviles */
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-links,
  .footer-social {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* --- ESTILOS DEL MODAL (VENTANA EMERGENTE) --- */

.modal-overlay {
  /* Estado inicial: oculto y ocupa toda la pantalla */
  display: none;
  position: fixed;
  z-index: 1000; /* Asegura que esté por encima de todo */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7); /* Fondo negro semitransparente */
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
  align-items: center;
  justify-content: center;
}

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

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

.modal-overlay.closing {
  animation: fadeOut 0.3s ease forwards;
}

.modal-content {
  background-color: var(--color-fondo);
  margin: 0; /* Sin margin ya que usamos flex */
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px; /* Ancho máximo en escritorio */
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-borde);
  transform: scale(0.7);
  opacity: 0;
  animation: scaleIn 0.3s ease forwards 0.1s;
}

/* Detalles de comercio */
.detalles-content {
  max-width: 720px;
}
.detalles-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 10px;
}
.detalles-body .fila {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.detalles-body .label {
  color: var(--color-texto);
}
.detalles-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}
.btn-detalles {
  cursor: pointer;
}

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

.modal-content h3 {
  color: var(--color-primario);
  margin-bottom: 15px;
}

.modal-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
  color: var(--color-primario);
  text-decoration: none;
}

/* Estilos del formulario dentro del modal */
#form-registro-repartidor input[type='text'],
#form-registro-repartidor input[type='email'],
#form-registro-repartidor input[type='tel'],
#form-registro-repartidor textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  background: transparent;
  color: var(--color-texto);
}

#form-registro-repartidor .btn-primario {
  width: 100%;
  margin-top: 10px;
}

@media (max-width: 480px) {
  .modal-content {
    margin: 6% auto;
    padding: 18px;
  }
}

/* --- ESTADOS DE CARGA EN BOTONES --- */

.btn-primario,
.btn-secundario,
.btn-buscar {
  position: relative;
  transition: all 0.3s ease;
}

.btn-primario:hover,
.btn-secundario:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.btn-primario:active,
.btn-secundario:active {
  transform: translateY(0);
}

.btn-primario.loading,
.btn-secundario.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn-primario.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

/* Estilos para botón outline (modal de verificación) */
.btn-outline {
  background: transparent;
  color: var(--color-primario);
  border: 2px solid var(--color-primario);
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--color-primario);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.btn-outline:active {
  transform: translateY(0);
}

/* Transiciones suaves en elementos interactivos */
.tarjeta-comercio,
.feature-card,
.comercio-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.tarjeta-comercio:hover,
.feature-card:hover {
  cursor: pointer;
}

/* --- ESTILOS DE LA SECCIÓN DE CONTACTO --- */

.contacto-grid {
  display: grid;
  /* Dos columnas: info y formulario */
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  text-align: left;
}

.contacto-info h3 {
  color: var(--color-primario);
  margin-bottom: 20px;
}

.contacto-info p {
  margin-bottom: 15px;
}

.contacto-formulario {
  background-color: var(--color-texto-claro);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contacto-formulario h4 {
  color: var(--color-secundario);
  margin-bottom: 20px;
}

.contacto-formulario input[type='text'],
.contacto-formulario input[type='email'],
.contacto-formulario textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid var(--color-borde);
  border-radius: 5px;
  background: var(--color-superficie);
  color: var(--color-texto);
}

.contacto-formulario textarea {
  resize: vertical;
}

/* Responsividad para la sección de contacto en Móviles */
@media (max-width: 850px) {
  .contacto-grid {
    /* Se apila una columna encima de la otra */
    grid-template-columns: 1fr;
  }
  .contacto-info,
  .contacto-formulario {
    text-align: center;
  }
}

/* --- SISTEMA DE NOTIFICACIONES TOAST --- */

.notificaciones-contenedor {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
}

.toast {
  background: white;
  color: #1a202c;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-left: 4px solid #06b6d4;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.toast-visible {
  opacity: 1;
  transform: translateX(0);
}

.toast-success {
  border-left-color: #22c55e;
  background: #f0fdf4;
}

.toast-error {
  border-left-color: #ef4444;
  background: #fef2f2;
}

.toast-info {
  border-left-color: #06b6d4;
  background: #f0f9ff;
}

@media (max-width: 480px) {
  .notificaciones-contenedor {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
  .toast {
    transform: translateY(-100px);
  }
  .toast-visible {
    transform: translateY(0);
  }
}

/* --- BOTÓN DE SCROLL TO TOP --- */

.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--color-primario);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1500;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(6, 182, 212, 0.4);
}

/* --- BOTÓN DE MODO OSCURO --- */

.btn-dark-mode {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--color-texto-claro);
  padding: 8px 12px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.3s ease;
  margin-left: 10px;
}

.btn-dark-mode:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-primario);
}

/* --- SECCIÓN DE ESTADÍSTICAS --- */

.seccion-estadisticas {
  padding: 60px 20px;
  background: var(--color-superior);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(255, 107, 107, 0.1));
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-numero {
  font-size: 3rem;
  font-weight: bold;
  color: var(--color-primario);
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1rem;
  color: var(--color-texto);
  opacity: 0.9;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-numero {
    font-size: 2.5rem;
  }

  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

/* Splash screen animación */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: splashFadeIn 0.8s;
  transition: opacity 0.5s;
}
#splash-screen.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}
#splash-icon {
  width: 120px;
  height: 120px;
  margin-bottom: 18px;
  animation: splashBounce 1.2s;
}
#splash-text {
  font-size: 1.3rem;
  color: #06b6d4;
  font-weight: bold;
  letter-spacing: 1px;
  animation: splashTextFade 1.2s;
}
@keyframes splashFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes splashBounce {
  0% {
    transform: scale(0.8);
  }
  60% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes splashTextFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Transición suave del contenido principal al salir el splash */
body:not(.loaded) main {
  opacity: 0;
  filter: blur(2px);
  transform: translateY(4px);
}
body.loaded main {
  opacity: 1;
  filter: none;
  transform: none;
  transition:
    opacity 400ms ease,
    filter 400ms ease,
    transform 400ms ease;
}

@media (prefers-reduced-motion: reduce) {
  body.loaded main {
    transition: none;
  }
}

/* ============================================
   ESTILOS PARA TIENDAS LOCALES
   ============================================ */

.tiendas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.tienda-card {
  background: var(--color-card);
  border: 2px solid var(--color-borde);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tienda-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primario), var(--color-acento));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.tienda-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-primario);
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.3);
}

.tienda-card:hover::before {
  transform: scaleX(1);
}

.tienda-icono {
  font-size: 72px;
  margin-bottom: 15px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.tienda-nombre {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-texto-claro);
  margin: 15px 0 10px 0;
}

.tienda-categoria {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-primario), #0891b2);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

.tienda-descripcion {
  color: var(--color-texto);
  font-size: 14px;
  line-height: 1.6;
  margin: 15px 0;
  min-height: 60px;
}

.tienda-badge {
  display: inline-block;
  margin-top: 15px;
  color: var(--color-primario);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.tienda-card:hover .tienda-badge {
  transform: translateX(5px);
}

/* Modales de Tiendas */
.modal-header-tienda {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--color-borde);
  margin-bottom: 25px;
}

.tienda-categoria-modal {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-primario), #0891b2);
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.modal-body-tienda {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 10px;
}

.modal-body-tienda::-webkit-scrollbar {
  width: 8px;
}

.modal-body-tienda::-webkit-scrollbar-track {
  background: var(--color-fondo-tarjeta);
  border-radius: 10px;
}

.modal-body-tienda::-webkit-scrollbar-thumb {
  background: var(--color-primario);
  border-radius: 10px;
}

.info-section {
  background: var(--color-fondo-tarjeta);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  border-left: 4px solid var(--color-primario);
}

.info-section h3 {
  color: var(--color-texto-claro);
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: 600;
}

.info-section p {
  color: var(--color-texto);
  line-height: 1.8;
  font-size: 15px;
  margin: 0;
}

.lista-especialidades {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lista-especialidades li {
  color: var(--color-texto);
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  line-height: 1.6;
}

.lista-especialidades li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primario);
  font-weight: bold;
  font-size: 16px;
}

.botones-accion-tienda {
  display: flex;
  gap: 12px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.btn-whatsapp {
  flex: 1;
  min-width: 200px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  padding: 14px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 15px;
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-enlace {
  flex: 1;
  min-width: 150px;
  background: linear-gradient(135deg, var(--color-primario), #0891b2);
  color: white;
  padding: 14px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 15px;
}

.btn-enlace:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

/* Responsive para tiendas */
@media (max-width: 768px) {
  .tiendas-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tienda-card {
    padding: 25px;
  }

  .tienda-icono {
    font-size: 60px;
  }

  .botones-accion-tienda {
    flex-direction: column;
  }

  .btn-whatsapp,
  .btn-enlace {
    min-width: 100%;
  }

  .modal-body-tienda {
    max-height: 50vh;
  }
}

/* === RIPPLE EFFECT === */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

/* === TOAST NOTIFICATIONS === */
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  min-width: 300px;
  max-width: 400px;
  background: var(--color-superficie);
  border: 1px solid var(--color-borde);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  transition: all 0.3s ease;
}

.toast-success {
  border-left: 4px solid var(--color-exito);
}

.toast-error {
  border-left: 4px solid var(--color-acento);
}

.toast-warning {
  border-left: 4px solid #f59e0b;
}

.toast-info {
  border-left: 4px solid var(--color-primario);
}

.toast-icon {
  font-size: 20px;
  font-weight: bold;
}

.toast-success .toast-icon {
  color: var(--color-exito);
}

.toast-error .toast-icon {
  color: var(--color-acento);
}

.toast-warning .toast-icon {
  color: #f59e0b;
}

.toast-info .toast-icon {
  color: var(--color-primario);
}

.toast-message {
  flex: 1;
  color: var(--color-texto-claro);
  font-size: 14px;
}

.toast-close {
  background: none;
  border: none;
  color: var(--color-texto);
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
}

.toast-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* === FIELD VALIDATION === */
input.valid,
textarea.valid,
select.valid {
  border-color: var(--color-exito);
}

input.error,
textarea.error,
select.error {
  border-color: var(--color-acento);
}

.field-error {
  display: block;
  color: var(--color-acento);
  font-size: 13px;
  margin-top: 4px;
  animation: fade-in-down 0.3s ease;
}

/* === FOCUS STATES === */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primario);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

/* === RESPONSIVE TOAST === */
@media (max-width: 480px) {
  .toast {
    right: 10px;
    left: 10px;
    min-width: auto;
    max-width: none;
    bottom: 10px;
  }
}

/* === LAZY LOADING STATES === */
img[data-src],
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img.lazy-loading {
  opacity: 0.5;
  filter: blur(5px);
}

img.lazy-loaded {
  opacity: 1;
  filter: none;
}

img.lazy-error {
  opacity: 0.3;
  filter: grayscale(100%);
}

/* Placeholder mientras carga */
img[data-src]::before {
  content: '';
  display: block;
  padding-bottom: 100%;
  background: var(--color-superficie);
}

/* === UTILITY CLASSES PARA ELIMINAR INLINE STYLES === */
.text-center {
  text-align: center;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-50 {
  margin-bottom: 50px;
}

.mb-40 {
  margin-bottom: 40px;
}

.mt-10 {
  margin-top: 10px;
}

.mt-20 {
  margin-top: 20px;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-5 {
  margin-bottom: 5px;
}

.mb-15 {
  margin-bottom: 15px;
}

.mb-25 {
  margin-bottom: 25px;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.w-100 {
  width: 100%;
}

.max-w-600 {
  max-width: 600px;
}

.max-w-700 {
  max-width: 700px;
}

.max-w-800 {
  max-width: 800px;
}

.max-w-90vh {
  max-height: 90vh;
}

.overflow-y-auto {
  overflow-y: auto;
}

.display-none {
  display: none;
}

.icon-large {
  font-size: 64px;
}

.icon-small {
  font-size: 12px;
}

.icon-medium {
  font-size: 13px;
}

.text-small {
  font-size: 12px;
}

.text-normal {
  font-size: 14px;
}

.text-medium {
  font-size: 16px;
}

.color-primary {
  color: var(--color-primario);
}

.color-text-claro {
  color: var(--color-texto-claro);
}

.color-text {
  color: var(--color-texto);
}

.color-success {
  color: #10b981;
}

.color-warning {
  color: #f59e0b;
}

.opacity-70 {
  opacity: 0.7;
}

.bg-fondo-tarjeta {
  background: var(--color-fondo-tarjeta);
}

.padding-15 {
  padding: 15px;
}

.padding-30 {
  padding: 30px;
}

.border-radius-8 {
  border-radius: 8px;
}

.border-radius-12 {
  border-radius: 12px;
}

.registro-repartidor-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(2, 6, 23, 0.45);
}

.seccion-header-title {
  text-align: center;
  margin-bottom: 50px;
  color: var(--color-texto-claro);
}

.seccion-subtitle {
  text-align: center;
  margin-bottom: 40px;
  color: var(--color-texto-claro);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.modal-overlay.hidden {
  display: none;
}

.modal-content-medium {
  max-width: 600px;
}

.modal-content-large {
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
}

.form-section-box {
  background: var(--color-fondo-tarjeta);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.form-section-title {
  color: var(--color-primario);
  margin-bottom: 15px;
  font-size: 16px;
}

.form-help-text {
  color: var(--color-texto);
  opacity: 0.7;
  font-size: 12px;
}

.form-warning-text {
  color: #f59e0b;
  font-size: 12px;
}

.form-success-text {
  color: #10b981;
  font-size: 13px;
}

.preview-container {
  margin-top: 10px;
}

#camposVehiculo,
#mensajeBicicleta {
  display: none;
}

.tienda-icon-large {
  font-size: 64px;
  margin-bottom: 10px;
}

.tienda-title {
  color: var(--color-primario);
  margin-bottom: 5px;
}

/* === UTILITY CLASSES ADICIONALES === */
.mb-15 {
  margin-bottom: 15px;
}

.mt-15 {
  margin-top: 15px;
}

.cursor-pointer {
  cursor: pointer;
}

.checkbox-large {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  margin-top: 2px;
  margin-right: 10px;
  cursor: pointer;
  -webkit-appearance: checkbox;
  -moz-appearance: checkbox;
  appearance: checkbox;
  accent-color: var(--color-primario);
  position: relative;
  flex-shrink: 0;
}

.checkbox-large:hover {
  transform: scale(1.1);
}

.checkbox-large:focus {
  outline: 3px solid var(--color-primario);
  outline-offset: 2px;
}

/* Compatibilidad con Edge y navegadores antiguos */
input[type="checkbox"] {
  cursor: pointer;
  position: relative;
}

input[type="checkbox"]:not(:checked),
input[type="checkbox"]:checked {
  position: relative;
}

.icon-large {
  font-size: 64px;
}

.mb-15 {
  margin-bottom: 15px;
}

/* Clases para modal overlay hidden */
.modal-overlay.modal-overlay.hidden {
  display: none;
}

/* === UTILITY CLASSES ADICIONALES PARA FORMULARIOS === */
.flex-start {
  display: flex;
  align-items: start;
  gap: 12px;
}

.form-terminos-box {
  background: var(--color-fondo-tarjeta);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 2px solid var(--color-primario);
}

.link-underline {
  color: var(--color-primario);
  text-decoration: underline;
}

.error-message {
  background: #ef4444;
  color: white;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 14px;
}

.btn-submit-large {
  padding: 15px;
  font-size: 16px;
  font-weight: 600;
}

.info-text-small {
  margin-top: 15px;
  opacity: 0.8;
}

/* === MODAL CONTENT VARIANTS === */
.modal-content-500 {
  max-width: 500px;
}

.color-exito {
  color: var(--color-exito);
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-30 {
  margin-bottom: 30px;
}

/* === ID DISPLAY BOXES === */
.id-box-gradient {
  padding: 30px;
  border-radius: 12px;
  margin: 25px 0;
}

.id-box-repartidor {
  background: linear-gradient(135deg, var(--color-primario), var(--color-secundario));
}

.id-box-comercio {
  background: linear-gradient(135deg, #10b981, #059669);
}

.id-box-pedido {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.id-label {
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.id-display {
  font-size: 36px;
  font-weight: bold;
  color: white;
  font-family: 'Courier New', monospace;
  letter-spacing: 3px;
  margin: 10px 0;
}

.id-help-text {
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  margin-top: 10px;
}

/* === INFO BOXES === */
.info-box {
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.info-box-primary {
  border-left: 4px solid var(--color-primario);
}

.info-box-success {
  border-left: 4px solid #10b981;
}

.info-box-warning {
  border-left: 4px solid #f59e0b;
}

.info-text-left {
  line-height: 1.6;
  text-align: left;
}

/* === BUTTON GROUPS === */
.button-group {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.flex-1 {
  flex: 1;
}

.flex-2 {
  flex: 2;
}

.btn-link-secondary {
  text-decoration: none;
  display: inline-block;
  text-align: center;
  padding: 12px 24px;
}

.bg-success {
  background: #10b981;
}

.bg-gradient-purple {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-warning {
  background: #f59e0b;
}

.opacity-80 {
  opacity: 0.8;
}

.line-height-16 {
  line-height: 1.6;
}

.text-left {
  text-align: left;
}

/* Estilos para textarea */
.textarea-full {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid var(--color-borde);
  background: var(--color-superficie);
  color: var(--color-texto-claro);
  font-family: inherit;
  resize: vertical;
}

/* === UTILITY CLASS FOR LINKS === */
.link-primary {
  color: var(--color-primario);
}

.mb-25 {
  margin-bottom: 25px;
}

/* === PANEL SPECIFIC CLASSES === */
.mt-20 {
  margin-top: 20px;
}

.panel-hidden {
  display: none;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.panel-title {
  margin: 0;
  color: var(--color-texto-claro);
}

.saldo-container {
  display: flex;
  gap: 20px;
  align-items: center;
}

.saldo-box {
  text-align: right;
}

.saldo-label {
  font-size: 12px;
  color: var(--color-texto);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.saldo-amount {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-exito);
}

.btn-historial {
  margin-top: 8px;
  padding: 6px 12px;
  font-size: 12px;
  background: var(--color-superficie);
  border: 1px solid var(--color-borde);
  color: var(--color-texto-claro);
  border-radius: 6px;
  cursor: pointer;
}

.historial-panel {
  display: none;
  margin-top: 20px;
  padding: 20px;
  background: var(--color-fondo);
  border-radius: 8px;
  border: 1px solid var(--color-borde);
}

.historial-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.historial-title {
  margin: 0;
  color: var(--color-texto-claro);
}

.btn-close-historial {
  padding: 4px 12px;
  font-size: 12px;
  background: transparent;
  border: 1px solid var(--color-borde);
  color: var(--color-texto-claro);
  border-radius: 6px;
  cursor: pointer;
}

.historial-lista {
  max-height: 400px;
  overflow-y: auto;
}

.empty-historial {
  text-align: center;
  padding: 40px;
  color: var(--color-texto);
}

.btn-estado {
  margin-top: 10px;
  padding: 8px 16px;
  font-size: 14px;
}

.text-muted {
  color: #718096;
}

.empty-lista {
  text-align: center;
  padding: 40px;
  color: #718096;
}

.text-right {
  text-align: right;
}

/* ============================================
   SECCIÓN MÓDULOS DEL SISTEMA
   ============================================ */

.seccion-modulos-sistema {
  background: linear-gradient(135deg, #0f1724 0%, #1a2332 100%);
  padding: 60px 0;
}

.seccion-modulos-sistema .seccion-header-title {
  color: #fff;
  margin-bottom: 20px;
}

.seccion-modulos-sistema .seccion-subtitle {
  color: rgba(255, 255, 255, 0.8);
  max-width: 800px;
  margin: 0 auto 40px;
}

.modulos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.modulo-card {
  background: #0b1220;
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(6, 182, 212, 0.3);
  transition: all 0.3s;
  display: block;
}

.modulo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.2);
  border-color: rgba(6, 182, 212, 0.6);
}

.modulo-icono {
  font-size: 3em;
  margin-bottom: 12px;
}

.modulo-card h3 {
  color: #06b6d4;
  margin-bottom: 8px;
  font-size: 1.3em;
}

.modulo-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9em;
  line-height: 1.5;
  margin: 0;
}

.modulo-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8em;
  font-weight: 600;
}

.modulo-badge.badge-nuevo {
  background: rgba(6, 182, 212, 0.1);
  color: #06b6d4;
}

.modulo-badge.badge-activo {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.modulo-badge.badge-pwa {
  background: rgba(6, 182, 212, 0.1);
  color: #06b6d4;
}

.modulos-footer {
  text-align: center;
  margin-top: 30px;
}

.modulos-footer p {
  margin-bottom: 15px;
}

.modulos-tip {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9em;
  margin-bottom: 15px;
}

.modulos-version {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85em;
}

/* ===== PANEL REPARTIDOR - ESTILOS ESPECÍFICOS ===== */
.repartidor-login-title {
  text-align: center;
  margin-bottom: 30px;
  color: var(--color-texto-claro);
}

.repartidor-btn-full {
  width: 100%;
}

.repartidor-login-footer {
  text-align: center;
  margin-top: 20px;
  color: var(--color-texto);
}

.repartidor-login-link {
  color: var(--color-primario);
}

.panel-section-hidden {
  display: none;
}

.repartidor-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.repartidor-header-title {
  margin: 0;
  color: var(--color-texto-claro);
}

.repartidor-header-right {
  display: flex;
  gap: 20px;
  align-items: center;
}

.repartidor-saldo-container {
  text-align: right;
}

.repartidor-saldo-label {
  font-size: 12px;
  color: var(--color-texto);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.repartidor-saldo-monto {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-exito);
}

.repartidor-btn-historial {
  margin-top: 8px;
  padding: 6px 12px;
  font-size: 12px;
  background: var(--color-superficie);
  border: 1px solid var(--color-borde);
  color: var(--color-texto-claro);
  border-radius: 4px;
  cursor: pointer;
}

.repartidor-historial-container {
  display: none;
  margin-top: 20px;
  padding: 20px;
  background: var(--color-fondo);
  border-radius: 8px;
  border: 1px solid var(--color-borde);
}

.repartidor-historial-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.repartidor-historial-title {
  margin: 0;
  color: var(--color-texto-claro);
}

.repartidor-btn-cerrar-historial {
  padding: 4px 12px;
  font-size: 12px;
  background: transparent;
  border: 1px solid var(--color-borde);
  color: var(--color-texto-claro);
  border-radius: 4px;
  cursor: pointer;
}

.repartidor-historial-lista {
  max-height: 400px;
  overflow-y: auto;
}

.repartidor-historial-empty {
  text-align: center;
  padding: 40px;
  color: var(--color-texto);
}

.repartidor-ganancia-promedio {
  color: var(--color-exito);
}

.repartidor-section-title {
  margin-bottom: 20px;
  color: var(--color-texto-claro);
}

/* ===== PANEL COMERCIO - ESTILOS LOGIN ===== */
.comercio-login-screen {
  display: flex;
}

.comercio-login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #0f1724;
}

.comercio-login-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.comercio-login-header {
  text-align: center;
  margin-bottom: 30px;
}

.comercio-login-icon {
  font-size: 60px;
  margin-bottom: 15px;
}

.comercio-login-title {
  color: var(--color-texto-claro);
  font-size: 28px;
  margin-bottom: 10px;
}

.comercio-login-subtitle {
  color: #718096;
  font-size: 16px;
}

.comercio-login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comercio-login-label {
  display: block;
  color: var(--color-texto-claro);
  font-weight: 600;
  margin-bottom: 8px;
}

.comercio-login-input {
  width: 100%;
  padding: 15px;
  border: 2px solid var(--color-borde);
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s;
  background: var(--color-superficie);
  color: var(--color-texto);
}

.comercio-login-input:focus {
  border-color: #06b6d4;
  outline: none;
}

.comercio-login-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.comercio-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.5);
}

.comercio-login-footer {
  margin-top: 20px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.comercio-login-footer-text {
  color: #718096;
  font-size: 14px;
}

.comercio-login-footer-link {
  color: #06b6d4;
  font-weight: 600;
  text-decoration: none;
}

.comercio-panel-hidden {
  display: none;
}

.comercio-clicks-stats {
  margin-top: 10px;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.6;
}

.comercio-clicks-whatsapp {
  color: #25D366;
  font-weight: 600;
}

.comercio-clicks-instagram {
  color: #E1306C;
  font-weight: 600;
}

.comercio-clicks-tienda {
  color: #06b6d4;
  font-weight: 600;
}

.comercio-stats-title {
  margin-bottom: 25px;
}

.comercio-tienda-empty {
  text-align: center;
  padding: 60px 40px;
}

.comercio-tienda-empty-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.comercio-tienda-empty-icon {
  font-size: 5em;
  margin-bottom: 20px;
}

.comercio-tienda-empty-title {
  font-size: 2.5em;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.comercio-tienda-empty-text {
  font-size: 1.2em;
  color: #94a3b8;
  margin-bottom: 40px;
  line-height: 1.6;
}

.comercio-btn-solicitar-tienda {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  border: none;
  padding: 20px 50px;
  border-radius: 50px;
  font-size: 1.3em;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.comercio-btn-solicitar-tienda:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
}

/* === BENEFICIOS Y SECCIONES ===  */
.comercio-btn-icon {
  font-size: 1.5em;
}

.comercio-beneficios-box {
  margin-top: 50px;
  padding: 30px;
  background: rgba(6, 182, 212, 0.1);
  border-radius: 15px;
  border: 2px solid rgba(6, 182, 212, 0.3);
}

.comercio-beneficios-title {
  color: #06b6d4;
  margin-bottom: 20px;
  font-size: 1.3em;
}

.comercio-beneficios-lista {
  text-align: left;
  display: inline-block;
}

.comercio-beneficio-item {
  color: #ffffff;
  margin: 12px 0;
  font-size: 1.05em;
}

.comercio-anuncios-empty {
  text-align: center;
  padding: 60px 40px;
}

.comercio-anuncios-empty-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.comercio-anuncios-empty-icon {
  font-size: 5em;
  margin-bottom: 20px;
}

.comercio-anuncios-empty-title {
  font-size: 2.5em;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.comercio-anuncios-empty-text {
  font-size: 1.2em;
  color: #94a3b8;
  margin-bottom: 40px;
  line-height: 1.6;
}

.comercio-btn-anuncios {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  border: none;
  padding: 20px 50px;
  border-radius: 50px;
  font-size: 1.3em;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.comercio-btn-anuncios:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
}

.comercio-oferta-box {
  margin-top: 40px;
  padding: 25px;
  background: rgba(255, 193, 7, 0.1);
  border-radius: 15px;
  border: 2px solid rgba(255, 193, 7, 0.3);
}

.comercio-oferta-title {
  color: #FFC107;
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 10px;
}

.comercio-oferta-text {
  color: #ffffff;
  font-size: 1em;
  line-height: 1.5;
}

.comercio-oferta-highlight {
  color: #FFC107;
}

.comercio-config-title {
  margin-bottom: 25px;
}

.comercio-modal-text {
  margin-bottom: 20px;
  color: #718096;
}

.comercio-modal-loading {
  text-align: center;
  padding: 40px;
  color: #718096;
}

.comercio-btn-margin-top {
  margin-top: 20px;
}

/* === DASHBOARD CEO - ESTILOS ESPECÍFICOS === */
.ceo-header-user-section {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ceo-usuario-nombre {
  color: #ffffff;
  font-weight: 600;
}

.ceo-btn-salir {
  background: #ef4444;
}

.ceo-configuraciones-header {
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ceo-configuraciones-subtitle {
  color: #94a3b8;
}

.ceo-btn-refrescar {
  background: #06b6d4;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

/* === UTILIDADES GENERALES === */
.hidden {
  display: none;
}

.margin-top-20 {
  margin-top: 20px;
}

.text-center-gray {
  color: #cccccc;
  text-align: center;
  padding: 40px;
}

