:root {
    --color-blue: #072948;
    --color-blue-dark: #021521;
    --color-gold: #f4b800;
    --color-green: #0b9d7f;
    --color-gray-light: #f6f7fb;
    --color-border: rgba(255, 255, 255, 0.2);
    --max-width: 1100px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: radial-gradient(circle at top left, rgba(11, 157, 127, 0.3), transparent 34%),
        linear-gradient(180deg, #021521 0%, #031c31 40%, #0f3a65 100%);
    color: #ffffff;
    min-height: 100vh;
}

main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2.5rem 1rem 3rem;
}

.global-header {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.5rem 1rem 0;
}

.global-header .logo img {
    height: 72px;
}

.page-login main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1rem 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-login .global-header {
    display: none;
}

.login-shell {
    width: min(520px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.welcome-shell {
    width: min(1100px, 100%);
}

.carnet-shell,
.verification-shell {
    width: min(430px, 100%);
}

.hero-logo {
    background: rgba(3, 15, 31, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 2rem;
    box-shadow: 0 30px 60px rgba(2, 7, 18, 0.65);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
}

.hero-logo img {
    max-width: 220px;
    height: auto;
}

.hero-logo--compact img {
    max-width: 145px;
}

.hero-subtitle {
    margin: 0;
    font-size: 1rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.page-home .welcome-shell {
    gap: 1rem;
}

.page-home .welcome-shell .welcome-panel {
    text-align: center;
}

.welcome-kicker {
    margin: 0 0 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.62);
}

.welcome-identity {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    max-width: 100%;
}

.welcome-identity__section {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.9);
}

.shortcut-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.shortcut-card {
    min-height: 168px;
    padding: 1rem 1rem 0.9rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(3, 15, 31, 0.9);
    box-shadow: 0 20px 45px rgba(3, 21, 33, 0.55);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.shortcut-card:hover {
    transform: translateY(-2px);
    border-color: rgba(244, 184, 0, 0.3);
    box-shadow: 0 24px 52px rgba(3, 21, 33, 0.68);
}

.shortcut-card.is-disabled {
    opacity: 0.88;
}

.shortcut-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(244, 184, 0, 0.18), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-gold);
    flex: 0 0 auto;
    overflow: hidden;
}

.shortcut-card__icon svg,
.shortcut-card__icon img {
    width: 36px;
    height: 36px;
    display: block;
    object-fit: contain;
}

.shortcut-card__icon--inactive {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

.shortcut-card__body {
    flex: 1 1 auto;
}

.shortcut-card__title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #ffffff;
}

.shortcut-card__desc {
    margin: 0.4rem 0 0;
    color: rgba(255, 255, 255, 0.66);
    line-height: 1.45;
    font-size: 0.92rem;
}

.shortcut-card__state {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0.34rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
}

.shortcut-card__state--active {
    color: #8cdcc9;
    border-color: rgba(11, 157, 127, 0.38);
    background: rgba(11, 157, 127, 0.12);
}

.turnos-page {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
    color: #102338;
}

.turnos-hero {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    color: #102338;
}

.turnos-hero .welcome-kicker {
    color: rgba(16, 35, 56, 0.62);
}

.turnos-hero__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.turnos-hero__head h1 {
    margin: 0.15rem 0 0.45rem;
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    color: #102338;
}

.turnos-hero__head p {
    margin: 0;
    color: rgba(16, 35, 56, 0.74);
    line-height: 1.55;
}

.turnos-hero__quick {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    text-decoration: none;
    color: #102338;
    border: 1px solid rgba(16, 35, 56, 0.12);
    background: rgba(16, 35, 56, 0.03);
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease;
}

.turnos-hero__quick:hover {
    transform: translateY(-1px);
    background: rgba(16, 35, 56, 0.06);
}

.turnos-hero__actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.turnos-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.8rem;
}

.turnos-summary-card {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(16, 35, 56, 0.03);
    border: 1px solid rgba(16, 35, 56, 0.08);
}

.turnos-summary-card span {
    display: block;
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(16, 35, 56, 0.58);
}

