:root {
    --bg-color: #050505;
    --primary: #ff0000;
    /* Red */
    --secondary: #8f0000;
    --text: #e0e0e0;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 0, 0, 0.2);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text);
    font-family: 'Fira Code', monospace;
    overflow-x: hidden;
}

#matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.8;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, #000 90%);
    z-index: -1;
    pointer-events: none;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--glass-border);
    opacity: 0;
    pointer-events: none;
    /* Evitar clicks mientras es invisible */
    transition: opacity 0.8s ease;
}

.header-visible,
header.visible {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0s;
    /* Aparición instantánea para el swap con el código */
}

/* Estilos para la aparición secuencial del contenido del header */
header .logo,
header .nav-link,
header .hamburger {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

header.visible .logo,
header.visible .nav-link,
header.visible .hamburger {
    opacity: 1;
    transform: translateY(0);
    /* Los delays se gestionarán dinámicamente en JS o aquí si fueran fijos */
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    margin-left: 30px;
    transition: 0.3s;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary);
}

main {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero {
    height: 90vh;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    z-index: 2;
}

/* --- Imagen Glitcheada --- */
.hero-image-container {
    position: absolute;
    right: 2%;
    /* Aumentamos la separación moviéndolo más a la derecha */
    top: 50%;
    transform: translateY(-40%);
    /* Empieza un poco más abajo para la animación */
    width: 450px;
    height: 450px;
    z-index: 1;
    opacity: 0;
    /* Oculto inicialmente */
    transition: opacity 1.5s ease, transform 1.5s ease-out;
}

/* Efecto Glitch Intenso con pseudo-elementos */
.hero-image-container::before,
.hero-image-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('Gemini_Generated.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.6;
    pointer-events: none;
}

.hero-image-container::before {
    animation: glitch-img-1 2.5s infinite linear alternate-reverse;
    mix-blend-mode: hard-light;
}

.hero-image-container::after {
    animation: glitch-img-2 3s infinite linear alternate-reverse;
    mix-blend-mode: exclusion;
}

@keyframes glitch-img-1 {
    0% {
        clip-path: inset(10% 0 80% 0);
        transform: translate(-1px, 0.5px);
        filter: hue-rotate(0deg);
    }

    20% {
        clip-path: inset(80% 0 5% 0);
        transform: translate(1px, -0.5px);
        filter: hue-rotate(90deg);
    }

    40% {
        clip-path: inset(30% 0 50% 0);
        transform: translate(-1px, 1px);
        filter: invert(0.1);
    }

    60% {
        clip-path: inset(10% 0 20% 0);
        transform: translate(1px, -1px);
        filter: hue-rotate(45deg);
    }

    80% {
        clip-path: inset(50% 0 10% 0);
        transform: translate(-0.5px, 0.5px);
    }

    100% {
        clip-path: inset(0% 0 0% 0);
        transform: translate(0, 0);
    }
}

@keyframes glitch-img-2 {
    0% {
        clip-path: inset(5% 0 60% 0);
        transform: translate(1px, -0.5px);
    }

    20% {
        clip-path: inset(60% 0 10% 0);
        transform: translate(-1px, 0.5px);
    }

    40% {
        clip-path: inset(20% 0 50% 0);
        transform: translate(1px, 1px);
    }

    60% {
        clip-path: inset(10% 0 10% 0);
        transform: translate(-1px, -1px);
    }

    80% {
        clip-path: inset(40% 0 20% 0);
        transform: translate(0.5px, -0.5px);
    }

    100% {
        clip-path: inset(0% 0 0% 0);
        transform: translate(0, 0);
    }
}

/* Clase para mostrar la imagen */
.hero-image-container.visible {
    opacity: 1;
    transform: translateY(-50%);
}

/* Ocultar imagen en móvil y ajustar layout */
@media (max-width: 1100px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }

    .hero-image-container {
        display: none;
    }
}

