/* -------------------------------------------------------------------
    CV de Guissel E. Alemán Lopez - Hoja de Estilos Principal
    Diseño: "Elegancia Digital Interactiva"
------------------------------------------------------------------- */

/* ------------------- */
/* 1. Variables y Reset */
/* ------------------- */
:root {
    --dark-navy: #0a192f;
    --navy: #112240;
    --light-navy: #233554;
    --lightest-navy: #303C55;
    --navy-shadow: rgba(2, 12, 27, 0.7);

    --slate: #8892b0;
    --light-slate: #a8b2d1;
    --lightest-slate: #ccd6f6;
    
    --white: #e6f1ff;
    --accent-cyan: #64ffda;
    --accent-gold: #B08D57;

    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Roboto Mono', monospace;

    --fz-xxl: 2.5rem;
    --fz-xl: 2rem;
    --fz-lg: 1.5rem;
    --fz-md: 1.1rem;
    --fz-sm: 0.9rem;

    --border-radius: 4px;
    --nav-height: 100px;
    --nav-scroll-height: 70px;
    --tab-height: 42px;
    --tab-width: 120px;
    
    --easing: cubic-bezier(0.645, 0.045, 0.355, 1);
    --transition: all 0.25s var(--easing);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--dark-navy);
    color: var(--slate);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: none; /* Ocultamos el cursor por defecto */
}

/* ------------------- */
/* 2. Cursor Personalizado */
/* ------------------- */
.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

body:hover .cursor-dot, body:hover .cursor-outline {
    opacity: 1;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-cyan);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-cyan);
    transition: width 0.3s, height 0.3s, border-color 0.3s, transform 0.1s linear;
}

.cursor-outline.hover {
    width: 60px;
    height: 60px;
    border-color: var(--accent-gold);
}

/* ------------------- */
/* 3. Portada (Hero) */
/* ------------------- */
#hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 2rem;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}

#bgvid {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.85); /* Overlay oscuro */
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    color: var(--white);
    z-index: 1;
}

.name-title {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: clamp(20px, 4vw, 32px);
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    font-family: var(--font-mono);
}

.summary-intro {
    font-size: var(--fz-md);
    color: var(--lightest-slate);
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* ------------------- */
/* 4. Botones y Links */
/* ------------------- */
.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--accent-cyan);
    border-radius: var(--border-radius);
    color: var(--accent-cyan);
    background-color: transparent;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: var(--fz-md);
    transition: var(--transition);
}

.cta-button:hover {
    background-color: rgba(100, 255, 218, 0.1);
}

/* ------------------- */
/* 5. Navegación Lateral */
/* ------------------- */
.side-nav {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    z-index: 10;
}

.side-nav ul {
    list-style: none;
}

.side-nav li {
    margin: 1.5rem 0;
    text-align: right;
}

.side-nav a {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-decoration: none;
    color: var(--slate);
    transition: var(--transition);
}

.side-nav a::after {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    margin-left: 10px;
    background-color: var(--slate);
    transition: var(--transition);
}

.side-nav a span {
    display: none; /* Se muestra en hover */
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-size: var(--fz-sm);
    opacity: 0;
    transition: var(--transition);
}

.side-nav a:hover,
.side-nav a.active {
    color: var(--accent-cyan);
}

.side-nav a:hover::after,
.side-nav a.active::after {
    width: 50px;
    background-color: var(--accent-cyan);
}

.side-nav a:hover span {
    display: inline;
    opacity: 1;
}

/* ------------------- */
/* 6. Contenido Principal y Secciones */
/* ------------------- */
#content {
    padding: 0 150px;
    max-width: 1200px;
    margin: 0 auto;
}

.content-section {
    padding: 100px 0;
}

.section-title {
    display: flex;
    align-items: center;
    font-size: var(--fz-xxl);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2rem;
    white-space: nowrap;
}

.section-title::after {
    content: '';
    display: block;
    position: relative;
    top: 2px;
    width: 300px;
    height: 1px;
    margin-left: 20px;
    background-color: var(--light-navy);
}

/* ------------------- */
/* 7. Línea de Tiempo (Experiencia) */
/* ------------------- */
.timeline {
    position: relative;
    padding-left: 50px;
    border-left: 2px solid var(--light-navy);
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -59px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--dark-navy);
    border: 2px solid var(--accent-cyan);
    transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.2);
    background-color: var(--accent-cyan);
}

.timeline-content {
    background: var(--navy);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -15px var(--navy-shadow);
}

.timeline-date {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-size: var(--fz-sm);
    margin-bottom: 0.5rem;
}

.item-title {
    font-size: var(--fz-lg);
    color: var(--white);
    margin-bottom: 0.25rem;
}

.item-subtitle {
    color: var(--light-slate);
    margin-bottom: 1rem;
}

.item-description {
    font-size: var(--fz-md);
    color: var(--slate);
}

/* ------------------- */
/* 8. Habilidades, Educación y Contacto */
/* ------------------- */
.skills-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.skills-list li {
    font-family: var(--font-mono);
    font-size: var(--fz-sm);
    color: var(--light-slate);
    position: relative;
    padding-left: 20px;
}

.skills-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.education-item {
    background-color: var(--light-navy);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

#contact.text-center {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-pitch {
    margin: 1.5rem 0;
    font-size: var(--fz-lg);
    color: var(--lightest-slate);
}

.contact-links {
    margin-top: 2rem;
}

.contact-links a {
    margin: 0 1rem;
}

/* --- CAMBIO REALIZADO AQUÍ --- */
.contact-links img {
    width: 24px;
    height: 24px;
    transition: var(--transition);
    /* Este filtro se usa para colorear el icono con el color --lightest-slate (#ccd6f6)
       Es necesario porque la propiedad 'color' o 'fill' no funciona en etiquetas <img> */
    filter: brightness(0) saturate(100%) invert(91%) sepia(10%) saturate(456%) hue-rotate(189deg) brightness(91%) contrast(93%);
}

.contact-links a:hover img {
    transform: translateY(-5px);
    /* Al pasar el cursor, cambiamos el color al --accent-cyan (#64ffda) */
    filter: brightness(0) saturate(100%) invert(84%) sepia(34%) saturate(929%) hue-rotate(97deg) brightness(106%) contrast(101%);
}
/* --- FIN DEL CAMBIO --- */


/* ------------------- */
/* 9. Footer */
/* ------------------- */
.main-footer {
    text-align: center;
    padding: 2rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--slate);
}


/* ------------------- */
/* 10. Responsive Design */
/* ------------------- */
@media (max-width: 1080px) {
    #content {
        padding: 0 100px;
    }
}

@media (max-width: 768px) {
    #content {
        padding: 0 50px;
    }
    .side-nav {
        display: none; /* Ocultar nav lateral en móviles */
    }
    .section-title::after {
        width: 100px;
    }
}

@media (max-width: 480px) {
    #content {
        padding: 0 25px;
    }
}