.turnos-summary-card strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.08rem;
    color: #102338;
}

.turnos-flash {
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.92);
    color: #102338;
}

.turnos-flash--success {
    border-color: rgba(11, 157, 127, 0.35);
    background: rgba(11, 157, 127, 0.12);
}

.turnos-flash--warning {
    border-color: rgba(244, 184, 0, 0.35);
    background: rgba(244, 184, 0, 0.12);
}

.turnos-flash--error {
    border-color: rgba(225, 88, 88, 0.35);
    background: rgba(225, 88, 88, 0.14);
}

.turnos-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
    gap: 1.2rem;
    align-items: start;
}

.turnos-panel {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(16, 35, 56, 0.08);
    border-radius: 24px;
    padding: 1.2rem;
    box-shadow: 0 20px 45px rgba(2, 7, 18, 0.08);
}

.turnos-panel__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.turnos-panel__top h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #102338;
}

.turnos-month-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    text-decoration: none;
    color: #102338;
    border: 1px solid rgba(16, 35, 56, 0.12);
    background: rgba(16, 35, 56, 0.03);
    font-size: 1.25rem;
    line-height: 1;
}

.turnos-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.45rem;
    margin-bottom: 0.55rem;
}

.turnos-weekdays div {
    text-align: center;
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(16, 35, 56, 0.58);
}

.turnos-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.45rem;
}

.turnos-day {
    min-height: 140px;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid rgba(16, 35, 56, 0.08);
    padding: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.turnos-day--link {
    display: flex;
    width: 100%;
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.turnos-day--link:hover {
    transform: translateY(-2px);
    border-color: rgba(244, 184, 0, 0.55);
    box-shadow: 0 14px 24px rgba(2, 7, 18, 0.12);
}

.turnos-day--out {
    opacity: 0.45;
}

.turnos-day--today {
    border-color: rgba(244, 184, 0, 0.6);
    box-shadow: inset 0 0 0 1px rgba(244, 184, 0, 0.16);
}

.turnos-day__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.4rem;
}

.turnos-day__number {
    font-size: 0.95rem;
    font-weight: 700;
    color: #102338;
}

.turnos-day__label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(16, 35, 56, 0.58);
}

.turnos-day__list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.turnos-day__empty {
    color: rgba(16, 35, 56, 0.45);
    font-size: 0.82rem;
    padding-top: 0.25rem;
}

.turnos-day-detail {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.turnos-day-detail__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.turnos-day-detail__kicker {
    margin: 0 0 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.74rem;
    color: rgba(16, 35, 56, 0.58);
}

.turnos-day-detail__head h2 {
    margin: 0;
    color: #102338;
}

.turnos-day-detail__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem;
}

.turnos-calendar--week {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.turnos-list-view {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.turnos-list-day {
    border-radius: 18px;
    border: 1px solid rgba(16, 35, 56, 0.08);
    background: #f8fbff;
    padding: 0.95rem;
}

.turnos-list-day__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.75rem;
    color: #102338;
}

.turnos-list-day__head strong {
    font-size: 1rem;
}

.turnos-list-day__head span {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(16, 35, 56, 0.58);
}

.turno-chip {
    --turno-color: #072948;
    padding: 0.7rem 0.75rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(7, 41, 72, 0.08);
    border-left: 4px solid var(--turno-color);
    box-shadow: 0 10px 18px rgba(2, 7, 18, 0.08);
    color: #072948;
    display: flex;
    flex-direction: column;
    gap: 0.32rem;
    width: 100%;
}

.turno-chip__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
}

.turno-chip__head strong {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.turno-chip__hours,
.turno-chip__notes {
    font-size: 0.76rem;
    line-height: 1.35;
}

.turno-chip__notes {
    opacity: 0.84;
}

.turno-chip__actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-top: 0.15rem;
}

.turno-chip__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(16, 35, 56, 0.14);
    background: rgba(16, 35, 56, 0.04);
    color: #102338;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.turno-chip__action:hover {
    background: rgba(16, 35, 56, 0.08);
}

