.meta > i { margin-right: 5px; }

.top {
    position: absolute;
    inset: 0 0 auto;
    width: 100%;
    max-width: none;
    background: transparent;
    box-shadow: none;
}

.hero-copy {
    top: 120px;
}

@media (max-width: 800px) {
    .hero-copy {
        top: auto;
    }
}

/* Hero: composición y proporciones de la referencia aprobada. */
.top {
    background: linear-gradient(90deg, rgba(0, 45, 70, .74), rgba(0, 59, 86, .36));
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.top,
.hero,
.pillars,
.race,
.schedule,
.impact,
.newsfaq,
.register,
footer {
    font-family: 'Montserrat', Arial, sans-serif;
}

.hero {
    height: 500px;
    background-position: center 50%;
}

.hero::before,
.hero::after {
    display: none;
}

.hero-copy {
    top: 104px;
    left: 8%;
    width: min(43%, 530px);
}

.hero-brand {
    width: clamp(230px, 24vw, 340px);
    margin-bottom: 18px;
}

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

.eyebrow {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .26em;
}

.hero h1 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: clamp(96px, 8.2vw, 126px);
    font-weight: 900;
    letter-spacing: -.11em;
    line-height: .72;
    margin: 16px 0 18px;
}

.hero h2 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.04em;
    margin: 0 0 12px;
}

.hero h3 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .01em;
    margin-bottom: 12px;
}

.hero p {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    max-width: 475px;
    margin-bottom: 18px;
}

.meta {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 11px;
    margin: 18px 0;
}

.meta span {
    margin-inline: 12px;
}

.actions .btn,
.actions .ghost {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 11px;
    padding: 13px 20px;
}

.hero-phrase {
    right: 9%;
    bottom: 36px;
    font-size: 21px;
}

@media (max-width: 800px) {
    .top {
        background: linear-gradient(90deg, rgba(0, 45, 70, .78), rgba(0, 59, 86, .38));
    }

    .hero::before,
    .hero::after {
        display: none;
    }

    .hero-copy {
        top: auto;
        bottom: 25px;
        left: 0;
        width: 100%;
    }

    .eyebrow {
        font-size: 15px;
        letter-spacing: .22em;
    }

    .hero h1 {
        font-size: clamp(76px, 23vw, 92px);
        letter-spacing: -.1em;
        margin: 14px 0;
    }

    .hero h2 {
        font-size: 23px;
        margin-bottom: 10px;
    }

    .hero h3 {
        font-size: 17px;
    }
}

/* Sección de carrera: la imagen contiene el fondo claro, transición y paisaje. */
.race {
    height: 250px;
    min-height: 250px;
    background: url('assets/imgen hero 2.png') center center / cover no-repeat;
}

.race-copy {
    padding: 34px clamp(32px, 7vw, 120px);
}

.race h2 {
    margin-bottom: 10px;
}

.race p {
    margin: 0 0 16px;
}

.coast {
    min-height: 0;
    background: none;
    padding: 28px clamp(32px, 8vw, 130px);
    text-shadow: 0 2px 10px rgba(0, 47, 73, .48);
}

.coast b {
    position: relative;
    display: block;
    max-width: 280px;
    color: #fff;
    font-size: clamp(28px, 2.5vw, 44px);
    font-style: italic;
    font-weight: 900;
    letter-spacing: -.07em;
    line-height: .9;
    text-align: right;
    text-transform: uppercase;
    text-shadow: 0 3px 12px rgba(0, 42, 66, .72);
}

.coast b::after {
    position: absolute;
    right: 0;
    bottom: -16px;
    width: 74%;
    height: 5px;
    background: #9be62e;
    border-radius: 999px;
    content: '';
    transform: skewX(-28deg);
}

@media (max-width: 800px) {
    .race {
        height: auto;
        min-height: 0;
        background-position: 60% center;
    }

    .race-copy {
        padding: 34px 24px;
        background: linear-gradient(90deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .82));
    }

    .coast {
        min-height: 210px;
        padding: 34px 24px;
    }

    .coast b {
        max-width: 230px;
        font-size: clamp(26px, 8vw, 34px);
    }
}

