/* =====================================================
   AUTOCONTROL — MAPA
   CSS EXCLUSIVO DE mapa.html
===================================================== */


/* =====================================================
   VARIABLES
===================================================== */

:root {

    --black: #0b0b0b;
    --black-soft: #111111;
    --black-card: #171717;
    --black-light: #202020;

    --yellow: #f5c400;
    --yellow-light: #ffd83d;

    --red: #d71920;
    --red-dark: #a80f14;

    --green: #38a853;

    --white: #f4f4f4;
    --gray-light: #b7b7b7;
    --gray: #777777;
    --gray-dark: #333333;

    --max-width: 1180px;
}


/* =====================================================
   RESET
===================================================== */

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


html {
    scroll-behavior: smooth;
}


body {

    background: var(--black);

    color: var(--white);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    line-height: 1.6;

    overflow-x: hidden;
}


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


a {
    color: inherit;
}


/* =====================================================
   CONTAINER
===================================================== */

.container {

    width: min(
        var(--max-width),
        calc(100% - 50px)
    );

    margin-left: auto;
    margin-right: auto;
}


/* =====================================================
   HEADER
===================================================== */

.site-header {

    position: sticky;

    top: 0;

    z-index: 1000;

    background: rgba(
        11,
        11,
        11,
        0.96
    );

    border-top: 4px solid var(--red);

    border-bottom: 1px solid var(--gray-dark);

    backdrop-filter: blur(10px);
}


