.topbar {
    justify-content: center
}

.intro {
    text-align: center
}

.intro p {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto
}

:root {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    color: #f4f8ff;
    background: #061221;
    font-synthesis: none
}

* {
    box-sizing: border-box
}

body {
    margin: 0
}

body.landing {
    background:
        linear-gradient(#061221b8, #061221d9),
        url("Recursos_Imagenes/Convoy Solistica al atardecer en Orizaba.png?v=20261106") center / cover no-repeat fixed;
    color: #f4f8ff;
}

a {
    color: inherit
}

.topbar {
    background: white;
    border-bottom: 1px solid #e5edf6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    min-height: 75px;
    padding: 12px max(22px, calc((100vw - 1200px)/2))
}

.landing .topbar {
    display: none
}

.topbar img {
    display: block;
    width: 130px;
    max-height: 45px;
    object-fit: contain
}

.return {
    color: #1765b7;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700
}

.wrap {
    width: min(1200px, 100%);
    margin: auto;
    padding: 52px 22px 70px
}

.landing .wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(1200px, 100%);
    padding-top: 34px;
    padding-bottom: 22px;
}

.eyebrow {
    font-size: 12px;
    color: #216abe;
    letter-spacing: .13em;
    font-weight: 800;
    text-transform: uppercase
}

.intro h1 {
    margin: 12px 0 10px;
    font-size: clamp(34px, 4vw, 52px);
    letter-spacing: -.035em;
    color: #ffffff;
    text-shadow: 0 4px 24px #0008
}

.intro p,
.page-heading p {
    color: #9edcff;
    font-size: 16px;
    line-height: 1.5
}

.landing-footer {
    padding: 4px 22px 10px;
    text-align: center;
}

.landing-footer img {
    display: inline-block;
    width: 92px;
    height: auto;
    opacity: .9;
}

@media (min-width: 701px) {
    .landing .cards {
        margin-top: 26px;
    }

    .landing .tile {
        min-height: 225px;
        padding: 26px;
    }
}

.cards {
    margin-top: 33px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px
}

.tile {
    --photo: url('Recursos_Imagenes/images.jpg?v=20261106');
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 330px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 24px;
    padding: 30px;
    border-radius: 20px;
    color: white;
    text-decoration: none;
    border: 0;
    box-shadow: 0 16px 38px #020b18aa, inset 0 1px 0 #ffffff33;
    transition: transform .22s, box-shadow .22s;
    background: #0d376b
}

.tile::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--shade), var(--photo);
    background-size: cover;
    background-position: center;
    transition: transform .25s
}

.tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px #020b18cc, inset 0 1px 0 #ffffff55
}

.tile:hover::before {
    transform: scale(1.04)
}

.tile:focus-visible,
.button:focus-visible {
    outline: 3px solid #67b5ff;
    outline-offset: 4px
}

