/* ==========================================================================
   ESTILOS PRINCIPALES - MÚSICA Y PATRIMONIO DEL VALLE DE SONDONDO
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --color-gold: #f59e0b;
  --color-gold-light: #fde68a;
  --color-red-terracotta: #dc2626;
  --color-andean-green: #10b981;
  --color-sky-blue: #38bdf8;
  --color-bg-dark: #0c0a09;
  --color-card-bg: rgba(28, 25, 23, 0.75);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--color-bg-dark);
  color: #f5f5f4;
  overflow-x: hidden;
  selection-background-color: #f59e0b;
  selection-color: #0c0a09;
}

h1, h2, h3, .font-cinzel {
  font-family: 'Cinzel', serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1c1917;
}
::-webkit-scrollbar-thumb {
  background: #78350f;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #d97706;
}

/* Andean Tocapu Border Pattern (CSS Generated) */
.tocapu-border-top {
  background: linear-gradient(90deg, 
    #b45309 0%, #b45309 5%, 
    #dc2626 5%, #dc2626 10%, 
    #047857 10%, #047857 15%, 
    #f59e0b 15%, #f59e0b 20%,
    #7c2d12 20%, #7c2d12 25%,
    #0284c7 25%, #0284c7 30%
  );
  background-size: 60px 100%;
  height: 5px;
}

.tocapu-ribbon {
  background: repeating-linear-gradient(
    45deg,
    rgba(217, 119, 6, 0.25),
    rgba(217, 119, 6, 0.25) 10px,
    rgba(220, 38, 38, 0.25) 10px,
    rgba(220, 38, 38, 0.25) 20px,
    rgba(5, 150, 105, 0.25) 20px,
    rgba(5, 150, 105, 0.25) 30px
  );
}

/* Hero Background and Gradient */
.hero-gradient {
  background: radial-gradient(circle at 50% 20%, rgba(217, 119, 6, 0.18) 0%, rgba(12, 10, 9, 0.95) 75%),
              linear-gradient(180deg, rgba(12, 10, 9, 0.3) 0%, #0c0a09 100%);
}

/* Glassmorphism Cards */
.glass-panel {
  background: rgba(28, 25, 23, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-glow {
  background: rgba(28, 25, 23, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 158, 11, 0.25);
  box-shadow: 0 10px 30px -10px rgba(245, 158, 11, 0.12);
}

/* Player Track Row active state */
.track-row.active-track {
  background: linear-gradient(90deg, rgba(217, 119, 6, 0.22) 0%, rgba(28, 25, 23, 0.8) 100%);
  border-color: rgba(245, 158, 11, 0.55);
}

.track-row.active-track .play-single-track-btn {
  background-color: #f59e0b;
  color: #0c0a09;
}

/* Genre Pills */
.genre-pill {
  transition: all 0.2s ease;
}
.genre-pill.active-pill {
  background-color: #f59e0b;
  color: #0c0a09;
  font-weight: 600;
  border-color: #f59e0b;
}

/* Village Cards Selection */
.village-card {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.village-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.45);
}
.village-card.selected-village {
  border-color: #f59e0b;
  box-shadow: 0 0 20px -3px rgba(245, 158, 11, 0.3);
}

/* ==========================================================================
   TIJERAS DE ACERO (DANZA DE LAS TIJERAS) ANIMATION
   ========================================================================== */

.scissor-assembly {
  position: relative;
  width: 220px;
  height: 200px;
  margin: 0 auto;
}

.scissor-blade {
  position: absolute;
  width: 32px;
  height: 180px;
  top: 10px;
  transition: transform 0.08s ease-in-out;
  transform-origin: bottom center;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}

#blade-macho {
  left: 70px;
  transform: rotate(-15deg);
}

#blade-hembra {
  right: 70px;
  transform: rotate(15deg);
}

/* Blade clash animations */
.clash-macho {
  transform: rotate(4deg) !important;
}

.clash-hembra {
  transform: rotate(-4deg) !important;
}

/* Radio Pulse Indicator */
.radio-pulse {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.active-radio {
  background-color: #dc2626 !important;
  color: white !important;
  box-shadow: 0 0 16px rgba(220, 38, 38, 0.6) !important;
}

/* Chinlili Guitar Strings */
.chinlili-neck {
  background: linear-gradient(180deg, #451a03 0%, #291205 100%);
  border: 2px solid #78350f;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

.chinlili-string {
  width: 2px;
  background: linear-gradient(180deg, #e2e8f0 0%, #94a3b8 100%);
  box-shadow: 0 0 4px rgba(255,255,255,0.4);
  transition: transform 0.05s ease;
}

.chinlili-string.vibrating {
  animation: string-vibrate 0.1s linear infinite;
  background: #fde047;
  box-shadow: 0 0 8px #f59e0b;
}

@keyframes string-vibrate {
  0% { transform: translateX(-1.5px); }
  50% { transform: translateX(1.5px); }
  100% { transform: translateX(-1.5px); }
}

/* Mute button styles */
.mute-btn.muted {
  opacity: 0.45;
  border-color: #ef4444 !important;
  background-color: rgba(239, 68, 68, 0.15) !important;
}

/* Custom Andean Gradient Text */
.text-andean-gold {
  background: linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-andean-sunset {
  background: linear-gradient(135deg, #fbbf24 0%, #f97316 50%, #dc2626 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Modo app móvil --- */
html { -webkit-tap-highlight-color: transparent; }
@media (max-width: 1023px) {
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); overscroll-behavior-y: none; }
  button, .track-row { min-height: 44px; }
  input, select, textarea { font-size: 16px !important; } /* evita zoom en iPhone */
}

/* --- Lista de música corta con scroll --- */
#tracks-list { max-height: 340px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; scrollbar-width: thin; }
@media (max-width: 1023px) { #tracks-list { max-height: 46vh; } }

/* --- Pestañas inferiores tipo app --- */
.tab-item { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; height:60px; font-size:11px; font-weight:600; color:#a8a29e; text-decoration:none; }
.tab-item span { font-size:20px; line-height:1; filter:grayscale(1); opacity:.8; }
.tab-item.active { color:#fbbf24; }
.tab-item.active span { filter:none; opacity:1; }
@media (max-width: 1023px) {
  section { padding-top: 2rem !important; padding-bottom: 2rem !important; scroll-margin-top: 64px; }
  footer { padding-bottom: 1rem; }
  html { scroll-behavior: smooth; }
}
@media (display-mode: standalone) { header { padding-top: env(safe-area-inset-top, 0px); } }
