/* Resume highlights: distinct styles for recent / current roles */
:root{
    --resume-accent-1: rgba(0, 240, 255, 0.12);
    --resume-accent-2: rgba(255, 51, 102, 0.12);
}

.cv-item--recent,
.cv-item--current{
    position: relative;
    border-radius: 14px;
    padding: 22px;
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
    overflow: visible;
}

/* Left accent stripe to make the card stand out */
.cv-item--recent::before,
.cv-item--current::before{
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px; /* match default card left border width */
    border-radius: 8px 0 0 8px;
    transform-origin: left center;
}

.cv-item--recent::before{
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-primary));
    box-shadow: 0 8px 30px rgba(0,240,255,0.06);
}

.cv-item--current::before{
    background: linear-gradient(180deg, var(--accent-secondary), var(--accent-secondary));
    box-shadow: 0 8px 30px rgba(255,51,102,0.06);
}

/* Smooth background transition for the left accent stripe */
.cv-item--recent::before,
.cv-item--current::before{
    transition: background 220ms ease, box-shadow 220ms ease;
}

/* On hover, ensure the left stripe of any cv-item (including highlighted ones) uses the hover color */
.cv-item--recent:hover::before{
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-primary));
}
.cv-item--current:hover::before{
    background: linear-gradient(180deg, var(--accent-secondary), var(--accent-secondary));
}

/* Slightly brighter border and soft lift */
.cv-item--recent{
    border: 1px solid rgba(0,240,255,0.12);
    background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.00));
    box-shadow: 0 12px 40px rgba(2,8,20,0.45);
}

.cv-item--current{
    --cv-hover-accent: var(--accent-secondary);
    border: 1px solid rgba(255,51,102,0.12);
    background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.00));
    box-shadow: 0 12px 40px rgba(20,6,10,0.45);
}

.cv-item--recent:hover,
.cv-item--current:hover{
    transform: translateY(-6px);
    box-shadow: 0 18px 60px rgba(2,8,20,0.55);
}

/* Responsive: reduce padding on small screens */
@media (max-width: 768px){
    .cv-item--recent, .cv-item--current{ padding: 16px; }
}

/* Learning journey: make progress bar match skills panels and span full width under text */
.learning-journey{
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: transparent; /* keep page rhythm; inner elements handle card visuals */
}

.learning-journey .learning-content{
    width: 100%;
}

.learning-journey .progress-wrapper{
    width: 100%;
    display: block;
    background: var(--bg-card);
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.03);
}

.learning-journey .progress-wrapper .progress-meta{
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 10px;
}

.learning-journey .progress-wrapper .progress-bar{
    width: 100%;
    height: 14px;
    background: rgba(255,255,255,0.04);
    border-radius: 999px;
    overflow: hidden;
}

.learning-journey .progress-wrapper .progress-fill{
    height: 100%;
    width: var(--progress, 0%);
    background: linear-gradient(90deg, #ffd700, var(--accent-primary));
    transition: width 600ms cubic-bezier(.2,.9,.2,1);
}

@media (max-width: 768px){
    .learning-journey .progress-wrapper{ padding: 14px; }
}

/* Distinct highlight for the learning progress card (where Jaime is now) */
.learning-journey .progress-wrapper{
    position: relative;
    background: linear-gradient(180deg, rgba(255,215,0,0.03), rgba(0,240,255,0.02));
    border: 1px solid rgba(255,215,0,0.16);
    box-shadow: 0 14px 50px rgba(255,215,0,0.04), inset 0 1px 0 rgba(255,255,255,0.02);
    transform: translateZ(0);
    animation: lj-pulse 4s ease-in-out infinite;
}

.learning-journey .progress-wrapper::before{
    content: "EN CURSO";
    position: absolute;
    left: 14px;
    top: -12px;
    background: #ffd700;
    color: #071018;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    letter-spacing: 0.6px;
    box-shadow: 0 6px 20px rgba(255,215,0,0.08);
}

@keyframes lj-pulse{
    0%{ box-shadow: 0 10px 30px rgba(255,215,0,0.03); }
    50%{ box-shadow: 0 22px 60px rgba(255,215,0,0.06); }
    100%{ box-shadow: 0 10px 30px rgba(255,215,0,0.03); }
}

/* Slightly larger fill for visual weight */
.learning-journey .progress-wrapper .progress-bar{ height: 16px; }

@media (max-width: 480px){
    .learning-journey .progress-wrapper::before{ left: 12px; top: -10px; font-size: 0.7rem; }
}

/* Subtle yellow highlight for the learning text card to match the progress box */
.learning-journey .learning-content{
    background: linear-gradient(180deg, rgba(255,215,0,0.015), rgba(255,215,0,0.00));
    border: 1px solid rgba(255,215,0,0.08);
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(255,215,0,0.02);
}

@media (max-width: 768px){
    .learning-journey .learning-content{ padding: 14px; }
}

/* Make the whole learning-journey a single highlighted card */
.learning-journey{
    background: linear-gradient(180deg, rgba(255,215,0,0.02), rgba(0,240,255,0.01));
    border: 1px solid rgb(234, 236, 110);
    /* increase top padding so the EN CURSO bar doesn't overlap the first paragraph */
    padding: 56px 28px 20px;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(2,8,20,0.45), inset 0 1px 0 rgba(255,255,255,0.01);
    position: relative;
    /* sit directly under the previous card so both appear integrated */
    margin-top: 0;
    width: auto;
    box-sizing: border-box;
}

/* Move the "EN CURSO" label to the outer card and hide the inner one */
.learning-journey::before{
    content: "EN CURSO";
    position: absolute;
    /* span the full inner width of the card (edge-to-edge) */
    left: 0;
    right: 0;
    top: 0;
    background: #ffd700;
    color: #071018;
    font-weight: 800;
    padding: 10px 0;
    /* rounded on top, square on bottom */
    border-radius: 18px 18px 0 0; /* top-left, top-right, bottom-right, bottom-left */
    font-size: 0.9rem;
    letter-spacing: 0.6px;
    box-shadow: 0 6px 20px rgba(255,215,0,0.08);
    z-index: 6;
    text-align: center;
}

/* subtle separator line between previous card (ANCCE) and this learning card */
/* removed visual separator to integrate this card with the one above */
.learning-journey .progress-wrapper::before{ content: none !important; }

/* Inner blocks become transparent so the outer card is the single container */
.learning-journey .learning-content{
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    margin-bottom: 12px;
}
.learning-journey .progress-wrapper{
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

@media (max-width: 768px){
    .learning-journey{ padding: 52px 14px 14px; }
    .learning-journey::before{ top: 0; font-size: 0.78rem; left: 0; right: 0; border-radius: 14px 14px 0 0; }
}