.turno-chip__action--danger {
    border-color: rgba(225, 88, 88, 0.24);
    background: rgba(225, 88, 88, 0.08);
    color: #c74141;
}

.turno-chip__delete-form {
    margin: 0;
}

.turno-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 0.16rem 0.45rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid transparent;
    white-space: nowrap;
}

.turno-badge--planned {
    color: #5e72e4;
    background: rgba(94, 114, 228, 0.12);
    border-color: rgba(94, 114, 228, 0.24);
}

.turno-badge--confirmed {
    color: #0b9d7f;
    background: rgba(11, 157, 127, 0.12);
    border-color: rgba(11, 157, 127, 0.24);
}

.turno-badge--cancelled {
    color: #d94d4d;
    background: rgba(225, 88, 88, 0.12);
    border-color: rgba(225, 88, 88, 0.24);
}

.turno-badge--absent {
    color: #9c7300;
    background: rgba(244, 184, 0, 0.12);
    border-color: rgba(244, 184, 0, 0.24);
}

.turnos-form {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.turnos-form label {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(16, 35, 56, 0.75);
}

.turnos-form input,
.turnos-form select,
.turnos-form textarea {
    width: 100%;
    padding: 0.85rem 0.95rem;
    border-radius: 12px;
    border: 1px solid rgba(16, 35, 56, 0.14);
    background: #ffffff;
    color: #102338;
    font: inherit;
}

.turnos-form textarea {
    resize: vertical;
    min-height: 120px;
}

.turnos-form input[type="color"] {
    height: 48px;
    padding: 0.3rem;
}

.turnos-form button {
    border: none;
    border-radius: 12px;
    padding: 0.95rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #072948;
    background: linear-gradient(135deg, var(--color-gold), #f2d64c);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.turnos-form button:hover {
    transform: translateY(-2px);
}

.turnos-form__actions {
    display: flex;
    align-items: stretch;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.turnos-form__actions button,
.turnos-form__button {
    flex: 1 1 180px;
}

.turnos-form__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 0.95rem 1rem;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid rgba(16, 35, 56, 0.14);
    background: rgba(16, 35, 56, 0.04);
    color: #102338;
    transition: transform 0.2s ease, background 0.2s ease;
}

.turnos-form__button:hover {
    transform: translateY(-2px);
    background: rgba(16, 35, 56, 0.08);
}

.turnos-form__button--secondary {
    background: rgba(16, 35, 56, 0.02);
}

.turnos-form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.turnos-form__help {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(16, 35, 56, 0.03);
    border: 1px solid rgba(16, 35, 56, 0.08);
}

.turnos-form__help p {
    margin: 0 0 0.5rem;
    color: rgba(16, 35, 56, 0.8);
}

.turnos-form__help p:last-child {
    margin-bottom: 0;
}

.hero-card,
.login-card {
    background: rgba(3, 15, 31, 0.9);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 45px rgba(3, 21, 33, 0.65);
}

.qr-full {
    width: min(280px, 100%);
    height: auto;
    margin: 1rem auto;
    display: block;
}

.code-block {
    text-align: center;
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.07);
    border: 1px dashed rgba(255, 255, 255, 0.3);
    padding: 0.85rem;
    border-radius: 12px;
    word-break: break-all;
}

.hero-card h1 {
    font-size: 2.4rem;
    margin-bottom: 0.6rem;
}

.hero-card p {
    margin-top: 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.86);
}

.badge-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    display: grid;
    gap: 0.8rem;
}

.badge-list li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
}

.badge-list li::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-gold);
}

.login-card h2 {
    margin-top: 0;
}

.login-card .alert {
    background: rgba(244, 184, 0, 0.12);
    border: 1px solid rgba(244, 184, 0, 0.35);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    color: #fff;
}

.login-card {
    transition: transform 0.4s ease;
}

.login-card form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-card label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.7);
}

.login-card input[type="text"],
.login-card input[type="password"],
.login-card input[type="tel"] {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1rem;
    width: 100%;
}

.password-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
 }

