/* La Noche del Anillo - Main Stylesheet */
/* Medieval Fantasy Theme */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=MedievalSharp&display=swap');

/* Custom Font - Unicial Antiqua (WOFF format for optimal web performance) */
@font-face {
  font-family: 'uncial_antiquaregular';
  src: url('../docs/Unicial_Antiqua_Font/uncialantiqua-regular-webfont.woff2') format('woff2'),
       url('../docs/Unicial_Antiqua_Font/uncialantiqua-regular-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Custom Font - Breathe Fire (WOFF format for optimal web performance) */
@font-face {
  font-family: 'breathe_fireregular';
  src: url('../docs/breathe fire font/breathe_fire-webfont.woff2') format('woff2'),
       url('../docs/breathe fire font/breathe_fire-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Modern Medieval Color Palette */
:root {
  /* Primary colors - refined for better contrast and accessibility */
  --primary-dark: #1a1410;
  --secondary-dark: #2c2116;
  --fantasy-brown: #5c3317;
  --fantasy-brown-light: #8b4513;
  --fantasy-brown-dark: #3e1f09;
  
  /* Accent colors - improved for modern appeal */
  --gold-accent: #d4af37;
  --gold-light: #f4e197;
  --gold-dark: #b8941f;
  --copper-accent: #b87333;
  --bronze-accent: #cd7f32;
  
  /* Neutral colors - better for readability */
  --text-primary: #2c1810;
  --text-secondary: #5c4533;
  --text-muted: #8b7355;
  --text-light: #f8f5f0;
  
  /* Background colors - modern and subtle */
  --bg-primary: #faf8f5;
  --bg-secondary: #f0ebe3;
  --bg-accent: rgba(212, 175, 55, 0.08);
  
  /* Semantic colors - accessible and clear */
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
  
  /* Shadow colors for depth */
  --shadow-light: rgba(0, 0, 0, 0.05);
  --shadow-medium: rgba(0, 0, 0, 0.1);
  --shadow-dark: rgba(0, 0, 0, 0.25);
}

/* Modern Spacing System */
:root {
  /* Spacing scale for modern layouts */
  --space-xs: 0.25rem;    /* 4px */
  --space-sm: 0.5rem;     /* 8px */
  --space-md: 1rem;       /* 16px */
  --space-lg: 1.5rem;     /* 24px */
  --space-xl: 2rem;       /* 32px */
  --space-2xl: 3rem;      /* 48px */
  --space-3xl: 4rem;      /* 64px */
  --space-4xl: 6rem;      /* 96px */
  
  /* Container sizes */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;
  
  /* Border radius scale */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  
  /* Typography scale */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
}

/* Global Styles with Modern Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*::before,
*::after {
  box-sizing: border-box;
}

/* Medieval cursor for ALL elements */
* {
  cursor: url('../img/icons/medieval-hand-cursor.png') 8 8, auto !important;
}

/* Clickable elements use medieval cursor with pointer fallback */
a, button, .btn, .btn-entradas, nav a, [onclick],
input[type="submit"], input[type="button"], 
.activity-card:hover, .schedule-item:hover {
  cursor: url('../img/icons/medieval-hand-cursor.png') 8 8, pointer !important;
}

/* Text selection cursor */
input[type="text"], input[type="email"], textarea, 
input[type="search"], input[type="password"] {
  cursor: url('../img/icons/medieval-hand-cursor.png') 8 8, text !important;
}

/* Modern body with improved background */
body {
  font-family: 'Cinzel', 'Times New Roman', 'Georgia', serif;
  background: 
    /* Subtle texture overlay */
    radial-gradient(circle at 25% 25%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 75% 80%, rgba(139, 69, 19, 0.08) 0%, transparent 50%),
    /* Main gradient */
    linear-gradient(135deg, 
      #f8f5f0 0%, 
      #f0ebe3 25%, 
      #e8dcc0 50%, 
      #e0d4b8 75%, 
      #d4c4a0 100%
    );
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.7;
  overflow-x: hidden;
  
  /* Modern layout grid */
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  grid-template-areas: 
    "header"
    "nav"
    "main"
    "footer";
  min-height: 100vh;
}

/* Modern Container System */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.container-sm { max-width: var(--container-sm); }
.container-md { max-width: var(--container-md); }
.container-lg { max-width: var(--container-lg); }
.container-xl { max-width: var(--container-xl); }
.container-2xl { max-width: var(--container-2xl); }

/* Modern Typography System */
h1, h2, h3, h4, h5, h6 {
  font-family: 'MedievalSharp', cursive;
  color: var(--fantasy-brown);
  font-weight: normal;
  line-height: 1.2;
  margin-block: 0 var(--space-lg);
  text-wrap: balance; /* Modern text wrapping */
}

h1 {
  font-size: clamp(var(--font-size-3xl), 5vw, var(--font-size-5xl));
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  margin-block-end: var(--space-xl);
}

h2 {
  font-size: clamp(var(--font-size-2xl), 4vw, var(--font-size-4xl));
  margin-block: var(--space-lg) var(--space-md);
}

h3 {
  font-size: clamp(var(--font-size-xl), 3vw, var(--font-size-2xl));
  margin-block: var(--space-xl) var(--space-md);
}

h4 {
  font-size: var(--font-size-lg);
  font-family: 'Cinzel', serif;
  font-weight: 600;
}

p {
  font-family: 'Cinzel', 'Times New Roman', 'Georgia', serif;
  font-size: var(--font-size-base);
  line-height: 1.6;
  margin-block-end: var(--space-md);
  color: var(--text-primary);
  max-width: 70ch; /* Optimal reading width */
}

/* Modern Typography Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

/* Typography scale utilities */
.text-xs { font-size: var(--font-size-xs); }
.text-sm { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }

/* Fix centering for paragraphs that should be centered */
p.text-center {
  max-width: none;
  margin-inline: auto;
}

/* Font weight utilities */
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Line height utilities */
.leading-tight { line-height: 1.25; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.75; }

/* Medieval-themed text styles */
.text-medieval {
  font-family: 'MedievalSharp', cursive;
  color: var(--fantasy-brown);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.text-highlight {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold-accent);
}

/* Link Styles */
a {
  color: #4a2c0b;
  text-decoration: underline;
  font-weight: bold;
  /* Increase clickable area for better usability */
  padding: 2px 1px;
  margin: -2px -1px;
  border-radius: 2px;
  transition: all 0.2s ease;
}

a:hover {
  color: #ffd700;
  background-color: rgba(255, 215, 0, 0.1);
}

h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

h3 a:hover {
  color: #ffd700;
  text-shadow: 0 0 10px #ffd700;
  transition: all 0.3s ease;
}

/* Modern List Styles */
ul {
  list-style: none;
  padding-inline-start: 0;
}

ul li {
  position: relative;
  padding-inline-start: var(--space-xl);
  margin-block-end: var(--space-sm);
  line-height: 1.6;
}

/* Only apply sword bullets to content lists, not navigation */
main ul li::before,
section ul li::before {
  content: "⚔️";
  position: absolute;
  left: 0;
  color: var(--gold-accent);
  font-size: 0.9em;
}

/* Alternative square bullets for simpler lists */
ul.simple-list {
  list-style-type: square;
  padding-inline-start: var(--space-lg);
}

main ul.simple-list li::before,
section ul.simple-list li::before {
  display: none;
}

/* Modern Header Styles with Background Image */
header {
  grid-area: header;
  background: 
    /* Subtle overlay for text readability */
    linear-gradient(135deg, 
      rgba(74, 44, 11, 0.8) 0%, 
      rgba(61, 36, 9, 0.85) 40%, 
      rgba(47, 28, 7, 0.8) 80%, 
      rgba(35, 20, 5, 0.9) 100%
    ),
    /* Header background image - desktop version */
    url('../img/backgrounds/header2.jpeg');
  
  /* Modern background properties */
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  background-attachment: scroll;
  
  color: var(--gold-accent);
  padding-block: var(--space-4xl);
  padding-inline: var(--space-lg);
  position: relative;
  overflow: hidden;
  
  /* Modern border treatment */
  border-block-end: 3px solid var(--gold-accent);
  box-shadow: 
    0 4px 20px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,215,0,0.1);
  
  /* Center content with modern techniques */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 60vh;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.1), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Mobile Header Background - Responsive Images */
@media (max-width: 768px) {
  header {
    background: 
      /* Same overlay for text readability */
      linear-gradient(135deg, 
        rgba(74, 44, 11, 0.8) 0%, 
        rgba(61, 36, 9, 0.85) 40%, 
        rgba(47, 28, 7, 0.8) 80%, 
        rgba(35, 20, 5, 0.9) 100%
      ),
      /* Mobile-optimized header image */
      url('../img/backgrounds/mobileheader.jpeg');
    
    /* Optimized positioning for mobile */
    background-position: center center;
    background-size: cover;
  }
  
  /* Force hide any JavaScript-generated mobile menu buttons */
  .mobile-menu-btn {
    display: none !important;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  header {
    /* Maintain mobile header image but adjust positioning for very small screens */
    background-position: center top;
    min-height: 40vh; /* Slightly reduce height on very small screens */
  }
}

header h1 {
  font-family: 'breathe_fireregular', 'MedievalSharp', 'Papyrus', 'Fantasy', cursive;
  font-size: 4em;
  margin: 0;
  text-shadow: 2px 2px 4px #000, 0 0 10px #ffd700;
  color: #ffd700;
  position: relative;
  z-index: 2;
}

header p {
  font-size: 1.2em;
  color: #4a2c0b;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

/* Modern Header Logo */
.header-logo {
  max-height: clamp(80px, 15vw, 120px);
  width: auto;
  margin-block-end: var(--space-xl);
  filter: drop-shadow(0 0 15px rgba(255,215,0,0.4));
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 25px rgba(255,215,0,0.6));
}

/* Simplified, more elegant floating animation */
@keyframes logoFloat {
  0%, 100% { 
    transform: translateY(0px); 
  }
  50% { 
    transform: translateY(-8px); 
  }
}

/* Modern Navigation Styles */
nav {
  grid-area: nav;
  background: 
    /* Subtle texture */
    radial-gradient(ellipse at center, rgba(139, 69, 19, 0.1) 0%, transparent 70%),
    /* Clean gradient */
    linear-gradient(135deg, 
      rgb(59, 31, 7) 0%, 
      rgb(45, 23, 5) 50%, 
      rgb(31, 15, 3) 100%
    );
  padding-block: var(--space-lg);
  padding-inline: var(--space-lg);
  position: sticky;
  top: 0;
  z-index: 100;
  border-block-end: 2px solid var(--gold-accent);
  box-shadow: 0 2px 15px rgba(0,0,0,0.3);
  backdrop-filter: blur(8px); /* Modern glass effect */
  
  /* Modern flexbox layout */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Navigation list styles */
nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-sm);
}

nav li {
  margin: 0;
}

nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #d4af37, #ffd700, #d4af37);
  animation: goldGlow 2s ease-in-out infinite alternate;
}

@keyframes goldGlow {
  0% { box-shadow: 0 0 5px #ffd700; }
  100% { box-shadow: 0 0 20px #ffd700, 0 0 30px #d4af37; }
}

/* Modern Navigation Links */
nav a {
  color: var(--gold-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-size-lg);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  margin-inline: var(--space-sm);
  
  /* Modern hover target size (minimum 44px) */
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
}

nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #ffd700 0%, #d4af37 100%);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  pointer-events: none; /* Prevent pseudo-element from interfering */
}

/* Modern navigation hover effects */
nav a:hover,
nav a.nav-hover {
  color: rgb(47, 28, 7);
  transform: translateY(-2px);
  box-shadow: 
    0 6px 20px rgba(255,215,0,0.3),
    0 2px 8px rgba(255,215,0,0.2);
}

nav a:hover::before,
nav a.nav-hover::before {
  opacity: 1;
}

nav a:active {
  transform: translateY(0);
}

/* Modern Main Content Area */
main {
  grid-area: main;
  padding-block: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

/* Modern Section Styles */
section {
  background: 
    /* Very subtle texture */
    radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 69, 19, 0.05) 0%, transparent 50%),
    /* Clean background with transparency */
    linear-gradient(135deg, 
      rgba(255, 255, 255, 0.85) 0%, 
      rgba(248, 245, 240, 0.9) 50%,
      rgba(240, 235, 227, 0.85) 100%
    );
  
  /* Modern container approach */
  max-width: var(--container-lg);
  margin-inline: auto;
  padding: var(--space-xl);
  
  /* Modern borders and shadows */
  border: 1px solid rgba(139, 69, 19, 0.2);
  border-radius: var(--radius-xl);
  box-shadow: 
    0 4px 20px rgba(0,0,0,0.1),
    0 1px 4px rgba(0,0,0,0.05);
  
  /* Will change for better performance */
  will-change: transform, opacity;
  
  /* Better content flow */
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Modern Card Layouts */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-block: var(--space-lg);
}

.activity-card {
  background: 
    radial-gradient(circle at 10% 10%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
    linear-gradient(135deg, 
      rgba(255, 255, 255, 0.9) 0%, 
      rgba(248, 240, 220, 0.95) 100%
    );
  padding: var(--space-lg);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(139, 69, 19, 0.15);
  box-shadow: 
    0 2px 10px rgba(0,0,0,0.08),
    0 1px 3px rgba(0,0,0,0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  will-change: transform, box-shadow;
}

.activity-card:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 4px 20px rgba(0,0,0,0.12),
    0 2px 8px rgba(0,0,0,0.08);
  border-color: rgba(212, 175, 55, 0.3);
}

.activity-card h3 {
  margin-block-end: var(--space-sm);
  font-size: var(--font-size-xl);
  font-weight: bold;
}

.activity-card p {
  margin-block-end: var(--space-xs);
}

.activity-card p:last-child {
  margin-block-end: 0;
}

/* Modern Schedule Layout */
.schedule-modern {
  background: 
    linear-gradient(135deg, 
      rgba(74, 44, 11, 0.05) 0%, 
      rgba(139, 69, 19, 0.08) 100%
    );
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border-left: 4px solid var(--gold-accent);
  margin-block: var(--space-md);
}

.schedule-item {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(139, 69, 19, 0.1);
}

.schedule-item:last-child {
  border-bottom: none;
}

.schedule-time {
  font-weight: 600;
  color: var(--primary-dark) !important;
  min-width: 120px;
  font-size: var(--font-size-sm);
  background: rgba(212, 175, 55, 0.1);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  text-align: center;
}

/* More specific selector for schedule times */
.schedule-modern .schedule-item .schedule-time {
  color: var(--fantasy-brown-dark) !important;
  font-weight: 700;
}

.schedule-event {
  flex: 1;
  font-size: var(--font-size-base);
  color: var(--text-primary);
}

/* Faction-specific styling for gymkana page */
.faction-portador {
  border-left: 4px solid #22c55e;
  background: 
    radial-gradient(circle at 10% 10%, rgba(34, 197, 94, 0.08) 0%, transparent 50%),
    linear-gradient(135deg, 
      rgba(255, 255, 255, 0.9) 0%, 
      rgba(240, 253, 244, 0.95) 100%
    );
}

.faction-portador:hover {
  border-left-color: #16a34a;
  box-shadow: 
    0 4px 20px rgba(34, 197, 94, 0.12),
    0 2px 8px rgba(34, 197, 94, 0.08);
}

.faction-orco {
  border-left: 4px solid #ef4444;
  background: 
    radial-gradient(circle at 10% 10%, rgba(239, 68, 68, 0.08) 0%, transparent 50%),
    linear-gradient(135deg, 
      rgba(255, 255, 255, 0.9) 0%, 
      rgba(254, 242, 242, 0.95) 100%
    );
}

.faction-orco:hover {
  border-left-color: #dc2626;
  box-shadow: 
    0 4px 20px rgba(239, 68, 68, 0.12),
    0 2px 8px rgba(239, 68, 68, 0.08);
}

section.animate-in {
  transform: translateY(0);
  opacity: 1;
}

section::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #d4af37, #f4e8d4, #d4af37);
  border-radius: 15px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none; /* Prevent hover conflicts */
}

section:hover::before {
  opacity: 0.2; /* Reduced opacity for subtlety */
}

/* Ensure consistent main content styling */

/* Hero Section */
.hero {
  background-image: url('../img/backgrounds/header2.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  margin-bottom: 3rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-light);
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--gold-accent);
  color: var(--primary-dark);
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: 2px solid var(--gold-accent);
  cursor: pointer;
}

.btn:hover {
  background: transparent;
  color: var(--gold-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(212, 175, 55, 0.3);
}

/* Modern Medieval Button for Entradas */
.btn-entradas {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, 
    var(--fantasy-brown) 0%, 
    rgb(160, 82, 45) 50%, 
    var(--fantasy-brown) 100%
  );
  color: var(--gold-accent);
  padding: var(--space-lg) var(--space-2xl);
  text-decoration: none;
  font-size: var(--font-size-lg);
  font-weight: 600;
  border: 2px solid var(--gold-accent);
  border-radius: var(--radius-lg);
  margin-block: var(--space-xl);
  min-width: 200px;
  min-height: 48px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 4px 15px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-entradas::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.3), transparent);
  transition: left 0.6s ease;
}

