/* Custom properties & design system variables */
:root {
    --color-bg-dark: #1A1510;
    --color-bg-gradient: linear-gradient(135deg, #2C2418 0%, #1A1510 100%);
    --color-primary: #8B2500;
    --color-primary-dark: #5C1A00;
    --color-primary-light: #A03000;
    --color-gold: #B8860B;
    --color-gold-hover: #DAA520;
    --color-gold-dark: #8B6914;
    --color-text-light: #F5F0E1;
    --color-text-muted: #C4B69C;
    --color-text-dark: #3C3228;
    --color-glass-bg: rgba(44, 36, 24, 0.75);
    --color-glass-border: rgba(184, 134, 11, 0.25);
    --color-glass-border-hover: rgba(184, 134, 11, 0.5);
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    
    --shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(184, 134, 11, 0.1);
    --shadow-glow: 0 0 20px rgba(139, 37, 0, 0.3);
    --shadow-gold-glow: 0 0 25px rgba(184, 134, 11, 0.2);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg-dark);
}

body {
    font-family: var(--font-body);
    background: var(--color-bg-gradient);
    color: var(--color-text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography elements */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
}

.gold-text {
    color: var(--color-gold);
    background: linear-gradient(135deg, #DAA520 0%, #B8860B 50%, #8B6914 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(184, 134, 11, 0.1);
}

.divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    margin: 1.5rem auto;
}

.divider-small {
    width: 40px;
    height: 1px;
    background: var(--color-gold);
    margin: 1rem 0;
}

/* Section Common Styles */
section {
    padding: 6rem 2rem;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.section-tag {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-primary-light);
    display: block;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--color-text-muted);
}

/* Button Custom Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-normal);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: var(--font-body);
    border: 1px solid;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(139, 37, 0, 0.5);
}

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

.btn-secondary:hover {
    background: rgba(184, 134, 11, 0.15);
    color: var(--color-text-light);
    border-color: var(--color-text-light);
    transform: translateY(-2px);
}

/* Header & Navigation Styles */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 21, 16, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(184, 134, 11, 0.2);
    transition: var(--transition-normal);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ara-logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(184, 134, 11, 0.3));
    transition: var(--transition-normal);
}

.logo-area:hover .ara-logo-img {
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-light);
    letter-spacing: 1px;
    line-height: 1.2;
}

.logo-subtitle {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-gold);
    letter-spacing: 2px;
}

/* Navigation Links */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 0.5rem 0.75rem;
    border-radius: 3px;
    color: var(--color-text-muted);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 1px;
    background-color: var(--color-gold);
    transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-text-light);
}

.nav-link:hover::after, .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.highlight-link {
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
}

.highlight-link::after {
    display: none;
}

.highlight-link:hover {
    background: var(--color-gold);
    color: var(--color-bg-dark);
}

/* Nav Toggle Button for Mobile */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-text-light);
    transition: var(--transition-fast);
}

/* Hero Section Styles */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 8rem;
    gap: 4rem;
}

.hero-bg-glow {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 37, 0, 0.1) 0%, rgba(139, 37, 0, 0) 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    flex: 1.2;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(139, 37, 0, 0.1);
    border: 1px solid rgba(139, 37, 0, 0.3);
    color: var(--color-primary-light);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.hero-lead {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Interactive Flag Pole and Flag */
.flag-container {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 450px;
    position: relative;
    z-index: 2;
}

.flag-pole {
    width: 8px;
    height: 100%;
    background: linear-gradient(90deg, #5C4033 0%, #8B7355 30%, #A0522D 50%, #8B7355 70%, #5C4033 100%);
    border-radius: 4px;
    box-shadow: 2px 5px 15px rgba(0,0,0,0.6);
    position: relative;
}

.flag-pole-cap {
    position: absolute;
    top: 25px;
    left: calc(50% - 8px);
    width: 16px;
    height: 16px;
    background: radial-gradient(circle at 30% 30%, #DAA520 0%, #8B7355 100%);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

.waving-flag {
    position: absolute;
    top: 40px;
    left: calc(50% + 4px);
    width: 280px;
    height: 170px;
    transform-origin: left top;
    animation: waveFlag 8s ease-in-out infinite;
    filter: drop-shadow(3px 5px 10px rgba(0,0,0,0.4));
}

.flag-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

/* Timeline Section Styles */
.timeline-section {
    background: rgba(26, 21, 16, 0.4);
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-primary-dark) 0%, var(--color-gold) 50%, var(--color-primary-dark) 100%);
    transform: translateX(-50%);
}

/* Timeline items structure */
.timeline-item {
    position: relative;
    width: 50%;
    padding: 1.5rem 3rem;
    margin-bottom: 2rem;
    cursor: pointer;
    transition: var(--transition-normal);
}

.timeline-item:nth-child(even) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(odd) {
    left: 50%;
    text-align: left;
}

/* Markers */
.timeline-marker {
    position: absolute;
    top: 1.8rem;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--color-bg-dark);
    border: 2px solid var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-premium);
}

