/* Theme Name: Mi Negocio Mexivanza
Theme URI: https://mexivanza.com
Author: Jarenis
Description: Custom, sovereign theme for the Mexivanza business directory
Version: 1.0.0
License: GPLv2 or later
Text Domain: mi-negocio-mexivanza
*/
.buscador-avanzado {
  padding: 2rem 0;
  background: linear-gradient(to right, #fff, #f9f9f9);
}
.search-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.search-bar input {
  flex: 1;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
}
.search-bar button {
  background-color: #0056b3;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border: none;
  cursor: pointer;
}
.search-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.categoria-btn {
  background: #eee;
  border: 1px solid #ccc;
  padding: 0.5rem 1rem;
  cursor: pointer;
}
.categoria-btn.active {
  background: #0056b3;
  color: #fff;
}
.titulo-centro {
  text-align: center;
  margin: 2rem 0;
}
.ahorro {
  color: #d32f2f;
  font-weight: bold;
  margin-top: 0.5rem;
}
.toggle-btn.active {
  background-color: #0056b3;
  color: #fff;
}
.form input, .form textarea, .form select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}
.form .field { margin-bottom: 20px; }
.business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
}
.business-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 15px;
  text-align: center;
  transition: transform 0.2s ease;
}
.business-card:hover {
  transform: translateY(-5px);
}
.business-thumb {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 10px;
}
.business-thumb.placeholder {
  background: #eee;
  height: 180px;
}
.ver-negocio-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background: #0073aa;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
}
.ver-negocio-btn:hover {
  background: #005a8c;
}
.site-header .brand img {
  height: 160px;
  width: auto;
  display: block;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* ====== Business Profile Template ====== */
/* Hero Section */
.business-hero {
  position: relative;
  text-align: center;
  color: #fff;
  margin-bottom: 40px;
}
.business-hero .hero-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 6px;
}
.business-hero .hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.45);
  padding: 20px 40px;
  border-radius: 8px;
}
.business-hero .business-name {
  font-size: 2.5rem;
  margin: 0;
}
.business-hero .business-tagline {
  margin-top: 10px;
  font-size: 1.2rem;
  font-weight: 300;
}
/* Meta Badges */
.business-badges {
  margin: 20px auto;
  max-width: 1100px;
}
.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.badge {
  background: #f5f7fa;
  border: 1px solid #e5e9f2;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}
.badge .label {
  color: #4a5568;
  margin-right: 6px;
  font-weight: 600;
}
/* Layout */
.business-layout {
  display: flex;
  gap: 40px;
  margin: 40px auto;
  max-width: 1200px;
  align-items: flex-start;
}
.business-main {
  flex: 2;
}
.business-sidebar {
  flex: 1;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 20px;
  position: sticky;
  top: 20px;
}
/* Sections */
.section {
  margin-bottom: 32px;
}
.section-title {
  margin: 0 0 12px;
  font-size: 1.4rem;
  font-weight: 600;
  border-bottom: 2px solid #0073aa;
  display: inline-block;
  padding-bottom: 4px;
}
.section-content {
  line-height: 1.7;
  font-size: 1rem;
  color: #333;
}
/* Products */
.product-list {
  list-style: disc;
  margin-left: 20px;
}
.product-item {
  margin-bottom: 6px;
}
.business-gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.business-gallery .gallery-item img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
/* Contact & Social */
.contact-list,
.social-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-item,
.social-item {
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.contact-item .label {
  font-weight: 600;
  color: #444;
  margin-right: 6px;
}
.contact-item .value a {
  color: #0073aa;
  text-decoration: none;
}
.contact-item .value a:hover {
  text-decoration: underline;
}
.social-item a {
  color: #0073aa;
  text-decoration: none;
}
.social-item a:hover {
  color: #005a8c;
  text-decoration: underline;
}
/* Responsive */
@media (max-width: 900px) {
  .business-layout {
    flex-direction: column;
  }
  .business-sidebar {
    position: static;
    margin-top: 20px;
  }
}
#add-gallery {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 14px;
  background: #0073aa;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
#add-gallery:hover {
  background: #005a8c;
}
/* Dashboard Layout */
.dashboard-wrapper {
  display: flex;
  min-height: 80vh;
  background: #f9f9f9;
}

.dashboard-sidebar {
  width: 240px;
  background: #222;
  color: #fff;
  padding: 2rem 1rem;
}

.dashboard-sidebar h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.dashboard-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.dashboard-sidebar li {
  margin-bottom: 0.5rem;
}

.dashboard-sidebar a {
  color: #ccc;
  text-decoration: none;
  display: block;
  padding: 0.5rem;
  border-radius: 4px;
}

.dashboard-sidebar a.active,
.dashboard-sidebar a:hover {
  background: #0073aa;
  color: #fff;
}

.dashboard-content {
  flex: 1;
  padding: 2rem;
  background: #fff;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}
.tab-link.active { background: #0073aa; color: #fff; }
.tab-panel h2 {
  margin-top: 0;
}

.tab-panel form {
  margin-top: 1rem;
}

.tab-panel textarea,
.tab-panel input[type="text"] {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.tab-panel button {
  background: #0073aa;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
}

.tab-panel button:hover {
  background: #005f87;
}
/* Layout */
.dashboard {
  display: flex;
  min-height: 100vh;
  background: #f3f4f6;
  font-family: system-ui, sans-serif;
}

/* Sidebar */
.dashboard-sidebar {
  width: 240px;
  background: #1f2937;
  color: #fff;
  padding: 1.5rem;
}
.dashboard-sidebar h2 { font-size: 1.1rem; margin-bottom: 1rem; }
.dashboard-sidebar ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.dashboard-sidebar li { margin-bottom: 0.5rem; }
.dashboard-sidebar a {
  display: block; padding: 0.5rem 0.75rem;
  color: #cbd5e1; text-decoration: none; border-radius: 6px;
}
.dashboard-sidebar a.active,
.dashboard-sidebar a:hover { background: #2563eb; color: #fff; }
.dashboard-sidebar .user-info { font-size: 0.85rem; color: #e5e7eb; }

/* Content */
.dashboard-content { flex: 1; padding: 2rem; background: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Card blocks */
.dashboard-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 2rem;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.card-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 1rem; border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}
.card-header h2 { margin: 0; font-size: 1.1rem; }
.card-body { padding: 1rem; }
.block-placeholder { color: #6b7280; font-style: italic; }

/* Buttons */
.card-edit, .save-btn, .cancel-btn, .add-btn {
  padding: 0.45rem 0.9rem; border: none; border-radius: 6px; cursor: pointer;
}
.card-edit { background: #2563eb; color: #fff; }
.save-btn { background: #16a34a; color: #fff; }
.cancel-btn { background: #9ca3af; color: #fff; margin-left: 0.5rem; }
.add-btn { background: #0ea5e9; color: #fff; margin-left: 0.5rem; }

/* Form elements */
textarea, input[type="text"], input[type="file"] {
  width: 100%; padding: 0.6rem; border: 1px solid #d1d5db;
  border-radius: 6px; margin-top: 0.5rem;
}

/* Gallery grid */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}
.gallery-item img { width: 100%; border-radius: 6px; }
.nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #222;
  padding: 10px 0;
  list-style: none;
  min-width: 200px;
  z-index: 9999;
  box-shadow: 0 4px 8px rgba(0,0,0,0.6);
}

.nav .sub-menu li {
  padding: 8px 20px;
  white-space: nowrap;
}

.nav .sub-menu li a {
  display: block;
  color: #eee;
  background-color: transparent;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}


.nav .sub-menu li a:hover {
  background: #c00;
  color: #fff;
}
.nav > li {
  margin-right: 20px;
}
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
  }
  .nav .sub-menu {
    position: static;
    box-shadow: none;
  }
}
