/* ============================================================
   SANTA MARTA GUÍA TURÍSTICA — Shared Stylesheet
   ============================================================ */

/* ============================================================
   DESIGN TOKENS (brand-spec.md)
   ============================================================ */
:root {
  --bg:          oklch(98% 0.008 220);
  --surface:     oklch(100% 0 0);
  --fg:          oklch(25% 0.06 245);
  --muted:       oklch(38% 0.025 240);
  --border:      oklch(88% 0.015 220);
  --accent:      oklch(74% 0.16 62);
  --success:     oklch(58% 0.13 155);
  --warn:        oklch(68% 0.14 52);
  --danger:      oklch(58% 0.22 25);
  --navy:         oklch(28% 0.07 245);
  --navy-deep:    oklch(22% 0.06 245);
  --sky:          oklch(82% 0.06 220);
  --accent-weak:  oklch(74% 0.16 62 / 0.14);
  --accent-strong: oklch(64% 0.19 55);
  --fg-on-accent:  oklch(22% 0.06 245);
  --surface-elev:  oklch(100% 0 0 / 0.92);
  --shadow-soft:   0 10px 34px oklch(22% 0.06 245 / 0.14);
  --shadow-card:   0 2px 14px oklch(22% 0.06 245 / 0.09);
  --font-display: 'Fredoka', 'DM Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius-card: 12px;
  --radius-chip: 999px;
  --radius-input: 10px;
  --section-gap: clamp(48px, 6vw, 80px);
  --content-gap: clamp(16px, 2vw, 24px);
  --max-width: 1320px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--fg); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-strong); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea { font-family: inherit; }

/* ============================================================
   UTILITY
   ============================================================ */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }
.section { padding: var(--section-gap) 0; }
.section-title { font-family: var(--font-display); font-size: clamp(24px, 3vw, 36px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; text-align: center; margin-bottom: 8px; color: var(--fg); }
.section-subtitle { text-align: center; color: var(--muted); font-size: 16px; line-height: 1.5; max-width: 600px; margin: 0 auto clamp(32px, 4vw, 48px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.ph-img { background: linear-gradient(135deg, var(--border), var(--accent-weak)); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; overflow: hidden; position: relative; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; color: var(--fg); text-decoration: none; }
.logo:hover { color: var(--fg); }
.logo-icon { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
.logo-icon img { width: 100%; height: 100%; object-fit: contain; }
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--navy); letter-spacing: -0.01em; }
.nav-desktop { display: flex; align-items: center; gap: 28px; }
.nav-desktop a { color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: 0.01em; }
.nav-desktop a:hover, .nav-desktop a.active { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 12px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-body); font-size: 14px; font-weight: 500; letter-spacing: 0.02em; padding: 10px 20px; border-radius: 0; border: none; transition: background 0.2s, color 0.2s, box-shadow 0.2s; line-height: 1; }
.btn-primary { background: var(--accent); color: var(--fg-on-accent); }
.btn-primary:hover { background: var(--accent-strong); color: var(--fg-on-accent); }
.btn-ghost { background: transparent; border: 1px solid var(--border); border-radius: var(--radius-chip); color: var(--fg); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ============================================================
   MOBILE MENU
   ============================================================ */
.menu-toggle { display: none; background: none; border: none; width: 40px; height: 40px; position: relative; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--fg); margin: 5px auto; transition: transform 0.3s, opacity 0.3s; }
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile { display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: var(--surface); z-index: 99; padding: 24px; flex-direction: column; gap: 16px; overflow-y: auto; border-top: 1px solid var(--border); }
.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 18px; font-weight: 500; color: var(--fg); padding: 12px 0; border-bottom: 1px solid var(--border); }
.nav-mobile .btn { margin-top: 8px; justify-content: center; }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs { display: flex; align-items: center; gap: 8px; padding: 16px 0; font-size: 13px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { color: var(--border); }

/* ============================================================
   PAGE HERO (category/archive/search)
   ============================================================ */
.page-hero { text-align: center; padding: 48px 0 32px; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(32px, 4vw, 48px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 8px; }
.page-hero p { color: var(--muted); font-size: 17px; max-width: 560px; margin: 0 auto; }

/* ============================================================
   LISTING GRID & CARDS
   ============================================================ */
.listings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.listing-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; display: block; text-decoration: none; color: var(--fg); }
.listing-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-2px); border-color: var(--accent); }
.listing-card-img { width: 100%; height: 200px; position: relative; }
.listing-card-img .ph-img { width: 100%; height: 100%; }
.listing-card-body { padding: 16px; }
.listing-category { display: inline-block; padding: 3px 10px; background: var(--accent-weak); color: var(--accent-strong); border-radius: var(--radius-chip); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.listing-card-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; line-height: 1.3; }
.listing-stars { color: var(--warn); font-size: 14px; letter-spacing: 2px; }
.listing-score { font-size: 13px; font-weight: 600; color: var(--fg); }
.listing-desc { font-size: 14px; color: var(--muted); line-height: 1.5; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.listing-location { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.listing-location svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ============================================================
   ARCHIVE TOOLBAR
   ============================================================ */
.archive-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.result-count { font-size: 14px; color: var(--muted); }
.sort-select { padding: 8px 32px 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-input); background: var(--surface); font-size: 14px; color: var(--fg); appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%228%22 viewBox=%220 0 12 8%22%3E%3Cpath fill=%22%236b6b6b%22 d=%22M6 8L0 0h12z%22/%3E%3C/svg%3E'); background-repeat: no-repeat; background-position: right 10px center; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 40px; margin-bottom: 48px; }
.pagination span, .pagination a { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; border-radius: var(--radius-chip); border: 1px solid var(--border); font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.pagination span.active, .pagination a.active { border-color: var(--accent); background: var(--accent-weak); color: var(--accent-strong); }
.pagination a:hover { border-color: var(--accent); background: var(--accent-weak); color: var(--accent-strong); }

/* ============================================================
   BLOG CARDS
   ============================================================ */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; text-decoration: none; color: var(--fg); }
.blog-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.blog-card-img { width: 100%; height: 180px; }
.blog-card-body { padding: 16px; }
.blog-category { display: inline-block; padding: 3px 10px; background: var(--accent-weak); color: var(--accent-strong); border-radius: var(--radius-chip); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.blog-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 8px; }
.blog-excerpt { font-size: 14px; color: var(--muted); line-height: 1.5; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-meta { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 12px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy-deep); color: oklch(78% 0.015 240); padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.footer-title { font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: oklch(92% 0.01 240); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: oklch(72% 0.02 240); font-size: 14px; }
.footer-links a:hover { color: var(--accent); }
.footer-desc { font-size: 14px; line-height: 1.6; color: oklch(72% 0.02 240); margin-bottom: 16px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid oklch(40% 0.01 240); display: grid; place-items: center; color: oklch(65% 0.01 240); font-size: 14px; transition: border-color 0.2s, color 0.2s; text-decoration: none; }
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.footer-bottom { margin-top: 32px; border-top: 1px solid oklch(35% 0.02 240); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: oklch(62% 0.02 240); }

/* ============================================================
   PAGE CONTENT (privacidad, terminos, etc.)
   ============================================================ */
.page-content { max-width: var(--max-width, 720px); margin: 0 auto; padding: 48px 0 64px; }
.page-content h1 { font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 40px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 8px; }
.page-content .updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; display: block; }
.page-content h2 { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin: 32px 0 12px; }
.page-content p { margin-bottom: 16px; line-height: 1.7; color: var(--fg); }
.page-content ul { margin: 12px 0; padding-left: 20px; list-style: disc; }
.page-content ul li { margin-bottom: 8px; line-height: 1.6; color: var(--fg); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE — Shared
   ============================================================ */
@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: block; }
  .listings-grid, .blog-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-hero { padding: 32px 0 24px; }
  .page-hero p { font-size: 15px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .page-hero { padding: 24px 0 20px; }
  .page-hero h1 { font-size: clamp(24px, 7vw, 32px); }
  .page-hero p { font-size: 14px; }
  .listing-card-img { height: 160px; }
  .blog-card-img { height: 150px; }
  .listing-card-title { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer { padding: 32px 0 0; }
  .section-title { font-size: clamp(20px, 6vw, 24px); }
  .breadcrumbs { font-size: 12px; gap: 6px; }
  .pagination { gap: 4px; margin-top: 24px; margin-bottom: 32px; }
  .pagination span, .pagination a { min-width: 32px; height: 32px; font-size: 13px; }
  .archive-toolbar { flex-direction: column; align-items: stretch; }
  .sort-select { width: 100%; }
}
