@font-face {
    font-family: "Google Sans Flex";
    src: url("../typography/GoogleSansFlex-VariableFont_GRAD,ROND,opsz,slnt,wdth,wght.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 1000;
    font-display: swap;
}

:root {
    --navy: #0d2d59;
    --ink: #111d2d;
    --green: #3daa43;
    --lime: #afd825;
    --surface: #f2f4f5;
    --white: #fff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--white);
    font-family: "Google Sans Flex", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.35;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(1280px, calc(100% - 64px));
    margin-inline: auto;
}

.hero {
    position: relative;
    min-height: 570px;
    padding: 56px 0 42px;
    color: var(--white);
    background: #001127 url("../images/Fondo_hero.png") center / cover no-repeat;
}

.language-switch {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.language-switch a {
    display: grid;
    width: 46px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 18px;
    color: var(--white);
    background: rgba(0, 17, 39, 0.55);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    place-items: center;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.language-switch a:hover,
.language-switch a:focus-visible {
    border-color: var(--lime);
    color: #001127;
    background: var(--lime);
}

.language-switch a:focus-visible {
    outline: 3px solid var(--white);
    outline-offset: 3px;
}

.hero__top {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    align-items: center;
    gap: 56px;
}

.hero__intro h1,
.section-title,
.stat strong,
.footer blockquote {
    font-family: "Google Sans Flex", Arial, sans-serif;
    font-weight: 750;
}

.hero__intro h1 {
    margin: 0 0 8px;
    overflow-wrap: anywhere;
    font-size: clamp(56px, 7vw, 92px);
    line-height: 0.95;
}

.hero__intro p {
    max-width: 760px;
    margin: 0;
    font-size: clamp(22px, 2.3vw, 34px);
    line-height: 1.12;
}

.hero__logo {
    justify-self: center;
    width: min(270px, 100%);
    max-height: 290px;
    object-fit: contain;
}

.stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 28px;
    margin-top: 56px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    text-align: center;
}

.stat img {
    width: 48px;
    height: 51px;
    margin-bottom: 8px;
    object-fit: contain;
}

.stat strong {
    font-size: 31px;
    line-height: 1;
}

.stat span {
    max-width: 160px;
    font-size: 19px;
    line-height: 1.05;
}

.content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
    padding-block: 54px 70px;
}

.content__column {
    min-width: 0;
}

section + section {
    margin-top: 46px;
}

.section-title {
    position: relative;
    margin: 0 0 28px;
    padding-bottom: 8px;
    color: var(--navy);
    font-size: clamp(27px, 2.4vw, 36px);
    line-height: 1.05;
}

.section-title::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--green), var(--lime));
}

.section-title::before {
    content: "";
    position: absolute;
    z-index: 1;
    right: -1px;
    bottom: -8px;
    width: 18px;
    height: 18px;
    border: 5px solid var(--green);
    border-radius: 50%;
    background: var(--white);
}

.feature-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature-list li,
.experience {
    position: relative;
    padding-left: 30px;
}

.feature-list li::before,
.experience::before {
    content: "";
    position: absolute;
    top: 0.28em;
    left: 0;
    width: 13px;
    height: 13px;
    border: 5px solid var(--green);
    border-radius: 50%;
}

.experience-list {
    display: grid;
    gap: 16px;
}

.experience h3,
.invention-card h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
}

.experience p,
.invention-card p,
.recognition p,
.project-card p {
    margin: 0;
}

.recognition {
    display: flex;
    align-items: center;
    gap: 20px;
}

.recognition img {
    flex: 0 0 72px;
    height: 100px;
    object-fit: contain;
}

.invention-card,
.project-card {
    overflow: hidden;
    border-radius: 20px;
    background: var(--surface);
}

.project-card {
    color: inherit;
    text-decoration: none;
    transition: box-shadow 180ms ease, transform 180ms ease;
}

.project-card:hover,
.project-card:focus-visible {
    box-shadow: 0 12px 28px rgba(13, 45, 89, 0.18);
    transform: translateY(-3px);
}

.project-card:focus-visible {
    outline: 3px solid var(--lime);
    outline-offset: 3px;
}

.invention-card {
    padding: 28px;
}

.invention-card p + p {
    margin-top: 18px;
}

.project-list {
    display: grid;
    gap: 24px;
    margin-top: 24px;
}

.project-card__visual {
    position: relative;
    display: grid;
    min-height: 220px;
    overflow: hidden;
    place-items: center;
    background: #001127;
}

.project-card__visual img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon {
    position: relative;
    z-index: 1;
    width: 0;
    height: 0;
    margin-left: 8px;
    border-top: 28px solid transparent;
    border-bottom: 28px solid transparent;
    border-left: 44px solid var(--white);
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.35));
}

.project-card__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 15, 42, 0.18);
}

.project-card p {
    padding: 16px 22px;
}

.footer {
    padding: 38px 0;
    color: var(--white);
    background: #001127 url("../images/fondo_footer.png") center / cover no-repeat;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 72px;
}

.footer blockquote {
    margin: 0;
    font-size: clamp(30px, 3vw, 45px);
    font-weight: 700;
    line-height: 1.22;
}

.footer blockquote em {
    color: var(--lime);
}

.contact .section-title {
    color: var(--white);
    font-size: 38px;
}

.contact .section-title::before {
    background: #001127;
}

.contact a {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--white);
    font-size: 20px;
    text-decoration: none;
}

.contact a:hover,
.contact a:focus-visible {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .container {
        width: calc(100% - 40px);
        max-width: 720px;
    }

    .hero__top,
    .content,
    .footer__inner {
        grid-template-columns: 1fr;
    }

    .hero__top > *,
    .content > *,
    .footer__inner > * {
        min-width: 0;
    }

    .hero__logo {
        width: 190px;
    }

    .stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .content,
    .footer__inner {
        gap: 46px;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 16px;
    }

    .container {
        width: calc(100% - 28px);
        max-width: 520px;
    }

    .hero {
        padding-top: 38px;
    }

    .hero__top {
        gap: 32px;
        text-align: center;
    }

    .hero__intro h1 {
        font-size: clamp(38px, 12vw, 48px);
    }

    .hero__intro p {
        font-size: 20px;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 16px;
        margin-top: 44px;
    }

    .stat:last-child {
        grid-column: 1 / -1;
    }

    .stat strong {
        font-size: 27px;
    }

    .stat span {
        font-size: 16px;
    }

    .content {
        padding-block: 40px 50px;
    }

    .section-title {
        font-size: 27px;
    }

    .invention-card {
        padding: 22px;
    }

    .project-card__visual {
        min-height: 160px;
    }

    .footer {
        text-align: center;
    }

    .footer__inner {
        gap: 36px;
    }

    .contact a {
        justify-content: center;
    }
}