.helper-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.login-card button {
    border: none;
    border-radius: 12px;
    padding: 0.95rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #072948;
    background: linear-gradient(135deg, var(--color-gold), #f2d64c);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.login-card button.secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.login-card button:hover {
    transform: translateY(-2px);
}

.login-card .actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.welcome-panel {
    text-align: center;
}

.welcome-panel h1 {
    margin-top: 0.25rem;
}

.carnet-card,
.verification-card {
    text-align: left;
}

.carnet-card {
    position: relative;
    overflow: hidden;
    color: #072948;
    background: linear-gradient(155deg, #ffffff 0%, #f0f6ff 100%);
    border: 1px solid rgba(7, 41, 72, 0.16);
    box-shadow: 0 28px 60px rgba(2, 7, 18, 0.32);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    padding-top: 1.6rem;
}

.carnet-card p,
.carnet-card .helper {
    color: rgba(7, 41, 72, 0.78);
}

.carnet-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 10px;
    background: linear-gradient(90deg, #0b9d7f, #f4b800, #072948);
}

.carnet-card.estado-activo {
    border-color: rgba(11, 157, 127, 0.7);
    box-shadow: 0 28px 60px rgba(11, 157, 127, 0.2);
}

.carnet-card.estado-baja {
    border-color: rgba(225, 88, 88, 0.72);
    box-shadow: 0 28px 60px rgba(225, 88, 88, 0.22);
}

.carnet-card.estado-pendiente {
    border-color: rgba(244, 184, 0, 0.72);
    box-shadow: 0 28px 60px rgba(244, 184, 0, 0.2);
}

.carnet-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    width: 100%;
    flex-wrap: nowrap;
    text-align: left;
}

.carnet-top__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    flex: 1 1 auto;
    justify-content: center;
    padding-right: 0.5rem;
}

.carnet-kicker {
    margin: 0 0 0.3rem;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(7, 41, 72, 0.72);
}

.carnet-kicker--top {
    align-self: flex-start;
    margin-bottom: -0.2rem;
}

.carnet-brand__logo {
    width: 96px;
    height: auto;
    display: block;
    object-fit: contain;
    flex: 0 0 auto;
}

.carnet-card h1,
.verification-card h1 {
    margin: 0;
    font-size: 1.7rem;
    line-height: 1.05;
    width: 100%;
    text-align: center;
}

.carnet-state,
.verification-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    align-self: center;
}

.carnet-card.estado-activo .carnet-state {
    background: rgba(11, 157, 127, 0.18);
    color: #0b9d7f;
    border: 1px solid rgba(11, 157, 127, 0.55);
    box-shadow: 0 8px 18px rgba(11, 157, 127, 0.12);
}

.carnet-card.estado-baja .carnet-state {
    background: rgba(225, 88, 88, 0.16);
    color: #d94d4d;
    border: 1px solid rgba(225, 88, 88, 0.55);
    box-shadow: 0 8px 18px rgba(225, 88, 88, 0.12);
}

.carnet-card.estado-pendiente .carnet-state {
    background: rgba(244, 184, 0, 0.18);
    color: #9c7300;
    border: 1px solid rgba(244, 184, 0, 0.55);
    box-shadow: 0 8px 18px rgba(244, 184, 0, 0.12);
}

.verification-status--error {
    background: rgba(225, 88, 88, 0.18);
    color: #ffb4b4;
    border: 1px solid rgba(225, 88, 88, 0.45);
}

.verification-status--warning {
    background: rgba(244, 184, 0, 0.18);
    color: #9c7300;
    border: 1px solid rgba(244, 184, 0, 0.55);
    box-shadow: 0 8px 18px rgba(244, 184, 0, 0.12);
}

.verification-card {
    color: #072948;
}

.verification-card.verification-card--ok {
    border-color: rgba(11, 157, 127, 0.7);
    box-shadow: 0 28px 60px rgba(11, 157, 127, 0.18);
}

.verification-card.verification-card--error {
    border-color: rgba(225, 88, 88, 0.72);
    box-shadow: 0 28px 60px rgba(225, 88, 88, 0.16);
}