.timeline-item:nth-child(even) .timeline-marker {
    right: -35px;
}

.timeline-item:nth-child(odd) .timeline-marker {
    left: -35px;
}

.marker-year {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-gold);
}

/* Timeline Cards */
.timeline-content {
    background: var(--color-glass-bg);
    border: 1px solid var(--color-glass-border);
    border-radius: 6px;
    padding: 2rem;
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-premium);
    transition: var(--transition-normal);
    position: relative;
    outline: none;
}

.timeline-image-container {
    width: 100%;
    height: 160px;
    margin-bottom: 1.25rem;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(184, 134, 11, 0.25);
    position: relative;
}

.timeline-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(26, 21, 16, 0.3) 100%);
    pointer-events: none;
}

.timeline-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(0.2) contrast(1.05) brightness(0.95);
    transition: filter var(--transition-normal), transform 0.6s ease;
}

.timeline-item:hover .timeline-image,
.timeline-item.active .timeline-image {
    filter: sepia(0.05) contrast(1.1) brightness(1);
    transform: scale(1.03);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 2.2rem;
    width: 0;
    height: 0;
    border-style: solid;
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: -10px;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--color-glass-border);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--color-glass-border) transparent transparent;
}

.content-date {
    display: inline-block;
    color: var(--color-primary-light);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.content-title {
    font-size: 1.4rem;
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
    transition: var(--transition-fast);
}

.content-short {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* Expanded state (the secret information details) */
.content-expanded {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height var(--transition-normal), opacity var(--transition-normal);
}

.expanded-inner {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
    font-size: 0.92rem;
    color: #e2e8f0;
}

.historical-note {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(212, 175, 55, 0.05);
    border-left: 2px solid var(--color-gold);
    font-style: italic;
    color: var(--color-text-muted);
    font-size: 0.88rem;
}

/* Hover/Touch Active states for timeline */
.timeline-item:hover .timeline-marker,
.timeline-item.active .timeline-marker {
    background: var(--color-primary);
    border-color: var(--color-text-light);
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.timeline-item:hover .timeline-marker .marker-year,
.timeline-item.active .timeline-marker .marker-year {
    color: var(--color-text-light);
}

.timeline-item:hover .timeline-content,
.timeline-item.active .timeline-content {
    border-color: var(--color-glass-border-hover);
    box-shadow: 0 15px 35px rgba(0,0,0,0.7), 0 0 15px rgba(184, 134, 11, 0.1);
    transform: translateY(-3px);
}

.timeline-item:hover .content-title,
.timeline-item.active .content-title {
    color: var(--color-gold);
}

.timeline-item:hover .content-expanded,
.timeline-item.active .content-expanded {
    max-height: 500px; /* High enough to contain, transition will still look smooth */
    opacity: 1;
}

/* Facts (Datos Curiosos) Grid flip cards */
.facts-section {
    background: #1A1510;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.fact-card {
    background-color: transparent;
    height: 380px;
    perspective: 1000px;
    cursor: pointer;
    outline: none;
}

.fact-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform var(--transition-slow);
    transform-style: preserve-3d;
    box-shadow: var(--shadow-premium);
    border-radius: 6px;
}

/* Trigger flip */
.fact-card:hover .fact-card-inner,
.fact-card:focus .fact-card-inner,
.fact-card.flipped .fact-card-inner {
    transform: rotateY(180deg);
}

.fact-card-front, .fact-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 6px;
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--color-glass-border);
    overflow-y: auto;
}

