/* --- PURUWA DESIGN SYSTEM --- */
/* Chimborazo Ice, Red Poncho, and Paramo Earth Theme */

:root {
    /* Color Tokens (Chaski Yachay Theme) */
    --color-bg-dark: hsl(182, 40%, 8%);
    --color-bg-deep: hsl(182, 45%, 5%);
    --color-bg-card: hsla(182, 40%, 12%, 0.75);
    
    --color-primary-red: hsl(26, 37%, 40%); /* Café */
    --color-primary-red-glow: hsla(26, 37%, 40%, 0.3);
    
    --color-andes-ice: hsl(195, 40%, 80%);
    --color-earth-brown: hsl(26, 37%, 30%);
    
    --color-text-white: hsl(30, 10%, 95%);
    --color-text-muted: hsl(30, 10%, 75%);
    
    --border-glass: hsla(0, 0%, 100%, 0.12);
    --border-glass-active: hsla(0, 75%, 45%, 0.4);
    
    --shadow-premium: 0 15px 35px rgba(0, 0, 0, 0.6), 0 5px 15px rgba(0, 0, 0, 0.4);

    --font-heading: 'Cinzel', serif;
    --font-ui: 'Outfit', sans-serif;
    --font-body: 'Lora', serif;

    --transition-slow: 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-medium: 0.4s ease;
    --transition-fast: 0.2s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background-color: var(--color-bg-dark); color: var(--color-text-white); font-family: var(--font-body); overflow-x: hidden; }

body {
    background: linear-gradient(180deg, hsla(20, 10%, 7%, 0.85) 0%, hsla(20, 15%, 4%, 0.98) 100%),
                url('recursos/imagen/puruwa/hero_puruwa.jpg') no-repeat center center fixed;
    background-size: cover;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--color-bg-deep); }
::-webkit-scrollbar-thumb { background: var(--color-primary-red); border-radius: 5px; border: 2px solid var(--color-bg-deep); }

/* Intro Screen */
.welcome-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: var(--color-bg-deep); z-index: 9999; display: flex; justify-content: center; align-items: center; transition: opacity 1s, visibility 1s; }
.welcome-overlay.fade-out { opacity: 0; visibility: hidden; }
.welcome-content { text-align: center; position: relative; z-index: 10; padding: 2rem; max-width: 600px; }
.puruwa-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 300px; height: 300px; background: radial-gradient(circle, var(--color-primary-red-glow) 0%, transparent 70%); z-index: -1; filter: blur(20px); animation: pulseGlow 4s infinite alternate; }
@keyframes pulseGlow { 0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; } 100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; } }
.welcome-subtitle { font-family: var(--font-ui); font-size: 0.95rem; font-weight: 500; letter-spacing: 0.4em; color: var(--color-primary-red); text-transform: uppercase; margin-bottom: 0.75rem; opacity: 0; animation: slideUpFade 1.2s forwards 0.2s; }
.welcome-title { font-family: var(--font-heading); font-size: 3rem; font-weight: 900; letter-spacing: 0.15em; color: var(--color-text-white); text-shadow: 0 0 20px rgba(255,255,255,0.2); margin-bottom: 2rem; opacity: 0; animation: slideUpFade 1.2s forwards 0.5s; }
.loading-bar-container { width: 250px; height: 3px; background: hsla(0, 0%, 30%, 0.5); border-radius: 10px; margin: 0 auto 1.5rem auto; overflow: hidden; opacity: 0; animation: fadeIn 1s forwards 0.8s; }
.loading-bar { width: 0%; height: 100%; background: linear-gradient(90deg, var(--color-andes-ice), var(--color-primary-red), var(--color-earth-brown)); border-radius: 10px; animation: fillBar 2.5s forwards; }
.welcome-footer { font-family: var(--font-ui); font-size: 0.8rem; color: var(--color-text-muted); opacity: 0; animation: fadeIn 1s forwards 1.2s; }
@keyframes slideUpFade { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes fillBar { to { width: 100%; } }

.particles-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; z-index: 1; }
.blog-container { opacity: 0; transition: opacity 1.5s ease; }
.blog-container.fade-in { opacity: 1; }
.hidden { display: none !important; }