.verification-card.verification-card--warning {
    border-color: rgba(244, 184, 0, 0.72);
    box-shadow: 0 28px 60px rgba(244, 184, 0, 0.16);
}

.verification-card .verification-details {
    margin-top: 1rem;
}

.verification-card .carnet-actions {
    margin-top: 1.4rem;
}

.carnet-details,
.verification-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin: 1.5rem 0 0;
    width: 100%;
}

.carnet-details div,
.verification-details div {
    padding: 1rem;
    border-radius: 16px;
    background: rgba(7, 41, 72, 0.04);
    border: 1px solid rgba(7, 41, 72, 0.09);
}

.carnet-details dt,
.verification-details dt {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(7, 41, 72, 0.65);
}

.carnet-details dd,
.verification-details dd {
    margin: 0.35rem 0 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.carnet-qr {
    margin-top: 1.5rem;
    padding: 1.2rem;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(7, 41, 72, 0.03), rgba(7, 41, 72, 0.06));
    border: 1px solid rgba(7, 41, 72, 0.12);
    text-align: center;
    width: 100%;
}

.carnet-qr p {
    margin: 0.5rem 0 0;
    color: rgba(7, 41, 72, 0.72);
}

.carnet-qr-mini {
    width: 108px;
    height: 108px;
    max-width: 108px;
    display: block;
    margin: 0 auto;
}

.carnet-linkbox {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 16px;
    background: rgba(7, 41, 72, 0.04);
    border: 1px solid rgba(7, 41, 72, 0.12);
    word-break: break-word;
}

.carnet-linkbox a {
    color: #0b9d7f;
}

.carnet-actions {
    margin-top: 1.5rem;
    display: grid;
    gap: 0.75rem;
}

.carnet-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.92rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid rgba(7, 41, 72, 0.14);
    background: linear-gradient(135deg, #0b9d7f, #f4b800);
    color: #ffffff;
}

.carnet-actions a.secondary {
    background: transparent;
    color: #072948;
}

.welcome-actions {
    display: grid;
    gap: 0.75rem;
    max-width: 360px;
    margin: 1rem auto 0;
}

.welcome-primary,
.welcome-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem 1.15rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.welcome-primary {
    background: linear-gradient(135deg, #0b9d7f, #f4b800);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(11, 157, 127, 0.2);
}

.welcome-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.carnet-brand {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
}

.carnet-brand img {
    width: min(118px, 46%);
    height: auto;
    display: block;
    object-fit: contain;
}

.carnet-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    color: #072948;
    background: rgba(7, 41, 72, 0.08);
    border: 1px solid rgba(7, 41, 72, 0.12);
    box-shadow: 0 8px 16px rgba(2, 7, 18, 0.12);
}

.carnet-close:hover {
    background: rgba(7, 41, 72, 0.14);
}

.welcome-primary:hover,
.welcome-secondary:hover,
.carnet-actions a:hover {
    transform: translateY(-2px);
}

.verification-card {
    min-height: 320px;
}

.login-card .helper {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
}

.login-card .helper-block {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    font-size: 0.85rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.78);
}

