.logo-comuna {
    max-height: 5rem;
    max-width: 15rem;
}

.sidebar-comuna {
    /* background-image: linear-gradient(180deg, rgb(0 196 360) 10%, #10174a 80%) !important; */
}

@media (min-width: 750px) {
    .sidebar-comuna {
        /* width: 270px !important; */
        /* position: sticky !important; */
        /* top: 0 !important; */
    }
}

.pcv-header,
.comuna-header {
    background-color: rgb(0, 105, 175);
    color: #ffffff;
}

.pcv-footer,
.comuna-footer {
    background-color: #761ab382;
    color: #ffffff;
}

.datos-fono:after {
    content: ' 224 028 448';
}

.datos-mail:after {
    content: ' permisocirculacion@maipu.cl';
}

.datos-direccion:after {
    content: ' Av. 5 de Abril 0260, Maipú, Chile';
}

.primary-color {
    color: #10174a;
}

.secondary-color {
    color: #18ffff;
}

.alternative-color {
    color: #d0009f;
}

.primary-background-color {
    background-color: #10174a;
}

.secondary-background-color {
    background-color: #00c5b5;
}

.alternative-background-color {
    background-color: #c9009c;
}

/* Corrida Familiar - interfaz aniversario 232 */
body.corrida-login,
body.corrida-page {
    font-family: "Open Sans", Arial, sans-serif;
    color: #172033;
}

body.corrida-login {
    min-height: 100vh;
    margin: 0;
    padding: 32px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.2), rgba(234, 247, 252, 0.5)), #eaf7fc url("../img/fondo.jpg") center center / cover no-repeat fixed;
}

body.corrida-login:before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(244, 251, 253, 0.62);
}

.login-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1060px;
    display: grid;
    grid-template-columns: 430px 1fr;
    gap: 24px;
    align-items: stretch;
}

.login-panel,
.event-panel,
.corrida-form-panel {
    border: 1px solid rgba(16, 54, 88, 0.12);
    border-radius: 8px;
    box-shadow: 0 18px 55px rgba(16, 54, 88, 0.16);
}

.login-panel {
    position: relative;
    overflow: hidden;
    padding: 34px;
    background: rgba(255, 255, 255, 0.96);
}

.login-panel:before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: linear-gradient(90deg, #c91832 0%, #c91832 42%, #ffffff 42%, #ffffff 56%, #0a6fae 56%, #0a6fae 100%);
}

.login-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.login-brand img {
    width: 160px;
    max-width: 58%;
    height: auto;
}

.login-anniversary,
.corrida-anniversary,
.event-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0;
    font-weight: 800;
}

.login-anniversary {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 6px;
    color: #b8122a;
    background: #fff0f3;
    border: 1px solid #ffd5dc;
    font-size: 12px;
    white-space: nowrap;
}

.login-panel h1,
.event-panel h2,
.hero-copy h2 {
    margin: 0;
    color: #0b385f;
    font-weight: 800;
    line-height: 1.12;
}

.login-panel h1 {
    font-size: 30px;
}

.login-lead {
    margin: 12px 0 26px;
    color: #5a6778;
    font-size: 16px;
}

.login-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 0 0 24px;
}

.login-meta span {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 6px;
    color: #0b385f;
    background: #f0f8fc;
    border: 1px solid #d6eaf3;
    font-weight: 900;
}

.login-meta i {
    color: #c91832;
}

.login-form label,
.corrida-form-panel .form-label {
    color: #263648;
    font-size: 13px;
    font-weight: 800;
}

.login-form .input-group-text,
.login-form .input-group-addon,
.corrida-form-panel .input-group-text {
    color: #0a6fae;
    background: #eef8fd;
    border-color: #cfe2ec;
}

.login-form .form-control,
.corrida-form-panel .form-control,
.corrida-form-panel .custom-select {
    min-height: 44px;
    border: 1px solid #cfe2ec;
    border-radius: 6px;
    color: #162033;
    box-shadow: none;
}