/* Ritmo visual: más espacio para que cada bloque respire. */
.top {
    height: 82px;
    padding-inline: clamp(24px, 6vw, 96px);
}

.top nav {
    gap: clamp(18px, 2vw, 32px);
}

.hero {
    height: 660px;
}

.hero-copy {
    top: 138px;
    left: clamp(32px, 8vw, 150px);
    width: min(45%, 590px);
}

.hero h1 {
    font-size: clamp(96px, 9vw, 132px);
    margin-block: 22px;
}

.hero h2 {
    margin-top: 24px;
}

.hero p {
    margin-bottom: 22px;
    line-height: 1.5;
}

.meta {
    margin-block: 24px;
}

.pillars {
    padding: 32px clamp(24px, 10vw, 160px);
}

.pillars article {
    padding-inline: 16px;
}

.race {
    min-height: 320px;
    height: auto;
}

.race-copy {
    padding: 54px clamp(32px, 7vw, 120px);
}

.race p {
    margin-block: 14px 22px;
    line-height: 1.5;
}

.coast {
    min-height: 320px;
    padding: 42px clamp(32px, 8vw, 130px);
}

.middle {
    padding: 64px clamp(24px, 6vw, 96px);
    gap: 42px;
}

.includes h2,
.schedule h2,
.newsfaq h2,
.register h2 {
    margin-bottom: 18px;
}

.cards {
    gap: 16px;
}

.cards article {
    min-height: 185px;
}

.cards img {
    height: 145px;
}

.banner {
    margin-top: 0;
    min-height: 245px;
    padding: 32px;
}

.schedule {
    padding: 12px clamp(24px, 6vw, 96px) 64px;
}

.timeline {
    margin-top: 28px;
}

.timeline article {
    padding-inline: 12px;
}

.impact {
    padding: 48px clamp(24px, 7vw, 112px);
    gap: 28px;
}

.newsfaq {
    padding: 72px clamp(24px, 7vw, 112px);
    gap: 48px;
}

.news {
    gap: 20px;
}

.news img {
    height: 150px;
}

.faq details {
    margin-bottom: 12px;
    padding: 14px 16px;
}

.register {
    padding: 72px clamp(24px, 8vw, 128px);
    gap: 64px;
}

.register form {
    padding: 30px;
}

footer {
    padding: 36px clamp(24px, 7vw, 112px) 20px;
}

@media (max-width: 800px) {
    .top {
        height: 68px;
        padding-inline: 20px;
    }

    .top nav {
        top: 68px;
    }

    .hero {
        height: 690px;
    }

    .hero-copy {
        top: auto;
        bottom: 32px;
        left: 0;
        width: 100%;
        padding-inline: 28px;
    }

    .hero-brand {
        width: min(235px, 72vw);
        margin-bottom: 14px;
    }

    .hero h1 {
        font-size: clamp(76px, 23vw, 92px);
        margin-block: 14px;
    }

    .pillars {
        padding: 24px 12px;
    }

    .pillars article {
        padding-inline: 4px;
    }

    .race-copy,
    .coast {
        padding: 34px 24px;
    }

    .coast {
        min-height: 210px;
    }

    .middle,
    .newsfaq,
    .register {
        padding: 48px 20px;
    }

    .middle {
        gap: 32px;
    }

    .cards {
        gap: 8px;
    }

    .cards article {
        min-height: 120px;
    }

    .cards img {
        height: 92px;
    }

    .banner {
        min-height: 210px;
        padding: 28px 24px;
    }

    .schedule {
        padding: 8px 20px 48px;
    }

    .timeline {
        margin-top: 20px;
    }

    .timeline article {
        padding: 0 0 14px;
    }

    .impact {
        padding: 40px 20px;
        gap: 24px;
    }

    .newsfaq {
        gap: 36px;
    }

    .news img {
        height: 180px;
    }

    .register {
        gap: 28px;
    }

    .register form {
        padding: 24px 20px;
    }

    footer {
        padding: 32px 20px 18px;
    }
}

