:root {
    --bg-color: #0d0d2b;
    --primary-color: #1a1a40;
    --accent-color-1: #4efdff;
    --accent-color-2: #b621fe;
    --text-color: #e0e0e0;
    --font-headings: 'Space Grotesk', sans-serif;
    --font-body: 'Poppins', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    margin: 0;
    overflow-x: hidden;
}
#canvas-container {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%; z-index: -1;
}

#transition-overlay { /* Estilo de la capa de transición */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color); /* Color de tu fondo */
    z-index: 9999; /* Asegura que esté por encima de todo */
    opacity: 0; /* Inicialmente invisible */
    pointer-events: none; /* Permite clics a través de ella cuando es invisible */
}

.hero {
    height: 100vh; display: flex;
    justify-content: center; align-items: center;
    text-align: center;
}
.hero-content h1 {
    font-family: var(--font-headings);
    font-size: clamp(3rem, 10vw, 6rem);
    margin: 0; color: #fff;
    text-shadow: 0 0 15px rgba(78, 253, 255, 0.5);
}
.hero-content p {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    color: var(--accent-color-1); margin: 20px 0 40px;
}
.cta-button {
    background: transparent; border: 2px solid var(--accent-color-1);
    color: var(--accent-color-1); padding: 12px 30px;
    text-decoration: none; font-weight: bold; border-radius: 50px;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
    position: relative; overflow: hidden;
}
.cta-button:hover {
    background-color: var(--accent-color-1); color: var(--bg-color);
    box-shadow: 0 0 25px var(--accent-color-1);
}
.section {
    padding: 100px 5%; max-width: 900px;
    margin: 0 auto; text-align: center;
}
.section-title {
    font-family: var(--font-headings); font-size: 3rem;
    color: var(--text-color); margin-bottom: 60px;
    text-shadow: 0 0 10px var(--accent-color-2);
}
.section-text { font-size: 1.1rem; line-height: 1.7; color: var(--text-color); }

/* Timeline */
.timeline {
    position: relative; padding: 20px 0;
    border-left: 2px solid var(--primary-color);
    text-align: left; max-width: 600px; margin: 0 auto;
}
.timeline-item { position: relative; padding-left: 40px; margin-bottom: 50px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
    position: absolute; left: -9px; top: 5px;
    width: 16px; height: 16px; border-radius: 50%;
    background-color: var(--accent-color-1);
    box-shadow: 0 0 15px var(--accent-color-1);
}
.timeline-date { /*font-family: var(--font-mono);*/ color: var(--accent-color-1); margin-bottom: 10px; font-size: 0.9rem; }
.timeline-content h3 { margin: 0 0 10px; font-size: 1.3rem; }
.timeline-content p { margin: 0; color: var(--text-color); opacity: 0.8; }

/* Proyectos */
.projects-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.project-card {
    background-color: var(--primary-color);
    border: 1px solid #2a2a5e;
    border-radius: 10px; padding: 30px;
    text-align: left; text-decoration: none;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    will-change: transform; /* Performance hint */
}
.project-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}
.project-content h3 { margin: 0 0 10px; font-size: 1.4rem; color: #fff; }
.project-content p { margin: 0; color: var(--text-color); opacity: 0.8; }

/* Habilidades */
.skills-grid {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 15px;
}
.skill-tag {
    background-color: var(--primary-color);
    border: 1px solid var(--accent-color-2);
    color: var(--text-color);
    padding: 10px 20px; border-radius: 20px;
    font-weight: 500;
    transition: transform 0.3s, box-shadow 0.3s;
}
.skill-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 15px var(--accent-color-2);
}

/* Footer */
.site-footer {
    padding: 60px 5%; text-align: center;
    background-color: var(--primary-color);
}
.site-footer h3 { font-size: 2rem; margin: 0 0 15px; }
.site-footer p { margin: 0 0 30px; opacity: 0.8; }
.footer-links a {
    color: var(--accent-color-1); text-decoration: none;
    margin: 0 15px; font-weight: 600;
    transition: text-shadow 0.3s;
}
.footer-links a:hover { text-shadow: 0 0 10px var(--accent-color-1); }

#experiencia-barra .experience-block {
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.experience-label {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--accent-color-1);
}

.experience-bar {
    background-color: var(--primary-color);
    border-radius: 10px;
    height: 25px;
    position: relative;
    overflow: hidden;
}

.experience-fill {
    background: linear-gradient(90deg, var(--accent-color-1), var(--accent-color-2));
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    height: 100%;
    line-height: 25px;
    padding-left: 10px;
    white-space: nowrap;
}

.skills-percentage {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-bar p {
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    color: var(--text-color);
}

.bar {
    height: 12px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 6px;
    overflow: hidden;
}

.fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color-2), var(--accent-color-1));
    border-radius: 6px;
}
