@import url("https://fonts.googleapis.com/css?family=Titillium+Web:400,600,700");

:root {
    --white: #ffffff;
    --red-main: #fc021e;
    --red-deep: #ff1514;
    --red-dark: #b00115;
    --panel-soft: rgba(255, 255, 255, 0.2);
}

* {
    box-sizing: border-box;
    font-family: "Titillium Web", sans-serif;
}

body {
    margin: 0;
    background: var(--red-dark);
    color: var(--white);
}

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

h1, h2, h3 {
    margin: 0;
    text-transform: uppercase;
    font-weight: 700;
}

a {
    color: inherit;
}

.contenedor {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    background: var(--red-main);
    min-height: 100vh;
}

.contenedor.home {
    background: var(--red-main) url("https://www.mye.cl/rally2025/img/bg.jpg") no-repeat center top;
    background-size: cover;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.contenedor.home > * {
    position: relative;
    z-index: 2;
}

#video-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
    z-index: 1;
}

.contenedor.home.interior {
    background: var(--red-main);
}

.wrap {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    padding: 0 20px;
}

header {
    padding: 20px 0;
}

.logo-mye {
    display: block;
    text-align: center;
    text-decoration: none;
    max-width: 420px;
    margin: 0 auto;
}

.logo-mye img {
    width: 400px;
    margin: 0 auto;
}

.head-interior {
    background: var(--red-deep);
}

.btn-volver {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
}

.contenido {
    padding: 0 0 24px;
}

.contenido.centro {
    flex: 1;
    display: flex;
    align-items: center;
}

.hero-title {
    text-align: center;
    font-size: 58px;
    letter-spacing: 0.06em;
    margin: 60px 0;
}

.logo-w2c {
    margin: 10% 0;
}

.logo-w2c img {
    max-width: 64%;
    min-width: 260px;
    margin: 0 auto;
}

.op-home {
    padding: 20px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 25px 25px 0 0;
}

.wrc {
    font-size: 42px;
    text-align: center;
}

.bajada {
    text-align: center;
    font-size: 22px;
    margin: 8px 0 0;
}

.ingresar {
    width: 100%;
    max-width: 620px;
    height: 48px;
    display: block;
    margin: 24px auto 0;
    background: var(--white);
    color: #ed1c1c;
    border-radius: 50px;
    padding: 0 24px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 19px;
    font-weight: 700;
    text-decoration: none;
    line-height: 1;
}

.btn-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-left i {
    font-size: 22px;
    color: #ff1b1b;
}

.ingresar .fa-chevron-right {
    font-size: 28px;
    color: #ff1b1b;
}