/* Hero */
.hero-section { position: relative; width: 100%; height: 95vh; background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, var(--color-bg-dark) 100%), url('recursos/imagen/puruwa/hero_puruwa.jpg') no-repeat center center/cover; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 8rem 2rem 2rem 2rem; text-align: center; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at center, transparent 30%, var(--color-bg-deep) 95%); pointer-events: none; z-index: 1; }

.navbar { position: fixed; top: 0; left: 50%; transform: translateX(-50%); width: 90%; max-width: 1200px; z-index: 1000; display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 2.5rem; border-radius: 50px; background: hsla(20, 15%, 5%, 0.8); backdrop-filter: blur(12px); border: 1px solid var(--border-glass); box-shadow: 0 10px 30px rgba(0,0,0,0.5); margin-top: 1.5rem; }
.logo-main { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; color: var(--color-text-white); letter-spacing: 0.15em; }
.logo-sub { font-family: var(--font-ui); font-size: 0.7rem; font-weight: 600; color: var(--color-primary-red); letter-spacing: 0.35em; display: block; margin-top: -2px;}

.site-logo {
    height: 35px;
    width: auto;
    transition: transform var(--transition-medium);
}
.site-logo:hover {
    transform: scale(1.05);
}
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-item { font-family: var(--font-ui); font-size: 0.85rem; font-weight: 500; text-decoration: none; color: var(--color-text-muted); letter-spacing: 0.1em; text-transform: uppercase; position: relative; padding-bottom: 4px; transition: color var(--transition-fast); }
.nav-item::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--color-primary-red); transition: width var(--transition-medium); }
.nav-item:hover, .nav-item.active { color: var(--color-primary-red); }
.nav-item:hover::after, .nav-item.active::after { width: 100%; }

/* Premium Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content.premium-dropdown {
    display: block;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: hsla(210, 15%, 8%, 0.95);
    min-width: 270px;
    box-shadow: 0px 15px 30px 0px rgba(0,0,0,0.6), 0 0 15px hsla(0, 75%, 45%, 0.2);
    z-index: 1001;
    border-radius: 16px;
    border: 1px solid var(--border-glass);
    overflow: hidden;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 0.5rem 0;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.dropdown:hover .dropdown-content.premium-dropdown {
    visibility: visible;
    opacity: 1;
    top: 100%;
    transform: translateX(-50%) translateY(15px);
}

.dropdown-content.premium-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: hsla(210, 15%, 8%, 0.95);
    border-top: 1px solid var(--border-glass);
    border-left: 1px solid var(--border-glass);
}

.drop-item {
    color: var(--color-text-white);
    padding: 12px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: none;
    transition: all 0.3s ease;
    position: relative;
}

.drop-item i {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    transition: color 0.3s ease, transform 0.3s ease;
}

.drop-item span {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    background: hsla(0, 0%, 100%, 0.05);
    padding: 3px 8px;
    border-radius: 20px;
    transition: background 0.3s;
}

.drop-divider {
    height: 1px;
    background: var(--border-glass);
    margin: 0.5rem 0;
}

.drop-item:hover {
    background-color: hsla(0, 0%, 100%, 0.02);
    padding-left: 25px;
    color: var(--color-primary-red);
}
.drop-item:hover i {
    color: var(--color-primary-red);
    transform: scale(1.1);
}
.drop-item:hover span {
    background: hsla(0, 75%, 45%, 0.15);
    color: var(--color-primary-red);
}

.hero-content { position: relative; z-index: 10; margin-bottom: auto; margin-top: auto; max-width: 850px; }
.badge { font-family: var(--font-ui); display: inline-block; padding: 0.5rem 1.2rem; background: hsla(0, 75%, 45%, 0.15); border: 1px solid var(--color-primary-red); color: var(--color-primary-red); border-radius: 50px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1.5rem; }
.hero-title { font-family: var(--font-heading); font-size: 5rem; font-weight: 900; letter-spacing: 0.25em; margin-bottom: 1rem; background: linear-gradient(135deg, var(--color-text-white) 20%, var(--color-primary-red) 60%, var(--color-andes-ice) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: zoomTitle 2s ease-out forwards; }
@keyframes zoomTitle { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.hero-tagline { font-family: var(--font-ui); font-size: 1.25rem; font-weight: 300; color: var(--color-text-muted); max-width: 600px; margin: 0 auto 3rem auto; }
.hero-scroll-btn { z-index: 10; margin-bottom: 1rem; }
.hero-scroll-btn a { color: var(--color-text-muted); font-size: 1.5rem; text-decoration: none; animation: bounce 2s infinite; display: inline-block; }
.hero-scroll-btn a:hover { color: var(--color-primary-red); }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-5px); } }

/* Main Content */
.content-wrapper { max-width: 1200px; margin: 0 auto; padding: 4rem 2rem; position: relative; z-index: 10; }
.section-container { margin-bottom: 7rem; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-title { font-family: var(--font-heading); font-size: 2.2rem; letter-spacing: 0.1em; text-transform: uppercase; }
.section-subtitle { font-family: var(--font-ui); font-size: 0.95rem; color: var(--color-text-muted); margin-top: 0.5rem; }
.title-underline { width: 60px; height: 3px; background: linear-gradient(90deg, var(--color-earth-brown), var(--color-primary-red), var(--color-andes-ice)); margin: 1rem auto 0 auto; border-radius: 5px; }

.reveal-on-scroll { opacity: 0; transform: translateY(40px); transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1); }
.reveal-on-scroll.active { opacity: 1; transform: translateY(0); }

