/* ===== CV WEB — Replica del PDF ===== */

/* -- Toolbar above CV -- */
.cv-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.cv-toolbar__title {
    color: var(--text-accent);
    margin-bottom: 0.3rem;
}

.cv-toolbar__meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cv-toolbar__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* -- CV Card -- */
.cv {
    display: grid;
    grid-template-columns: 38% 1fr;
    background: #1a2a3e;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-soft);
    max-width: 960px;
    margin: 0 auto;
}

/* -- Sidebar (left column) -- */
.cv__sidebar {
    background: #15253a;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    border-right: 2px solid rgba(100, 255, 218, 0.15);
}

/* Name block */
.cv__firstname {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.35em;
    color: var(--text-primary);
    line-height: 1.1;
}

.cv__lastname {
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.cv__role {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--accent-blue);
    text-transform: uppercase;
}

/* Contact items */
.cv__contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cv__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.cv__contact-item > i {
    color: var(--accent-blue);
    font-size: 1.1rem;
    margin-top: 0.15rem;
    min-width: 20px;
    text-align: center;
}

.cv__contact-item strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
}

.cv__contact-item span,
.cv__contact-item a {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.4;
    word-break: break-word;
}

.cv__contact-item a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.cv__contact-item a:hover {
    color: var(--accent-blue);
}

/* Section titles (shared) */
.cv__section-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid rgba(100, 255, 218, 0.25);
    text-transform: uppercase;
}

/* Languages */
.cv__languages {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.cv__lang-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cv__lang-row span:first-child {
    font-weight: 500;
    color: var(--text-primary);
}

/* Education */
.cv__edu-item {
    margin-bottom: 1rem;
}

.cv__edu-item:last-child {
    margin-bottom: 0;
}

.cv__edu-item strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cv__edu-item span {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Tech grid */
.cv__tech-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.6rem;
}

.cv__tech-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(100, 255, 218, 0.06);
    border: 1px solid rgba(100, 255, 218, 0.12);
    border-radius: var(--radius-sm);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.cv__tech-icon:hover {
    transform: scale(1.12);
    border-color: rgba(100, 255, 218, 0.4);
}

.cv__tech-icon i {
    font-size: 1.5rem;
}

/* -- Main content (right column) -- */
.cv__main {
    padding: 2.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

/* Photo */
.cv__photo-wrapper {
    display: flex;
    justify-content: flex-end;
}

.cv__photo {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 3px solid rgba(100, 255, 218, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Profile text */
.cv__text {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* Experience items */
.cv__exp-item {
    margin-bottom: 1.2rem;
}

.cv__exp-item:last-child {
    margin-bottom: 0;
}

.cv__exp-role {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.cv__exp-list {
    list-style: none;
    padding: 0;
}

.cv__exp-list li {
    position: relative;
    padding-left: 1rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.cv__exp-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-blue);
}

/* -- Actions below CV -- */
.cv-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* -- PDF download button (keep existing) -- */
.pdf-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-blue);
    text-decoration: none;
    transition: var(--transition);
    min-width: 44px;
    min-height: 44px;
}

.pdf-download:hover {
    color: var(--text-accent);
    transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .cv {
        grid-template-columns: 1fr;
    }

    .cv__sidebar {
        border-right: none;
        border-bottom: 2px solid rgba(100, 255, 218, 0.15);
        padding: 2rem 1.5rem;
    }

    .cv__firstname {
        font-size: 1.6rem;
    }

    .cv__lastname {
        font-size: 2.4rem;
    }

    .cv__main {
        padding: 2rem 1.5rem;
    }

    .cv__photo-wrapper {
        justify-content: center;
    }

    .cv__photo {
        width: 130px;
        height: 130px;
    }

    .cv__tech-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .cv-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .cv__sidebar,
    .cv__main {
        padding: 1.5rem 1rem;
    }

    .cv__firstname {
        font-size: 1.3rem;
        letter-spacing: 0.2em;
    }

    .cv__lastname {
        font-size: 2rem;
        letter-spacing: 0.15em;
    }

    .cv__role {
        font-size: 0.75rem;
        letter-spacing: 0.2em;
    }

    .cv__tech-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .cv__photo {
        width: 110px;
        height: 110px;
    }
}