.login-form .input-group .form-control {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.login-form .form-control:focus,
.corrida-form-panel .form-control:focus,
.corrida-form-panel .custom-select:focus {
    border-color: #0a83c8;
    box-shadow: 0 0 0 0.2rem rgba(10, 131, 200, 0.14);
}

.btn-corrida-primary {
    color: #ffffff;
    background: #c91832;
    border-color: #b8122a;
    border-radius: 6px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(201, 24, 50, 0.2);
}

.btn-corrida-primary:hover,
.btn-corrida-primary:focus {
    color: #ffffff;
    background: #aa1025;
    border-color: #960d20;
    box-shadow: 0 12px 28px rgba(201, 24, 50, 0.28);
}

.login-footer {
    margin: 24px 0 0;
    color: #697789;
    text-align: center;
}

.event-panel {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    display: flex;
    align-items: flex-end;
    color: #ffffff;
    background: linear-gradient(120deg, rgba(8, 30, 56, 0.95) 0%, rgba(8, 57, 98, 0.78) 55%, rgba(8, 57, 98, 0.58) 100%), url("../img/banner.png") center center / cover no-repeat;
}

.event-panel-badge {
    position: absolute;
    top: 22px;
    right: 22px;
    display: flex;
    min-width: 86px;
    min-height: 86px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    color: #10233c;
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

.event-panel-badge strong {
    color: #c91832;
    font-size: 34px;
    line-height: 1;
}

.event-panel-badge span {
    color: #0b385f;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.event-panel-content {
    padding: 36px;
}

.event-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #c91832;
    font-size: 13px;
}

.event-panel .event-eyebrow {
    color: #9fe6ff;
}

.event-panel h2 {
    max-width: 460px;
    color: #ffffff;
    font-size: 36px;
}

.event-panel p {
    max-width: 470px;
    margin: 14px 0 24px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
}

.event-distances {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.event-distances span {
    min-width: 64px;
    padding: 8px 14px;
    border-radius: 6px;
    color: #0b385f;
    background: #ffffff;
    border: 1px solid rgba(10, 111, 174, 0.22);
    text-align: center;
    font-weight: 900;
}

body.corrida-page {
    margin-bottom: 0;
    min-height: 100vh;
    background: #f3f9fc;
}

.corrida-navbar {
    padding: 12px 0;
    background: #ffffff;
    border-bottom: 1px solid #dbe8ef;
}

.corrida-navbar .container {
    display: flex;
    align-items: center;
    gap: 18px;
}

.corrida-brand {
    margin-right: 0;
    padding: 0;
    white-space: normal;
}

.corrida-brand-copy {
    flex: 1;
}

.corrida-brand-copy span {
    display: block;
    color: #0a6fae;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.corrida-brand-copy h1 {
    margin: 2px 0 0;
    color: #10233c;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.15;
}

.corrida-anniversary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    background: #10233c;
    color: #ffffff;
}

.corrida-anniversary strong {
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
}

.corrida-anniversary span {
    font-size: 11px;
}

.corrida-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(8, 30, 56, 0.94) 0%, rgba(8, 57, 98, 0.74) 58%, rgba(8, 57, 98, 0.34) 100%), url("../img/banner.png") center center / cover no-repeat;
    border-bottom: 1px solid #d5e9f1;
}

.corrida-hero .container {
    min-height: 340px;
    display: flex;
    align-items: center;
    padding-top: 42px;
    padding-bottom: 78px;
}

.hero-copy {
    max-width: 640px;
}

.hero-copy h2 {
    color: #ffffff;
    font-size: 38px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
}

.hero-copy p {
    margin: 12px 0 18px;
    max-width: 560px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 16px;
}

.corrida-hero .event-eyebrow {
    color: #9fe6ff;
}

.corrida-hero .event-distances span {
    color: #10233c;
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(255, 255, 255, 0.64);
}

.corrida-main {
    padding-top: 0;
    padding-bottom: 44px;
}

.event-summary-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: -44px 0 24px;
}

.event-summary-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 12px;
    align-items: center;
    min-height: 92px;
    padding: 18px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid rgba(16, 54, 88, 0.1);
    box-shadow: 0 14px 38px rgba(16, 54, 88, 0.12);
}