.fact-card-front {
    background: var(--color-glass-bg);
}

.fact-card-back {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, #2C2418 100%);
    color: var(--color-text-light);
    transform: rotateY(180deg);
    border-color: rgba(139, 37, 0, 0.4);
}

.fact-icon {
    margin-bottom: 1.5rem;
    background: rgba(184, 134, 11, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(184, 134, 11, 0.25);
    transition: var(--transition-normal);
}

.fact-card:hover .fact-icon {
    transform: scale(1.1);
    background: rgba(184, 134, 11, 0.18);
}

.fact-card-front h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

.fact-tap-info {
    font-size: 0.75rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: auto;
}

.fact-card-back h3 {
    font-size: 1.2rem;
    color: var(--color-gold);
    margin-bottom: 0.75rem;
}

.fact-card-back p {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #d4c8b0;
}

/* Símbolos Nacionales Explorer */
.symbols-section {
    background: rgba(26, 21, 16, 0.3);
}

.symbols-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.shield-interactive {
    display: flex;
    justify-content: center;
    align-items: center;
}

.shield-image-container {
    position: relative;
    width: 100%;
    max-width: 320px;
}

.shield-image {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.6));
}

.shield-overlay {
    position: absolute;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.shield-overlay:hover {
    background: rgba(184, 134, 11, 0.15);
    border-color: rgba(184, 134, 11, 0.4);
}

.shield-overlay.active {
    background: rgba(184, 134, 11, 0.2);
    border-color: var(--color-gold);
    box-shadow: 0 0 15px rgba(184, 134, 11, 0.3);
}

.symbol-info-panel {
    background: var(--color-glass-bg);
    border: 1px solid var(--color-glass-border);
    border-radius: 6px;
    padding: 3rem 2rem;
    min-height: 380px;
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.symbol-info-panel::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(184, 134, 11, 0.05) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

.panel-placeholder {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.panel-placeholder h3 {
    color: var(--color-gold);
    font-size: 1.4rem;
}

.panel-placeholder p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.panel-content {
    animation: fadeIn var(--transition-normal);
}

.panel-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary-light);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.panel-title {
    font-size: 1.8rem;
    color: var(--color-text-light);
    margin-top: 0.25rem;
}

.panel-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e2e8f0;
    margin-bottom: 1.5rem;
}

.panel-historical-archive {
    background: rgba(184, 134, 11, 0.06);
    border: 1px solid rgba(184, 134, 11, 0.18);
    border-radius: 5px;
    padding: 1.2rem;
}

.archive-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

#symbolArchiveInfo {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-style: italic;
    line-height: 1.5;
}

.hidden {
    display: none !important;
}

/* Trivia Mini-game Section */
.trivia-section {
    background: #1A1510;
}

.trivia-bg-glow {
    position: absolute;
    bottom: -10%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(184, 134, 11, 0.06) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

.trivia-container {
    max-width: 650px;
    margin: 0 auto;
    background: var(--color-glass-bg);
    border: 1px solid var(--color-glass-border);
    border-radius: 10px;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(8px);
    overflow: hidden;
    position: relative;
}

.trivia-screen {
    padding: 3rem 2.5rem;
    text-align: center;
}

.trivia-intro-icon {
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(184,134,11,0.3));
}

.trivia-screen h3 {
    font-size: 1.8rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.trivia-screen p {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Progress bar for quiz */
.trivia-progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.trivia-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-gold) 100%);
    transition: width var(--transition-fast);
}