.pillars i,
.timeline article > i,
.impact article > i {
    font-style: normal;
}

.dist button > i {
    margin-right: 4px;
}

.kit span > i {
    font-size: .8em;
}

.social {
    display: flex;
    gap: 16px;
}

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

.social a:hover {
    color: #9be62e;
}

/* Hero compacto, integrado con la navegación, según la referencia aprobada. */
.top {
    height: 72px;
    padding-inline: 6%;
}

.top nav {
    gap: 24px;
}

.brand.brand-essmar {
    display: flex;
    width: 118px;
    align-items: center;
    line-height: 1;
}

.brand.brand-essmar img {
    display: block;
    width: 100%;
    max-height: 54px;
    object-fit: contain;
}

.hero {
    height: 510px;
}

.hero-copy {
    top: 112px;
    left: 8%;
    width: 43%;
}

.hero h1 {
    font-size: clamp(96px, 8.5vw, 132px);
    margin-block: 18px;
}

.hero h2 {
    margin-top: 18px;
}

.hero p {
    margin-bottom: 16px;
    line-height: 1.35;
}

.meta {
    margin-block: 20px;
}

@media (max-width: 800px) {
    .top {
        height: 60px;
        padding-inline: 15px;
    }

    .brand.brand-essmar {
        width: 94px;
    }

    .brand.brand-essmar img {
        max-height: 44px;
    }

    .top nav {
        top: 60px;
    }

    .hero {
        height: 610px;
    }

    .hero-copy {
        top: auto;
        bottom: 25px;
        left: 0;
        width: 100%;
        padding-inline: 28px;
    }
}

/* Hero final: esta regla prevalece sobre los ajustes globales de espaciado. */
.top {
    height: 64px;
    padding-inline: 6%;
    background: linear-gradient(90deg, rgba(0, 45, 70, .74), rgba(0, 59, 86, .36));
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.top nav {
    gap: 24px;
}

.hero {
    height: 500px;
    background-position: center 50%;
}

.hero::before,
.hero::after {
    display: none;
}

.hero-copy {
    top: 104px;
    left: 8%;
    width: min(43%, 530px);
}

.eyebrow {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .26em;
}

.hero h1 {
    font-size: clamp(88px, 8.2vw, 122px);
    font-weight: 900;
    letter-spacing: -.11em;
    line-height: .72;
    margin: 16px 0 18px;
}

.hero h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.04em;
    margin: 0 0 12px;
}

.hero h3 {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .01em;
    margin: 0 0 12px;
}

.hero p {
    font-size: 14px;
    line-height: 1.45;
    max-width: 475px;
    margin: 0 0 18px;
}

.meta {
    font-size: 11px;
    margin: 18px 0;
}

.meta span {
    margin-inline: 12px;
}

.actions .btn,
.actions .ghost {
    font-size: 11px;
    padding: 13px 20px;
}

.hero-phrase {
    right: 9%;
    bottom: 36px;
    font-size: 21px;
}

@media (max-width: 800px) {
    .top {
        height: 60px;
        padding-inline: 15px;
    }

    .top nav {
        top: 60px;
    }

    .hero {
        height: 610px;
    }

    .hero-copy {
        top: auto;
        right: auto;
        bottom: 25px;
        left: 0;
        width: 100%;
        padding-inline: 28px;
    }

    .eyebrow {
        font-size: 15px;
        letter-spacing: .22em;
    }

    .hero h1 {
        font-size: clamp(76px, 23vw, 92px);
        letter-spacing: -.1em;
        margin: 14px 0;
    }

    .hero h2 {
        font-size: 23px;
        margin-bottom: 10px;
    }

    .hero h3 {
        font-size: 17px;
    }
}

/* Inscripción: fila completa de cuatro tarjetas, seguida por el banner. */
.middle {
    display: block;
    padding: 38px clamp(24px, 6vw, 96px) 0;
}

.includes h2 {
    margin: 0 0 18px;
    color: #06436c;
    font-size: clamp(20px, 1.8vw, 26px);
    font-weight: 900;
    letter-spacing: -.04em;
}

.cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.cards article {
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(5, 111, 157, .04);
    border-radius: 12px;
    background: #eef8fc;
    box-shadow: none;
}

.cards img {
    height: 180px;
    padding: 10px;
    object-fit: contain;
}

.cards b {
    padding: 3px 10px 14px;
    color: #06436c;
    font-size: 12px;
    font-weight: 800;
}

.kit .kit-art {
    position: relative;
    display: flex;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    padding: 0;
    color: #087db3;
    font-size: 64px;
    background: linear-gradient(145deg, #e4f5fb, #f6fcff);
}

.kit .kit-art::before {
    position: absolute;
    inset: 22px 28px;
    border: 2px solid rgba(125, 201, 67, .36);
    border-radius: 50%;
    content: '';
    transform: rotate(-18deg);
}

.kit .kit-art i {
    position: relative;
    z-index: 1;
}

.kit .kit-art i:last-child {
    align-self: flex-end;
    margin: 0 0 38px -6px;
    color: #7ac943;
    font-size: 36px;
}

.banner {
    min-height: 220px;
    margin-top: 28px;
    padding: 30px 36px;
}

@media (max-width: 800px) {
    .middle {
        padding: 34px 20px 0;
    }

    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .cards img,
    .kit .kit-art {
        min-height: 145px;
        height: 145px;
    }

    .cards b {
        min-height: 42px;
        font-size: 11px;
    }

    .kit .kit-art {
        font-size: 54px;
    }

    .banner {
        min-height: 210px;
        margin-top: 24px;
        padding: 28px 24px;
    }
}

/* Banner ESSMAR: foto de cabecera, llamado y cuenta regresiva. */
.banner {
    position: relative;
    isolation: isolate;
    min-height: 270px;
    overflow: hidden;
    padding: 34px 42px;
    border-radius: 12px;
    background: #00435f;
}

.banner::before {
    position: absolute;
    z-index: 2;
    inset: auto 0 0;
    height: 6px;
    background: linear-gradient(90deg, #00aeef, #9be62e 68%, transparent 68%);
    content: '';
}

.banner::after {
    position: absolute;
    z-index: 0;
    inset: -12px;
    background: linear-gradient(90deg, rgba(0, 47, 73, .96) 0%, rgba(0, 61, 89, .88) 38%, rgba(0, 61, 89, .66) 100%), url('assets/hero-reference.png') center 54% / cover no-repeat;
    content: '';
    filter: blur(7px);
}

.banner-copy,
.countdown {
    position: relative;
    z-index: 1;
}

.banner-copy {
    max-width: 285px;
}

.banner h2 {
    font-family: 'Montserrat', Arial, sans-serif;
    line-height: .82;
}

.banner h2 span {
    color: #6ad8ff;
    font-size: 24px;
    font-weight: 800;
}

.banner h2 strong {
    color: #fff;
    font-size: 44px;
    font-weight: 900;
    letter-spacing: -.07em;
}

.banner p {
    margin: 16px 0 20px;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 13px;
    line-height: 1.45;
}

.banner .btn {
    padding: 12px 16px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 10px;
}

.countdown {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    text-align: center;
    transform: translate(-50%, -50%);
    backdrop-filter: none;
}

.countdown-label {
    display: block;
    margin-bottom: 12px;
    color: #dfffb6;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.countdown-units {
    display: flex;
    justify-content: center;
    gap: 0;
}

.countdown-units > span {
    position: relative;
    display: block;
    min-width: 0;
    padding: 0 22px;
}

.countdown-units > span:not(:last-child)::after {
    position: absolute;
    top: 50%;
    right: -3px;
    color: rgba(255, 255, 255, .66);
    content: '|';
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 30px;
    font-weight: 300;
    transform: translateY(-50%);
}

.countdown-units b {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: clamp(44px, 4.5vw, 70px);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.countdown-units small {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, .82);
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 10px;
    text-transform: uppercase;
}

.banner .quote {
    margin-left: auto;
    color: #fff;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 18px;
    line-height: 1.12;
    text-shadow: 0 2px 10px rgba(0, 37, 58, .76);
}

@media (max-width: 800px) {
    .banner {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 0;
        gap: 22px;
        padding: 32px 24px;
        justify-items: center;
        text-align: center;
    }

    .banner-copy {
        display: flex;
        width: 100%;
        flex-direction: column;
        align-items: center;
        max-width: none;
        text-align: center;
    }

    .banner-copy h2,
    .banner-copy p {
        width: 100%;
        text-align: center;
    }

    .banner-copy .btn {
        align-self: center;
    }

    .countdown {
        position: static;
        align-self: center;
        width: auto;
        min-width: 0;
        margin: 0;
        transform: none;
    }

    .banner::after {
        background-position: 62% center;
    }

    .countdown-units > span {
        padding: 0 9px;
    }

    .countdown-units > span:not(:last-child)::after {
        right: -2px;
        font-size: 22px;
    }

    .countdown-units b {
        font-size: clamp(30px, 10vw, 42px);
    }

    .banner .quote {
        display: none;
    }
}

/* Separación entre el banner de cuenta regresiva y el pie de página. */
footer {
    margin-top: 64px;
}

@media (max-width: 800px) {
    footer {
        margin-top: 42px;
    }
}

/* Logo ESSMAR: contraste y proporción sobre fondos azules. */
.top {
    height: 76px;
}

.brand.brand-essmar {
    width: 118px;
    padding: 4px 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 4px 12px rgba(0, 28, 43, .2);
}

.brand.brand-essmar img {
    max-height: 60px;
}

.hero-copy {
    top: 92px;
}

.hero-brand {
    width: auto;
    margin-bottom: 16px;
}

.hero-brand span,
.hero-brand strong {
    display: block;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 900;
    line-height: .86;
}

.hero-brand span {
    color: #69d8ff;
    font-size: clamp(24px, 2.4vw, 34px);
    letter-spacing: -.05em;
}

.hero-brand strong {
    color: #fff;
    font-size: clamp(48px, 5vw, 72px);
    letter-spacing: -.08em;
}

@media (max-width: 800px) {
    .top {
        height: 66px;
    }

    .top nav {
        top: 66px;
    }

    .brand.brand-essmar {
        width: 96px;
        padding: 3px 5px;
    }

    .brand.brand-essmar img {
        max-height: 48px;
    }

    .hero-brand {
        margin-bottom: 14px;
    }

    .hero-brand span {
        font-size: clamp(22px, 7vw, 30px);
    }

    .hero-brand strong {
        font-size: clamp(44px, 14vw, 62px);
    }

    .hero-copy {
        top: auto;
    }
}

/* Mayor respiración entre el encabezado y el contenido del hero. */
.hero {
    height: 580px;
}

.hero-copy {
    top: 78px;
}

@media (max-width: 800px) {
    .hero {
        height: 660px;
    }

    .hero-copy {
        top: auto;
        bottom: 34px;
    }
}

/* Frase editorial del hero. */
.hero-phrase {
    right: clamp(28px, 8vw, 145px);
    bottom: 46px;
    margin: 0;
    color: #fff;
    font-family: 'Caveat', cursive;
    font-size: clamp(34px, 3vw, 52px);
    font-style: normal;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: .82;
    text-align: right;
    text-shadow: 0 3px 13px rgba(0, 34, 53, .75);
    transform: rotate(-5deg);
}

.hero-phrase b {
    display: block;
    color: #fff;
    font-size: 1.18em;
}

.hero-phrase::after {
    display: block;
    width: 72%;
    height: 4px;
    margin: 8px 0 0 auto;
    border-radius: 99px;
    background: #9be62e;
    content: '';
    transform: skewX(-28deg);
}

/* Pie de página simplificado. */
footer {
    grid-template-columns: 1fr auto 1fr;
}

footer .institution {
    grid-column: 1;
}

footer .slogan {
    grid-column: 2;
    justify-self: center;
}

footer .slogan {
    color: #fff;
    font-family: 'Caveat', cursive;
    font-size: 27px;
    font-style: normal;
    font-weight: 700;
    line-height: .86;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 24, 42, .35);
    transform: rotate(-2deg);
}

footer > small {
    color: rgba(255, 255, 255, .82);
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
}

@media (max-width: 800px) {
    footer {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 16px;
        row-gap: 20px;
        text-align: center;
    }

    footer .slogan {
        grid-column: 1 / -1;
        grid-row: 1;
        justify-self: center;
        text-align: center;
    }

    footer .institution {
        grid-column: 1;
        grid-row: 2;
        flex-direction: column;
        gap: 5px;
        justify-self: center;
        font-size: 9px;
        line-height: 1.2;
    }

    footer .institution span {
        display: none;
    }

    footer > small {
        grid-column: 2;
        grid-row: 2;
        align-self: center;
        border-top: 0;
        padding-top: 0;
        font-size: 9px;
        line-height: 1.3;
        text-align: center;
    }
}

/* Inscripciones protegidas por código de un solo uso. */
.registration-section {
    display: grid;
    grid-template-columns: minmax(240px, .75fr) minmax(430px, 1.25fr);
    gap: clamp(32px, 6vw, 96px);
    max-width: 1600px;
    margin: 0 auto;
    padding: 84px clamp(24px, 8vw, 128px);
    background: #eef8fc;
}

.registration-intro {
    align-self: center;
}

.registration-intro > span {
    color: #078ac4;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
}

.registration-intro h2 {
    max-width: 420px;
    margin: 10px 0 16px;
    color: #06436c;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: clamp(31px, 3.2vw, 48px);
    font-weight: 900;
    letter-spacing: -.06em;
    line-height: .96;
}

.registration-intro p {
    max-width: 380px;
    margin: 0;
    color: #315d76;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
}

.registration-panel {
    display: grid;
    gap: 28px;
    min-height: 0;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid rgba(5, 93, 134, .12);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(0, 62, 90, .12);
}

.code-access-form,
.employee-access-form,
.registration-form {
    display: grid;
    gap: 18px;
}

.access-mode-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
    border: 1px solid #d9eaf1;
    border-radius: 14px;
    background: #edf6f9;
}