.header__inner {

    min-height: 75px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


/* =====================================================
   BRAND
===================================================== */

.brand {

    display: flex;

    flex-direction: column;

    text-decoration: none;

    line-height: 1;
}


.brand__small {

    color: var(--red);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 6px;
}


.brand__name {

    color: var(--yellow);

    font-size: 22px;

    font-weight: 900;

    text-transform: uppercase;

    letter-spacing: -1px;
}


/* =====================================================
   NAV
===================================================== */

.main-nav {

    display: flex;

    align-items: center;

    gap: 4px;
}


.main-nav a {

    display: block;

    padding: 8px 12px;

    color: var(--gray-light);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;

    text-decoration: none;

    border: 1px solid transparent;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}


.main-nav a:hover {

    color: var(--yellow);

    border-color: var(--gray-dark);
}


.main-nav a.active {

    color: var(--black);

    background: var(--yellow);

    border-color: var(--yellow);
}


/* =====================================================
   HERO
===================================================== */

.page-hero {

    min-height: 520px;

    position: relative;

    display: flex;

    align-items: center;

    overflow: hidden;

    border-bottom: 1px solid var(--gray-dark);

    background:

        linear-gradient(
            110deg,
            rgba(245, 196, 0, 0.08),
            transparent 45%
        ),

        var(--black);
}


.hero__grid {

    position: absolute;

    inset: 0;

    opacity: 0.11;

    background-image:

        linear-gradient(
            var(--yellow) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            var(--yellow) 1px,
            transparent 1px
        );

    background-size: 55px 55px;

    transform:
        perspective(600px)
        rotateX(55deg)
        scale(1.5);

    transform-origin: center bottom;
}


.hero__content {
    position: relative;
    z-index: 2;

    display: flex;

    align-items: center;

    padding-top: 70px;
    padding-bottom: 70px;
}


.hero__text {
    width: 100%;
    max-width: 800px;
}


.hero__eyebrow {

    display: block;

    color: var(--red);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 3px;

    margin-bottom: 16px;
}


.hero__title {
    color: var(--white);

    font-size: clamp(48px, 7vw, 105px);

    line-height: 0.88;

    font-weight: 900;

    letter-spacing: clamp(-4px, -0.4vw, -5px);

    text-transform: uppercase;
}


.hero__title span {

    color: var(--yellow);
}


.hero__subtitle {

    margin-top: 28px;

    color: var(--yellow);

    font-size: 20px;

    font-weight: 700;
}


.hero__description {

    max-width: 620px;

    margin-top: 8px;

    color: var(--gray-light);

    font-size: 15px;

    line-height: 1.5;
}


/* =====================================================
   SECTION
===================================================== */

.section {

    padding: 100px 0;

    border-bottom:
        1px solid var(--gray-dark);
}


.section--dark {

    background: var(--black-soft);
}


/* =====================================================
   SECTION HEADER
===================================================== */

.section__header {

    max-width: 850px;

    margin-bottom: 55px;
}


.section__label {

    display: block;

    color: var(--red);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 3px;

    text-transform: uppercase;

    margin-bottom: 8px;
}


.section__title {

    color: var(--white);

    font-size: clamp(
        35px,
        5vw,
        58px
    );

    line-height: 0.95;

    font-weight: 900;

    letter-spacing: -2px;

    text-transform: uppercase;
}


.section__rule {

    width: 100%;

    height: 2px;

    margin-top: 25px;

    background:
        linear-gradient(
            to right,
            var(--yellow) 0 120px,
            var(--gray-dark) 120px 100%
        );
}


/* =====================================================
   FLUJOS DE USUARIO — TARJETAS E IMÁGENES
===================================================== */

.flows-list {

    display: flex;

    flex-direction: column;

    gap: 60px;
}


.flow-card {

    padding: 40px;

    background: var(--black-card);

    border: 1px solid var(--gray-dark);

    border-top: 4px solid var(--yellow);

    position: relative;
}


.flow-card--dark {

    background: var(--black-soft);
}


.flow-card__header {

    display: flex;

    align-items: flex-start;

    gap: 25px;

    margin-bottom: 20px;
}


.flow-card__number {

    color: var(--gray-dark);

    font-size: 42px;

    font-weight: 900;

    line-height: 1;
}


.flow-card__titles {

    display: flex;

    flex-direction: column;

    gap: 6px;
}


.flow-card__badge {

    color: var(--red);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 2px;

    text-transform: uppercase;
}


.flow-card__badge--yellow {

    color: var(--yellow);
}


.flow-card__badge--red {

    color: var(--red);
}


.flow-card h3 {

    color: var(--white);

    font-size: 28px;

    font-weight: 900;

    line-height: 1.1;

    text-transform: uppercase;
}


.flow-card__description {

    color: var(--gray-light);

    font-size: 15px;

    max-width: 850px;

    margin-bottom: 30px;
}


.flow-card__image-container {

    width: 100%;

    padding: 20px;

    background: var(--black);

    border: 1px solid var(--gray-dark);

    border-radius: 4px;

    overflow-x: auto;
}


.flow-card__image-container img {

    width: 100%;

    height: auto;

    display: block;

    object-fit: contain;
}


/* =====================================================
   FINAL
===================================================== */

.final-section {

    padding: 130px 0;

    position: relative;

    overflow: hidden;

    border-bottom: 1px solid var(--gray-dark);

    background:

        linear-gradient(
            135deg,
            rgba(215, 25, 32, 0.15),
            transparent 50%
        ),

        var(--black);
}


.final-section::after {

    content: "AUTO";

    position: absolute;

    right: -40px;
    bottom: -100px;

    color: rgba(
        245,
        196,
        0,
        0.035
    );

    font-size: 250px;

    font-weight: 900;

    line-height: 1;
}


.final-section__label {

    color: var(--red);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 3px;
}


.final-section h2 {

    position: relative;

    z-index: 2;

    margin-top: 20px;

    color: var(--white);

    font-size: clamp(
        45px,
        8vw,
        95px
    );

    line-height: 0.88;

    letter-spacing: -4px;

    text-transform: uppercase;
}


.final-section h2 span {

    color: var(--yellow);
}


/* =====================================================
   FOOTER
===================================================== */

.site-footer {

    background: #070707;

    border-top: 4px solid var(--red);

    padding: 35px 0;
}


.footer__top {

    display: flex;

    justify-content: space-between;

    gap: 30px;
}


.footer__top > div {

    display: flex;

    flex-direction: column;
}


.footer__top strong {

    color: var(--yellow);

    font-size: 12px;

    text-transform: uppercase;
}


.footer__top span {

    color: var(--gray);

    font-size: 10px;
}


.footer__line {

    height: 1px;

    margin: 25px 0;

    background: var(--gray-dark);
}


.footer__bottom {

    display: flex;

    flex-wrap: wrap;

    gap: 10px 25px;

    color: var(--gray);

    font-size: 9px;
}


.footer__bottom span:last-child {

    color: var(--red);

    font-weight: 700;
}


/* =====================================================
   RESPONSIVE — TABLET
===================================================== */

@media (max-width: 900px) {

    .header__inner {

        flex-wrap: wrap;

        padding-top: 15px;
        padding-bottom: 15px;
    }


    .main-nav {

        width: 100%;

        justify-content: flex-start;
    }


    .hero__content {

        padding-top: 60px;
        padding-bottom: 60px;
    }


    .hero__title {

        font-size: clamp(
            52px,
            11vw,
            85px
        );
    }

}


/* =====================================================
   RESPONSIVE — MOBILE
===================================================== */

@media (max-width: 600px) {

    .container {

        width: calc(100% - 30px);
    }


    .site-header {

        position: relative;
    }


    .header__inner {

        align-items: flex-start;
    }


    .main-nav {

        display: grid;

        grid-template-columns:
            repeat(3, 1fr);

        width: 100%;
    }


    .main-nav a {

        text-align: center;

        padding: 8px 5px;

        font-size: 8px;
    }


    .page-hero {

        min-height: auto;
    }


    .hero__content {

        padding-top: 60px;
        padding-bottom: 60px;
    }


    .hero__title {

        font-size: 52px;

        letter-spacing: -3px;
    }


    .hero__subtitle {

        font-size: 16px;
    }


    .hero__description {

        font-size: 13px;
    }


    .section {

        padding: 70px 0;
    }


    .section__title {

        font-size: 35px;
    }


    .flow-card {

        padding: 25px 20px;
    }


    .flow-card__header {

        gap: 15px;
    }


    .flow-card__number {

        font-size: 32px;
    }


    .flow-card h3 {

        font-size: 20px;
    }


    .flow-card__image-container {

        padding: 10px;
    }


    .footer__top {

        flex-direction: column;

        gap: 20px;
    }


    .final-section {

        padding: 90px 0;
    }


    .final-section h2 {

        font-size: 50px;

        letter-spacing: -2px;
    }

}