/* About */
.main-description-card { background: var(--color-bg-card); border: 1px solid var(--border-glass); border-radius: 20px; padding: 3rem; box-shadow: var(--shadow-premium); backdrop-filter: blur(12px); display: flex; gap: 2rem; align-items: center; position: relative; overflow: hidden; transition: border-color var(--transition-medium); }
.main-description-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: linear-gradient(180deg, var(--color-earth-brown), var(--color-primary-red)); }
.main-description-card:hover { border-color: var(--color-primary-red); }
.card-icon { font-size: 3rem; color: var(--color-primary-red); background: hsla(0, 75%, 45%, 0.1); width: 80px; height: 80px; min-width: 80px; border-radius: 50%; display: flex; justify-content: center; align-items: center; }
.description-text { font-size: 1.2rem; line-height: 1.8; color: var(--color-text-white); font-weight: 300; }

/* Characters */
.character-cards { display: flex; gap: 3rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.character-card { background: var(--color-bg-card); border: 1px solid var(--border-glass); border-radius: 20px; padding: 2.5rem; text-align: center; max-width: 320px; transition: transform var(--transition-medium), box-shadow var(--transition-medium); box-shadow: var(--shadow-premium); backdrop-filter: blur(12px); }
.character-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.8); border-color: var(--color-primary-red); }
.char-image-container { position: relative; width: 160px; height: 160px; margin: 0 auto 1.5rem auto; border-radius: 50%; padding: 5px; border: 2px dashed var(--color-primary-red); transition: transform 0.5s ease; }
.character-card:hover .char-image-container { transform: scale(1.05) rotate(5deg); border-style: solid; }
.char-image { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; position: relative; z-index: 2; }
.char-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 120%; height: 120%; background: radial-gradient(circle, var(--color-primary-red-glow) 0%, transparent 60%); z-index: 1; opacity: 0; transition: opacity 0.5s ease; }
.character-card:hover .char-glow { opacity: 1; }
.char-name { font-family: var(--font-heading); font-size: 1.8rem; color: var(--color-text-white); margin-bottom: 0.2rem; }
.char-role { font-family: var(--font-ui); font-size: 0.9rem; color: var(--color-primary-red); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.char-desc { font-size: 0.95rem; color: var(--color-text-muted); line-height: 1.5; }

/* Interactive Script Container */
.language-toggle { display: flex; justify-content: center; gap: 1rem; margin-bottom: 2rem; }
.lang-btn { background: var(--color-bg-deep); border: 1px solid var(--color-primary-red); color: var(--color-text-muted); font-family: var(--font-ui); font-size: 1rem; padding: 0.6rem 2rem; border-radius: 50px; cursor: pointer; transition: all var(--transition-fast); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.lang-btn:hover { background: hsla(0, 75%, 45%, 0.1); color: var(--color-primary-red); }
.lang-btn.active { background: var(--color-primary-red); color: var(--color-text-white); box-shadow: 0 0 15px var(--color-primary-red-glow); }

.script-chat-container { background: var(--color-bg-card); border: 1px solid var(--border-glass); border-radius: 20px; padding: 3rem 2rem; box-shadow: inset 0 0 50px rgba(0,0,0,0.5), var(--shadow-premium); min-height: 400px; display: flex; flex-direction: column; gap: 1.5rem; }
.script-content { display: flex; flex-direction: column; gap: 1.5rem; }
.chat-message { display: flex; gap: 1.5rem; align-items: flex-end; opacity: 1; }
.chat-message.fade-in-msg { opacity: 0; animation: msgFadeInUp 0.6s forwards; }
@keyframes msgFadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.chat-avatar { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--color-primary-red); object-fit: cover; box-shadow: 0 0 10px rgba(0,0,0,0.5); }
.chat-bubble { position: relative; background: var(--color-bg-deep); padding: 1.2rem 1.5rem; border-radius: 20px; max-width: 80%; border: 1px solid var(--border-glass); font-size: 1.05rem; line-height: 1.6; color: var(--color-text-white); }
.chat-author { position: absolute; top: -12px; font-family: var(--font-ui); font-size: 0.75rem; font-weight: 600; color: var(--color-primary-red); letter-spacing: 0.1em; text-transform: uppercase; background: var(--color-bg-dark); padding: 0 10px; border-radius: 10px; }

/* Customizations per character */
.rumi-msg { flex-direction: row; }
.rumi-msg .chat-bubble { border-bottom-left-radius: 5px; }
.rumi-msg .chat-author { left: 15px; }

.sisa-msg { flex-direction: row-reverse; }
.sisa-msg .chat-bubble { background: hsla(195, 40%, 80%, 0.05); border-color: hsla(195, 40%, 80%, 0.2); border-bottom-right-radius: 5px; }
.sisa-msg .chat-avatar { border-color: var(--color-andes-ice); }
.sisa-msg .chat-author { right: 15px; color: var(--color-andes-ice); }

/* Timeline (History) */
.history-timeline-section { position: relative; }
.timeline-container { position: relative; max-width: 800px; margin: 0 auto; padding: 2rem 0; }
.timeline-container::before { content: ''; position: absolute; top: 0; left: 50px; width: 2px; height: 100%; background: linear-gradient(180deg, var(--color-earth-brown), var(--color-primary-red), var(--color-andes-ice)); }
.timeline-item { position: relative; margin-bottom: 3rem; padding-left: 120px; }
.timeline-icon { position: absolute; left: 25px; top: 0; width: 50px; height: 50px; background: var(--color-bg-dark); border: 2px solid var(--color-primary-red); border-radius: 50%; display: flex; justify-content: center; align-items: center; color: var(--color-primary-red); font-size: 1.2rem; box-shadow: 0 0 15px var(--color-primary-red-glow); z-index: 2; transition: transform 0.3s, background 0.3s; }
.timeline-item:hover .timeline-icon { transform: scale(1.1); background: var(--color-primary-red); color: var(--color-text-white); }
.timeline-content { background: var(--color-bg-card); border: 1px solid var(--border-glass); padding: 2rem; border-radius: 15px; box-shadow: var(--shadow-premium); backdrop-filter: blur(12px); transition: border-color 0.3s; }
.timeline-item:hover .timeline-content { border-color: var(--color-primary-red); }
.timeline-content h3 { font-family: var(--font-heading); color: var(--color-text-white); margin-bottom: 0.75rem; font-size: 1.4rem; }
.timeline-content p { color: var(--color-text-muted); line-height: 1.6; }

/* Pure Text Tabs */
.tabs-wrapper { background: var(--color-bg-card); border: 1px solid var(--border-glass); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-premium); }
.tabs-header { display: flex; border-bottom: 1px solid var(--border-glass); background: hsla(20, 15%, 5%, 0.8); }
.tab-btn { flex: 1; padding: 1.5rem; background: transparent; border: none; color: var(--color-text-muted); font-family: var(--font-ui); font-size: 1.1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; cursor: pointer; transition: all 0.3s; border-bottom: 3px solid transparent; }
.tab-btn:hover { background: hsla(0, 75%, 45%, 0.05); color: var(--color-primary-red); }
.tab-btn.active { color: var(--color-text-white); border-bottom-color: var(--color-primary-red); background: hsla(0, 75%, 45%, 0.1); }
.tabs-body { padding: 3rem; }
.tab-content { display: none; animation: fadeInTab 0.5s ease-out; }
.tab-content.active { display: block; }
@keyframes fadeInTab { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.tab-content p { font-size: 1.1rem; line-height: 1.8; color: var(--color-text-white); margin-bottom: 1.5rem; font-weight: 300; }
.tab-content strong { color: var(--color-primary-red); font-family: var(--font-ui); font-weight: 600; letter-spacing: 0.05em; margin-right: 0.5rem; }

/* Footer */
.site-footer { position: relative; width: 100%; background: linear-gradient(0deg, var(--color-bg-deep) 0%, var(--color-bg-dark) 100%); border-top: 1px solid var(--border-glass); padding: 4rem 2rem 2rem 2rem; overflow: hidden; }
.footer-glow { position: absolute; bottom: -100px; left: 50%; transform: translateX(-50%); width: 600px; height: 200px; background: radial-gradient(circle, var(--color-primary-red-glow) 0%, transparent 70%); filter: blur(30px); z-index: 1; }
.footer-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 2; gap: 3rem; }
.footer-left h3 { font-family: var(--font-heading); font-size: 1.5rem; letter-spacing: 0.1em; color: var(--color-text-white); margin-bottom: 0.75rem; text-transform: uppercase; }
.footer-left p { font-size: 0.95rem; color: var(--color-text-muted); max-width: 400px; line-height: 1.6; }
.footer-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.footer-text-accent { font-family: var(--font-heading); font-size: 1.1rem; font-style: italic; color: var(--color-primary-red); margin-bottom: 1.5rem; letter-spacing: 0.05em; }
.footer-copy { font-family: var(--font-ui); font-size: 0.8rem; color: var(--color-text-muted); }

