/* CSS variables for consistent color palette and spacing */
:root {
    --primary-color: #00a2e0; /* Turquoise/cyan-blue */
    --text-dark: #1e293b; /* Dark slate for name and section titles */
    --text-normal: #334155; /* Slate-700 for descriptions */
    --text-light: #64748b; /* Slate-500 for metadata and titles */
    --line-color: #1e293b; /* Color for horizontal lines */
    --circle-bg: #f1f5f9; /* Light slate for icon background */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Global Reset & Page Setup */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    color: var(--text-normal);
    background-color: #f8fafc;
    line-height: 1.4;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

/* Page container */
.cv-page {
    width: 210mm; /* A4 width */
    min-height: 297mm; /* A4 height */
    padding: 15mm;
    margin: 20px auto;
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* HEADER STYLING */
.cv-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.header-left {
    flex: 1;
    padding-right: 20px;
}

.name {
    font-size: 32px;
    font-weight: 400;
    color: var(--text-dark);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.subtitle {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--text-normal);
}

.icon {
    width: 13px;
    height: 13px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.header-right {
    flex-shrink: 0;
    margin-top: 5px;
}

.profile-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* COLUMN LAYOUT */
.cv-columns {
    display: flex;
    gap: 35px;
}

.column-left {
    flex: 1.15; /* Adjusted to make right column wider */
}

.column-right {
    flex: 1; /* Wider column for skills/interests */
}

/* SECTION STYLING */
.section {
    margin-bottom: 20px;
}

.section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-light);
    border-bottom: 1.5px solid var(--line-color);
    padding-bottom: 4px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

/* EXPERIENCE & EDUCATION */
.experience-item, .education-item {
    margin-bottom: 14px;
}

.item-title {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 10.5px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.company, .school {
    color: var(--primary-color);
    font-weight: 600;
}

.meta-detail {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.meta-icon {
    width: 11px;
    height: 11px;
    color: var(--text-light);
}

.bullet-list {
    margin: 0;
    padding-left: 14px;
    font-size: 10.5px;
    color: var(--text-normal);
    line-height: 1.45;
}

.bullet-list li {
    margin-bottom: 4px;
}

/* LANGUAGES */
.languages-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 5px;
}

.language-item {
    display: flex;
    align-items: center;
    font-size: 11px;
    flex: 1;
}

.language-name {
    font-weight: 600;
    color: var(--text-dark);
    width: 55px;
}

.language-level {
    color: var(--text-light);
    margin-right: 12px;
}

.language-dots {
    display: inline-flex;
    gap: 3px;
}

.dot {
    width: 6.5px;
    height: 6.5px;
    border-radius: 50%;
    background: #cbd5e1; /* Unfilled dot */
}

.dot.filled {
    background: #0f172a; /* Filled dot */
}

/* COMPETENCIAS & INTERESES */
.competencies-grid, .interests-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.competency-item, .interest-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.competency-icon-container, .interest-icon-container {
    flex-shrink: 0;
}

.circle-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: var(--circle-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.diamond-icon {
    width: 10px;
    height: 10px;
}

.competency-text, .interest-text {
    font-size: 10.5px;
}

.competency-title, .interest-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 2px;
}

.competency-desc, .interest-desc {
    color: var(--text-normal);
    line-height: 1.4;
}

/* HABILIDADES (Right column tag styling) */
.skills-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.skill-category-link {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 3px;
    display: block;
}

.skill-tag {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-dark);
    border-bottom: 1.5px solid var(--text-light);
    padding-bottom: 2px;
    display: inline-block;
}

/* PRINT STYLES */
@media print {
    body {
        background-color: #ffffff;
    }
    .cv-page {
        width: 100%;
        min-height: 100%;
        margin: 0;
        padding: 0;
        box-shadow: none;
    }
    
    /* Ensure content stays on a single page */
    html, body {
        width: 210mm;
        height: 297mm;
    }
}