.rrss {
    margin: 24px 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.rrss a {
    display: inline-block;
}

.rrss a img {
    display: block;
}

.rrss a:first-child img {
    max-width: 110px;
}

.rrss a:not(:first-child) img {
    max-width: 34px;
}

.sucursales img {
    max-width: 100%;
    margin: 0 auto;
}

.opciones.dia {
    margin-top: 14px;
}

.opciones ul {
    margin: 20px 0 0;
    background: var(--red-deep);
    border-radius: 25px 25px 0 0;
    padding: 20px 30px 30px;
}

.opciones ul li {
    list-style: none;
    margin: 0 0 8px;
}

.opciones ul li a {
    display: block;
    text-decoration: none;
    font-size: 30px;
    padding: 6px 0;
    font-weight: 400;
}

.buscador {
    border-bottom: 2px solid var(--white);
    padding: 10px 0;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.fechas-page .head-interior {
    background: rgba(255, 21, 20, 0.9);
}

.fechas-layout {
    flex: 1;
    display: flex;
    align-items: flex-end;
    padding-bottom: 0;
}

.card-fechas {
    width: 100%;
    background: var(--red-deep);
    color: var(--white);
    padding: 30px 40px;
    border-radius: 25px 25px 0 0;
}

.titulo-fechas {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.titulo-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.titulo-left i {
    font-size: 28px;
}

.titulo-left h1 {
    margin: 0;
    font-size: 36px;
    text-transform: none;
}

.titulo-fechas .fa-chevron-down {
    font-size: 26px;
}

.linea {
    width: 100%;
    height: 2px;
    background: var(--white);
    margin: 14px 0 24px;
}

.lista-dias {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.lista-dias a {
    color: var(--white);
    text-decoration: none;
    font-size: 30px;
    font-weight: 500;
    text-transform: uppercase;
}

.lista-dias a:hover {
    text-decoration: underline;
}

.contenedor > iframe {
    display: block;
    border: 0;
    width: 100%;
    height: 52vh;
    min-height: 300px;
}

.contenedor-ruta {
    background: var(--red-deep);
    border-radius: 25px 25px 0 0;
    padding: 0 18px 22px;
}

.titulo-ruta {
    padding: 24px 0;
}

.titulo-ruta h1 {
    text-align: center;
    font-size: 38px;
}

.pager {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.pager a {
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
}

.fecha {
    padding: 6px 12px;
    margin: 0 0 18px;
    background: var(--panel-soft);
    border-radius: 50px;
    text-align: center;
    font-size: 28px;
}

.chronology-block h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.chronology-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.chronology-tab {
    background: transparent;
    border: 1.5px solid var(--white);
    border-radius: 24px;
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    padding: 6px 12px;
    cursor: pointer;
}

.chronology-tab.is-active {
    background: var(--white);
    color: #ed1c1c;
}

.chronology-viewer {
    border-radius: 18px;
    overflow: hidden;
    background: var(--panel-soft);
    height: clamp(300px, 58vh, 620px);
}

.chronology-image {
    display: block;
    width: 100%;
    height: auto;
    transform: translate3d(0, 0, 0);
    transition: transform 420ms ease;
}

.chronology-missing {
    margin: 0;
    font-size: 18px;
}

.map-wrap {
    margin-top: 12px;
    border-radius: 15px;
    overflow: hidden;
}

.map-wrap iframe {
    width: 100%;
    border: 0;
    display: block;
}

.card {
    margin-top: 18px;
    background: var(--panel-soft);
    border-radius: 25px;
    padding: 16px;
}

.card h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.card p {
    margin: 6px 0;
    font-size: 22px;
}

.links {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.links a {
    display: inline-block;
    text-decoration: none;
    background: var(--white);
    color: #ed1c1c;
    border-radius: 999px;
    padding: 8px 20px;
    font-size: 20px;
    font-weight: 700;
}

@media (max-width: 700px) {
    .logo-mye {
        font-size: 20px;
    }

    .logo-mye img {
        width: 170px;
    }

    .btn-volver {
        font-size: 14px;
        left: 14px;
    }

    .wrap {
        padding: 0 14px;
    }

    .hero-title {
        font-size: 38px;
        margin: 36px 0;
    }

    .logo-w2c {
        margin: 48px 0;
    }

    .logo-w2c img {
        max-width: 80%;
        min-width: 0;
    }

    .wrc {
        font-size: 30px;
    }

    .bajada {
        font-size: 16px;
    }

    .ingresar {
        width: 100%;
        max-width: 580px;
        height: 44px;
        padding: 0 20px;
        font-size: 17px;
    }

    .btn-left {
        gap: 10px;
    }

    .btn-left i {
        font-size: 19px;
    }

    .ingresar .fa-chevron-right {
        font-size: 22px;
    }

    .rrss {
        gap: 12px;
    }

    .rrss a:first-child img {
        max-width: 95px;
    }

    .rrss a:not(:first-child) img {
        max-width: 30px;
    }

    .opciones ul {
        padding: 18px 20px 24px;
    }

    .opciones ul li a {
        font-size: 24px;
    }

    .card-fechas {
        padding: 22px 20px;
    }

    .titulo-left {
        gap: 12px;
    }

    .titulo-left i {
        font-size: 22px;
    }

    .titulo-left h1 {
        font-size: 28px;
    }

    .titulo-fechas .fa-chevron-down {
        font-size: 20px;
    }

    .lista-dias a {
        font-size: 24px;
    }

    .titulo-ruta h1 {
        font-size: 28px;
    }

    .fecha {
        font-size: 18px;
    }

    .pager a {
        font-size: 14px;
    }

    .card p {
        font-size: 17px;
    }

    .links a {
        font-size: 16px;
    }
}