.planta {
    --photo: url("Recursos_Imagenes/stats-img-2.jpg?v=20261106");
    --shade: linear-gradient(160deg, #03152b1f, #031d424d)
}

.cad {
    --photo: url("Recursos_Imagenes/image.webp?v=20261106");
    --shade: linear-gradient(160deg, #03152b1f, #031d424d)
}

.base {
    --photo: url("Recursos_Imagenes/1113116.jpg?v=20261106");
    --shade: linear-gradient(160deg, #03152b1f, #031d424d)
}

.tile h2 {
    font-size: clamp(23px, 2.5vw, 31px);
    letter-spacing: -.02em;
    line-height: 1.12;
    text-shadow: 0 2px 4px #000, 0 5px 18px #000c;
    margin: 0
}

.tile .button {
    display: inline-block;
    border-radius: 10px;
    padding: 14px 21px;
    background: #ffffff;
    color: #115bb3;
    font-weight: 750;
    font-size: 14px;
    box-shadow: 0 6px 16px #0006;
    transition: background-color .2s, color .2s, transform .2s
}

.tile:hover .button {
    background: #bce5ff;
    color: #073d79;
    transform: translateY(-1px)
}

footer {
    padding: 22px;
    text-align: center;
    color: #6d7c90;
    font-size: 13px
}

.landing {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 50% 35%, #16467433 0, transparent 42%),
        linear-gradient(#061221b8, #061221d9),
        url("Recursos_Imagenes/Convoy Solistica al atardecer en Orizaba.png?v=20261106") center / cover no-repeat fixed;
}

.landing .wrap {
    flex: 1
}

@media (max-width: 700px) {
    .landing .wrap {
        padding: 42px 16px 24px;
    }

    .intro h1 {
        font-size: clamp(31px, 9vw, 42px);
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 26px;
    }

    .tile {
        min-height: 166px;
        padding: 22px;
        gap: 14px;
        border-radius: 16px;
    }

    .tile h2 {
        font-size: 24px;
    }

    .landing-footer {
        padding-bottom: 18px;
    }
}

.page-heading {
    margin-bottom: 26px
}

.page-heading h1 {
    font-size: clamp(30px, 3.5vw, 44px);
    letter-spacing: -.025em;
    margin: 0 0 7px
}

.page-heading p {
    margin: 0
}

.week-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    background: white;
    border: 1px solid #e5edf6;
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 23px;
    box-shadow: 0 9px 27px #123b700d
}

.week-caption {
    font-size: 13px;
    color: #617389
}

.week-label {
    font-size: 20px;
    font-weight: 750;
    margin-top: 4px
}

.week-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px
}

.icon-btn,
.date-picker,
.download-btn {
    font: inherit;
    min-height: 42px;
    border-radius: 9px
}

.icon-btn {
    width: 43px;
    background: #fff;
    border: 1px solid #d7e4f3;
    color: #1e5b9a;
    font-size: 25px;
    cursor: pointer
}

.date-picker {
    border: 1px solid #d7e4f3;
    padding: 0 10px;
    max-width: 175px
}

.download-btn {
    padding: 0 20px;
    border: 0;
    background: #2677eb;
    color: white;
    font-weight: 700;
    cursor: pointer
}

.download-btn:disabled {
    opacity: .65;
    cursor: wait
}

.table-panel {
    background: white;
    border: 1px solid #e3ebf5;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 9px 27px #123b700d
}

.scroll {
    overflow-x: auto
}

table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    table-layout: fixed;
    text-align: center
}

thead {
    background: #e9f2fc
}

th,
td {
    padding: 19px 10px;
    border-bottom: 1px solid #e5ebf2;
    border-right: 1px solid #e5ebf2
}

th:last-child,
td:last-child {
    border-right: 0
}

thead th:first-child {
    width: 27%
}

thead th span {
    display: block;
    font-size: 12px;
    color: #66778d;
    font-weight: 400;
    margin-top: 5px
}

tbody tr:nth-child(even) {
    background: #f8fbff
}

tbody th {
    text-align: left;
    padding-left: 19px;
    overflow-wrap: anywhere
}

tbody td {
    font-weight: 650
}

.vacation {
    background: #e9f8f1;
    color: #167952;
    font-size: 13px
}

.status,
.help {
    padding: 12px 19px;
    margin: 0;
    font-size: 13px;
    color: #64768b
}

.empty {
    text-align: center;
    font-size: 15px;
    color: #66778d;
    padding: 40px
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

@media(max-width:900px) {
    .cards {
        grid-template-columns: 1fr;
        gap: 15px
    }

    .tile {
        min-height: 200px;
        padding: 23px;
        gap: 18px
    }

    .wrap {
        padding-top: 34px
    }
}

@media(max-width:650px) {
    .topbar {
        padding: 12px 16px;
        gap: 10px
    }

    .topbar img {
        width: 105px
    }

    .return {
        font-size: 12px
    }

    .wrap {
        padding: 28px 14px 48px
    }

    .intro h1 {
        font-size: 35px
    }

    .week-card {
        padding: 16px
    }

    .week-controls {
        width: 100%;
        display: grid;
        grid-template-columns: 42px 42px 1fr;
        gap: 7px
    }

    .date-picker {
        max-width: none;
        min-width: 0;
        width: 100%
    }

    .download-btn {
        grid-column: 1/-1
    }

    table {
        min-width: 720px
    }

    th,
    td {
        padding: 13px 8px
    }

    tbody th,
    tbody td {
        font-size: 13px
    }

    .vacation {
        font-size: 11px
    }
}