@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Ultra-Premium Editorial Palette */
  --primary: #b45309;       /* Rich Amber/Gold */
  --primary-dark: #78350f;  /* Deep Gold */
  --secondary: #0f172a;     /* Deep Slate / Midnight */
  --accent: #1e293b;        /* Slate Blue-Gray */
  --accent-hover: #334155;  /* Lighter Slate */
  
  --text: #111827;          /* High contrast dark for text */
  --text-light: #4b5563;    /* Cool Gray for secondary text */
  --bg-main: #f9fafb;       /* Crisp off-white */
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.05);
  --shadow-lg: 0 12px 24px -4px rgba(0,0,0,0.08);
  --shadow-glow: 0 0 20px rgba(180, 83, 9, 0.15);
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  background-color: var(--bg-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--secondary);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* =========================================
   HEADER & NAVIGATION (Premium Glassmorphism)
   ========================================= */
.main-header {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

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

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--secondary);
}

.logo span {
  color: var(--primary-dark);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav {
  height: 100%;
  display: flex;
  align-self: stretch;
}

nav > ul {
  display: flex;
  gap: 2.5rem;
  height: 100%;
  list-style: none;
}

nav > ul > li {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

nav > ul > li > a {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: var(--text);
  padding: 0.5rem 0;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

nav > ul > li > a:hover {
  color: var(--primary-dark);
}

/* Dropdown Menu (Premium Slide-in) */
.dropdown-menu {
  position: absolute;
  top: 90%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  min-width: 240px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
  z-index: 1000;
  list-style: none;
}

nav > ul > li:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
  width: 100%;
  margin-bottom: 2px;
}

.dropdown-menu a {
  display: block;
  padding: 0.7rem 1.2rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.dropdown-menu a:hover {
  background: var(--bg-main);
  color: var(--primary-dark);
  transform: translateX(4px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px; /* Pill shape for modern look */
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-accent {
  background-color: var(--accent);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-light {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
}

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

/* =========================================
   HERO SECTION (Editorial Style)
   ========================================= */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 82, 186, 0.6) 100%), url('../images/turismo/paseo-juan-aparicio.jpg') center/cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/images/turismo/paseo-juan-aparicio.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  z-index: 1;
  mix-blend-mode: overlay;
}

.hero-content {
  position: relative;
  z-index: 10;
  color: white;
  max-width: 750px;
}

.hero-content h1 {
  font-size: 3.5rem;
  color: white;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* =========================================
   SECTIONS & GRIDS
   ========================================= */
.section {
  padding: 6rem 0;
}

.section-bg-white {
  background-color: var(--bg-white);
}

.section-title {
  text-align: center;
  font-size: 2.25rem;
  color: var(--secondary);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 4rem auto;
}

/* Grid layout for explore/categories */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.category-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: 280px;
  display: block;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(29, 53, 87, 0.9) 0%, rgba(29, 53, 87, 0.1) 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.category-card h3 {
  color: white;
  font-size: 1.35rem;
  font-weight: 700;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.category-card:hover img {
  transform: scale(1.05);
}

/* =========================================
   DIRECTORY (Sleek Clean Listing)
   ========================================= */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.dir-col {
  background: var(--bg-white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.dir-col:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-dark);
}

.dir-col h3 {
  color: var(--secondary);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-dark);
  display: inline-block;
}

.dir-col ul {
  list-style: none;
}

.dir-col li {
  margin-bottom: 0.75rem;
}

.dir-col a {
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}

.dir-col a:hover {
  color: var(--primary-dark);
  padding-left: 4px;
}

/* =========================================
   PAGES HEADER & BUSINESS CARDS
   ========================================= */
.page-header {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  color: white;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  color: white;
  font-weight: 800;
  margin-bottom: 1rem;
}

.page-header p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.business-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.business-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(180, 83, 9, 0.2); /* Subtle primary tint on hover */
}

.bc-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.bc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.badge-featured {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--primary);
  color: white;
  padding: 0.35rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 20px;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.bc-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.bc-category {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.bc-content h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--secondary);
}

.bc-meta {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.bc-footer {
  margin-top: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

/* =========================================
   DETAIL PAGE (lugar.html)
   ========================================= */
.lugar-hero {
  height: 450px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.lugar-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(29, 53, 87, 0.95) 0%, rgba(29, 53, 87, 0.2) 100%);
  display: flex;
  align-items: flex-end;
  padding-bottom: 4rem;
}

.contact-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 120px;
}

.map-container {
  width: 100%;
  height: 250px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 1.5rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 2rem;
}

.back-link:hover {
  color: var(--primary);
  transform: translateX(-4px);
}

/* =========================================
   FOOTER (Sleek 4-Column Layout)
   ========================================= */
.main-footer {
  background-color: var(--secondary);
  color: rgba(255, 255, 255, 0.7);
  padding: 5rem 0 0 0;
  margin-top: 6rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 30px;
  height: 2px;
  background-color: var(--primary-dark);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.2s ease;
}

.footer-col a:hover {
  color: white;
  padding-left: 4px;
}

.brand-col p {
  line-height: 1.8;
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 2rem 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.footer-legal a:hover {
  color: white;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-content h1 { font-size: 2.75rem; }
  .lugar-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .webcam-banner { padding: 2.5rem; }
}

@media (max-width: 768px) {
  nav { display: none; }
  .header-inner { height: 75px; }
  .hero-content h1 { font-size: 2.25rem; }
  .section { padding: 4rem 0; }
}

/* =========================================
   STATS RIBBON
   ========================================= */
.stats-ribbon {
  background-color: var(--secondary);
  color: white;
  padding: 3rem 0;
  border-bottom: 4px solid var(--primary-dark);
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  color: var(--accent);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-size: 0.95rem;
  opacity: 0.8;
  font-weight: 500;
}

/* =========================================
   WEBCAM BANNER
   ========================================= */
.webcam-banner {
  background: linear-gradient(135deg, #0b3c5d 0%, #1d2731 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 3rem;
  box-shadow: var(--shadow-lg);
}

.webcam-banner-content {
  flex: 1 1 500px;
}

.webcam-banner-content h2 {
  color: white;
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.webcam-banner-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: 0;
}

.webcam-banner-cta {
  flex: 0 0 auto;
}

/* =========================================
   CTA BANNER (REGISTER BUSINESS)
   ========================================= */
.cta-section {
  text-align: center;
  background: var(--bg-white);
  border-top: 1px solid var(--border-color);
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta-section p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
  font-size: 1.1rem;
}
