/* --- DAURY NOVA: LIVING DARK THEME (Restored) --- */
:root {
    /* Paleta Animada */
    --bg-1: #020204;
    --bg-2: #050510;
    --bg-3: #0a0f1d;
    
    /* Superficies Glass */
    --surface: rgba(20, 25, 40, 0.6);
    --surface-hover: rgba(30, 40, 60, 0.8);
    --border: rgba(255, 255, 255, 0.08);
    --border-active: rgba(255, 255, 255, 0.2);
    
    /* Texto y Acentos */
    --text-main: #ffffff;
    --text-secondary: #94a3b8;
    --primary: #ffffff;
    --accent: #3b82f6; /* Azul Royal */
    
    --font: 'Inter', -apple-system, sans-serif;
    --radius: 16px;
    --ease: cubic-bezier(0.2, 1, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    
    /* FONDO DINÁMICO ANIMADO (El que te gustaba) */
    background: linear-gradient(-45deg, #000000, #050505, #0a0f14, #020205);
    background-size: 400% 400%;
    animation: gradientBG 20s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Sin ruido como pediste */

/* --- HEADER --- */
#main-header {
    position: sticky; top: 20px; z-index: 1000;
    width: fit-content; margin: 0 auto; padding: 12px 40px;
    display: flex; gap: 40px; align-items: center;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 100px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}
.logo-container h1 { font-size: 0.9rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #fff; }
nav ul { display: flex; gap: 25px; list-style: none; }
nav a { text-decoration: none; color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; transition: 0.3s; }
nav a:hover, nav a.active-nav { color: #fff; }
.lang-selector { display: none; } 

/* --- ESTRUCTURA --- */
.container { max-width: 1100px; margin: 0 auto; padding: 100px 20px; }
.app-view { display: none; opacity: 0; transform: translateY(15px); transition: all 0.6s var(--ease); }
.app-view.active-view { display: block; opacity: 1; transform: translateY(0); }
.hidden { display: none !important; }

h2 { 
    font-size: 2.8rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 15px; text-align: center;
    background: linear-gradient(to bottom, #fff 40%, #777 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.intro-text { 
    color: var(--text-secondary); font-size: 1.1rem; text-align: center; 
    margin-bottom: 60px; font-weight: 300; max-width: 600px; margin-left: auto; margin-right: auto; 
}

.glass-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    transition: border-color 0.3s;
}
.glass-panel:hover { border-color: var(--border-active); }

/* --- CALCULADORA --- */
.category-filter { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.cat-btn { 
    background: transparent; border: 1px solid var(--border); color: var(--text-secondary); 
    padding: 8px 20px; border-radius: 50px; cursor: pointer; font-size: 0.85rem; transition: 0.3s; 
}
.cat-btn:hover, .cat-btn.active { color: #fff; background: rgba(255,255,255,0.05); border-color: #fff; }

.calculator-wrapper { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.tabs-container { border-right: 1px solid var(--border); padding-right: 20px; max-height: 550px; overflow-y: auto; }
.tabs-container::-webkit-scrollbar { width: 0; }

.metric-tab { 
    padding: 14px 15px; color: var(--text-secondary); cursor: pointer; 
    border-radius: 10px; font-size: 0.9rem; margin-bottom: 4px; transition: 0.2s; 
}
.metric-tab:hover { color: #fff; background: rgba(255,255,255,0.03); }
.metric-tab.active { color: #fff; background: rgba(255,255,255,0.08); font-weight: 600; }

.calc-content { padding: 40px; }
.badge { 
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); 
    border: 1px solid rgba(59, 130, 246, 0.3); padding: 6px 12px; border-radius: 50px; display: inline-block; margin-bottom: 20px; 
}
#metric-title { font-size: 2rem; font-weight: 700; margin-bottom: 15px; }
.input-group { margin-bottom: 25px; }
.input-group label { display: block; font-size: 0.85rem; margin-bottom: 8px; color: var(--text-secondary); }
.input-field, select.input-field { 
    width: 100%; padding: 16px; background: rgba(0,0,0,0.3); border: 1px solid var(--border); 
    border-radius: 12px; color: #fff; font-family: var(--font); font-size: 1rem; transition: 0.3s; 
}
.input-field:focus { border-color: var(--accent); outline: none; background: rgba(59, 130, 246, 0.05); }

.btn-primary {
    background: #fff; color: #000; border: none; padding: 14px 32px; border-radius: 50px;
    font-weight: 700; cursor: pointer; transition: all 0.3s var(--ease); font-size: 0.9rem;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
}
.btn-primary:hover { transform: scale(1.03); box-shadow: 0 0 30px rgba(255,255,255,0.2); }
#calc-result { font-size: 3rem; font-weight: 800; color: #fff; margin-top: 10px; }

/* --- VIDEOS --- */
.video-header-actions { display: flex; justify-content: center; gap: 20px; margin-bottom: 50px; }
.btn-secondary {
    background: transparent; border: 1px solid var(--border); color: #fff; padding: 10px 24px; border-radius: 50px; cursor: pointer; transition: 0.3s; font-size: 0.9rem;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.video-card { 
    background: #000; border: 1px solid var(--border); border-radius: 16px; 
    overflow: hidden; cursor: pointer; transition: 0.4s var(--ease); 
}
.video-card:hover { transform: translateY(-8px); border-color: rgba(255,255,255,0.2); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5); }
.video-thumb { width: 100%; height: 180px; object-fit: cover; opacity: 0.8; transition: 0.4s; }
.video-card:hover .video-thumb { opacity: 1; }
.video-info { padding: 20px; }
.video-title { font-size: 0.95rem; font-weight: 600; line-height: 1.5; color: #fff; }

/* --- FORO --- */
.forum-layout { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
.forum-cat { 
    padding: 12px 15px; color: var(--text-secondary); cursor: pointer; 
    border-radius: 10px; font-size: 0.9rem; transition: 0.2s; 
}
.forum-cat:hover, .forum-cat.active { color: #fff; background: rgba(255,255,255,0.05); }

.q-card { 
    padding: 25px; background: var(--surface); border: 1px solid var(--border); 
    border-radius: 16px; margin-bottom: 20px; cursor: pointer; transition: 0.3s; 
}
.q-card:hover { border-color: rgba(255,255,255,0.3); background: rgba(40,40,50,0.7); }
.thread-header { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.thread-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }

.reply-item { border-left: 1px solid var(--border); padding-left: 20px; margin-bottom: 30px; }
.reply-header { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--accent); margin-bottom: 10px; font-weight: 600; }
.reply-body { font-size: 1rem; color: #ddd; line-height: 1.6; }

/* --- PERFIL (ICONOS BLANCOS RESTAURADOS) --- */
.about-grid { display: grid; grid-template-columns: 1fr 300px; gap: 60px; align-items: center; }
.about-photo img { width: 100%; border-radius: 24px; border: 1px solid var(--border); filter: grayscale(100%); transition: 0.8s; }
.about-photo img:hover { filter: grayscale(0); transform: scale(1.02); }

.social-icons { display: flex; gap: 15px; margin-top: 30px; }
.social-icon { 
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; 
    background: rgba(255,255,255,0.08); /* Fondo semitransparente */
    border: 1px solid var(--border); border-radius: 50%; 
    color: #fff; /* Icono Blanco Puro */
    transition: 0.3s; 
}
.social-icon:hover { background: #fff; color: #000; transform: scale(1.1); border-color: #fff; }
.social-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }

.timeline { border-left: 1px solid var(--border); padding-left: 30px; margin-top: 0; }
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item::before { content: ''; position: absolute; left: -34px; top: 8px; width: 7px; height: 7px; background: #fff; border-radius: 50%; }
.timeline-year { font-size: 0.85rem; color: var(--text-secondary); font-family: monospace; margin-bottom: 5px; }

/* --- FOOTER --- */
footer { margin-top: 120px; padding: 50px 0; border-top: 1px solid var(--border); text-align: center; font-size: 0.85rem; color: var(--text-secondary); }

@media (max-width: 850px) {
    #main-header { width: 100%; border-radius: 0; top: 0; flex-direction: column; gap: 15px; padding: 20px; border: none; border-bottom: 1px solid var(--border); }
    .calculator-wrapper, .forum-layout, .about-grid, .contact-container { grid-template-columns: 1fr; }
    .tabs-container { border-right: none; border-bottom: 1px solid var(--border); margin-bottom: 20px; padding-bottom: 10px; max-height: 200px; }
}