.access-mode {
    min-height: 48px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #315f78;
    font: 800 12px 'Montserrat', Arial, sans-serif;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.access-mode i {
    margin-right: 7px;
    color: #008bc7;
}

.access-mode.is-active {
    background: #00547d;
    color: #fff;
    box-shadow: 0 5px 14px rgba(0, 75, 111, .22);
}

.access-mode.is-active i {
    color: #a7e623;
}

.access-mode:hover:not(.is-active) {
    background: rgba(255, 255, 255, .72);
    color: #00547d;
}

.form-heading {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding-bottom: 18px;
    border-bottom: 1px solid #d7e9f1;
}

.form-heading > i {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 50%;
    background: #e1f5fc;
    color: #008bca;
}

.form-heading-success > i {
    background: #effbdc;
    color: #70b72e;
}

.form-heading h3 {
    margin: 0 0 4px;
    color: #06436c;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 20px;
    font-weight: 900;
}

.form-heading p {
    margin: 0;
    color: #557287;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 12px;
    line-height: 1.4;
}

.code-access-form > label,
.employee-access-form > label,
.form-fields label {
    display: grid;
    gap: 7px;
    color: #24536e;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
}

.code-input-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.code-input-row input,
.form-fields input,
.form-fields select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #c4dce8;
    border-radius: 8px;
    outline: 0;
    background: #fbfeff;
    color: #063e60;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 14px;
}

