:root {
    --ink: #2a2027;
    --black: #251b23;
    --paper: #fffaf7;
    --pink: #f5bcc6;
    --line: #e9d9d5;
}

.topbar {
    background: rgba(255, 250, 247, .95);
}

.topbar-inner {
    min-height: 76px;
}

.prime-feature-hero {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    min-height: min(720px, calc(100svh - 76px));
    gap: clamp(30px, 5vw, 88px);
    padding-block: clamp(44px, 6vw, 92px);
}

.prime-hero-copy h1 {
    text-wrap: balance;
}

.prime-feature-hero h1 {
    font-size: clamp(48px, 7vw, 108px);
    letter-spacing: -.06em;
    line-height: .92;
    margin-block: 18px 24px;
}

.prime-hero-copy .lead {
    max-width: 38ch;
}

.hero-actions .pill {
    gap: 9px;
    white-space: nowrap;
}

.prime-feature-hero .hero-photo {
    border: 0;
    border-radius: 160px 26px 120px 28px;
    box-shadow: 0 28px 58px rgba(61, 30, 45, .17);
}

.hero-photo::before {
    content: none;
}

.prime-feature-hero .photo-label {
    border-radius: 18px;
    background: rgba(255, 250, 247, .92);
}

.hero .sede-choice-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: clamp(12px, 2vw, 24px);
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.prime-branch-title {
    grid-column: 1 / -1;
    font-size: clamp(24px, 3vw, 36px);
    letter-spacing: -.025em;
    margin-bottom: 3px;
}

.hero .sede-choice-card {
    display: block;
    padding: 0;
    min-width: 0;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: #fff;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.hero .sede-choice-card:focus-within,
.hero .sede-choice-card:hover {
    border-color: var(--rose);
    box-shadow: 0 16px 36px #58353a1c;
    transform: translateY(-3px);
}

.hero .sede-photo {
    position: relative;
    display: flex;
    align-items: end;
    width: 100%;
    min-height: clamp(158px, 21vw, 280px);
    margin: 0;
    padding: 18px;
    background-position: center;
    background-size: cover;
    isolation: isolate;
}

.hero .sede-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, transparent 22%, #211621db);
}

.prime-branch-photo-name {
    color: #fff;
    font-size: clamp(22px, 2.8vw, 36px);
    font-weight: 750;
    line-height: .98;
    letter-spacing: -.03em;
    text-wrap: balance;
}

.hero .sede-choice-body {
    display: block;
    padding: 14px;
}

.hero .sede-choice-body .actions {
    margin-top: 12px;
    gap: 6px;
}

.hero .sede-choice-body .pill {
    flex: 1;
    padding: 9px 8px;
    min-height: 38px;
}

.prime-upcoming {
    padding-block: 26px 58px;
}

.prime-upcoming-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.prime-upcoming-card {
    display: grid;
    align-content: start;
    gap: 7px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    transition: background .2s, border-color .2s;
}

.prime-upcoming-card:hover,
.prime-upcoming-card:focus-visible {
    border-color: var(--rose);
    background: #fff2f3;
}

.prime-upcoming-card time {
    color: var(--rose-strong);
    font-weight: 700;
    text-transform: capitalize;
}

.prime-upcoming-card strong {
    font-size: 1.2rem;
    line-height: 1.05;
}

.prime-upcoming-card small {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    padding-top: 7px;
    border-top: 1px solid var(--line);
    color: var(--rose-strong);
    font-weight: 700;
}

.class-slot.cancelled {
    --slot-color: #725c64;
    background: #f6eeee;
    border-color: #dcc8cf;
}

.status-dot.cancelled {
    background: #a95b71;
}

@media (max-width: 850px) {
    .prime-feature-hero {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        gap: 30px;
        padding-block: 40px;
    }

    .prime-feature-hero .hero-photo {
        min-height: 340px;
        border-radius: 82px 22px 70px 22px;
    }

    .prime-upcoming-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 450px) {
    .hero .sede-photo {
        padding: 10px;
    }

    .hero .sede-choice-body {
        padding: 10px;
    }

    .hero .sede-choice-body .actions {
        flex-direction: column;
    }

    .prime-upcoming {
        padding-block: 18px 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero .sede-choice-card, .prime-upcoming-card { transition: none; }
    .hero .sede-choice-card:hover { transform: none; }
}
