:root {
    --black: #080808;
    --dark: #111111;
    --white: #ffffff;
    --off-white: #f4f4f4;
    --gray: #626262;
    --red: #e30613;
    --red-dark: #b70009;
    --blue: #171275;
    --max-width: 1180px;
}


/* ==============================
   CONFIGURACIÓN GENERAL
============================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    background: var(--white);
    color: var(--black);

    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;

    /*
    Deja espacio para que la barra flotante
    no tape el final de la página.
    */
    padding-bottom: 112px;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.container {
    width: min(90%, var(--max-width));
    margin: 0 auto;
}


/* ==============================
   NAVEGACIÓN
============================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 3000;

    width: 100%;
    min-height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    padding: 10px 5%;

    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);

    backdrop-filter: blur(14px);
}

.navbar__brand {
    width: min(420px, 44vw);
    text-decoration: none;
}

.navbar__brand img {
    width: 100%;
    height: auto;
}

.navbar__links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.navbar__links a {
    text-decoration: none;

    font-size: 0.9rem;
    font-weight: 700;

    transition: color 0.2s ease;
}

.navbar__links a:hover {
    color: var(--red);
}

.navbar__button {
    padding: 11px 19px;

    background: var(--red);
    color: var(--white) !important;

    border-radius: 4px;
}

.navbar__button:hover {
    background: var(--red-dark);
}

.navbar__toggle {
    display: none;

    border: 0;
    background: transparent;
    color: var(--black);

    font-size: 1.8rem;
    cursor: pointer;
}


/* ==============================
   BOTONES
============================== */

.button {
    min-width: 215px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 15px 24px;

    border: 2px solid transparent;
    border-radius: 4px;

    text-align: center;
    text-decoration: none;
    font-weight: 800;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.button:hover {
    transform: translateY(-3px);
}

.button--primary {
    background: var(--red);
    color: var(--white);
}

.button--primary:hover {
    background: var(--red-dark);
}

.button--secondary {
    border-color: rgba(255, 255, 255, 0.8);

    background: rgba(0, 0, 0, 0.18);
    color: var(--white);
}

.button--secondary:hover {
    background: var(--white);
    color: var(--black);
}

.button--outline {
    border-color: var(--black);

    background: transparent;
    color: var(--black);
}

.button--outline:hover {
    background: var(--black);
    color: var(--white);
}


/* ==============================
   PORTADA
============================== */

.hero {
    position: relative;

    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 125px 5% 90px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 22% 45%,
            rgba(227, 6, 19, 0.22),
            transparent 36%
        ),
        radial-gradient(
            circle at 78% 55%,
            rgba(23, 18, 117, 0.32),
            transparent 40%
        ),
        linear-gradient(
            120deg,
            #050505,
            #111111 55%,
            #040404
        );
}

.hero::before {
    content: "";

    position: absolute;
    inset: 0;

    opacity: 0.12;

    background-image:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.45) 1px,
            transparent 1px
        );

    background-size: 22px 22px;
}

.hero__overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.8),
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.8)
        );
}

.hero__content {
    position: relative;
    z-index: 2;

    width: min(950px, 100%);

    display: flex;
    flex-direction: column;
    align-items: center;

    color: var(--white);
    text-align: center;
}

.hero__logo {
    width: min(380px, 72vw);
    max-height: 430px;

    margin-bottom: 20px;

    object-fit: contain;

    filter:
        drop-shadow(0 16px 24px rgba(0, 0, 0, 0.5));
}

.hero__eyebrow {
    margin-bottom: 13px;

    color: rgba(255, 255, 255, 0.75);

    font-size: 0.81rem;
    font-weight: 800;
    letter-spacing: 0.22rem;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 1000px;

    font-size: clamp(2.6rem, 6vw, 5.5rem);
    line-height: 0.98;
    letter-spacing: -0.18rem;
    text-transform: uppercase;
}

.hero h1 span {
    display: block;
    color: var(--red);
}

.hero__description {
    max-width: 720px;
    margin-top: 24px;

    color: rgba(255, 255, 255, 0.82);

    font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;

    margin-top: 36px;
}

.hero__scroll {
    position: absolute;
    bottom: 22px;
    left: 50%;
    z-index: 4;

    transform: translateX(-50%);

    display: flex;
    flex-direction: column;
    align-items: center;

    color: rgba(255, 255, 255, 0.7);

    font-size: 0.72rem;
    letter-spacing: 0.15rem;
    text-decoration: none;
    text-transform: uppercase;
}

