:root {
    --color-dark: #111111;
    --color-dark-soft: #1a1a1a;
    --color-text: #222222;
    --color-muted: #666666;
    --color-light: #f5f5f5;
    --color-white: #ffffff;
    --color-accent: #f58220;
    --container: 1180px;
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--color-text);
    background: var(--color-white);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(17, 17, 17, 0.92);
    color: white;
    backdrop-filter: blur(10px);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.menu {
    display: flex;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu a {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
}

.menu a:hover {
    color: white;
}

.menu a.active {
    color: white;
    border-bottom: 2px solid var(--color-accent);
}

.header-cta {
    background: var(--color-accent);
    color: white;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
}

.hero {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
    color: white;
    background:
        linear-gradient(90deg, rgba(0,0,0,0.82), rgba(0,0,0,0.36)),
        url('../img/hero.jpg') center/cover no-repeat;
}

.hero-content {
    position: relative;
    max-width: 760px;
}

.eyebrow,
.section-kicker {
    color: var(--color-accent);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.82rem;
    margin: 0 0 14px;
}

h1,
h2,
h3 {
    line-height: 1.1;
    margin: 0;
}

h1, h2, h3 {
    font-family: 'Oswald', sans-serif;
}

h1 {
    font-size: clamp(2.6rem, 7vw, 5.7rem);
    letter-spacing: -0.06em;
    max-width: 900px;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.8rem);
    letter-spacing: -0.045em;
}

h3 {
    font-size: 1.35rem;
    letter-spacing: -0.025em;
}

.hero-text {
    font-size: 1.25rem;
    max-width: 660px;
    color: rgba(255,255,255,0.84);
    margin: 24px 0 32px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-phone {
    margin: 20px 0 0;
    font-size: 1.1rem;
}

.hero-phone a {
    color: rgba(255, 255, 255, 0.84);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 2px;
}

.hero-phone a:hover {
    color: white;
    border-color: var(--color-accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 800;
}

.btn-primary {
    background: var(--color-accent);
    color: white;
}

.btn-secondary {
    background: rgba(255,255,255,0.12);
    color: white;
    border: 1px solid rgba(255,255,255,0.28);
}

.section {
    padding: 92px 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.intro p,
.projects p {
    font-size: 1.08rem;
    color: var(--color-muted);
}

.services {
    background: var(--color-light);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 36px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.card {
    background: white;
    padding: 32px;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    min-height: 280px;
}

.card-number {
    display: inline-block;
    color: var(--color-accent);
    font-weight: 900;
    margin-bottom: 40px;
}

.card p {
    color: var(--color-muted);
}

.projects {
    background: var(--color-dark);
    color: white;
}

.projects p {
    color: rgba(255,255,255,0.72);
}

.project-box {
    min-height: 320px;
    border-radius: 22px;
    background: linear-gradient(135deg, #2b2b2b, #151515);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.08);
}

.contact {
    background: var(--color-accent);
    color: white;
}

.contact-box {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 48px;
}

.contact .section-kicker {
    color: rgba(255,255,255,0.8);
}

.contact p {
    color: rgba(255,255,255,0.88);
}

.contact-details {
    flex-shrink: 0;
}

.contact-row {
    display: flex;
    gap: 10px;
    font-size: 0.95rem;
    padding: 6px 0;
    color: rgba(255,255,255,0.9);
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.contact-row:last-child {
    border-bottom: none;
}

.contact-row span {
    font-weight: 700;
    min-width: 72px;
    flex-shrink: 0;
}

.contact-row a {
    color: white;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact-row a:hover {
    color: rgba(255,255,255,0.8);
}

.contact-address {
    font-size: 0.88rem;
}

.contact .btn-primary {
    background: white;
    color: var(--color-dark);
}

.contact .btn-secondary {
    background: transparent;
}

/* ── Ayudas / Funding ── */
.funding {
    background: var(--color-light);
    padding: 64px 0;
}

.funding-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

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

.funding-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 16px;
}

.funding-item p {
    font-size: 0.9rem;
    color: var(--color-muted);
    line-height: 1.6;
    margin: 0;
}

.funding-text {
    font-size: 0.9rem;
}

@media (max-width: 860px) {
    .funding-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.site-footer {
    background: #090909;
    color: white;
    padding: 42px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 32px;
}

.site-footer p {
    color: rgba(255,255,255,0.66);
    margin: 6px 0;
}

/* ── Procesos / Timeline ── */
.processes {
    background: var(--color-light);
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    align-items: start;
    position: relative;
}

.timeline-step {
    text-align: center;
    padding: 0 16px;
    position: relative;
}

.timeline-step::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-accent);
    z-index: 0;
}

.timeline-step:first-child::before {
    left: 50%;
}

.timeline-step:last-child::before {
    right: 50%;
}

.timeline-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: var(--color-accent);
    color: white;
    font-size: 1.3rem;
    font-weight: 900;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.timeline-step h3 {
    margin-bottom: 10px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
}

.timeline-step p {
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.timeline-arrow {
    display: none;
}

/* ── Diferenciación / Stats ── */
.stats {
    background: var(--color-dark);
    color: white;
}

.stats .section-kicker {
    color: var(--color-accent);
}

.stats h2 {
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-item {
    text-align: center;
    padding: 32px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

.stat-number {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    display: block;
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.stat-desc {
    color: rgba(255,255,255,0.66);
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.5;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 60;
}

.hamburger-line {
    display: block;
    width: 26px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: transform 0.25s ease;
}

.mobile-menu {
    display: none;
}

@media (max-width: 860px) {
    .hamburger {
        display: flex;
    }

    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--color-dark-soft);
        padding: 96px 32px 32px;
        transform: translateX(100%);
        transition: transform 0.25s ease;
        z-index: 55;
        overflow-y: auto;
    }

    .nav-open .mobile-menu {
        transform: translateX(0);
    }

    .nav-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 54;
    }

    .nav-open {
        overflow: hidden;
    }

    .mobile-menu-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-menu-list li + li {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mobile-menu-list a {
        display: block;
        padding: 16px 0;
        color: rgba(255, 255, 255, 0.85);
        font-size: 1.05rem;
    }

    .mobile-cta {
        margin-top: 24px;
        width: 100%;
        text-align: center;
    }

    .site-nav,
    .header-cta {
        display: none;
    }

    .hero {
        min-height: 560px;
    }

    .grid-2,
    .cards,
    .contact-box,
    .footer-inner {
        grid-template-columns: 1fr;
        display: grid;
    }

    .timeline {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .timeline-step::before {
        display: none;
    }

    .timeline-num {
        width: 52px;
        height: 52px;
        font-size: 1.1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section {
        padding: 64px 0;
    }

    .card {
        min-height: auto;
    }
}
