:root {
    --bg-color: #050505;
    --card-bg: #111111;
    --accent-color: #FBFF12;
    --text-main: #ffffff;
    --text-muted: #999999;
    --border-color: #333333;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg-color); color: var(--text-main); font-family: 'Helvetica Neue', Arial, sans-serif; line-height: 1.6; overflow-x: hidden; }

/* HEADER RE-ESTRUCTURADO */
header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(5,5,5,0.8); backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color); padding: 15px 0;
}

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

.logo { font-weight: 900; font-size: 1.3rem; z-index: 1101; }
.logo span { color: var(--accent-color); }

.nav-menu ul { display: flex; gap: 30px; list-style: none; }
.nav-menu a { text-transform: uppercase; font-size: 0.75rem; font-weight: 700; color: white; letter-spacing: 1px; text-decoration: none; }
.nav-menu a:hover { color: var(--accent-color); }

/* HERO */
.hero {
    position: relative; width: 100%; height: 100vh;
    display: flex; align-items: flex-end; padding: 60px; overflow: hidden;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('images/JavieroBanner2.jpg'); background-size: cover; background-position: center;
    filter: grayscale(100%); transition: 0.8s ease; z-index: 0;
}
.hero:hover .hero-bg { filter: grayscale(0%); }
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 70%); z-index: 1;
}
.hero-content { position: relative; z-index: 2; width: 100%; }
.hero h1 { font-size: clamp(3.5rem, 10vw, 8rem); line-height: 0.85; font-weight: 900; text-transform: uppercase; }
.hero h1 span { color: var(--accent-color); }
.hero p { font-size: 1.1rem; margin-top: 10px; color: var(--text-main); max-width: 600px; }

/* MARQUEE */
.marquee { background: var(--accent-color); color: black; padding: 15px 0; overflow: hidden; font-weight: 900; }
.marquee-content { display: inline-block; animation: scroll 30s linear infinite; white-space: nowrap; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* SECCIONES */
.section-container { max-width: 1400px; margin: 0 auto; padding: 80px 40px; }
.section-title { font-size: 2.5rem; text-transform: uppercase; border-left: 5px solid var(--accent-color); padding-left: 20px; margin-bottom: 40px; }

/* SOBRE MÍ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.big-statement { font-size: 2.8rem; font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.highlight { color: var(--accent-color); font-style: italic; }
.stats-grid { display: flex; gap: 15px; margin-top: 30px; }
.stat-box { background: var(--card-bg); border: 1px solid var(--border-color); padding: 25px; flex: 1; text-align: center; }
.stat-num { display: block; font-size: 2rem; color: var(--accent-color); font-weight: 900; }

/* SKILLS */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.skill-card { background: var(--card-bg); padding: 40px; border: 1px solid var(--border-color); transition: 0.3s; }
.skill-card i { color: var(--accent-color); font-size: 2rem; margin-bottom: 15px; display: block; }
.skill-card:hover { background: var(--accent-color); color: black; }
.skill-card:hover * { color: black; }

/* VIDEOS 2x2 */
.video-grid-four { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.video-frame { position: relative; padding-bottom: 56.25%; height: 0; background: #000; border: 1px solid var(--border-color); }
.video-frame iframe { position: absolute; top:0; left:0; width:100%; height:100%; border:0; }
.video-meta { margin-top: 10px; font-weight: 700; text-transform: uppercase; font-size: 0.9rem; }

/* PRENSA */
.press-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.press-card { background: var(--card-bg); border: 1px solid var(--border-color); overflow: hidden; }
.press-img-container { height: 500px; overflow: hidden; }
.press-img { width: 100%; height: 100%; object-fit: cover;  transition: 0.6s; }
.press-card:hover .press-img { transform: scale(1.05); filter: grayscale(0); }
.press-content { padding: 25px; }

/* FOOTER */
footer { padding: 60px 40px; text-align: center; border-top: 1px solid var(--border-color); }
.footer-social { display: flex; justify-content: center; gap: 30px; margin-bottom: 25px; }
.footer-social a { font-size: 1.6rem; color: white; transition: 0.3s; }
.footer-social a:hover { color: var(--accent-color); transform: translateY(-3px); }

/* MOBILE MENU */
.menu-toggle { display: none; flex-direction: column; cursor: pointer; }
.menu-toggle .bar { width: 25px; height: 3px; background: white; margin: 4px 0; transition: 0.4s; }

/* BOTÓN SCROLL UP NUEVO */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background-color: var(--accent-color); /* Amarillo */
    color: #000000; /* Icono negro */
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transform: translateY(20px);
}

#scrollTopBtn.show {
    opacity: 1; visibility: visible; transform: translateY(0);
}

#scrollTopBtn:hover {
    background-color: #fff; /* Hover blanco */
    transform: scale(1.1);
}

@media (max-width: 900px) {
    .header-container { padding: 0 20px; }
    .nav-menu {
        position: fixed; left: -100%; top: 0; background: rgba(5,5,5,0.95);
        width: 100%; height: 100vh; flex-direction: column; justify-content: center; transition: 0.5s;
    }
    .nav-menu.active { left: 0; }
    .nav-menu ul { flex-direction: column; align-items: center; gap: 30px; }
    .nav-menu a { font-size: 1.5rem; }
    .menu-toggle { display: flex; z-index: 1101; }
    .about-grid, .press-grid, .video-grid-four { grid-template-columns: 1fr; }
    .hero { padding: 30px; }
    .hero h1 { font-size: 3.5rem; }
}
/* --- ENLACES DEL CUERPO (BODY) --- */
/* Esto afecta a los links dentro de las secciones Home, About, Skills, etc. */

/* 1. Estado Normal (Link sin visitar) */
section a {
    color: var(--accent-color); /* Se verán Amarillos (#FBFF12) */
    text-decoration: underline; /* Subrayado para que se note que es un link */
    font-weight: bold;
    transition: all 0.3s ease;
}

/* 2. Estado Visitado (Link al que ya entraste) */
section a:visited {
    color: #999999; /* Se pone Gris una vez visitado */
}

/* 3. Estado Hover (Al pasar el mouse) */
section a:hover {
    color: #ffffff; /* Se pone Blanco al pasar el mouse */
    text-decoration: none; /* Se quita el subrayado */
    cursor: pointer;
}

/* 4. Estado Activo (Mientras mantienes el click presionado) */
section a:active {
    color: #ff0000; /* Se pone Rojo justo al hacer click */
}