.trivia-header-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.trivia-question {
    font-size: 1.35rem;
    font-family: var(--font-body);
    line-height: 1.4;
    color: var(--color-text-light);
    margin-bottom: 2rem;
    font-weight: 600;
    text-align: left;
}

/* Quiz Option Buttons */
.trivia-options {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.option-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--color-text-light);
    padding: 1rem 1.5rem;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-fast);
    outline: none;
}

.option-btn:hover {
    background: rgba(184, 134, 11, 0.08);
    border-color: rgba(184, 134, 11, 0.35);
}

.option-btn.correct {
    background: rgba(46, 204, 113, 0.12) !important;
    border-color: #27ae60 !important;
    color: #27ae60;
}

.option-btn.incorrect {
    background: rgba(192, 57, 43, 0.12) !important;
    border-color: #c0392b !important;
    color: #c0392b;
}

.option-btn.disabled {
    pointer-events: none;
    opacity: 0.6;
}

.option-btn.correct.disabled, .option-btn.incorrect.disabled {
    opacity: 1;
}

/* Feedback message */
.trivia-feedback {
    margin-top: 1.5rem;
    animation: slideUp var(--transition-fast);
}

.feedback-text {
    font-size: 0.95rem;
    font-weight: 600;
}

.feedback-text.correct-feedback {
    color: #27ae60;
}

.feedback-text.incorrect-feedback {
    color: #c0392b;
}

/* Result Screen Details */
.trivia-result-badge {
    margin: 0 auto 1.5rem auto;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(184, 134, 11, 0.06);
    border-radius: 50%;
    border: 2px solid var(--color-gold);
    filter: drop-shadow(0 0 10px rgba(184,134,11,0.2));
}