.form-fields input[readonly] {
    background: #f0f6f8;
    color: #547185;
    cursor: default;
}

.code-input-row input {
    padding: 0 15px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;
}

.form-fields input,
.form-fields select {
    padding-inline: 13px;
}

.code-input-row input:focus,
.form-fields input:focus,
.form-fields select:focus {
    border-color: #00aeef;
    box-shadow: 0 0 0 3px rgba(0, 174, 239, .14);
}

.code-input-row .btn,
.registration-submit {
    flex: 0 0 auto;
    border: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 11px;
}

.code-input-row .btn {
    width: 190px;
    min-height: 52px;
    justify-content: center;
    padding-inline: 18px;
    border-radius: 10px;
    letter-spacing: 0;
}

.form-message {
    min-height: 18px;
    margin: 0;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 12px;
    line-height: 1.4;
}

.form-message.is-error {
    color: #bd3c3c;
}

.form-message.is-success {
    color: #4a8c18;
}

.form-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.form-fields .field-full {
    grid-column: 1 / -1;
}

.policy-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #45657a;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 12px;
    line-height: 1.4;
}

.policy-check input {
    margin-top: 2px;
    accent-color: #75bd30;
}

.registration-submit {
    justify-self: start;
}

.registration-section [hidden] {
    display: none !important;
}