.btn-entradas:hover {
  background: linear-gradient(135deg, 
    var(--gold-accent) 0%, 
    rgb(212, 175, 55) 100%
  );
  color: rgb(47, 28, 7);
  transform: translateY(-2px);
  box-shadow: 
    0 6px 20px rgba(255,215,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.2);
  border-color: var(--fantasy-brown);
}

.btn-entradas:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--silver-accent);
  border-color: var(--silver-accent);
}

.btn-secondary:hover {
  background: var(--silver-accent);
  color: var(--primary-dark);
}

/* Sections */
.section {
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.section:nth-child(even) {
  background: rgba(26, 26, 26, 0.3);
}

/* Cards/Content Blocks */
.card {
  background: rgba(26, 26, 26, 0.8);
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 10px;
  border: 1px solid var(--gold-accent);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Video Embeds */
.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  margin: 2rem 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

/* Hero Section with Video Layout */
.hero-section-with-video {
  padding: var(--space-xl) !important;
}

.video-text-container {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xl);
  max-width: var(--container-lg);
  margin: 0 auto;
}

.video-container-vertical {
  flex: 0 0 280px; /* Fixed width for vertical video */
  max-width: 280px;
}

.video-container-vertical iframe {
  width: 100%;
  height: 500px; /* Vertical video aspect ratio */
  border-radius: var(--radius-lg);
  box-shadow: 
    0 4px 20px rgba(0,0,0,0.15),
    0 2px 8px rgba(0,0,0,0.1);
  border: 2px solid rgba(212, 175, 55, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-container-vertical iframe:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 6px 25px rgba(0,0,0,0.2),
    0 4px 12px rgba(0,0,0,0.15);
  border-color: rgba(212, 175, 55, 0.4);
}

.text-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.text-content p {
  max-width: none; /* Allow full width within the flex container */
  margin-block-end: var(--space-md);
  text-align: left; /* Left-align text for better readability */
  font-size: var(--font-size-lg);
  line-height: 1.7;
}

.text-content p:last-child {
  margin-block-end: 0;
}

/* Mobile responsiveness for video-text layout */
@media (max-width: 768px) {
  .video-text-container {
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
  }
  
  .video-container-vertical {
    flex: none;
    max-width: 100%;
    width: 100%;
    max-width: 300px;
  }
  
  .video-container-vertical iframe {
    height: 400px; /* Smaller height for mobile */
  }
  
  .text-content {
    width: 100%;
  }
  
  .text-content p {
    text-align: center; /* Center text on mobile */
  }
}

/* Schedule Lists */
.schedule-list {
  list-style: none;
  background: rgba(26, 26, 26, 0.8);
  padding: 2rem;
  border-radius: 10px;
  border-left: 4px solid var(--gold-accent);
}

.schedule-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.schedule-list li:last-child {
  border-bottom: none;
}

.schedule-time {
  font-weight: 600;
  color: var(--gold-accent);
  min-width: 80px;
}

/* Modern Footer */
footer {
  grid-area: footer;
  background: 
    radial-gradient(ellipse at center, rgba(139, 69, 19, 0.1) 0%, transparent 70%),
    linear-gradient(135deg, 
      rgb(74, 44, 11) 0%, 
      rgb(61, 36, 9) 50%, 
      rgb(47, 28, 7) 100%
    );
  color: var(--gold-accent);
  text-align: center;
  padding: var(--space-2xl);
  border-block-start: 2px solid var(--gold-accent);
  margin-block-start: var(--space-4xl);
  
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.social-links {
  margin: 1rem 0;
}

.social-links a {
  color: var(--gold-accent);
  font-size: 1.2rem;
  margin: 0 1rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--text-light);
}

/* Responsive Images */
.responsive-img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Modern Animations - Simplified and Performance Optimized */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes gentleGlow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  }
}