.login-card .login-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.login-card .register-link {
    margin-top: 0.3rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

.login-card .register-link a {
    color: var(--color-gold);
    text-decoration: underline;
}

.alert {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f7c1ca;
}

.metrics-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.metric {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.metric h3 {
    margin: 0;
    font-size: 2rem;
}

.metric p {
    margin: 0.5rem 0 0;
    color: rgba(255, 255, 255, 0.65);
}

.welcome-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 1.5rem;
}

.action-card {
    background: rgba(11, 157, 127, 0.15);
    border-radius: 20px;
    padding: 1.75rem;
    margin-top: 2rem;
    border: 1px solid rgba(11, 157, 127, 0.6);
}

.global-footer {
    padding: 2rem 1rem 3rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* App shell redesign */
.appbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.42rem 0.75rem;
    background: rgba(255, 255, 255, 0.96);
    color: #102338;
    border-bottom: 1px solid rgba(16, 35, 56, 0.1);
    box-shadow: 0 8px 24px rgba(2, 7, 18, 0.14);
    backdrop-filter: blur(18px);
}

.appbar-inner {
    width: min(1280px, 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

.appbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: inherit;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.appbar-brand__logo {
    width: 28px;
    height: 28px;
    display: block;
    object-fit: contain;
    flex: 0 0 auto;
}

.appbar-brand__name {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.appbar-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.28rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.appbar-nav::-webkit-scrollbar {
    display: none;
}

.appbar-link {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    min-height: 32px;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    text-decoration: none;
    color: rgba(16, 35, 56, 0.88);
    background: transparent;
    border: 1px solid transparent;
    font-size: 0.78rem;
    line-height: 1;
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.appbar-link__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.82rem;
    height: 0.82rem;
    opacity: 0.9;
    flex: 0 0 auto;
}

.appbar-link__icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.appbar-link__text {
    line-height: 1;
}

.appbar-link:hover {
    transform: translateY(-1px);
    color: #072948;
    background: rgba(7, 41, 72, 0.06);
}

.appbar-link.is-active {
    color: #072948;
    background: #eef3f8;
    border-color: rgba(7, 41, 72, 0.04);
    box-shadow: 0 5px 8px rgba(7, 41, 72, 0.045);
}

.appbar-link.is-disabled {
    color: rgba(16, 35, 56, 0.44);
    cursor: not-allowed;
    opacity: 0.72;
}

.appbar-dropdown {
    position: relative;
    display: inline-flex;
}

.appbar-link--toggle {
    appearance: none;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.appbar-link--toggle .appbar-link__caret {
    font-size: 0.68rem;
    line-height: 1;
    opacity: 0.72;
}

.appbar-dropdown__menu {
    position: fixed;
    display: none;
    flex-direction: column;
    min-width: 170px;
    padding: 0.45rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(16, 35, 56, 0.1);
    box-shadow: 0 18px 36px rgba(2, 7, 18, 0.18);
    backdrop-filter: blur(14px);
    z-index: 80;
}

.appbar-dropdown.is-open .appbar-dropdown__menu {
    display: flex;
}

.appbar-dropdown__item {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    color: #102338;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 600;
}

.appbar-dropdown__item:hover {
    background: rgba(7, 41, 72, 0.06);
}

.page-home main,
.page-app main {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.page-home main {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 1.5rem;
    padding-bottom: 3rem;
}

.page-app main {
    min-height: calc(100vh - 76px);
    display: flex;
    justify-content: center;
    padding-top: 1.4rem;
    padding-bottom: 3rem;
}

.page-home .hero-logo {
    display: flex;
}

.page-index-clean {
    background: linear-gradient(180deg, #f8fafc 0%, #eef3f9 100%);
    color: #102338;
}

.page-index-clean .appbar {
    display: none;
}

.page-index-clean main {
    max-width: 1280px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.page-index-clean .global-footer {
    color: rgba(16, 35, 56, 0.58);
}

.page-index-clean .hero-logo {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    color: #102338;
}

.page-index-clean .hero-logo .hero-subtitle {
    color: rgba(16, 35, 56, 0.56);
}

.page-index-clean .auth-shell {
    width: min(430px, 100%);
    margin: 0 auto;
}

.page-index-clean .auth-card--entry {
    text-align: center;
    padding: 1.35rem 1.15rem 1.25rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.page-index-clean .auth-card--entry img {
    width: clamp(68px, 9vw, 86px);
    max-width: 86px;
    max-height: 86px;
    height: auto;
    margin: 0 auto 0.5rem;
    display: block;
    object-fit: contain;
}

.page-index-clean .auth-card--entry h1 {
    margin: 0;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #102338;
    text-align: center;
}

.page-index-clean .auth-intro {
    margin: 0;
    max-width: 30ch;
    color: rgba(16, 35, 56, 0.66);
    line-height: 1.55;
    font-size: 0.96rem;
}

.page-index-clean .auth-card {
    background: rgba(255, 255, 255, 0.94);
    color: #102338;
    border: 1px solid rgba(16, 35, 56, 0.08);
    box-shadow: 0 24px 48px rgba(16, 35, 56, 0.10);
    backdrop-filter: blur(16px);
}

.page-index-clean .auth-card .helper,
.page-index-clean .auth-card .login-note,
.page-index-clean .auth-card .register-link {
    color: rgba(16, 35, 56, 0.68);
}

.page-index-clean .auth-card label {
    color: rgba(16, 35, 56, 0.72);
}

.page-index-clean .auth-card form {
    width: 100%;
    margin-top: 0.2rem;
}

.page-index-clean .auth-card form > div {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.page-index-clean .auth-card input[type="text"],
.page-index-clean .auth-card input[type="password"],
.page-index-clean .auth-card input[type="tel"] {
    background: rgba(16, 35, 56, 0.03);
    border-color: rgba(16, 35, 56, 0.12);
    color: #102338;
}

.page-index-clean .auth-card input::placeholder {
    color: rgba(16, 35, 56, 0.38);
}

.page-index-clean .auth-card .alert {
    background: rgba(7, 41, 72, 0.05);
    border-color: rgba(7, 41, 72, 0.10);
    color: #102338;
}

.page-index-clean .actions.actions--dual {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    align-items: center;
    width: 100%;
}

.page-index-clean .actions.actions--single {
    grid-template-columns: 1fr;
}

.page-index-clean .auth-action {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(16, 35, 56, 0.10);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-index-clean .actions.actions--dual button {
    min-height: 48px;
    border-radius: 14px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #101827;
    color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-index-clean .auth-action--ghost {
    padding: 0.95rem 1.25rem;
}

.page-index-clean .auth-action--link {
    padding: 0.95rem 1.1rem;
    white-space: nowrap;
}

.page-index-clean .auth-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(16, 35, 56, 0.10);
}

.page-index-clean .login-recovery {
    margin-top: 0.45rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(16, 35, 56, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
    width: 100%;
}

.page-index-clean .login-recovery p {
    margin: 0;
    color: rgba(16, 35, 56, 0.72);
    font-size: 0.92rem;
    line-height: 1.45;
    text-align: center;
}

.page-index-clean .login-recovery__button {
    width: 100%;
    max-width: 100%;
    margin-top: -0.1rem;
}

.page-index-clean .login-recovery__link {
    appearance: none;
    border: 0;
    background: transparent;
    color: rgba(16, 35, 56, 0.72);
    padding: 0;
    margin: 0;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    cursor: pointer;
    min-height: auto;
}

.page-index-clean .login-recovery__link:hover {
    color: #072948;
    box-shadow: none;
    transform: none;
}

.page-app .hero-logo {
    display: none;
}

.page-home .welcome-shell,
.page-home .login-shell,
.page-app .login-shell {
    width: 100%;
}

.page-home .welcome-shell {
    max-width: 760px;
}

.page-home .login-shell {
    max-width: 520px;
}

.page-home .welcome-shell.verify-shell {
    max-width: 760px;
    gap: 1.1rem;
}

.page-app .login-shell {
    max-width: 760px;
}

.page-app .verification-shell,
.page-app .carnet-shell {
    width: min(430px, 100%);
}

.page-home .hero-logo img,
.page-app .hero-logo img {
    image-rendering: auto;
}

.page-home .hero-logo img {
    max-width: 150px;
}

.page-home .hero-logo--compact img {
    max-width: 112px;
}

.page-home .hero-logo {
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 48px rgba(2, 7, 18, 0.4);
}

.page-home .verify-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1.75rem;
}

.page-home .verify-panel h1 {
    margin: 0;
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.page-home .verify-panel p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.55;
    font-size: 1rem;
}

.page-home .verify-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 0.35rem;
}

.page-home .verify-form input {
    max-width: 18rem;
}

.page-home .verify-form button {
    max-width: 12rem;
}

.page-home .hero-logo .hero-subtitle {
    color: rgba(255, 255, 255, 0.76);
}

.page-app .login-card,
.page-app .hero-card,
.page-app .welcome-panel,
.page-app .action-card {
    border-radius: 24px;
}

.page-app .login-card {
    box-shadow: 0 24px 48px rgba(2, 7, 18, 0.42);
}

.page-home .action-card {
    border-color: rgba(255, 255, 255, 0.12);
}

.page-home .metrics-grid {
    margin-top: 1.25rem;
}

.page-app .verification-card {
    padding-top: 1.8rem;
}

.page-app .carnet-card::before {
    height: 12px;
}

.page-app .carnet-card h1,
.page-app .verification-card h1 {
    letter-spacing: -0.02em;
}

.page-app .carnet-qr {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.page-app .carnet-qr-mini {
    width: 96px;
    height: 96px;
    max-width: 96px;
}

.page-app .verification-status--ok {
    background: rgba(11, 157, 127, 0.14);
    color: #0b9d7f;
    border: 1px solid rgba(11, 157, 127, 0.42);
}

.page-app .verification-status--error {
    background: rgba(225, 88, 88, 0.18);
    color: #d94d4d;
    border: 1px solid rgba(225, 88, 88, 0.42);
}

.page-app .verification-details dd {
    color: #072948;
}

@media (max-width: 600px) {
    .appbar {
        padding: 0.38rem 0.55rem;
    }

    .appbar-inner {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }

    .appbar-nav {
        width: 100%;
        justify-content: flex-start;
        gap: 0.22rem;
        padding-bottom: 0;
        min-width: 0;
    }

    .appbar-link {
        white-space: nowrap;
        min-width: fit-content;
        padding: 0.32rem 0.5rem;
        min-height: 30px;
        font-size: 0.72rem;
    }

    .appbar-brand__logo {
        width: 24px;
        height: 24px;
    }

    .login-card,
    .hero-card {
        padding: 1.5rem;
    }

    .login-shell {
        gap: 1.25rem;
    }

    .hero-logo {
        padding: 1.4rem;
        border-radius: 22px;
    }

    .page-home .hero-logo img {
        max-width: 136px;
    }

    .page-home .hero-logo--compact img {
        max-width: 102px;
    }

    .hero-card h1 {
        font-size: 1.9rem;
    }

    .welcome-actions {
        max-width: 100%;
    }

    .carnet-actions {
        grid-template-columns: 1fr;
    }

    .carnet-card {
        border-radius: 22px;
        padding: 1.25rem;
    }

    .carnet-card h1,
    .verification-card h1 {
        font-size: 1.45rem;
    }

    .carnet-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .carnet-top__content {
        align-items: center;
    }

    .page-app .carnet-qr-mini {
        width: 88px;
        height: 88px;
        max-width: 88px;
    }

    .page-home main,
    .page-app main {
        min-height: auto;
        padding-top: 1rem;
    }

    .page-index-clean .actions.actions--dual {
        grid-template-columns: 1fr;
    }

    .page-index-clean .auth-action {
        width: 100%;
    }

    .page-index-clean .auth-card--entry img {
        width: clamp(60px, 18vw, 74px);
        max-width: 74px;
        max-height: 74px;
    }

    .page-home .verify-form input,
    .page-home .verify-form button {
        max-width: 100%;
    }

    .page-home .verify-panel {
        padding-top: 1.45rem;
    }

    .page-home .verify-panel h1 {
        font-size: 1.9rem;
    }

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

    .turnos-hero__head {
        flex-direction: column;
    }

    .turnos-hero__actions {
        width: 100%;
    }

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

    .turnos-layout {
        grid-template-columns: 1fr;
    }

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

    .turnos-weekdays {
        display: none;
    }

    .turnos-day {
        min-height: 120px;
    }

    .turnos-day-detail__head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (min-width: 960px) {
    .login-shell {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
    }

    .agreement-card {
        padding: 2.5rem;
    }
}

@media (max-width: 620px) {
    .shortcut-grid {
        grid-template-columns: 1fr;
    }

    .shortcut-card {
        min-height: 0;
    }

    .welcome-identity {
        width: 100%;
    }

    .turnos-form__row {
        grid-template-columns: 1fr;
    }
}