/* Ambient Particles */
.ambient-particles { background: transparent; z-index: 0; position: fixed; height: 100vh; width: 100vw; }
.particle { position: absolute; border-radius: 50%; opacity: 0.3; pointer-events: none; animation: floatUp 8s infinite linear; }
@keyframes floatUp { 0% { transform: translateY(105vh) translateX(0) scale(1); opacity: 0; } 10% { opacity: 0.4; } 90% { opacity: 0.4; } 100% { transform: translateY(-5vh) translateX(50px) scale(0.6); opacity: 0; } }

@media (max-width: 992px) {
    .hero-title { font-size: 4rem; }
    .main-description-card { flex-direction: column; text-align: center; }
    .main-description-card::before { width: 100%; height: 4px; top: 0; left: 0; }
    .timeline-container::before { left: 20px; }
    .timeline-icon { left: -5px; }
    .timeline-item { padding-left: 60px; }
}
@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 1rem; width: 95%; padding: 0.75rem 1.25rem; }
    .nav-links { overflow-x: auto; max-width: 100%; padding-bottom: 5px; }
    .hero-title { font-size: 2.8rem; }
    .hero-tagline { font-size: 1rem; }
    .chat-message { flex-direction: column !important; align-items: flex-start !important; gap: 0.5rem; }
    .sisa-msg { align-items: flex-end !important; }
    .chat-bubble { max-width: 95%; }
    .footer-container { flex-direction: column; text-align: center; }
    .footer-right { align-items: center; text-align: center; }
}
