@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Crimson+Pro:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Space+Mono:wght@400;700&display=swap');

/* ============================================
   SISTEMA DE DISEÑO — TURISMO ANCESTRAL NARIÑO
   Paleta: Tierra, Selva, Volcán, Cielo Andino
   ============================================ */

:root {
  /* Colores primarios */
  --tierra:       #8B4513;
  --tierra-deep:  #5C2E0A;
  --tierra-light: #C4733A;
  --selva:        #2D5016;
  --selva-mid:    #3D6B20;
  --selva-light:  #5A8C35;
  --musgo:        #6B7C3A;
  --hoja:         #A8B860;

  /* Neutros cálidos */
  --noche:        #0D0F08;
  --carbon:       #1A1C12;
  --corteza:      #2A2B1F;
  --lodo:         #3D3C2F;
  --arena:        #C8B89A;
  --pergamino:    #F2E8D5;
  --niebla:       #F7F3EC;

  /* Acentos */
  --oro-inca:     #D4A017;
  --oro-light:    #F0C840;
  --ceniza:       #8A9080;
  --volcan:       #8B3A2A;
  --agua:         #3A7A8B;

  /* Tipografía */
  --font-display: 'Cinzel', serif;
  --font-body:    'Crimson Pro', serif;
  --font-mono:    'Space Mono', monospace;

  /* Espaciado */
  --nav-h: 72px;
}

/* Reset y base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--noche);
  color: var(--pergamino);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4' fill='%23D4A017' opacity='0.8'/%3E%3Ccircle cx='12' cy='12' r='8' fill='none' stroke='%23D4A017' stroke-width='1' opacity='0.4'/%3E%3C/svg%3E") 12 12, auto;
}

/* Textura de grano sobre todo */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
}

/* ============================================
   NAVEGACIÓN GLOBAL
   ============================================ */

.nav-ancestral {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: linear-gradient(180deg, rgba(13,15,8,0.95) 0%, rgba(13,15,8,0) 100%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(212,160,23,0.15);
  transition: all 0.4s ease;
}

.nav-ancestral.scrolled {
  background: rgba(13,15,8,0.97);
  border-bottom-color: rgba(212,160,23,0.3);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-symbol {
  width: 40px; height: 40px;
  position: relative;
}

.nav-logo-symbol svg {
  width: 100%; height: 100%;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--oro-inca);
  line-height: 1.2;
}

.nav-logo-text span {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.4em;
  color: var(--ceniza);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--arena);
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--oro-inca);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a:hover { color: var(--oro-inca); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-links a.active { color: var(--oro-inca); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-nav-login {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--arena);
  transition: color 0.3s;
}
.btn-nav-login:hover { color: var(--oro-inca); }

.btn-nav-join {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--noche);
  background: var(--oro-inca);
  padding: 8px 20px;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.btn-nav-join:hover {
  background: var(--oro-light);
  transform: translateY(-1px);
}

/* Hamburger mobile */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.nav-hamburger span {
  width: 24px; height: 2px;
  background: var(--oro-inca);
  transition: all 0.3s ease;
  display: block;
}

/* ============================================
   BOTONES GLOBALES
   ============================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--noche);
  background: var(--oro-inca);
  border: none;
  padding: 16px 36px;
  cursor: pointer;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--oro-light);
  transform: translateX(-100%);
  transition: transform 0.35s ease;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,160,23,0.35); }
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary span { position: relative; z-index: 1; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--oro-inca);
  background: transparent;
  border: 1px solid rgba(212,160,23,0.5);
  padding: 15px 35px;
  cursor: pointer;
  transition: all 0.35s ease;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.btn-secondary:hover {
  border-color: var(--oro-inca);
  background: rgba(212,160,23,0.1);
  transform: translateY(-2px);
}

/* ============================================
   FOOTER GLOBAL
   ============================================ */

.footer-ancestral {
  background: var(--carbon);
  border-top: 1px solid rgba(212,160,23,0.2);
  padding: 60px 40px 30px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(212,160,23,0.15);
}

.footer-brand p {
  font-size: 15px;
  color: var(--ceniza);
  margin-top: 16px;
  max-width: 280px;
  line-height: 1.8;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--oro-inca);
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 15px;
  color: var(--ceniza);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-col ul li a:hover { color: var(--pergamino); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--lodo);
  letter-spacing: 0.1em;
}

/* ============================================
   ANIMACIONES GLOBALES
   ============================================ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes pulseGold {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%       { opacity: 0.8; transform: scale(1.05); }
}

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

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   UTILIDADES
   ============================================ */

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--oro-inca);
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--oro-inca);
  opacity: 0.6;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--pergamino);
  line-height: 1.1;
}

.divider-ancestral {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0;
}

.divider-ancestral::before,
.divider-ancestral::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,160,23,0.4), transparent);
}

.divider-ancestral-symbol {
  color: var(--oro-inca);
  font-size: 18px;
  opacity: 0.7;
}

.card-lugar {
  background: var(--corteza);
  border: 1px solid rgba(212,160,23,0.15);
  border-radius: 3px;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
}

.card-lugar:hover {
  border-color: rgba(212,160,23,0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}

.card-lugar-img {
  width: 100%; height: 220px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.card-lugar:hover .card-lugar-img { transform: scale(1.05); }

.card-lugar-body { padding: 24px; }

.card-lugar-cultura {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--oro-inca);
  margin-bottom: 8px;
}

.card-lugar-title {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--pergamino);
  margin-bottom: 10px;
}

.card-lugar-desc {
  font-size: 15px;
  color: var(--ceniza);
  line-height: 1.7;
}


/*MAPA NARIÑO - PASTO*/
.contacto-mapa {
    position: relative;
}

.contacto-mapa-visual {
    max-width: 500px;
    margin: auto;
}

.contacto-mapa svg {
    width: 100%;
    height: auto;
}

.pulse {
    animation: pulseMarker 2.5s infinite;
}

@keyframes pulseMarker {
    0% {
        transform-origin: center;
        opacity: 0.8;
        transform: scale(0.8);
    }

    50% {
        opacity: 0.2;
        transform: scale(1.4);
    }

    100% {
        opacity: 0;
        transform: scale(2);
    }
}

/*--------------------------------------------------------*/


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-ancestral { padding: 0 20px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-ancestral { padding: 40px 20px 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .btn-primary, .btn-secondary { padding: 14px 28px; font-size: 11px; }
}

/* Mobile Nav Overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13,15,8,0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--pergamino);
  transition: color 0.3s;
}
.mobile-nav a:hover { color: var(--oro-inca); }
.mobile-nav-close {
  position: absolute;
  top: 24px; right: 24px;
  font-size: 28px;
  color: var(--ceniza);
  cursor: pointer;
  background: none; border: none;
}
