.bgc1 {background-color: #1c2b2d}
.bgc2 {background-color: #1f6f8b}
.bgc3 {background-color: #99a8b2}
.bgc4 {background-color: #e6d5b8}

.c1 {color: #1c2b2d}
.c2 {color: #1f6f8b}
.c3 {color: #99a8b2}
.c4 {color: #e6d5b8}

.card-format p {
    margin-bottom: 5px;
}

body h1 {
    font-size: 25px;
}

body h2 {
    font-size: 20px;
}

.social-networks {
    font-size: 30px;
}

.button {
    border: none;
    text-decoration: none;
    background-color: #e6d5b8;
    padding: 10px 30px;
    border-radius: 8px;
    color: #1c2b2d;
    font-weight: bold;
}

.contact-link {
    color: #e6d5b8;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

.contact-link:hover,
.contact-link:focus {
    color: #ffffff;
    text-decoration-style: solid;
}

.profile-picture {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border: 4px solid #e6d5b8;
}

/* ---------- Page ---------- */
body {
    background-color: #f4f6f7;
    color: #1c2b2d;
}

/* ---------- Sections ---------- */
.cv-section {
    padding-top: 4rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #1c2b2d;
    margin-bottom: 1.75rem;
}

.section-title::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    margin-top: 0.6rem;
    border-radius: 2px;
    background-color: #1f6f8b;
}

/* ---------- Cards ---------- */
.cv-card {
    background-color: #ffffff;
    border: 1px solid #e3e8eb;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 1px 3px rgba(28, 43, 45, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

article.cv-card:hover {
    box-shadow: 0 8px 24px rgba(28, 43, 45, 0.10);
    transform: translateY(-2px);
}

.cv-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1c2b2d;
    margin-bottom: 0.35rem;
}

/* ---------- About ---------- */
.about-intro {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e3e8eb;
}

.about-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.about-icon {
    flex: 0 0 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background-color: rgba(31, 111, 139, 0.10);
    color: #1f6f8b;
}

.about-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.about-item p {
    color: #5a6b70;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ---------- Experience ---------- */
.job-role {
    color: #1f6f8b;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.job-dates {
    display: inline-block;
    font-size: 0.85rem;
    color: #5a6b70;
    background-color: #f4f6f7;
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    margin-bottom: 1rem;
}

.job-dates .fa {
    margin-right: 0.35rem;
}

.job-description {
    color: #5a6b70;
    line-height: 1.65;
    margin-bottom: 0;
}

/* ---------- Skills ---------- */
.skills-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5a6b70;
    margin: 0.75rem 0 0.75rem;
}

.skill-tags {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tags li {
    font-size: 0.9rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid #e3e8eb;
    background-color: #f4f6f7;
}

.skill-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
}

.skill-list li {
    position: relative;
    padding: 0.45rem 0 0.45rem 1.5rem;
    border-bottom: 1px solid #eef1f3;
    color: #3d4d51;
}

.skill-list li:last-child {
    border-bottom: none;
}

.skill-list li::before {
    content: "";
    position: absolute;
    left: 0.25rem;
    top: 1rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #1f6f8b;
}

@media (max-width: 575.98px) {
    .cv-section { padding-top: 3rem; }
    .cv-card { padding: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    .cv-card { transition: none; }
    article.cv-card:hover { transform: none; }
}

/* ---------- Print / PDF ---------- */
.print-only {
    display: none;
}

/* Language toggle (ES | EN) */
.lang-toggle {
    display: inline-flex;
    border: 1px solid #e6d5b8;
    border-radius: 8px;
    overflow: hidden;
}

.lang-option {
    border: none;
    background-color: transparent;
    color: #e6d5b8;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-option + .lang-option {
    border-left: 1px solid #e6d5b8;
}

.lang-option:hover {
    background-color: rgba(230, 213, 184, 0.15);
}

.lang-option:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: -2px;
}

.lang-option.active {
    background-color: #e6d5b8;
    color: #1c2b2d;
}

@media print {
    .no-print {
        display: none !important;
    }

    @page {
        size: A4;
        margin: 12mm;
    }

    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body {
        background-color: #ffffff;
        padding-bottom: 0 !important;
    }

    .container.pt-5 {
        padding-top: 0 !important;
    }

    .print-only {
        display: block;
    }

    .cv-section {
        padding-top: 1.5rem;
    }

    .section-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
        break-after: avoid;
        page-break-after: avoid;
    }

    .cv-card {
        padding: 1.25rem;
        box-shadow: none !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    article.cv-card:hover {
        transform: none;
    }

    .contact-link {
        text-decoration: none !important;
    }

    html {
        font-size: 14px;
    }

    /* Header: text left, photo right (same as desktop) */
    .bgc1 .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .bgc1 .order-md-last {
        order: 13;
        margin-bottom: 0 !important;
    }

    .bgc1 .card-body {
        padding: 1.5rem 2.5rem !important;
    }

    .profile-picture {
        width: 170px;
        height: 170px;
    }

    .social-networks {
        display: none;
    }

    /* Two columns where the desktop layout has them */
    .about-item.col-md-6,
    .cv-section .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .about-intro {
        font-size: 1rem;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }

    /* Experience starts on a new page, compact cards */
    .cv-section.page-break {
        break-before: page;
        page-break-before: always;
        padding-top: 0;
    }

    .cv-section .col-lg-6.mb-4 {
        margin-bottom: 0.75rem !important;
    }

    .cv-section .cv-card.h-100 {
        padding: 0.9rem 1.1rem;
    }

    .job-role {
        margin-bottom: 0.4rem;
    }

    .job-dates {
        margin-bottom: 0.5rem;
    }

    .job-description {
        font-size: 0.92rem;
        line-height: 1.5;
    }
}