.glitch {
    font-size: 4rem;
    font-weight: bold;
    color: var(--text);
    position: relative;
    font-family: 'Orbitron', sans-serif;
    opacity: 0;
    /* Oculto inicialmente para la animación */
    transition: opacity 0.3s ease;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 red;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 blue;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

.glitch.visible {
    opacity: 1;
}

@keyframes glitch-anim {
    0% {
        clip: rect(10px, 9999px, 30px, 0);
    }

    20% {
        clip: rect(80px, 9999px, 100px, 0);
    }

    40% {
        clip: rect(10px, 9999px, 50px, 0);
    }

    60% {
        clip: rect(60px, 9999px, 80px, 0);
    }

    80% {
        clip: rect(20px, 9999px, 60px, 0);
    }

    100% {
        clip: rect(90px, 9999px, 100px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(60px, 9999px, 80px, 0);
    }

    20% {
        clip: rect(10px, 9999px, 30px, 0);
    }

    40% {
        clip: rect(90px, 9999px, 100px, 0);
    }

    60% {
        clip: rect(20px, 9999px, 40px, 0);
    }

    80% {
        clip: rect(50px, 9999px, 70px, 0);
    }

    100% {
        clip: rect(10px, 9999px, 20px, 0);
    }
}

.typewriter {
    font-size: 1.5rem;
    margin: 20px 0;
    color: var(--primary);
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.btn-neon {
    padding: 15px 30px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.3s;
    box-shadow: 0 0 10px transparent;
    margin-top: 20px;
    display: inline-block;
    cursor: pointer;
}

.btn-neon:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px var(--primary);
}

.section {
    margin-bottom: 150px;
    opacity: 0;
    transform: translateY(50px);
    transition: 1s all ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--secondary);
    display: inline-block;
    padding-bottom: 5px;
    color: var(--primary);
}

.card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: transform 0.1s ease-out, box-shadow 0.3s, border-color 0.3s;
    transform-style: preserve-3d;
    will-change: transform;
}

.card:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(255, 0, 0, 0.2);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.skill-item {
    padding: 8px 16px;
    border: 1px solid var(--secondary);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.tags span {
    font-size: 0.8rem;
    margin-right: 10px;
    color: #888;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.input-group {
    position: relative;
    margin-bottom: 30px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #555;
    color: #fff;
    outline: none;
    font-family: inherit;
}

.input-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: #555;
    pointer-events: none;
    transition: 0.3s;
}

.input-group input:focus~label,
.input-group input:valid~label,
.input-group textarea:focus~label,
.input-group textarea:valid~label {
    top: -20px;
    color: var(--primary);
    font-size: 0.8rem;
}

.input-group input:focus,
.input-group textarea:focus {
    border-bottom: 1px solid var(--primary);
}

/* --- System Footer --- */
.system-footer {
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.9);
    padding: 10px 20px;
    font-size: 0.8rem;
    color: #555;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.system-status {
    display: flex;
    gap: 15px;
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.led-indicator {
    width: 8px;
    height: 8px;
    background-color: #0f0;
    border-radius: 50%;
    box-shadow: 0 0 5px #0f0;
    animation: led-blink 2s infinite;
}

@keyframes led-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.status-separator {
    color: #333;
}

.copyright p {
    margin: 0;
    opacity: 0.7;
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--primary);
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
    transition: 0.3s;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px var(--primary);
    animation: glitch-btn 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
}

@keyframes glitch-btn {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

.about-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-img-wrapper {
    flex-shrink: 0;
}

.profile-img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 20px;
    border: 2px solid var(--primary);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.2);
    filter: grayscale(100%) contrast(1.2);
    transition: all 0.4s ease;
}

.profile-img:hover {
    filter: grayscale(0%) contrast(1);
    box-shadow: 0 0 30px var(--primary);
    transform: scale(1.02);
}

@media (max-width: 850px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .skills-grid {
        justify-content: center;
    }
}

.tech-list {
    list-style: none;
    margin-left: 5px;
}

.tech-list li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
    color: var(--text);
}

.tech-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.map-container iframe {
    width: 100%;
    border-radius: 10px;
    /* Filtro para invertir colores y que el mapa parezca modo oscuro/hacker */
    filter: invert(90%) hue-rotate(180deg) contrast(1.2);
}

/* --- Menú Hamburguesa y Sidebar --- */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    transition: 0.3s;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    /* Clase que añadiremos con JS al contenedor de links */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid var(--glass-border);
        display: flex;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(255, 0, 0, 0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        margin: 20px 0;
        font-size: 1.2rem;
        margin-left: 0;
    }

    /* Animación del icono hamburguesa a X */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
}

/* Animación del código volador */
.flying-code {
    position: fixed;
    color: var(--primary);
    font-family: 'Fira Code', monospace;
    font-size: 1.5rem;
    z-index: 9999;
    pointer-events: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 0 10px var(--primary);
}

/* --- Software Grid --- */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.software-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-decoration: none;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}

.software-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.software-icon {
    width: 50px;
    height: 50px;
    fill: var(--text);
    transition: 0.3s;
}

.software-icon-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: 0.3s;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.3));
}

.software-card:hover .software-icon {
    fill: var(--primary);
    filter: drop-shadow(0 0 5px var(--primary));
}

.software-card:hover .software-icon-img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px var(--primary));
}

