:root {
  --primary: #FF6B00;
  --primary-dark: #E65F00;
  --secondary: #00B4D8;
  --accent: #FFB703;
  --background: #FFFFFF;
  --surface: #F8F9FA;
  --text: #1A1A1A;
  --text-light: #6c757d;
  --white: #FFFFFF;
  --border: #E9ECEF;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --max-width: 1200px;
}

[data-theme='dark'] {
  --background: #0F172A;
  --surface: #1E293B;
  --text: #F8FAFC;
  --text-light: #94A3B8;
  --border: #334155;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
}

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

button,
.btn {
  cursor: pointer;
  border: none;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  font-weight: 600;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* Component Styles */
.category-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.negocios-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

@media (min-width: 1200px) {
  .negocios-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.listing-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: white;
  border-radius: 2rem;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.4s ease;
  position: relative;
}

.listing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 40px -10px rgba(255, 107, 0, 0.15);
}

.listing-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.listing-info {
  padding: 1.5rem;
}

.listing-category {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.listing-name {
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.listing-desc {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rating {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 0.4rem 0.8rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #451a03;
  font-weight: 900;
  font-size: 0.875rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

@media (max-width: 900px) {

  .listing-grid {
    grid-template-columns: 1fr !important;
  }

  .listing-sidebar {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem !important;
    line-height: 1.1;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1.1rem !important;
  }

  .hero-capsule {
    padding: 0.5rem 1rem;
    font-size: 0.65rem;
    margin-bottom: 1.5rem;
  }

  .header-container {
    padding: 0 10px !important;
  }

  .search-container {
    flex-direction: column;
    border-radius: 20px !important;
    padding: 15px !important;
    width: 90% !important;
    margin: 0 auto !important;
  }

  .search-input {
    border-left: none !important;
    border-bottom: 1px solid #ddd;
    width: 100%;
    margin-bottom: 10px;
  }

  .search-button {
    width: 100%;
    margin-top: 5px;
  }

  .listing-content-container {
    padding: 0 20px !important;
  }
}

.service-tag {
  background: transparent;
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 500;
}

/* =========================================
   Classes from index.html (removed inline)
   ========================================= */

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  height: 80px;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 10px 15px -3px rgba(255, 107, 0, 0.2);
  transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
  transform: rotate(12deg);
}

.logo-text {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -1px;
}

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

.logo-dark {
  color: var(--text);
}

.logo-dot {
  color: var(--primary);
  font-weight: 900;
}

.logo-tld {
  font-size: 0.7em;
  font-weight: 600;
  color: var(--text);
}

nav.desktop-nav {
  display: none;
  align-items: center;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  nav.desktop-nav {
    display: flex;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: white;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 10px 15px -3px rgba(255, 107, 0, 0.1);
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Mobile Toggle */
.mobile-toggle {
  display: block;
  padding: 0.75rem;
  background: rgba(255, 107, 0, 0.08);
  border-radius: 1rem;
  color: var(--primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .mobile-toggle {
    display: none;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 70vh;
  padding: 100px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  text-align: center;
  background: #fff;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1; /* Increased opacity as we're removing the mask */
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px !important;
}

.hero-capsule {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
  box-shadow: 0 10px 20px rgba(255, 107, 0, 0.3);
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 2rem;
  text-transform: uppercase;
  font-style: italic;
  letter-spacing: -0.05em;
  color: var(--text);
  text-shadow: 0px 4px 15px rgba(255, 255, 255, 0.8), 0px 0px 30px rgba(255, 255, 255, 0.5);
}

.hero-subtitle {
  font-size: 1.4rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  color: #FFFFFF; /* Changed to white as requested */
  font-weight: 600;
  text-shadow: 0px 2px 15px rgba(0, 0, 0, 0.4); /* Dark shadow for white text */
}

.text-orange {
  color: var(--primary);
}

/* Categories Section */
.categories-section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.category-card {
  background: var(--surface);
  padding: 40px 20px;
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.3s ease;
  display: block;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.category-name {
  font-size: 1.2rem;
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  text-align: center;
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-text {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.btn-white-lg {
  background: white;
  color: var(--primary);
  padding: 18px 50px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  display: inline-block;
}

/* Footer Section */
.site-footer {
  padding: 60px 0 20px;
  background: #000;
  color: #fff;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: baseline;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 20px;
  text-decoration: none;
}

.footer-text {
  color: #aaa;
  font-size: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
}

.footer-link {
  color: #fff;
  text-decoration: none;
}

.footer-link-highlight {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid #333;
  text-align: center;
  font-size: 12px;
  color: #666;
}

/* Business Layout Refinement */
.business-title {
  font-size: 3rem;
  font-weight: 950;
  text-transform: uppercase;
  font-style: italic;
  letter-spacing: -0.05em;
  line-height: 0.9;
  margin-bottom: 1.5rem;
  color: var(--text);
}

@media (min-width: 768px) {
  .business-title {
    font-size: 5rem;
  }
}

.badge-tag {
  padding: 0.75rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
}

.business-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.info-card-premium,
.side-card,
.map-card {
  margin-bottom: 3rem !important;
}

.business-main-content>*:last-child,
.business-sidebar>*:last-child {
  margin-bottom: 0 !important;
}

@media (min-width: 1024px) {
  .business-layout-grid {
    grid-template-columns: 2fr 1fr;
  }

  .business-sidebar {
    position: sticky;
    top: 120px;
    align-self: start;
  }
}

/* Business Details Premium Classes */
.detail-container {
  padding: 4rem 1rem;
}

.business-header {
  margin-bottom: 3rem;
  text-align: center;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.rating-badge {
  background: #fbbf24;
  color: #451a03;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(251, 191, 36, 0.2);
}

.info-card-premium {
  background: white;
  padding: 2.5rem;
  border-radius: 3.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.05);
}

.info-card-premium h2 {
  font-size: 2rem;
  font-weight: 950;
  margin-bottom: 1.5rem;
  font-style: italic;
  text-transform: uppercase;
  color: var(--text);
  letter-spacing: -0.05em;
}

.side-card {
  background: white;
  padding: 2.5rem;
  border-radius: 3.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 25px 50px -12px rgba(255, 107, 0, 0.1);
}

.side-card h3 {
  font-size: 1.5rem;
  font-weight: 950;
  margin-bottom: 2rem;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.05em;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.contact-label {
  font-size: 0.625rem;
  font-weight: 900;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.2rem;
}

.contact-value {
  font-weight: 700;
  color: var(--text);
  word-break: break-word;
}

.contact-value-large {
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--text);
  letter-spacing: -0.05em;
}

.map-card {
  background: white;
  padding: 2.5rem;
  border-radius: 3.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 25px 50px -12px rgba(255, 107, 0, 0.1);
  overflow: hidden;
}

.map-card h3 {
  font-size: 1.5rem;
  font-weight: 950;
  margin-bottom: 2rem;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.05em;
}

.map-container {
  width: 100%;
  height: 300px;
  border-radius: 2rem;
  overflow: hidden;
  position: relative;
}

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

.gallery-container {
  width: 100%;
  margin-bottom: 4rem;
}

.gallery-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 2rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.gallery-scroll::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  position: relative;
  flex: 0 0 75vw;
  height: 450px;
  border-radius: 2.5rem;
  overflow: hidden;
  scroll-snap-align: center;
  border: 4px solid white;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
  .gallery-item {
    flex: 0 0 380px;
    height: 500px;
    border-radius: 3rem;
  }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 2rem;
  transition: color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.back-link:hover {
  color: var(--primary);
}