.result-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.result-score-text {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.result-evaluation {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Archivo Regional de Arequipa (ARA) branding section */
.ara-section {
    background: linear-gradient(180deg, #1A1510 0%, #2C2418 100%);
    border-top: 1px solid rgba(184, 134, 11, 0.18);
}

.ara-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.ara-branding {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ara-logo-img-big {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 5px 15px rgba(184, 134, 11, 0.25));
}

.ara-branding h2 {
    font-size: 2.2rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.ara-divider {
    width: 60px;
    height: 2px;
    background-color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.ara-mission {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.ara-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.ara-card {
    background: var(--color-glass-bg);
    border: 1px solid var(--color-glass-border);
    border-radius: 6px;
    padding: 2rem;
    backdrop-filter: blur(8px);
    transition: var(--transition-normal);
}

.ara-card:hover {
    border-color: var(--color-glass-border-hover);
    transform: translateX(5px);
}

.ara-card-icon {
    margin-bottom: 1rem;
}

.ara-card h3 {
    font-size: 1.25rem;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.ara-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* Vitrina / Accordion Styles */
.vitrina-container {
    display: flex;
    flex-direction: column;
}

.vitrina-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.vitrina-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background: var(--color-glass-bg);
    border: 1px solid var(--color-glass-border);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-normal);
}

.accordion-item:hover {
    border-color: var(--color-glass-border-hover);
}

.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    color: var(--color-text-light);
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: background var(--transition-fast);
}

.accordion-header:hover {
    background: rgba(184, 134, 11, 0.08);
}

.accordion-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(184, 134, 11, 0.12);
    color: var(--color-gold);
}

.accordion-title {
    flex: 1;
    color: var(--color-gold);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.accordion-arrow {
    flex-shrink: 0;
    color: var(--color-gold);
    transition: transform var(--transition-normal);
}

.accordion-header[aria-expanded="true"] .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-content.open {
    max-height: 600px;
}

.accordion-inner {
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid rgba(184, 134, 11, 0.1);
    padding-top: 1.25rem;
}

.accordion-inner p {
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.accordion-subheading {
    font-weight: 600;
    color: var(--color-text-light) !important;
    margin-top: 1rem;
}

.accordion-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.accordion-list li {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.6;
}

.accordion-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background: var(--color-gold);
    border-radius: 50%;
    opacity: 0.6;
}

body.light-mode .vitrina-title {
    color: var(--color-text-light);
}

body.light-mode .vitrina-desc {
    color: var(--color-text-muted);
}

body.light-mode .accordion-item {
    background: rgba(255, 252, 245, 0.9);
}

body.light-mode .accordion-header:hover {
    background: rgba(139, 105, 20, 0.06);
}

body.light-mode .accordion-title {
    color: var(--color-gold-dark);
}

body.light-mode .accordion-inner p,
body.light-mode .accordion-list li {
    color: var(--color-text-dark);
}

body.light-mode .accordion-list li::before {
    background: var(--color-gold-dark);
}

body.light-mode .accordion-icon {
    background: rgba(139, 105, 20, 0.12);
}

/* Footer Styles */
.main-footer {
    background-color: #120E0A;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 3rem 2rem;
    color: var(--color-text-muted);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-copyright p {
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer-meta {
    color: var(--color-primary-light);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

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

.footer-links a {
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-gold);
}

/* Keyframe animations */
@keyframes waveFlag {
    0% {
        transform: perspective(400px) rotateY(0deg) skewY(0deg);
    }
    20% {
        transform: perspective(400px) rotateY(2deg) skewY(1deg);
    }
    40% {
        transform: perspective(400px) rotateY(-1deg) skewY(-0.5deg);
    }
    60% {
        transform: perspective(400px) rotateY(1.5deg) skewY(0.8deg);
    }
    80% {
        transform: perspective(400px) rotateY(-0.5deg) skewY(-0.3deg);
    }
    100% {
        transform: perspective(400px) rotateY(0deg) skewY(0deg);
    }
}

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

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

.bounce-slow {
    animation: bounce 3s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: var(--color-text-light);
    border: 1px solid var(--color-primary-light);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 900;
    box-shadow: 0 4px 15px rgba(139, 37, 0, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-primary-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 37, 0, 0.5);
}

/* Mode toggle button */
.mode-toggle {
    background: none;
    border: 1px solid var(--color-glass-border);
    color: var(--color-text-muted);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.mode-toggle:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.mode-toggle .icon-moon {
    display: none;
}

/* Light mode styles */
body.light-mode {
    --color-bg-dark: #F5F0E1;
    --color-bg-gradient: linear-gradient(135deg, #F5F0E1 0%, #E8DCC8 100%);
    --color-text-light: #2C2418;
    --color-text-muted: #5C4A3A;
    --color-glass-bg: rgba(255, 252, 245, 0.85);
    --color-glass-border: rgba(139, 105, 20, 0.2);
    --color-glass-border-hover: rgba(139, 105, 20, 0.4);
    --shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(139, 105, 20, 0.08);
}

body.light-mode .main-header {
    background: rgba(245, 240, 225, 0.92);
    border-bottom-color: rgba(139, 105, 20, 0.15);
}

body.light-mode .nav-link {
    color: var(--color-text-muted);
}

body.light-mode .nav-link:hover,
body.light-mode .nav-link.active {
    color: var(--color-text-light);
}

body.light-mode .nav-toggle .bar {
    background-color: var(--color-text-light);
}

body.light-mode .mode-toggle {
    border-color: rgba(139, 105, 20, 0.3);
    color: var(--color-text-muted);
}

body.light-mode .mode-toggle:hover {
    border-color: var(--color-gold);
    color: var(--color-gold-dark);
}

body.light-mode .mode-toggle .icon-sun {
    display: none;
}

body.light-mode .mode-toggle .icon-moon {
    display: block;
}

body.light-mode .hero-title {
    text-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

body.light-mode .hero-lead {
    color: var(--color-text-muted);
}

body.light-mode .hero-badge {
    background: rgba(139, 37, 0, 0.08);
    color: var(--color-primary);
}

body.light-mode .hero-bg-glow {
    background: radial-gradient(circle, rgba(184, 134, 11, 0.08) 0%, rgba(184, 134, 11, 0) 70%);
}

body.light-mode .section-tag {
    color: var(--color-primary);
}

body.light-mode .content-date {
    color: var(--color-primary);
}

body.light-mode .content-title {
    color: var(--color-text-light);
}

body.light-mode .content-short {
    color: var(--color-text-muted);
}

body.light-mode .expanded-inner {
    color: var(--color-text-muted);
    border-top-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .historical-note {
    background: rgba(184, 134, 11, 0.08);
    border-left-color: var(--color-gold);
    color: var(--color-text-muted);
}

body.light-mode .timeline-line {
    background: linear-gradient(to bottom, var(--color-primary-dark) 0%, var(--color-gold-dark) 50%, var(--color-primary-dark) 100%);
}

body.light-mode .timeline-marker {
    background: #F5F0E1;
    border-color: var(--color-gold-dark);
}

body.light-mode .marker-year {
    color: var(--color-gold-dark);
}

body.light-mode .timeline-item:hover .timeline-marker,
body.light-mode .timeline-item.active .timeline-marker {
    background: var(--color-primary);
    border-color: #fff;
}

body.light-mode .timeline-item:hover .timeline-marker .marker-year,
body.light-mode .timeline-item.active .timeline-marker .marker-year {
    color: #fff;
}

body.light-mode .fact-card-front {
    background: rgba(255, 252, 245, 0.9);
}

body.light-mode .fact-card-front h3 {
    color: var(--color-text-light);
}

body.light-mode .fact-card-back {
    background: linear-gradient(135deg, #8B2500 0%, #5C1A00 100%);
}

body.light-mode .fact-card-back h3 {
    color: #DAA520;
}

body.light-mode .fact-card-back p {
    color: #F5F0E1;
}

body.light-mode .symbol-info-panel {
    background: rgba(255, 252, 245, 0.9);
}

body.light-mode .panel-placeholder h3 {
    color: var(--color-gold-dark);
}

body.light-mode .panel-placeholder p {
    color: var(--color-text-muted);
}

body.light-mode .panel-title {
    color: var(--color-text-light);
}

body.light-mode .panel-desc {
    color: var(--color-text-muted);
}

body.light-mode .panel-historical-archive {
    background: rgba(184, 134, 11, 0.06);
    border-color: rgba(184, 134, 11, 0.15);
}

body.light-mode #symbolArchiveInfo {
    color: var(--color-text-muted);
}

body.light-mode .trivia-container {
    background: rgba(255, 252, 245, 0.9);
}

body.light-mode .trivia-screen h3 {
    color: var(--color-text-light);
}

body.light-mode .trivia-screen p {
    color: var(--color-text-muted);
}

body.light-mode .trivia-question {
    color: var(--color-text-light);
}

body.light-mode .trivia-header-info {
    color: var(--color-gold-dark);
}

body.light-mode .trivia-progress-bar {
    background: rgba(0, 0, 0, 0.08);
}

body.light-mode .option-btn {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--color-text-light);
}

body.light-mode .option-btn:hover {
    background: rgba(184, 134, 11, 0.1);
    border-color: rgba(184, 134, 11, 0.3);
}

body.light-mode .ara-section {
    background: linear-gradient(180deg, #E8DCC8 0%, #F5F0E1 100%);
}

body.light-mode .ara-branding h2 {
    color: var(--color-text-light);
}

body.light-mode .ara-mission {
    color: var(--color-text-muted);
}

body.light-mode .ara-card {
    background: rgba(255, 252, 245, 0.9);
}

body.light-mode .ara-card h3 {
    color: var(--color-gold-dark);
}

body.light-mode .ara-card p {
    color: var(--color-text-muted);
}

body.light-mode .main-footer {
    background-color: #E8DCC8;
    border-top-color: rgba(0,0,0,0.08);
    color: var(--color-text-muted);
}

body.light-mode .footer-meta {
    color: var(--color-primary);
}

body.light-mode .footer-links a {
    color: var(--color-text-muted);
}

body.light-mode .footer-links a:hover {
    color: var(--color-gold-dark);
}

body.light-mode .back-to-top {
    background: var(--color-primary);
    box-shadow: 0 4px 15px rgba(139, 37, 0, 0.3);
}

body.light-mode .shield-overlay:hover {
    background: rgba(184, 134, 11, 0.2);
    border-color: rgba(184, 134, 11, 0.5);
}

body.light-mode .shield-overlay.active {
    background: rgba(184, 134, 11, 0.25);
    border-color: var(--color-gold-dark);
}

body.light-mode .timeline-image-container {
    border-color: rgba(139, 105, 20, 0.25);
}

body.light-mode .feedback-text.correct-feedback {
    color: #27ae60;
}

body.light-mode .feedback-text.incorrect-feedback {
    color: #c0392b;
}

body.light-mode .option-btn.correct {
    background: rgba(39, 174, 96, 0.15) !important;
    border-color: #27ae60 !important;
    color: #1e8449;
}

body.light-mode .option-btn.incorrect {
    background: rgba(192, 57, 43, 0.15) !important;
    border-color: #c0392b !important;
    color: #922b21;
}

body.light-mode .result-title {
    color: var(--color-text-light);
}

body.light-mode .result-score-text {
    color: var(--color-text-light);
}

body.light-mode .result-evaluation {
    color: var(--color-text-muted);
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Responsive adjustments (Mobile, Tablet, Small Desktop) */

@media (max-width: 1024px) {
    /* Timeline adjustments */
    .timeline-line {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 5rem;
        padding-right: 1rem;
        text-align: left !important;
    }
    
    .timeline-marker {
        left: 0px !important;
        right: auto !important;
        width: 60px;
        height: 60px;
    }
    
    .timeline-item:nth-child(even) .timeline-content::before,
    .timeline-item:nth-child(odd) .timeline-content::before {
        left: -10px;
        right: auto;
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--color-glass-border) transparent transparent;
    }

    .timeline-image-container {
        height: 140px;
    }

    /* Symbols adjustments */
    .symbols-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .symbol-info-panel {
        min-height: auto;
    }

    /* ARA Branding adjustments */
    .ara-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Vitrina accordion responsive */
    .accordion-header {
        padding: 1rem;
    }

    .accordion-title {
        font-size: 0.9rem;
    }

    .accordion-inner {
        padding: 1rem;
        padding-top: 1rem;
    }

    /* Header menu collapse */
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: rgba(26, 21, 16, 0.98);
        backdrop-filter: blur(20px);
        border-left: 1px solid rgba(184, 134, 11, 0.2);
        padding: 3rem 2rem;
        transition: var(--transition-normal);
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 2rem;
    }
    
    .nav-link {
        font-size: 1.1rem;
        display: block;
        padding: 0.5rem 0;
    }

    .nav-link::after {
        left: 0;
        transform: none;
        width: 40px;
        transform: scaleX(0);
        transform-origin: left;
    }

    .nav-link:hover::after, .nav-link.active::after {
        transform: scaleX(1);
    }
    
    /* Active hamburger icon state */
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Hero Responsive */
    .hero-section {
        flex-direction: column-reverse;
        padding-top: 6rem;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-lead {
        font-size: 1rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .flag-container {
        height: 250px;
        width: 100%;
    }
    
    .waving-flag {
        width: 180px;
        height: 110px;
        top: 20px;
    }

    /* Facts cards responsive */
    .facts-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .fact-card {
        height: 400px;
    }

    /* Footer Responsive */
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .btn {
        width: 100%;
    }

    .timeline-item {
        padding-left: 3.5rem;
    }
    
    .timeline-line {
        left: 20px;
    }
    
    .timeline-marker {
        width: 45px;
        height: 45px;
    }
    
    .marker-year {
        font-size: 0.75rem;
    }

    .timeline-image-container {
        height: 120px;
    }
    }
    
    .timeline-content {
        padding: 1.25rem;
    }

    .content-title {
        font-size: 1.15rem;
    }
    
    .trivia-screen {
        padding: 2rem 1.25rem;
    }
    
    .trivia-question {
        font-size: 1.15rem;
    }
}