.software-name {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.footer-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    text-shadow: 0 0 5px var(--secondary);
    margin: 0 15px;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

.software-card:hover .software-name {
    color: var(--primary);
}

/* --- Torre de Ajedrez Glitcheada --- */
.rook {
    position: relative;
    font-size: 1.8rem;
    color: var(--primary);
    display: inline-block;
}

.rook::before,
.rook::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    /* Oculta parcialmente el original para el efecto slice */
}

.rook::before {
    left: 2px;
    text-shadow: -1px 0 #00ffff;
    animation: glitch-rook-1 2.5s infinite linear alternate-reverse;
}

.rook::after {
    left: -2px;
    text-shadow: -1px 0 #ff00ff;
    animation: glitch-rook-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-rook-1 {
    0% {
        clip: rect(2px, 50px, 5px, 0);
    }

    20% {
        clip: rect(15px, 50px, 20px, 0);
    }

    40% {
        clip: rect(5px, 50px, 10px, 0);
    }

    60% {
        clip: rect(20px, 50px, 25px, 0);
    }

    80% {
        clip: rect(0px, 50px, 5px, 0);
    }

    100% {
        clip: rect(10px, 50px, 15px, 0);
    }
}

@keyframes glitch-rook-2 {
    0% {
        clip: rect(15px, 50px, 20px, 0);
    }

    20% {
        clip: rect(2px, 50px, 6px, 0);
    }

    40% {
        clip: rect(22px, 50px, 26px, 0);
    }

    60% {
        clip: rect(8px, 50px, 11px, 0);
    }

    80% {
        clip: rect(18px, 50px, 21px, 0);
    }

    100% {
        clip: rect(4px, 50px, 9px, 0);
    }
}

/* --- Timeline Cyberpunk --- */
.timeline-container {
    padding: 20px 0;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline {
    list-style: none;
    padding: 0;
    position: relative;
}

/* Línea central de neón */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 40px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 40px;
}

.timeline-content {
    position: relative;
    transition: 0.3s;
}

/* Flecha de conexión */
.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 0;
    height: 0;
    border-style: solid;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -10px;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--glass-border);
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--glass-border) transparent transparent;
}

/* Puntos de neón centrales */
.timeline-dot {
    position: absolute;
    top: 20px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: #000;
    border: 2px solid var(--primary);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 10px var(--primary);
    transition: 0.3s;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-item:hover .timeline-dot {
    background: var(--primary);
    box-shadow: 0 0 20px var(--primary), 0 0 40px var(--primary);
    transform: scale(1.2);
}

.timeline-date {
    position: absolute;
    top: -25px;
    color: #fff;
    font-weight: 300;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
    font-size: 1.1rem;
}

.timeline-item:nth-child(odd) .timeline-date {
    right: 40px;
}

.timeline-item:nth-child(even) .timeline-date {
    left: 40px;
}

/* Responsive para Timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -10px;
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--glass-border) transparent transparent;
    }

    .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 10px;
        right: auto;
    }

    .timeline-date {
        top: -20px;
        left: 50px !important;
        right: auto !important;
        font-size: 0.9em;
    }
}

/* =========================================
   ESTILOS ESPECÍFICOS DEL CURRICULUM
   ========================================= */

.cv-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

@media (min-width: 900px) {
    .cv-layout {
        grid-template-columns: 300px 1fr;
    }
}

.cv-sidebar .card {
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.85);
}

.cv-photo {
    width: 100%;
    max-width: 200px;
    display: block;
    margin: 0 auto 15px auto;
    border-radius: 10px;
    border: 2px solid var(--primary);
}

.cv-section {
    margin-bottom: 30px;
}

ul.cv-list {
    list-style: none;
    padding-left: 0;
}

ul.cv-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

ul.cv-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Ajuste para que el header fijo no tape el contenido al navegar en CV */
.cv-page .card[id] {
    scroll-margin-top: 120px;
}

/* --- NAVEGACIÓN EXCLUSIVA PARA CV (.cv-page) --- */
/* Forzamos el menú hamburguesa y sidebar siempre visible solo en esta página */

.cv-page header .hamburger {
    display: flex !important;
}

.cv-page nav {
    position: fixed !important;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--glass-border);
    display: flex !important;
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(255, 0, 0, 0.1);
}

.cv-page nav.active {
    right: 0;
}

.cv-page nav .nav-link {
    margin: 20px 0;
    font-size: 1.2rem;
    margin-left: 0;
}

/* Animación de las 3 rayitas (necesario repetirlo fuera del media query para CV en escritorio) */
.cv-page .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.cv-page .hamburger.active span:nth-child(2) {
    opacity: 0;
}

.cv-page .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}