@font-face {
    font-family: 'Urbanist';
    src: url('./fonts/Urbanist-BlackItalic.woff2') format('woff2'),
        url('./fonts/Urbanist-BlackItalic.woff') format('woff');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Urbanist';
    src: url('./fonts/Urbanist-Black.woff2') format('woff2'),
        url('./fonts/Urbanist-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Urbanist';
    src: url('./fonts/Urbanist-Bold.woff2') format('woff2'),
        url('./fonts/Urbanist-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Urbanist';
    src: url('./fonts/Urbanist-BoldItalic.woff2') format('woff2'),
        url('./fonts/Urbanist-BoldItalic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Urbanist';
    src: url('./fonts/Urbanist-ExtraBold.woff2') format('woff2'),
        url('./fonts/Urbanist-ExtraBold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Urbanist';
    src: url('./fonts/Urbanist-ExtraBoldItalic.woff2') format('woff2'),
        url('./fonts/Urbanist-ExtraBoldItalic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Urbanist';
    src: url('./fonts/Urbanist-ExtraLight.woff2') format('woff2'),
        url('./fonts/Urbanist-ExtraLight.woff') format('woff');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Urbanist';
    src: url('./fonts/Urbanist-ExtraLightItalic.woff2') format('woff2'),
        url('./fonts/Urbanist-ExtraLightItalic.woff') format('woff');
    font-weight: 200;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Urbanist';
    src: url('./fonts/Urbanist-Italic.woff2') format('woff2'),
        url('./fonts/Urbanist-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Urbanist';
    src: url('./fonts/Urbanist-Light.woff2') format('woff2'),
        url('./fonts/Urbanist-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Urbanist';
    src: url('./fonts/Urbanist-LightItalic.woff2') format('woff2'),
        url('./fonts/Urbanist-LightItalic.woff') format('woff');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Urbanist';
    src: url('./fonts/Urbanist-Medium.woff2') format('woff2'),
        url('./fonts/Urbanist-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Urbanist';
    src: url('./fonts/Urbanist-MediumItalic.woff2') format('woff2'),
        url('./fonts/Urbanist-MediumItalic.woff') format('woff');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Urbanist';
    src: url('./fonts/Urbanist-Regular.woff2') format('woff2'),
        url('./fonts/Urbanist-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Urbanist';
    src: url('./fonts/Urbanist-SemiBold.woff2') format('woff2'),
        url('./fonts/Urbanist-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Urbanist';
    src: url('./fonts/Urbanist-SemiBoldItalic.woff2') format('woff2'),
        url('./fonts/Urbanist-SemiBoldItalic.woff') format('woff');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Urbanist';
    src: url('./fonts/Urbanist-Thin.woff2') format('woff2'),
        url('./fonts/Urbanist-Thin.woff') format('woff');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Urbanist';
    src: url('./fonts/Urbanist-ThinItalic.woff2') format('woff2'),
        url('./fonts/Urbanist-ThinItalic.woff') format('woff');
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}

:root {
    --color-white: #FFFFFF;
    --color-brown: #BD5105;
    --color-cream: #F4E9DF;
    --color-orange: #FF7030;
    --color-dark: #21201A;

    --font-family: 'Urbanist', sans-serif;

    --container-max: 1800px;
    --container-padding: 10%;
    --container-padding-mobile: 5%;
    --section-padding-y: 8rem;
}

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

body {
    font-family: var(--font-family);
    color: var(--color-dark);
    line-height: 1.6;
    background-color: var(--color-white);
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
    height: 100%;
}

html.no-scroll {
    overflow: hidden;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

section {
    padding: var(--section-padding-y) 0;
    position: relative;
}

h1, h2, h3, h4 {
    font-weight: 700;
}

.text-white { color: var(--color-white)!important; }
.text-brown { color: var(--color-brown)!important; }
.text-orange { color: var(--color-orange)!important; }

.text-white::after { background-color: var(--color-white)!important; }

.bg-white { background-color: var(--color-white); }
.bg-cream { background-color: var(--color-cream); }
.bg-brown { background-color: var(--color-brown); }
.bg-dark { background-color: var(--color-dark); }

/* Utility for section titles with orange bar decoration */
.section-title {
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.1;
    color: var(--color-dark);
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
    max-width: 20ch;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100px;
    height: 5px;
    background-color: var(--color-orange);
}

.section-subtitle {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-brown);
    line-height: 1.4;
}

.section-subtitle-md {
    font-size: 1.5rem;
    color: var(--color-dark);
    font-weight: 400;
    line-height: 1.2;
    max-width: 56ch;
}

.btn {
    display: inline-block;
    padding: 16px 28px;
    border: 1px solid var(--color-white);
    border-radius: 16px;
    color: var(--color-white);
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    background: transparent;
    transition: all 0.3s ease;
}

.btn:hover {
    font-weight: 700;
}

/* Floating decorations */
.floating-decoration {
    position: absolute;
    z-index: 10;
    pointer-events: none;
    width: 200px;
}

@media (max-width: 1199px) {
    :root {
        --section-padding-y: 60px;
    }

    section {
        padding: 3.75rem 0;
        position: relative;
    }

    .container {
        padding: 0 var(--container-padding-mobile);
    }
    
    .section-title {
        font-size: 1.8rem;
    }

    .section-title::after {
        bottom: -.5rem;
        height: 3px;
    }
    
    .floating-decoration {
        width: 150px;
    }

    .section-subtitle-md {
        font-size: 1.5rem;
        line-height: 1.2;
    }
}

/* --- HEADER & NAVIGATION --- */
.site-header {
    position: relative;
    background-color: var(--color-dark);
    background-size: cover;
    background-position: top center;
    color: var(--color-white);
    overflow: visible;
    transition: height 0.4s ease;
}

.site-header .container {
    position: relative;
    height: 100%;
}

.header--home {
    height: 80vh;
    min-height: 650px;
    position: relative;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 0;
}

.nav-logo {
    max-width: 130px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.mobile-only {
    display: none;
}

.hero-content {
    display: flex;
    align-items: center;
}

.hero-content picture {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -5.75%;
    width: 90%;
    z-index: 10;
}

.hero-content-text {
    flex-basis: 50%;
    margin-top: 0;
}

@media (min-width: 768px) {
    .hero-content picture {
        bottom: -9.25%;
    }
}

@media (min-width: 1200px) {
    .site-header .container {
        display: flex;
        flex-direction: column;
    }

    .hero-content {
        flex: 1;
        position: relative;
    }

    .hero-content-text {
        transform: translateY(-16%);
    }

    .hero-content picture {
        position: absolute;
        bottom: 0;
        right: 0;
        left: auto;
        width: 65.5%;
        transform: translateY(11.5%);
    }
}

@media (min-width: 1501px) {
    .header--home {
        min-height: 800px;
    }
}

.hero-title {
    color: var(--color-orange);
    font-size: 3.75rem;
    font-weight: 400;
    line-height: 1.1;
    text-align: left;
    max-width: 10ch;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 220;
}

.menu-toggle .bar {
    width: 30px;
    height: 3px;
    background-color: var(--color-white);
    transition: 0.3s;
}

@media (max-width: 1199px) {
    .header--home {
        min-height: 540px;
        height: 66vh;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }

    .menu-toggle {
        display: flex;
    }

    .mobile-only {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 400px;
        height: 100vh;
        background: rgba(33, 32, 26, 0.96);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 50px 40px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 210;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links .btn {
        border: none;
        border-radius: 0;
        padding: 20px 0;
        font-size: 1.8rem;
        font-weight: 500;
        text-transform: uppercase;
        display: block;
        width: 100%;
        color: var(--color-white);
        transition: all 0.25s ease;
        text-align: left;
        background: transparent;
        letter-spacing: 0.05em;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-links .btn:hover {
        color: var(--color-orange);
        padding-left: 8px;
        background: transparent;
        font-weight: 500;
    }

    .mobile-menu-header {
        display: flex;
        align-items: center;
        width: 100%;
        margin-top: 10px;
        margin-bottom: 40px;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mobile-menu-header a {
        display: inline-block;
        transition: opacity 0.25s ease;
        line-height: 0;
    }

    .mobile-menu-header a:hover {
        opacity: 0.85;
    }

    .mobile-menu-logo {
        max-height: 42px;
        width: auto;
    }

    .mobile-menu-footer {
        margin-top: auto;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        width: 100%;
    }

    .mobile-menu-tagline {
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.4);
        line-height: 1.4;
        font-weight: 300;
    }

    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        z-index: 200;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

.section-text {
    color: var(--color-dark);
    font-size: 1.75rem;
    line-height: 1.4;
    margin-bottom: 36px;
}

.section-text-md {
    font-size: 1.5rem;
    color: var(--color-dark);
    font-weight: 400;
    line-height: 1.4;
}

.colaborativa-content p:last-of-type {
    margin-bottom: 0;
}

/* --- FOOTER --- */
.site-footer {
    padding: 40px 0;
    border-top: 10px solid var(--color-orange);
}

.footer-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logos a {
    flex: 1;
    min-width: 120px;
    display: flex;
    justify-content: center;
}

.footer-logos picture {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logos img {
    max-height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

@media (max-width: 1199px) {
    .footer-logos {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 30px 40px;
    }
    
    .footer-logos a {
        flex: 0 1 auto;
        width: auto;
        margin-bottom: 0;
    }

    .footer-logos img {
        max-height: 40px;
    }

    .section-text {
        font-size: 1.5rem;
    }
    .section-text-md {
        font-size: 1.125rem;
    }
}

/* --- CONTACT SECTION & FORM --- */
.contact-section {
    padding: 120px 0 80px;
    overflow: hidden;
}

.contact-section .section-title {
    max-width: 24ch;
    font-weight: 300;
    margin-bottom: 5.5rem;
}

.contact-section .section-title strong {
    font-weight: 600;
}

.contact-section .section-title::after {
    bottom: -35px;
}

.contact-info {
    position: relative;
}

.contact-info p {
    font-size: 1.5rem;
    line-height: 1.4;
    max-width: 50ch;
    margin-bottom: 4rem;
}

.decoration-contact {
    bottom: 90px;
    right: 0;
    opacity: 1;
    width: 150px;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    row-gap: 30px;
}

.form-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    position: absolute;
    left: 24px;
    top: 19px;
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 1);
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 24px 24px 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 1);
    color: var(--color-white);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
    width: 100%;
}

.contact-form textarea {
    height: 100%;
}

.left-fields-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Floating Label Logic */
.contact-form input:focus + label,
.contact-form input:not(:placeholder-shown) + label,
.contact-form textarea:focus + label,
.contact-form textarea:not(:placeholder-shown) + label,
.contact-form select:focus + label,
.contact-form select:valid + label,
.contact-form .not-empty + label {
    top: 8px;
    left: 24px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-orange);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--color-orange);
}

.contact-form select option {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.error-message {
    font-size: 0.8rem;
    color: var(--color-orange);
    display: none;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: var(--color-orange);
}

.form-group.has-error .error-message {
    display: block;
}

.form-actions {
    grid-column: span 2;
    text-align: right;
    margin-top: 10px;
}

.btn-submit {
    padding: 16px 56px;
}

.form-feedback {
    grid-column: span 2;
    padding: 15px;
    margin-top: 20px;
    display: none;
    text-align: center;
    border-radius: 4px;
}

.form-feedback.success {
    display: block;
    background-color: rgba(0, 255, 0, 0.1);
    color: #4caf50;
    border: 1px solid #4caf50;
}

@media (max-width: 1199px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-section {
        padding: 60px 0;
    }

    .contact-section .section-title {
        margin-bottom: 2rem;
    }

    .contact-section .section-title::after {
        bottom: -.5rem;
    }
    
    .contact-form {
        display: block;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }

    .form-group:last-of-type {
        margin-bottom: 20px;
    }

    .contact-info p {
        font-size: 1.125rem;
        margin-bottom: 1.75rem;
    }
    .decoration-contact {
        display: none;
    }

    #projects-slider {
        margin-top: 2rem;
    }
}

/* --- HOME PAGE SECTIONS --- */
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.text-right { text-align: right; }

/* Section 2 */
.section-colaborativa {
    padding-bottom: 10rem;
}

.colaborativa-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 98ch;
}

.decoration-1 {
    bottom: -66px;
    left: 10%;
    width: 130px;
}

/* Section 3 */
.section-funcionamiento > .container {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    padding: 0 30% 0 var(--container-padding);
}

.section-funcionamiento-dark > .container {
    padding: 0 var(--container-padding);
}

.section-funcionamiento > .container > picture {
    border-radius: 58px;
    overflow: hidden;
    width: 18%;
    position: absolute;
    right: 10%;
    bottom: 0;
}

.section-funcionamiento p,
.section-funcionamiento .text-funcionamiento {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.4;
    max-width: 67ch;
    color: var(--color-orange);
}

.section-funcionamiento .text-funcionamiento {
    font-size: 2rem;
    font-weight: 700;
}

.funcionamiento-columns {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.funcionamiento-columns .section-title {
    font-weight: 700;
    font-size: 2rem;
}

.func-col-main h4 {
    font-size: 1.4rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--color-orange);
}

.func-col-main h4::after {
    bottom: -44px;
}

.decoration-inline img {
    width: 120px;
    opacity: 0.8;
}

.func-col h4 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    line-height: 1.1;
    border-bottom: 1px solid var(--color-orange);
    color: var(--color-orange);
    padding: 0 0 16px;
    min-height: 85px;
    display: flex;
    align-items: center;
}

.func-col p {
    padding: 20px 0 0;
}

.decoration-2 {
    bottom: -100px;
    right: 50px;
}

@media (max-width: 1199px) {
    .section-funcionamiento > .container {
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
        padding: 0 var(--container-padding-mobile);
    }

    .section-funcionamiento > .container > picture {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        max-width: 500px;
        border-radius: 32px;
    }
    .section-colaborativa {
        padding-bottom: unset;
        padding: 4.5rem 0 3rem;
    }
    .func-col p {
        padding: 0;
    }
    .func-col-main h4 {
        margin-bottom: 1.5rem;
    }

    .func-col-main h4::after {
        bottom: -.5rem;
    }
}

/* Section 4 */
.section-sumate .container {
    display: flex;
    justify-content: space-between;
}

.beneficio-item {
    border-radius: 8px;
    background-color: var(--color-orange);
    padding: 30px 20px;
    display: flex;
    align-items: center;
    font-size: 1.375rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 16px;
}

.beneficio-item:last-of-type {
    margin-bottom: 0;
}

.decoration-3 {
    bottom: -120px;
    left: -100px;
}

/* Section 5 Slider */
.project-card {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    height: 100%;
}

.project-image {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.project-image img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: 25px;
}

.project-info h4 {
    overflow: hidden;
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.2;
    color: var(--color-brown);
}

@media (max-width: 1199px) {
    .funcionamiento-columns {
        grid-template-columns: 1fr;
    }
    
    .sumate-row {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 1rem;
    }

    .sumate-row:nth-child(2) {
        margin-bottom: 0;
    }
    
    .beneficios-grid {
        grid-template-columns: 1fr;
    }
    
    .decoration-1, .decoration-2, .decoration-3, .decoration-funcionamiento, .sumate-decoration {
        display: none;
    }

    .section-funcionamiento .text-brown {
        font-size: 1.5rem;
    }

    .section-funcionamiento p {
        font-size: 1.125rem;
    }

    .section-funcionamiento p:last-of-type {
        margin-bottom: 0;
    }

    .funcionamiento-columns .section-title {
        font-size: 1.5rem;
    }

    .func-col h4 {
        font-size: 1.25rem;
        padding: 0;
        min-height: 60px;
        display: inline-flex;
    }

    .beneficio-item {
        font-size: 1.25rem;
    }

    .project-info h4 {
        font-size: 1.125rem; 
    }
}

/* --- INTERNAL PAGES --- */
.section-intro-internal {
    padding-bottom: 60px;
}

.section-intro-internal .floating-decoration{
    top: 140px;
    right: 10%;
    width: 150px;
}

.internal-header {
    position: relative;
    max-width: 800px;
}

.internal-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.internal-header .subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.decoration-internal {
    top: -20px;
    right: -150px;
}

/* Convocatorias Cards */
.convocatorias-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.convocatoria-card {
    background-color: #FFF7F0;
    padding: 85px 50px 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 16px;
    max-width: 38ch;
    min-height: 300px;
}

.convocatoria-card h3 {
    font-size: 1.4rem;
    color: var(--color-dark);
    margin-bottom: 5px!important;
    line-height: 1.2;
}

.convocatoria-card .year {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-dark);
}

.convocatoria-card .card-body .section-text-md {
    margin-bottom: 20px;
}

.convocatoria-card .card-body .section-text-md:last-of-type {
    margin-bottom: 0;
}

.realizadas .convocatoria-card .card-body h3 {
    margin-bottom: 20px!important;
}

.realizadas .convocatoria-card .card-body p {
    margin-bottom: 20px!important;
}

.card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-cta {
    margin-top: auto;
}

.active-call {
    border-bottom: 8px solid var(--color-orange);
    border-radius: 16px 16px 0 0;
}

.call-meta {
    margin-bottom: 20px;
}

/* FAQ */
.faq-list {
    max-width: 900px;
    margin-top: 3.5rem;
}

.faq-item {
    margin-bottom: 40px;
    padding-bottom: 40px;
}

.faq-item .section-subtitle-md {
    font-weight: 700;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

@media (max-width: 1199px) {
    .internal-header h1 {
        font-size: 1.6rem;
    }
    
    .decoration-internal {
        display: none;
    }
    
    .convocatorias-grid.grid-2 {
        grid-template-columns: 1fr;
    }
    
    .convocatoria-card {
        width: 100%;
        padding: 25px;
    }

    .faq-list {
        margin-top: 2.5rem;
    }

    .faq-item {
        padding-bottom: 0;
    }
}

.decoration-funcionamiento {
    right: 10%;
    bottom: -136px;
}

.section-sumate {
    padding: 10rem 0 8rem;
}

.section-sumate > .container {
    position: relative;
}

.section-sumate .sumate-row:nth-child(1) .sumate-col {
    max-width: 47ch;
}

.section-sumate .section-title {
    margin-bottom: 3.5rem;
}

.section-sumate .sumate-col h3 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 2rem;
    max-width: 26ch;
}

.section-sumate .sumate-col p {
    font-size: 1.5rem;
    line-height: 1.4;
    max-width: 49ch;
}

.section-sumate .btn {
    margin-top: 2.5rem;
    font-size: 1.25rem;
    width: 100%;
    text-align: center;
}

.section-sumate .floating-decoration.sumate-decoration {
    left: 0;
    top: -190px;
    width: auto;
}

.section-sumate .floating-decoration {
    width: 140px;
    bottom: -6.25rem;
    left: 11%;
}

.section-proyectos {
    padding-left: 10%;
}

.section-proyectos .section-title {
    max-width: 36ch;
    margin-bottom: 5.5rem;
}

@media (min-width: 1900px) {
    .section-proyectos {
        margin-left: calc((100vw - 1800px) / 2);
    }
}

.section-intro-internal .internal-header .section-title {
    margin-bottom: 2rem;
}

.section-convocatorias {
    padding: 3rem 0 6rem;
}

.section-convocatorias .section-title-no-decoration {
    margin-bottom: 1.25rem;
    font-weight: 400;
    font-size: 2rem;
}

.section-faq {
    padding-bottom: 0;
}

.section-faq .floating-decoration {
    top: 110px;
    right: 10%;
    width: 140px;
}

.section-faq-image .section-title {
    max-width: 21ch;
    margin-bottom: 5rem; 
}

.section-faq-image img {
    border-radius: 8px;
}

@media (max-width: 1199px) {
    .section-convocatorias {
        padding: 3.5rem 0;
    }
    .section-convocatorias:nth-child(3),
    .section-convocatorias:nth-child(4) {
        padding-top: 0;
    }
    .section-sumate {
        padding: 3.75rem 0;
    }
    .section-sumate .container {
        flex-direction: column;
        gap: 50px;
    }
    .section-sumate .section-title {
        margin-bottom: 2.5rem;
    }
    .section-sumate .sumate-row:nth-child(1) .sumate-col {
        max-width: 100%;
    }
    .section-sumate .sumate-col p {
        max-width: 100%;
        font-size: 1.125rem;
    }
    .section-sumate .sumate-col h3 {
        font-size: 1.5rem;
    }
    .section-sumate .btn {
        font-size: 1rem;
        width: 100%;
        text-align: center;
        margin-top: 0;
    }
    .section-proyectos {
        padding-left: 5%;
    }
    .section-proyectos .section-title {
        margin-bottom: 2rem;
    }
    .section-convocatorias .section-title-no-decoration {
        font-size: 1.6rem;
    }
    .section-faq-image .section-title {
        margin-bottom: 2.5rem;
    }
}

/* --- DETALLE DE PROYECTO --- */
.project-detail-header {
    max-width: 1000px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--color-brown);
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    gap: 8px;
    margin-bottom: 2rem;
}

.back-link .arrow {
    transition: transform 0.3s ease;
}

.back-link:hover {
    color: var(--color-orange);
    opacity: 1;
}

.back-link:hover .arrow {
    transform: translateX(-4px);
}

.section-project-detail {
    padding: 80px 0 120px;
}

.project-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.project-detail-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    aspect-ratio: 16/9;
}

.project-detail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-intro-lead {
    font-size: 1.5rem;
    line-height: 1.5;
    color: var(--color-brown);
    font-weight: 500;
    margin-bottom: 40px;
    border-left: 4px solid var(--color-orange);
    padding-left: 24px;
}

.project-detail-section {
    margin-bottom: 40px;
}

.project-detail-section h3 {
    font-size: 2rem;
    color: var(--color-brown);
    margin-bottom: 16px;
    font-weight: 600;
}

.project-detail-body p {
    font-size: 1.125rem;
    line-height: 1.4;
    color: var(--color-dark);
    margin-bottom: 20px;
}

/* Sidebar Tech Card */
.tech-card {
    background-color: #FFF7F0;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(189, 81, 5, 0.1);
    position: sticky;
    top: 40px;
}

.tech-card h3 {
    font-size: 1.75rem;
    color: var(--color-brown);
    margin-bottom: 30px;
    border-bottom: 2px solid var(--color-orange);
    padding-bottom: 12px;
}

.tech-list {
    list-style: none;
}

.tech-list li {
    margin-bottom: 24px;
}

.tech-list li:last-child {
    margin-bottom: 0;
}

.tech-list .label {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8C827A;
    margin-bottom: 6px;
    font-weight: 600;
}

.tech-list .value {
    display: block;
    font-size: 1.2rem;
    color: var(--color-dark);
    font-weight: 600;
}

.tech-list .status-active {
    color: #2e7d32;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tech-list .status-active::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #4caf50;
    box-shadow: 0 0 8px #4caf50;
}

.tech-list .status-completed {
    color: var(--color-brown);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tech-list .status-completed::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-brown);
}

.agencies-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.agencies-badges .badge {
    background-color: var(--color-cream);
    color: var(--color-brown);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.btn-back {
    background-color: var(--color-brown);
    color: var(--color-white);
    border-color: var(--color-brown);
}

.btn-back:hover {
    background-color: transparent;
    color: var(--color-brown);
    font-weight: 700;
}

.text-center {
    text-align: center;
}

@media (max-width: 1199px) {
    .project-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tech-card {
        position: static;
        padding: 30px;
    }

    .project-detail-image-wrapper {
        margin-bottom: 30px;
    }

    .project-intro-lead {
        font-size: 1.25rem;
        padding-left: 16px;
    }

    .project-detail-section h3 {
        font-size: 1.6rem;
    }
}

/* --- MOBILE SPECIFIC OVERRIDES --- */
@media (max-width: 767px) {
    :root {
        --section-padding-y: 45px;
    }

    .container {
        padding: 0 var(--container-padding-mobile);
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    .section-text {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .section-subtitle-md {
        font-size: 1.35rem;
        font-weight: 600;
        margin-bottom: 1rem;
    }

    /* Section 3: Funcionamiento (Cream) */
    .section-funcionamiento > .container > picture {
        margin-top: 10px;
        border-radius: 24px;
    }

    .section-funcionamiento .text-funcionamiento {
        font-size: 1.35rem;
    }

    /* Section 3 Dark: Principios */
    .func-col h4 {
        font-size: 1.2rem;
        min-height: auto;
        padding-bottom: 10px;
    }

    /* Section 4: Sumate a PILAR */
    .section-sumate .container {
        gap: 35px;
    }

    .section-sumate .sumate-col h3 {
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }

    .beneficio-item {
        font-size: 1.05rem;
        padding: 20px 15px;
    }

    /* Footer Logos */
    .footer-logos {
        gap: 20px 20px;
    }
}

.section-intro-internal .section-title::after,
.section-faq .section-title::after{
    bottom: -12px;
}

/* --- LANGUAGE SELECTOR --- */
.lang-selector {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-white);
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-link {
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 400;
    text-transform: uppercase;
}

.lang-link:hover {
    color: var(--color-orange);
    opacity: 1;
}

.lang-link.active {
    color: var(--color-orange);
    font-weight: 700;
    pointer-events: none;
}

.lang-separator {
    color: rgba(255, 255, 255, 0.3);
    user-select: none;
}

/* Mobile responsive adjustments */
@media (max-width: 1199px) {
    .lang-selector {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-top: 30px;
        padding-left: 0;
        border-left: none;
        align-self: flex-start;
    }

    .lang-link {
        font-size: 1rem;
        padding: 8px 16px;
        border-radius: 8px;
        background-color: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        display: inline-block;
    }

    .lang-link:hover {
        color: var(--color-orange);
        background-color: rgba(255, 255, 255, 0.08);
    }

    .lang-link.active {
        background-color: var(--color-orange);
        border-color: var(--color-orange);
        color: var(--color-white);
        font-weight: 700;
        pointer-events: none;
    }

    .lang-separator {
        display: none;
    }

    .section-intro-internal {
        padding-bottom: 0;
    }

    .section-intro-internal .section-title::after,
    .section-faq .section-title::after{
        bottom: -.5rem;
    }
}