.hero__scroll span {
    font-size: 1.8rem;
    line-height: 1;
}


/* ==============================
   SECCIONES
============================== */

.section {
    padding: 110px 0;
}

.section--light {
    background: var(--off-white);
}

.section--dark {
    background: var(--dark);
    color: var(--white);
}

.section__label {
    margin-bottom: 12px;

    color: var(--red);

    font-size: 0.77rem;
    font-weight: 900;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
}

.section__label--light {
    color: #ff3340;
}

.section h2,
.reality h2 {
    margin-bottom: 24px;

    font-size: clamp(2.2rem, 5vw, 4.6rem);
    line-height: 1.03;
    letter-spacing: -0.13rem;
}

.section h2 span {
    color: var(--red);
}

.section__content p {
    max-width: 670px;
    margin-top: 18px;

    color: #454545;

    font-size: 1.08rem;
}

.two-columns {
    display: grid;
    grid-template-columns: 1.05fr 0.75fr;
    align-items: center;
    gap: 80px;
}

.section__image-card {
    position: relative;

    width: min(430px, 100%);
    margin-left: auto;

    overflow: hidden;

    border-radius: 8px;

    box-shadow:
        0 26px 70px rgba(0, 0, 0, 0.22);

    transform: rotate(1deg);
}

.section__image-card::after {
    content: "";

    position: absolute;
    inset: 0;

    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: inherit;

    pointer-events: none;
}

.section__heading {
    max-width: 760px;
    margin: 0 auto 60px;

    text-align: center;
}

.section__heading p:last-child {
    color: var(--gray);
    font-size: 1.06rem;
}

.section__heading--light p:last-child {
    color: rgba(255, 255, 255, 0.66);
}


/* ==============================
   MI REALIDAD
============================== */

.reality {
    position: relative;

    padding: 120px 0;

    overflow: hidden;

    background:
        linear-gradient(
            rgba(5, 5, 5, 0.92),
            rgba(5, 5, 5, 0.92)
        ),
        url("../img/hero-poster.png") center 28% / cover;

    color: var(--white);
}

.reality::after {
    content: "";

    position: absolute;
    top: -200px;
    right: -200px;

    width: 500px;
    height: 500px;

    border: 70px solid rgba(227, 6, 19, 0.15);
    border-radius: 50%;
}

.reality__content {
    position: relative;
    z-index: 2;

    max-width: 1000px;

    text-align: center;
}

.reality h2 {
    color: var(--white);
    text-transform: uppercase;
}

.reality__phrases {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;

    margin: 36px 0;
}

.reality__phrases span {
    padding: 10px 16px;

    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 100px;

    background: rgba(255, 255, 255, 0.07);

    backdrop-filter: blur(8px);
}

.reality__content > p:last-child {
    max-width: 700px;
    margin: 0 auto;

    color: rgba(255, 255, 255, 0.74);

    font-size: 1.12rem;
}


/* ==============================
   PASOS
============================== */

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.step {
    position: relative;

    min-height: 310px;

    padding: 30px 26px;

    overflow: hidden;

    border: 1px solid #e6e6e6;
    border-radius: 6px;

    background: var(--white);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.step:hover {
    transform: translateY(-8px);

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.12);
}

.step__number {
    display: block;

    margin-bottom: 50px;

    color: var(--red);

    font-size: 2.4rem;
    font-weight: 900;
}

.step h3 {
    margin-bottom: 14px;

    font-size: 1.25rem;
    line-height: 1.2;
}

.step p {
    color: var(--gray);
}

.step::after {
    content: "";

    position: absolute;
    right: -50px;
    bottom: -50px;

    width: 130px;
    height: 130px;

    border: 22px solid rgba(227, 6, 19, 0.06);
    border-radius: 50%;
}


/* ==============================
   FECHAS
============================== */