.registration-section button:disabled {
    cursor: wait;
    opacity: .68;
}

body.modal-open {
    overflow: hidden;
}

.success-modal {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(0, 41, 64, .68);
    backdrop-filter: blur(6px);
}

.success-modal[hidden] {
    display: none;
}

.success-modal__card {
    position: relative;
    width: min(100%, 440px);
    padding: 48px 42px 38px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(0, 22, 39, .35);
    text-align: center;
}

.success-modal__card::before {
    position: absolute;
    top: -72px;
    left: 50%;
    width: 260px;
    height: 150px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(155, 226, 31, .32), rgba(155, 226, 31, 0) 70%);
    content: '';
}

.success-modal__close {
    position: absolute;
    z-index: 1;
    top: 16px;
    right: 16px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #edf5f8;
    color: #477084;
    cursor: pointer;
}

.success-modal__icon {
    position: relative;
    display: grid;
    width: 74px;
    height: 74px;
    margin: 0 auto 21px;
    place-items: center;
    border-radius: 50%;
    background: #effbdd;
    color: #78ba22;
    font-size: 35px;
}

.success-modal__card p {
    margin: 0 0 8px;
    color: #008aca;
    font: 800 11px 'Montserrat', Arial, sans-serif;
    letter-spacing: .14em;
}

.success-modal__card h2 {
    margin: 0 0 12px;
    color: #004c73;
    font: 900 28px/1.08 'Montserrat', Arial, sans-serif;
}

.success-modal__card > span:not(.success-modal__icon) {
    display: block;
    color: #557287;
    font: 14px/1.55 'Poppins', Arial, sans-serif;
}

.success-modal__button {
    min-width: 178px;
    margin-top: 27px;
    border: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 11px;
}

@media (max-width: 800px) {
    .registration-section {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 60px 20px;
    }

    .registration-intro {
        text-align: center;
    }

    .registration-intro p {
        margin-inline: auto;
    }

    .registration-panel {
        gap: 22px;
        padding: 24px 20px;
        border-radius: 14px;
    }

    .success-modal { padding: 18px; }

    .success-modal__card {
        padding: 43px 26px 30px;
        border-radius: 20px;
    }

    .success-modal__card h2 { font-size: 24px; }

    .access-mode { font-size: 10px; }

    .code-input-row {
        flex-direction: column;
    }

    .code-input-row .btn,
    .registration-submit {
        width: 100%;
    }

    .form-fields {
        grid-template-columns: 1fr;
    }

    .form-fields .field-full {
        grid-column: auto;
    }
}

/* Carrera final: prioridad sobre las reglas generales de espaciado. */
.race {
    height: 250px;
    min-height: 250px;
    background: url('assets/imgen hero 2.png') center center / cover no-repeat;
}

.race-copy {
    padding: 34px clamp(32px, 7vw, 120px);
}

.race h2 {
    margin-bottom: 10px;
}

.race p {
    margin: 0 0 16px;
}

.coast {
    min-height: 0;
    background: none;
    padding: 28px clamp(32px, 8vw, 130px);
    text-shadow: 0 2px 10px rgba(0, 47, 73, .48);
}

@media (max-width: 800px) {
    .race {
        height: auto;
        min-height: 0;
        background-position: 60% center;
    }

    .race-copy {
        padding: 34px 24px;
        background: linear-gradient(90deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .82));
    }

    .coast {
        min-height: 210px;
        padding: 34px 24px;
    }
}