.event-summary-item i {
    grid-row: span 2;
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #ffffff;
    background: #0a6fae;
    font-size: 18px;
}

.event-summary-item strong {
    color: #10233c;
    font-size: 16px;
    line-height: 1.2;
}

.event-summary-item span {
    color: #667587;
    font-size: 13px;
}

.declaration-band {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 18px 20px;
    border-radius: 8px;
    background: #ffffff;
    border-left: 5px solid #0a83c8;
    box-shadow: 0 8px 28px rgba(16, 54, 88, 0.08);
}

.declaration-band i {
    margin-top: 2px;
    color: #c91832;
    font-size: 24px;
}

.declaration-band p {
    margin: 0;
    color: #43546a;
    line-height: 1.55;
}

.corrida-form-panel {
    position: relative;
    overflow: hidden;
    padding: 28px;
    background: #ffffff;
}

.corrida-form-panel:before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, #0a6fae, #c91832);
}

.corrida-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.corrida-section-title span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #ffffff;
    background: #0a6fae;
    font-weight: 900;
}

.corrida-section-title h3 {
    margin: 0;
    color: #10233c;
    font-size: 20px;
    font-weight: 900;
}

.corrida-section-title p {
    margin: 2px 0 0;
    color: #667587;
    font-size: 13px;
    font-weight: 700;
}

.form-color {
    padding: 0;
    background: transparent;
}

.form-required {
    color: #c91832;
}

.required-note {
    color: #6b7788;
    font-weight: 700;
}

.bases-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0a6fae;
    font-weight: 800;
}

.bases-link:hover,
.bases-link:focus {
    color: #075483;
    text-decoration: none;
}

.thanks-band {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 8px 0 22px;
    padding: 14px 18px;
    border-radius: 8px;
    color: #7c1525;
    background: linear-gradient(90deg, #fff6f7, #eef8fd);
    border: 1px solid #ffd3db;
}

.thanks-band strong {
    text-transform: uppercase;
    font-weight: 900;
}

.action-bar,
.pdf-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.action-bar .btn,
.pdf-actions .btn {
    min-width: 150px;
    border-radius: 6px;
    font-weight: 800;
}

.pdf-actions {
    margin: 4px 0 22px;
}

.corrida-form-panel .btn-outline-primary {
    color: #0a6fae;
    border-color: #0a6fae;
}

.corrida-form-panel .btn-outline-primary:hover,
.corrida-form-panel .btn-outline-primary:focus {
    color: #ffffff;
    background: #0a6fae;
}

.corrida-footer {
    position: static;
    width: 100%;
    padding: 18px 0;
    line-height: 1.4;
    color: #ffffff;
    background: #10233c;
}

.processing-modal {
    padding: 32px;
    border-radius: 8px;
}

.processing-modal h1 {
    margin: 0;
    color: #10233c;
    font-size: 24px;
    font-weight: 900;
}

@media (max-width: 900px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .event-panel {
        min-height: 300px;
    }

    .corrida-hero .container {
        min-height: 300px;
        padding-bottom: 72px;
    }

    .event-summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    body.corrida-login {
        padding: 18px 12px;
    }

    .login-panel,
    .event-panel-content,
    .corrida-form-panel {
        padding: 22px;
    }

    .login-brand,
    .corrida-navbar .container {
        align-items: flex-start;
    }

    .login-brand {
        flex-direction: column;
    }

    .corrida-navbar .container {
        flex-wrap: wrap;
    }

    .corrida-anniversary {
        width: 100%;
        justify-content: center;
    }

    .login-panel h1 {
        font-size: 25px;
    }

    .event-panel h2,
    .hero-copy h2 {
        font-size: 28px;
    }

    .login-meta {
        grid-template-columns: 1fr;
    }

    .event-panel-badge {
        position: static;
        margin: 22px 22px 0 auto;
    }

    .declaration-band,
    .thanks-band {
        flex-direction: column;
    }

    .action-bar .btn,
    .pdf-actions .btn {
        width: 100%;
    }
}