.timeline {
    max-width: 900px;
    margin: 0 auto;

    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.timeline__item {
    display: grid;
    grid-template-columns: 85px 1fr;
    align-items: center;
    gap: 20px;

    padding: 28px 12px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.timeline__item > span {
    color: var(--red);

    font-size: 1.8rem;
    font-weight: 900;
}

.timeline__item h3 {
    font-size: 1.22rem;
}

.timeline__item p {
    color: rgba(255, 255, 255, 0.62);
}

.timeline__item--featured {
    background:
        linear-gradient(
            90deg,
            rgba(227, 6, 19, 0.19),
            transparent
        );
}


/* ==============================
   LLAMADO A LA ACCIÓN
============================== */

.callout {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 50px;

    padding: 65px;

    background: var(--white);
    border-left: 7px solid var(--red);

    box-shadow:
        0 20px 55px rgba(0, 0, 0, 0.09);
}

.callout p:last-child {
    max-width: 690px;
    color: var(--gray);
}

.callout__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


/* ==============================
   FOOTER NORMAL
============================== */

.footer {
    padding-top: 55px;

    background: #050505;
    color: var(--white);
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;

    padding-bottom: 45px;
}

.footer__nanofest-logo {
    width: min(460px, 100%);
    margin-bottom: 20px;

    filter: brightness(0) invert(1);
}

.footer__brand p,
.footer__school p {
    color: rgba(255, 255, 255, 0.62);
}

.footer__school {
    display: flex;
    flex-direction: column;
    align-items: flex-end;

    text-align: right;
}

.footer__lcm-logo {
    width: 190px;
    height: 190px;

    margin-bottom: 18px;

    object-fit: contain;

    filter:
        drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

.footer__school strong {
    font-size: 1.06rem;
}

.footer__school a {
    display: inline-block;
    margin-top: 10px;

    color: #ff3945;

    text-decoration: none;
}

.footer__bottom {
    padding: 18px;

    border-top: 1px solid rgba(255, 255, 255, 0.1);

    color: rgba(255, 255, 255, 0.48);

    font-size: 0.84rem;
    text-align: center;
}


/* ==============================
   BARRA FLOTANTE INSTITUCIONAL
============================== */

.floating-partners {
    position: fixed;
    left: 50%;
    bottom: 10px;
    z-index: 4000;

    width: min(970px, calc(100% - 30px));

    transform: translateX(-50%);

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 10px;

    background: #ffffff;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.38);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.floating-partners:hover {
    transform:
        translateX(-50%)
        translateY(-3px);

    box-shadow:
        0 16px 45px rgba(0, 0, 0, 0.46);
}

.floating-partners img {
    width: 100%;
    height: auto;

    object-fit: contain;
}


/* ==============================
   TABLET
============================== */

@media (max-width: 980px) {

    body {
        padding-bottom: 100px;
    }

    .navbar__toggle {
        display: block;
    }

    .navbar__links {
        position: absolute;
        top: 78px;
        left: 0;

        width: 100%;

        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        padding: 15px 5% 22px;

        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid #dddddd;
    }

    .navbar__links.is-open {
        display: flex;
    }

    .navbar__links a {
        padding: 14px 0;
    }

    .navbar__button {
        margin-top: 8px;
        text-align: center;
    }

    .two-columns {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .section__image-card {
        margin: 0 auto;
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .callout {
        grid-template-columns: 1fr;
        padding: 45px;
    }

    .callout__actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .floating-partners {
        bottom: 8px;
        width: calc(100% - 20px);
    }

}


/* ==============================
   CELULAR
============================== */

@media (max-width: 640px) {

    body {
        padding-bottom: 78px;
    }

    .navbar {
        min-height: 68px;
    }

    .navbar__brand {
        width: 245px;
    }

    .navbar__links {
        top: 68px;
    }

    .hero {
        padding-top: 105px;
        padding-bottom: 90px;
    }

    .hero__logo {
        width: min(315px, 88vw);
    }

    .hero h1 {
        letter-spacing: -0.08rem;
    }

    .hero__actions {
        width: 100%;
    }

    .button {
        width: 100%;
    }

    .section,
    .reality {
        padding: 80px 0;
    }

    .section h2,
    .reality h2 {
        letter-spacing: -0.07rem;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .step {
        min-height: auto;
    }

    .step__number {
        margin-bottom: 30px;
    }

    .timeline__item {
        grid-template-columns: 55px 1fr;
    }

    .callout {
        padding: 30px 24px;
    }

    .callout__actions {
        flex-direction: column;
    }

    .footer__content {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .footer__school {
        align-items: flex-start;
        text-align: left;
    }

    .footer__lcm-logo {
        width: 155px;
        height: 155px;
    }

    .floating-partners {
        bottom: 5px;

        width: calc(100% - 10px);

        border-radius: 6px;
    }

}