/* Modern Animation Classes for Scroll-triggered Animations */
.fade-in {
  animation: fadeIn 0.6s ease both;
}

.fade-in-up {
  animation: fadeInUp 0.6s ease both;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease both;
}

.animate-in {
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* All scroll animations removed - sections display normally */

/* Modern Responsive Design */
@media (max-width: 768px) {
  :root {
    /* Adjust spacing for mobile */
    --space-2xl: 2rem;
    --space-3xl: 2.5rem;
    --space-4xl: 3rem;
  }
  
  body {
    background-attachment: scroll; /* Better mobile performance */
  }
  
  .container {
    padding-inline: var(--space-md);
  }
  
  /* Override container padding for navigation to ensure true centering */
  nav .container {
    padding-inline: 0 !important;
  }
  
  header {
    min-height: 50vh;
    padding-block: var(--space-2xl);
    background-attachment: scroll; /* Better mobile performance */
  }
  
  /* Modern navigation mobile layout - Compact expanded version */
  nav {
    padding: 0 !important;
    margin: 0 !important;
    position: relative !important;
    width: 100% !important;
    background: 
      radial-gradient(ellipse at center, rgba(139, 69, 19, 0.15) 0%, transparent 70%),
      linear-gradient(135deg, 
        rgb(59, 31, 7) 0%, 
        rgb(45, 23, 5) 50%, 
        rgb(31, 15, 3) 100%
      ) !important;
    
    /* Ensure nav container itself centers content */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  
  /* Force navigation to always be visible and expanded on mobile */
  nav ul {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    gap: 8px !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    position: static !important;
    background: none !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  nav li {
    flex: 0 0 auto !important;
    min-width: auto !important;
    max-width: none !important;
    display: inline-block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  nav a {
    padding: 4px 8px !important;
    border-radius: 0 !important;
    border: none !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.3px !important;
    background: transparent !important;
    margin: 0 !important;
    text-align: center !important;
    display: inline-block !important;
    min-height: auto !important;
    white-space: nowrap !important;
  }
  
  nav a:hover {
    background: transparent !important;
    color: #ffd700 !important;
    text-shadow: 0 0 8px #ffd700 !important;
    transform: none !important;
  }
  
  section {
    padding: var(--space-xl);
    margin-inline: var(--space-sm);
  }
  
  p {
    max-width: none; /* Full width on mobile */
  }
  
  .btn-entradas {
    width: 100%;
    margin-inline: 0;
  }
  
  /* Mobile card layouts */
  .activities-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .activity-card {
    padding: var(--space-lg);
  }
  
  .schedule-modern {
    padding: var(--space-lg);
  }
  
  .schedule-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
  
  .schedule-time {
    min-width: auto;
    width: fit-content;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .card {
    padding: 1rem;
  }
  
  /* Improved small mobile navigation - Extra compact */
  nav {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  
  nav ul {
    gap: 6px !important;
    padding: 6px 0 !important;
    margin: 0 !important;
  }
  
  nav li {
    min-width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  nav a {
    padding: 4px 6px !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.2px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    background: transparent !important;
    white-space: nowrap !important;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .fade-in-up,
  .fade-in,
  .slide-in-left,
  .animate-in {
    animation: none !important;
  }
}

/* Image Popup Styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 8px 16px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--gold-accent);
  transform: scale(0.8) translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.popup-overlay.active .popup-container {
  transform: scale(1) translateY(0);
}

.popup-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--fantasy-brown);
  color: var(--gold-accent);
  border: 2px solid var(--gold-accent);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: var(--font-size-xl);
  font-weight: bold;
  cursor: url('../img/icons/medieval-hand-cursor.png') 8 8, pointer !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  line-height: 1;
}

.popup-close:hover {
  background: var(--gold-accent);
  color: var(--fantasy-brown);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.popup-image {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: var(--space-lg);
}

.popup-title {
  text-align: center;
  font-family: 'MedievalSharp', cursive;
  font-size: var(--font-size-lg);
  color: var(--fantasy-brown);
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  padding: var(--space-md) 0;
  border-top: 1px solid rgba(139, 69, 19, 0.2);
}

/* Contact info popup styles */
.contact-info {
  text-align: center;
  font-family: 'Cinzel', serif;
}

.contact-info h3 {
  font-family: 'MedievalSharp', cursive;
  font-size: var(--font-size-2xl);
  color: var(--fantasy-brown);
  margin-bottom: var(--space-lg);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.contact-info p {
  font-size: var(--font-size-lg);
  color: var(--text-primary);
  margin: var(--space-md) 0;
  line-height: 1.6;
}

.contact-info p strong {
  color: var(--fantasy-brown);
  font-weight: 600;
}

/* Animation for popup entrance */
@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes popupFadeOut {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  to {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
}

/* Mobile responsive popup */
@media (max-width: 768px) {
  .popup-container {
    max-width: 95vw;
    max-height: 95vh;
    padding: var(--space-lg);
    margin: var(--space-md);
  }
  
  .popup-image {
    max-height: 60vh;
  }
  
  .popup-close {
    width: 35px;
    height: 35px;
    font-size: var(--font-size-lg);
    top: var(--space-sm);
    right: var(--space-sm);
  }
  
  .popup-title {
    font-size: var(--font-size-base);
    padding: var(--space-sm) 0;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .popup-container {
    max-width: 98vw;
    max-height: 98vh;
    padding: var(--space-md);
    margin: var(--space-xs);
  }
  
  .popup-image {
    max-height: 50vh;
  }
  
  .popup-close {
    width: 30px;
    height: 30px;
    font-size: var(--font-size-base);
  }
}

/* Lore Bubble Styles */
.lore-bubbles {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-block: var(--space-xl);
}

.lore-bubble {
  background: 
    radial-gradient(circle at 10% 10%, rgba(139, 69, 19, 0.08) 0%, transparent 50%),
    linear-gradient(135deg, 
      rgba(255, 255, 255, 0.9) 0%, 
      rgba(248, 240, 220, 0.95) 100%
    );
  border: 2px solid rgba(139, 69, 19, 0.2);
  border-radius: var(--radius-xl);
  box-shadow: 
    0 4px 20px rgba(0,0,0,0.1),
    0 1px 4px rgba(0,0,0,0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.lore-bubble:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 6px 25px rgba(0,0,0,0.15),
    0 2px 8px rgba(0,0,0,0.08);
  border-color: rgba(212, 175, 55, 0.4);
}

.lore-bubble-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg);
  cursor: url('../img/icons/medieval-hand-cursor.png') 8 8, pointer !important;
  background: 
    linear-gradient(135deg, 
      rgba(212, 175, 55, 0.1) 0%, 
      rgba(139, 69, 19, 0.05) 100%
    );
  border-bottom: 1px solid rgba(139, 69, 19, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  
  /* Touch-friendly improvements */
  -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
  touch-action: manipulation; /* Prevents double-tap zoom */
  min-height: 48px; /* Minimum touch target size */
}

.lore-bubble-header:hover {
  background: 
    linear-gradient(135deg, 
      rgba(212, 175, 55, 0.15) 0%, 
      rgba(139, 69, 19, 0.08) 100%
    );
  border-bottom-color: rgba(212, 175, 55, 0.2);
}

.lore-bubble-header h3 {
  margin: 0;
  color: var(--fantasy-brown);
  font-family: 'MedievalSharp', cursive;
  font-size: var(--font-size-xl);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  flex: 1;
}

.lore-toggle-icon {
  color: var(--gold-accent);
  font-size: var(--font-size-lg);
  font-weight: bold;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  min-width: 24px;
  text-align: center;
  margin-left: var(--space-md);
}

.lore-bubble.expanded .lore-toggle-icon {
  transform: rotate(180deg);
}

.lore-bubble-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lore-bubble.expanded .lore-bubble-content {
  max-height: 2000px; /* Large enough for the content */
}

.lore-text {
  padding: var(--space-xl);
  font-family: 'Cinzel', serif;
  line-height: 1.8;
}

.lore-text p {
  margin-block-end: var(--space-lg);
  color: var(--text-primary);
  font-size: var(--font-size-base);
  text-align: justify;
  max-width: none;
}

.lore-text p:last-child {
  margin-block-end: 0;
  font-weight: 600;
  color: var(--fantasy-brown);
  text-align: center;
  font-style: italic;
  padding: var(--space-md);
  background: rgba(212, 175, 55, 0.1);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--gold-accent);
}

/* Animation for content reveal */
@keyframes revealContent {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lore-bubble.expanded .lore-text {
  animation: revealContent 0.5s ease-out 0.2s both;
}

/* Special styling for the orcos lore bubble */
.lore-bubble#orcos-lore {
  border-left: 4px solid #8b0000;
  background: 
    radial-gradient(circle at 10% 10%, rgba(139, 0, 0, 0.08) 0%, transparent 50%),
    linear-gradient(135deg, 
      rgba(255, 255, 255, 0.9) 0%, 
      rgba(248, 240, 240, 0.95) 100%
    );
}

.lore-bubble#orcos-lore:hover {
  border-left-color: #a50000;
  box-shadow: 
    0 6px 25px rgba(139, 0, 0, 0.15),
    0 2px 8px rgba(139, 0, 0, 0.08);
}

.lore-bubble#orcos-lore .lore-bubble-header {
  background: 
    linear-gradient(135deg, 
      rgba(139, 0, 0, 0.1) 0%, 
      rgba(139, 69, 19, 0.05) 100%
    );
}

.lore-bubble#orcos-lore .lore-bubble-header:hover {
  background: 
    linear-gradient(135deg, 
      rgba(139, 0, 0, 0.15) 0%, 
      rgba(139, 69, 19, 0.08) 100%
    );
}

/* Mobile responsiveness for lore bubbles */
@media (max-width: 768px) {
  .lore-bubbles {
    margin-inline: calc(-1 * var(--space-md)); /* Full width on mobile */
  }
  
  .lore-bubble {
    border-radius: var(--radius-lg); /* Slightly smaller radius on mobile */
    margin-inline: var(--space-md);
  }
  
  .lore-bubble-header {
    padding: var(--space-lg) var(--space-md);
    min-height: 60px; /* Ensure good touch target size */
    align-items: center;
  }
  
  .lore-bubble-header h3 {
    font-size: var(--font-size-lg);
    line-height: 1.3;
  }
  
  .lore-toggle-icon {
    font-size: var(--font-size-xl); /* Larger touch target */
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .lore-text {
    padding: var(--space-lg) var(--space-md);
  }
  
  .lore-text p {
    text-align: left; /* Better readability on mobile */
    font-size: var(--font-size-base); /* Keep readable size */
    line-height: 1.7; /* Good mobile line height */
    margin-block-end: var(--space-md);
  }
  
  .lore-text p:last-child {
    font-size: var(--font-size-sm);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .lore-bubble {
    margin-inline: var(--space-sm);
    border-radius: var(--radius-md);
  }
  
  .lore-bubble-header {
    padding: var(--space-md);
    min-height: 70px; /* Even larger touch target for small phones */
  }
  
  .lore-bubble-header h3 {
    font-size: var(--font-size-base);
    line-height: 1.4;
    margin-right: var(--space-sm);
  }
  
  .lore-toggle-icon {
    font-size: var(--font-size-xl);
    min-width: 44px; /* Apple recommended minimum touch target */
    min-height: 44px;
    flex-shrink: 0;
  }
  
  .lore-text {
    padding: var(--space-md);
  }
  
  .lore-text p {
    font-size: var(--font-size-sm);
    line-height: 1.6;
    margin-block-end: var(--space-sm);
  }
  
  .lore-text p:last-child {
    font-size: var(--font-size-xs);
    padding: var(--space-sm);
  }
}

/* Print Styles */
@media print {
  nav, .video-container, .btn, .popup-overlay {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
    display: block !important;
  }
  
  main {
    display: block !important;
  }
  
  .hero {
    background: none;
    color: black;
  }
  
  /* Expand all lore bubbles for printing */
  .lore-bubble-content {
    max-height: none !important;
  }
  
  .lore-toggle-icon {
    display: none;
  }
}