@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    /* Original palette — preserved */
    --barras: #343739;
    --texto: #fff;
    --contrastante: #99cbff;
    --fondoNav: #343739;
    --fondoNavHover: #545759;
    --camposFondo: #e6e6e6;

    /* Material tokens */
    --md-primary: #10395e;
    --md-primary-light: #1a4f7e;
    --md-secondary: #39a7cf;
    --md-secondary-light: #63bad9;
    --md-accent: #ff9600;
    --md-surface: #ffffff;
    --md-surface-variant: #f3f4f6;
    --md-background: #f0f2f5;
    --md-on-primary: #ffffff;
    --md-on-surface: #1f2937;
    --md-on-surface-variant: #6b7280;
    --md-outline: #d1d5db;
    --md-outline-variant: #e5e7eb;
    --md-error: #CC5F44;

    /* Elevation */
    --md-elevation-0: none;
    --md-elevation-1: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.08);
    --md-elevation-2: 0 4px 6px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.07);
    --md-elevation-3: 0 10px 25px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.06);
    --md-elevation-4: 0 20px 40px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.07);

    /* Radius */
    --md-radius-sm: 8px;
    --md-radius-md: 12px;
    --md-radius-lg: 16px;
    --md-radius-xl: 24px;
    --md-radius-full: 9999px;

    /* Motion */
    --md-transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --md-transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*:before,
*:after {
    margin: 0;
    padding: 0;
    outline: 0;
    border: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
}

body {
    display: flex;
    flex-flow: column;
    justify-content: space-between;
    color: var(--md-on-surface-variant);
    text-align: center;
    font-size: 14px;
    font-family: 'Roboto', 'Open Sans', sans-serif;
    font-weight: 400;
    overflow: scroll;
    min-height: 100%;
    max-height: 100%;
    height: 100vh;
    background-color: var(--md-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.01em;
}

small {
    font-size: 10px;
}

header {
    height: 60px;
}

main {
    display: flex;
    position: relative;
    min-width: 320px;
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    padding: 2px 12px;
    flex-direction: column;
    justify-content: flex-start;
    flex-wrap: wrap;
    flex-grow: 1 !important;
    flex-shrink: 0 !important;
}

header,
main,
footer {
    flex: 0;
}

footer {
    margin: 80px auto 0 auto;
    width: 100%;
    height: max-content;
    background: #1f2937;
    display: flex;
    flex-flow: row;
    justify-content: center;
    font-size: 11px;
    color: #d1d5db;
    line-height: 28px;
    text-align: center;
    flex-direction: column;
    flex-wrap: wrap;
    padding: 24px 0;
    letter-spacing: 0.02em;
}

footer a {
    color: #d1d5db;
    text-decoration: none;
    flex: 1;
    transition: color var(--md-transition);
    font-weight: 400;
}

footer a:hover {
    color: #fff;
}

h1 {
    font-weight: 300;
    font-size: 2.4rem;
    color: var(--md-on-surface);
    letter-spacing: -0.015em;
    line-height: 1.2;
}

h2 {
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--md-on-surface);
    letter-spacing: 0;
    line-height: 1.3;
}

h3 {
    font-weight: 500;
    font-size: 1.15rem;
    color: var(--md-on-surface);
    letter-spacing: 0;
    line-height: 1.4;
}

.encabezado_seccion {
    margin: 20px auto;
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--md-on-surface);
}

/* ===== Material Card ===== */
.md-card {
    background: var(--md-surface);
    border-radius: var(--md-radius-md);
    box-shadow: var(--md-elevation-1);
    transition: box-shadow var(--md-transition);
}

.md-card:hover {
    box-shadow: var(--md-elevation-2);
}

.md-card-elevated {
    box-shadow: var(--md-elevation-2);
}

.md-card-elevated:hover {
    box-shadow: var(--md-elevation-3);
}

/* ===== Material Button ===== */
.md-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    height: 40px;
    border-radius: var(--md-radius-full);
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.025em;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--md-transition);
    user-select: none;
    white-space: nowrap;
}

.md-btn-primary {
    background: var(--md-primary);
    color: var(--md-on-primary);
    box-shadow: var(--md-elevation-1);
}

.md-btn-primary:hover {
    background: var(--md-primary-light);
    box-shadow: var(--md-elevation-2);
}

.md-btn-secondary {
    background: var(--md-secondary);
    color: #fff;
    box-shadow: var(--md-elevation-1);
}

.md-btn-secondary:hover {
    background: var(--md-secondary-light);
    box-shadow: var(--md-elevation-2);
}

.md-btn-outline {
    background: transparent;
    color: var(--md-primary);
    border: 1.5px solid var(--md-outline);
}

.md-btn-outline:hover {
    background: rgba(16, 57, 94, 0.04);
    border-color: var(--md-primary);
}

/* ===== Section Divider ===== */
.md-divider {
    width: 100%;
    max-width: 600px;
    height: 1px;
    background: var(--md-outline-variant);
    margin: 32px auto;
    border: none;
}

.logOfic {
    position: relative;
    margin: 0 auto 24px auto;
    max-width: 160px;
    display: block;
    transition: transform var(--md-transition);
}

.logOfic:hover {
    transform: scale(1.03);
}

.sombra-magica {
    box-shadow: 0 40px 35px -10px #9c9c9c5c;
}

.login_f {
    position: relative;
    display: flex;
    align-items: center;
    flex-flow: column;
    margin: 0 auto;
    max-width: 360px;
    padding: 32px 24px;
    background: var(--md-surface);
    border-radius: var(--md-radius-lg);
    box-shadow: var(--md-elevation-2);
    text-align: center;
    justify-items: center;
}

.login_f input[type=text],
.login_f input[type=password] {
    width: 100%;
    height: 52px;
    margin-bottom: 10px;
    padding: 0 16px;
    border: 1.5px solid var(--md-outline);
    border-radius: var(--md-radius-sm);
    background: var(--md-surface-variant);
    color: var(--md-on-surface);
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    transition: all var(--md-transition);
    letter-spacing: 0.01em;
}

.login_f input[type=text]:focus,
.login_f input[type=password]:focus {
    border-color: var(--md-secondary);
    background: var(--md-surface);
    box-shadow: 0 0 0 3px rgba(57, 167, 207, 0.12);
    outline: none;
}

.login_f input[type=text]::placeholder,
.login_f input[type=password]::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.login_f input[type=submit] {
    width: 100%;
    height: 48px;
    margin-top: 8px;
    padding: 0 24px;
    border-radius: var(--md-radius-full);
    background: var(--md-primary);
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all var(--md-transition);
    box-shadow: var(--md-elevation-1);
    text-transform: uppercase;
}

.login_f input[type=submit]:hover {
    background: var(--md-primary-light);
    box-shadow: var(--md-elevation-2);
    transform: translateY(-1px);
}

.login_f input[type=submit]:active {
    box-shadow: var(--md-elevation-1);
    transform: translateY(0);
}

.correo {
    background: var(--md-surface-variant);
}

.goback_link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    height: 40px;
    background-color: #6b7280;
    color: #fff;
    border-radius: var(--md-radius-full);
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    margin: auto;
    cursor: pointer;
    transition: all var(--md-transition);
}

.goback_link:hover {
    background-color: #4b5563;
    box-shadow: var(--md-elevation-1);
}

.llavex {
    background: var(--md-surface-variant);
}

/********** Responsive menu **********/

header {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background-color: var(--barras);
    z-index: 1000;
    user-select: none;
    flex: 0 auto;
    flex-direction: row;
    justify-content: flex-start;
    align-content: center;
    align-items: center;
    flex-wrap: wrap;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

main {
    margin-top: 64px;
}

#menuPrincipal {
    position: relative;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 64px;
    background-color: var(--barras);
    z-index: 1000;
    user-select: none;
    flex-wrap: wrap;
    flex-direction: row;
    color: #fff;
}

.toggleIcon {
    display: none;
    font-size: 1.8rem;
    color: #ffffff;
    margin-left: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--md-radius-sm);
    transition: background var(--md-transition);
}

.toggleIcon:hover {
    background: rgba(255, 255, 255, 0.08);
}

input,
select {
    background-color: var(--camposFondo);
    border-radius: var(--md-radius-sm);
    border: 1.5px solid var(--md-outline);
    padding: 8px 12px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    transition: border-color var(--md-transition);
}

input:focus,
select:focus {
    border-color: var(--md-secondary);
    outline: none;
}

.menu-toggle {
    display: none;
}

nav {
    position: relative;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    height: 64px;
    flex-direction: row;
    z-index: 1;
    background-color: #343739;
    gap: 4px;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    position: relative;
}

a.boton_menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 16px;
    margin: 0 2px;
    height: 36px;
    border-radius: var(--md-radius-full);
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: all var(--md-transition);
    background-color: transparent;
    -webkit-tap-highlight-color: transparent;
    text-transform: uppercase;
}

a.boton_menu:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.08);
    -webkit-tap-highlight-color: transparent;
}

nav ul li .active {
    color: #99cbff;
    background: rgba(153, 203, 255, 0.12);
}

.homeIcon {
    display: none;
}

@media (max-width: 824px) {
    #menuPrincipal {
        height: 64px;
    }

    .toggleIcon {
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;
    }

    nav {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        background-color: var(--barras) !important;
        width: 100%;
        position: fixed;
        top: 64px;
        left: 0;
        height: calc(100vh - 64px);
        background-color: var(--fondoNav);
        gap: 0;
        padding: 8px 0;
    }

    nav a.boton_menu {
        border-radius: 0;
        margin: 0;
        padding: 14px 24px;
        width: 100%;
        height: auto;
        justify-content: flex-start;
        font-size: 13px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    nav a.boton_menu:hover {
        background: rgba(255, 255, 255, 0.06);
    }

    .menu-toggle:checked+nav {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        height: 100%;
    }

    nav ul li {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
    }

    nav ul li a {
        width: 100%;
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
    }

    .homeIcon {
        display: block;
        position: absolute;
        width: 36px;
        top: 14px;
        right: 44%;
        outline: none;
        -webkit-tap-highlight-color: transparent;
    }

    .homeIcon:hover,
    .homeIcon:focus {
        outline: none;
        border-radius: 20px;
        box-shadow: 0 0 10px 0 rgba(132, 171, 233, 0.7);
    }
}

/**************** EOF ***************/

.forma2 {
    position: relative;
    display: flex;
    flex-flow: column;
    margin: 0 auto;
    width: 360px;
    gap: 8px;
}

.forma2 input,
.forma2 select {
    margin-bottom: 0;
    height: 44px;
    border: 1.5px solid var(--md-outline);
    border-radius: var(--md-radius-sm);
    background: var(--md-surface);
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    padding: 0 12px;
    transition: all var(--md-transition);
}

.forma2 input[type=text],
.forma2 input[type=email] {
    padding: 0 14px;
    width: 100%;
}

.forma2 input[type=submit] {
    width: 100%;
    height: 44px;
    background: var(--md-secondary);
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.03em;
    cursor: pointer;
    border-radius: var(--md-radius-full);
    box-shadow: var(--md-elevation-1);
}

.forma2 input[type=submit]:hover {
    background: var(--md-secondary-light);
    box-shadow: var(--md-elevation-2);
}

input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.cajon-texto-top {
    flex: 1;
    margin: 0 auto;
    width: 320px;
    max-height: 160px;
}

.atencion {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 24px;
    background: #cc9827;
    color: #fff;
    text-align: center;
    font-weight: 600;
    line-height: 24px;
    -webkit-transform: translate(190px, -42px);
    transform: translate(190px, -42px);
}


/*.selector1{
  position:relative;display:flex;justify-content:space-around;margin:100px auto;width:1000px;height:111px;background:#eee;
}*/

.selector1 {
    position: relative;
    display: flex;
    flex-flow: wrap;
    justify-content: center;
    margin: 20px auto;
    padding: 4px;
    min-width: 360px;
    max-width: 640px;
    width: 100%;
    height: auto;
    background: var(--md-surface-variant);
    border-radius: var(--md-radius-md);
    gap: 4px;
}


/*.selector1 a, .selector1_1 a{display:flex;align-items:center;flex:1;justify-content:center;border-radius:4px;background:#4c4c4c;color:#fff;text-decoration:none;font-size:20px;-webkit-transition:-webkit-background 256ms ease;
transition:background 256ms ease;}*/

.selector1 a,
.selector1_1 a {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    justify-content: center;
    border-radius: var(--md-radius-sm);
    background: var(--md-surface);
    color: var(--md-on-surface);
    min-width: 200px;
    margin: 0;
    height: 100px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--md-transition);
    box-shadow: var(--md-elevation-0);
    border: 1.5px solid var(--md-outline-variant);
}

.selector1 a:not(:last-child) {
    border-right: 1.5px solid var(--md-outline-variant);
}

.selector1 a:hover,
.selector1_1 a:hover {
    background: #f0f4f8;
    border-color: var(--md-secondary);
    box-shadow: var(--md-elevation-1);
}

.selectorV {
    position: relative;
    display: flex;
    flex-flow: column;
    margin: 50px auto;
    width: 360px;
    gap: 12px;
}

.selectorV input[type=submit] {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    padding: 48px 0;
    width: 100%;
    border-radius: var(--md-radius-md);
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all var(--md-transition);
    border: none;
    box-shadow: var(--md-elevation-2);
}

.selectorV #almn_btn {
    background: var(--md-primary);
}

.selectorV #almn_btn:hover {
    background: var(--md-primary-light);
    box-shadow: var(--md-elevation-3);
    transform: translateY(-2px);
}

.selectorV #tchr_btn {
    background: #9b3422;
}

.selectorV #tchr_btn:hover {
    background: #b84030;
    box-shadow: var(--md-elevation-3);
    transform: translateY(-2px);
}

table {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 0 auto;
    min-width: 360px;
    max-width: 720px;
    width: 100%;
    border-collapse: collapse;
    flex-direction: column;
    flex-wrap: wrap;
    border-radius: var(--md-radius-md);
    overflow: hidden;
    box-shadow: var(--md-elevation-1);
}

table tr {
    width: 100%;
    display: flex;
    justify-content: space-between;
    background-color: var(--md-surface);
    transition: background var(--md-transition);
}

table tr:hover {
    background-color: #f9fafb;
}

table th {
    padding: 12px 10px;
    background: #374151;
    color: #e5e7eb;
    text-align: center;
    flex: 1 1 100%;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

table td {
    padding: 10px;
    border-bottom: 1px solid var(--md-outline-variant);
    text-align: center;
    flex: 1 1 100%;
}

table td a {
    color: var(--md-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--md-transition);
}

table td a:hover {
    color: var(--md-secondary);
}

.liga_imagen {
    position: relative;
    display: block;
    margin: 0 auto;
    width: 130px;
    height: 30px;
    color: #656b51;
    text-decoration: none;
    font-weight: 600;
    line-height: 30px;
    -webkit-transform: translateX(-15px);
    transform: translateX(-15px);
}


.maestros_t {
    display: table;
}

.maestros_t th {
    text-align: center;
}

.maestros_t :is(td:nth-child(1), th:nth-child(1)) {
    min-width: 190px;
}

.maestros_t :is(td:nth-child(1), td:nth-child(3)) {
    max-width: 112px;
    text-align: left;
}


.maestros_t :is(td:nth-child(2), th:nth-child(2)) {
    min-width: 260px;
}


.maestros_t tr td:nth-child(2) {
    width: 300px !important;
    text-align: left !important;
}

.maestros_t tr td:nth-child(4),
.maestros_t tr td:nth-child(5) {
    max-width: 54px !important;
}




.liga_imagen img {
    position: absolute;
    top: 4px;
    right: -25px;
    display: inline-block;
    -webkit-transition: -webkit-transform 256ms ease;
    transition: transform 256ms ease;
}

.liga_imagen:hover>img {
    -webkit-transform: translateX(4px);
    transform: translateX(4px);
}

.retotno_btn {
    position: relative;
    display: inline-block;
    margin: 40px auto;
    color: #777;
    text-decoration: none;
}

.retotno_btn img {
    -webkit-transition: -webkit-transform 256ms ease;
    transition: transform 256ms ease;
    -webkit-transform: scale(.9);
    transform: scale(.9);
}

.retotno_btn img:hover {
    -webkit-transform: scale(1);
    transform: scale(1);
}

.selector2 {
    position: relative;
    margin: 0 auto;
    padding-top: 10px;
    width: 600px;
    border-top: 1px solid #ddd;
    text-align: left;
}

.selecrt_niv {
    position: relative;
    float: left;
    width: 200px;
    height: 100px;
    text-align: center;
}

.selecrt_grp,
.selecrt_hrr {
    position: relative;
    float: left;
    width: 150px;
    height: 100px;
    text-align: center;
}

.nv_label,
.gr_label,
.hr_label {
    display: block;
    width: 100%;
    height: 100%;
    border: 1px solid #fff;
    border-radius: 6px;
    background: #546c75;
    color: #fff;
    text-shadow: 0 0 30px #46b5ba, 0 0 20px white, 0 0 10px white;
    font-size: 20px;
    line-height: 100px;
    cursor: pointer;
    -webkit-transition: -webkit-background 256ms ease;
    transition: background 256ms ease;
}

.nv_label:hover,
.gr_label:hover,
.selecrt_hrr:hover {
    background: #267c9c;
}

input[type='radio']:checked+label {
    background: #39a7cf;
}

input[type=radio] {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
}

.selector2 legend {
    position: relative;
    margin: 0 20px;
    padding: 0 20px;
    letter-spacing: 5px;
    font-size: 10px;
}

.aviso1 {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 20px 24px;
    max-width: 400px;
    background: #f59e0b;
    border-radius: var(--md-radius-md);
    box-shadow: var(--md-elevation-1);
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.02em;
}

.separador20px {
    position: relative;
    display: block;
    margin: 0 auto;
    height: 100px;
}

[type='date'] {
    background: #fff url(../imagenes/microCalendario.png) 98% 50% no-repeat;
}

[type='date']::-webkit-inner-spin-button {
    display: none;
}

[type='date']::-webkit-calendar-picker-indicator {
    opacity: 0;
}

.inputDiv {
    position: relative;
    margin: 40px auto;
    width: 600px;
}

input[type='range'] {
    display: block;
    width: 600px;
    height: 40px;
    border: 0;
}

input[type='range']:focus {
    outline: none;
}

input[type='range'],
input[type='range']::-webkit-slider-runnable-track,
input[type='range']::-webkit-slider-thumb {
    -moz-appearance: none;
    appearance: none;
    -webkit-appearance: none;
}

input[type=range]::-webkit-slider-thumb {
    margin-top: -9px;
    width: 20px;
    height: 20px;
    border: 3px solid #334248;
    border-radius: 50%;
    background-color: #546c75;
}

input[type=range]::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border: 3px solid #333;
    border-radius: 50%;
    background-color: #546c75;
}

input[type=range]::-ms-thumb {
    width: 20px;
    height: 20px;
    border: 3px solid #333;
    border-radius: 50%;
    background-color: #546c75;
}

input[type=range]::-webkit-slider-runnable-track {
    height: 1px;
    background-color: #708e99;
}

input[type=range]:focus::-webkit-slider-runnable-track {
    outline: none;
}

input[type=range]::-moz-range-track {
    height: 3px;
    background-color: #485d65;
}

input[type=range]::-ms-track {
    height: 3px;
    background-color: #485d65;
}

input[type=range]::-ms-fill-lower {
    background-color: #39a7cf;
}

input[type=range]::-ms-fill-upper {
    background-color: #39a7cf;
}

.etiqueta {
    position: absolute;
    top: -45px;
    z-index: 9;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background-color: #39a7cf;
    color: white;
    text-align: center;
    font-size: 20px;
    line-height: 40px;
    -webkit-transform: translateX(-6px);
    transform: translateX(-6px);
}

.etiqueta:after {
    position: relative;
    top: -8px;
    left: 13px;
    z-index: 8;
    display: block;
    width: 15px;
    height: 15px;
    background-color: #39a7cf;
    content: '';
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.selector2 .meses_sel {
    margin: 40px 0;
    padding: 10px;
    width: 300px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f8fbff;
    color: #5c6669;
    font-size: 18px;
}

.control_td_a {
    padding: 0 !important;
}

.control_td_a a {
    display: block;
    padding: 10px;
    -webkit-transition: all 256ms ease;
    transition: all 256ms ease;
}

.control_td_a a img {
    -webkit-transition: all 256ms ease;
    transition: all 256ms ease;
}

.control_td_a a:hover img {
    -webkit-transform: scale(.85);
    transform: scale(.85);
}

.onoffswitch {
    position: relative;
    width: 100px;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -ms-user-select: none;
}

.onoffswitch-checkbox {
    display: none;
}

.onoffswitch-label {
    display: block;
    overflow: hidden;
    border: 2px solid #fff;
    border-radius: 20px;
    cursor: pointer;
}

.onoffswitch-inner {
    display: block;
    margin-left: -100%;
    width: 200%;
    -webkit-transition: margin .3s ease-in 0s;
    transition: margin .3s ease-in 0s;
}

.onoffswitch-inner:before,
.onoffswitch-inner:after {
    display: block;
    float: left;
    box-sizing: border-box;
    padding: 0;
    width: 50%;
    height: 30px;
    color: black;
    font-weight: bold;
    font-size: 12px;
    font-family: Trebuchet, Arial, sans-serif;
    line-height: 30px;
}

.onoffswitch-inner:before {
    padding-left: 12px;
    background-color: #39a7cf;
    color: #fff;
    content: 'ACTIVO';
}

.onoffswitch-inner:after {
    padding-right: 6px;
    background-color: #e85764;
    color: #fff;
    content: 'INACTIVO';
    text-align: right;
}

.onoffswitch-switch {
    position: absolute;
    top: 0;
    right: 67px;
    bottom: 0;
    display: block;
    margin: 5px;
    width: 20px;
    border: 2px solid #fff;
    border-radius: 20px;
    background: #fff;
    -webkit-transition: all .3s ease-in 0s;
    transition: all .3s ease-in 0s;
}

.onoffswitch-checkbox:checked+.onoffswitch-label .onoffswitch-inner {
    margin-left: 0;
}

.onoffswitch-checkbox:checked+.onoffswitch-label .onoffswitch-switch {
    right: 0;
}

.tabla-3 {
    position: relative;
    margin: 0 auto;
    width: 300px;
}

.tabla-3 .fila_a td:first-child {
    padding: 0;
    width: 15px;
    background: #5a666b;
    color: #fff;
    text-align: center;
}

.tabla-3 .fila_b td:last-child {
    padding: 0 !important;
    width: 15px;
    background: #5a666b;
    color: #fff;
    text-align: center;
    line-height: 1px;
}

.tabla-3 input[type=checkbox] {
    width: 20px;
    height: 20px;
    background: transparent;
}

.microform {
    position: relative;
    display: block;
    margin: 0;
    height: 37px;
}

.round {
    position: absolute;
    top: 0;
    left: 0;
}

.round label {
    position: absolute;
    top: 0;
    left: 0;
    width: 38px;
    height: 37px;
    text-align: center;
    cursor: pointer;
}

.round label::before {
    position: absolute;
    transform: translate(-8px, 16px);
    color: #414a4e;
    content: ' \2298';
    font-size: 19px;
    opacity: 1;
}

.round label::after {
    position: absolute;
    top: 17px;
    left: 10px;
    content: ' \2605';
    font-size: 22px;
    opacity: 0;
}

.round input[type='checkbox'] {
    visibility: hidden;
}

.round input[type='checkbox']:checked+label {
    background-color: #39a7cf;
}

.round input[type='checkbox']:checked+label::after {
    opacity: 1;
}

.round input[type='checkbox']:checked+label::before {
    opacity: 0;
}

.boton_azul,
.boton_naranja {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 0 24px;
    height: 40px;
    border-radius: var(--md-radius-full);
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.03em;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--md-transition);
    box-shadow: var(--md-elevation-1);
    transform: none;
    width: auto;
}

.boton_azul {
    background: var(--md-secondary);
}

.boton_azul:hover {
    background: var(--md-secondary-light);
    box-shadow: var(--md-elevation-2);
}

.boton_naranja {
    background: #ff9600;
    font-weight: 500;
}

.boton_naranja:hover {
    background: #ffb900;
    box-shadow: var(--md-elevation-2);
}

.nomail {
    display: block;
    width: 100%;
    height: 37px;
    background: #d8d8bb;
    box-shadow: 0 0 12px #9b9b7d inset;
    color: #9f9f93;
    text-align: center;
    text-shadow: 0 0 10px #353529;
    font-size: 16px;
    line-height: 37px;
}

.funcionesadicionales {
    position: relative;
    display: flex;
    flex-flow: row;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    width: auto;
    max-width: 600px;
}

.funcionesadicionales a {
    flex: 0 1 auto;
    padding: 10px 20px;
    border-radius: var(--md-radius-full);
    background-color: #ff6800;
    color: #fff;
    font-weight: 500;
    font-size: 12px;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: all var(--md-transition);
    box-shadow: var(--md-elevation-1);
}

.funcionesadicionales a:hover {
    background-color: #ff9130;
    box-shadow: var(--md-elevation-2);
    transform: translateY(-1px);
}

.funcionesadicionales a:not(:nth-last-of-type(-n+1)) {
    margin-right: 0;
}

.advertencia,
.exitomensaje {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0 auto;
    padding: 12px 24px;
    border-radius: var(--md-radius-sm);
    color: #fff;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.02em;
}

.advertencia {
    background-color: #d17780;
}

.exitomensaje {
    background-color: #7a9e2e;
}

.filaseparadora {
    background-color: #eee;
    color: #6f7f85;
    text-align: center;
    font-size: 10px;
}

.agregadoOK {
    background-image: url(../imagenes/aprobar.png) !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.mensaje_error {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto;
    text-align: center;
    width: fit-content;
    padding: 10px 24px;
    border-radius: var(--md-radius-sm);
    background-color: var(--md-error);
    color: #fff;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.02em;
}

.forma2 input[type=date] {
    background: url(../imagenes/microCalendario.png);
    background-position: 95% 50%;
    background-repeat: no-repeat;
}

.lista_detalles_1 {
    position: relative;
    z-index: 4;
    font-size: .84rem;
    font-family: 'Open Sans';
    font-weight: 600;
    color: #656565;
    background-color: #ffffff;
}

details.lista_detalles_1>summary {
    list-style: none;
    cursor: pointer;
    padding: 10px;
    color: #fff;
    text-shadow: 0 1px #006b92;
    background-color: #39a7cf;
    transition: all 265ms ease;
}

details.lista_detalles_1>summary:hover {
    background-color: #63bad9;
}

details.lista_detalles_1>summary::marker {
    display: none;
}

.lista_ejercicios {
    list-style: none;
}

.lista_ejercicios li {
    border-bottom: 1px solid #ddd;
}

.lista_ejercicios label {
    width: 100%;
    height: 40px;
    display: flex;
    flex-flow: wrap;
    align-content: center;
    justify-content: space-around;
    align-items: center;
    cursor: pointer;
    padding: 0 15px;
}

.lista_ejercicios label:hover {
    background-color: #656565;
    color: #fff;
}

.lista_ejercicios input[type="radio"]:checked+label {
    background-color: #3b3b3b;
    color: #fff;
}

.lista_ejercicios input[type="radio"]:focus+label {
    border: 2px dashed #444;
    padding: 0 0 0 10px;
}

.lista_ejercicios li:first-child {
    padding: 10px 10px;
    background-color: #d8d8d8;
    font-weight: 600;
    cursor: none;
    pointer-events: none;
}

.lista_ejercicios li:last-child {
    margin-bottom: 20px;
}

.lista_ejercicios label span {
    display: flex;
    flex: 1;
    font-weight: 400;
}

.alerta {
    display: block;
    width: 100%;
    padding: 30px;
    background-color: #B0192F;
    color: #fff;
    border-radius: 4px;
}

.edicion_grupos {
    display: flex;
    list-style: none;
    flex-direction: column;
    flex-wrap: wrap;
    width: 400px;
    position: relative;
    margin: 0 auto;
}

.edicion-grupos_header {
    width: 100%;
}

.edicion_grupos li {
    display: flex;
    flex-shrink: 0;
    flex-direction: row;
    margin-bottom: 1px;
}

.edicion_grupos li>span:nth-child(1) {
    flex: 1;
    text-align: left;
    padding: 10px;
}

.edicion_grupos li>span:nth-child(2) {
    width: 30px;
    transform: translateX(-8px);
}

.edicion_grupos li>span:nth-child(2) .round label::after {
    top: 2px;
    left: 10px;
}

.edicionHeader {
    display: block;
    width: 100%;
    padding: 15px 0 !important;
    font-weight: 600;
    text-align: center !important;
    background-color: #eeeeee;
}

.ligae_mailer_mssg {
    color: #006b92;
    font-weight: 600;
}

.centrado {
    text-align: center;
}

.bloque {
    display: block;
}

.calendario {
    position: relative;
    margin: 0 auto;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    cursor: default;
    background-color: var(--md-surface);
    gap: 0;
    padding: 0;
    border-radius: var(--md-radius-md);
    box-shadow: var(--md-elevation-1);
    overflow: hidden;
}

.calendario div {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

.calendario div span {
    position: relative;
}

.calendario div span b {
    position: absolute;
    right: 20px;
    font-size: 1.4rem;
    font-weight: 300;
    transform: translateY(-6px);
}

.calendario div:nth-child(even) {
    background: #f9fafb;
}

.calendario div span:nth-child(1) {
    flex-basis: 190px;
    padding: 10px 14px;
    text-align: left;
    font-weight: 500;
    color: var(--md-on-surface);
}

.calendario div span:nth-child(2) {
    flex-basis: 130px;
    padding: 10px 14px;
    text-align: left;
}

.calendario div span:nth-child(3) {
    flex-basis: 300px;
    padding: 10px 14px;
    text-align: left;
}

.regresar_btn {
    position: relative;
    margin: 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--md-secondary);
    color: #fff;
    padding: 10px 28px;
    height: 40px;
    border-radius: var(--md-radius-full);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: all var(--md-transition);
    box-shadow: var(--md-elevation-1);
}

.regresar_btn:hover {
    background-color: var(--md-secondary-light);
    box-shadow: var(--md-elevation-2);
}

/* Listados de examenes aplicados a los grupos */

.Listado_ll_2contenedores {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 341px;
    max-width: max-content;
    width: 100%;
    align-items: flex-start;
    position: relative;
    margin-left: 17px;
    list-style: none;
}

.Listado_ll_2contenedores li {
    position: relative;
    display: flex;
    width: 100%;
    text-align: left;
    font-size: .85rem;
    border-bottom: 1px solid #e5e5e5;
    justify-content: space-between;
    flex-direction: row;
    flex-wrap: wrap;
}

.Listado_ll_2contenedores li:nth-child(odd) {
    background-color: #f4f4f4;
}

.Listado_ll_2contenedores li>span {
    position: relative;
    height: 40px;
    line-height: 40px;
    display: inline-block;
}

.Listado_ll_2contenedores li>span:nth-child(1) {
    display: flex;
    width: 450px;
    border-right: 1px solid #e5e5e5;
    margin-right: 10px;
    padding-left: 20px;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
}

.Listado_ll_2contenedores li span:nth-child(1)>span {
    display: flex;
    position: absolute;
    right: 0;
    width: 80px;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}

.Listado_ll_2contenedores li span:nth-child(1)>span a {
    height: 40px;
    width: 40px;
    line-height: 48px;
    opacity: .5;
    transition: all .3s ease-in-out;
}

.Listado_ll_2contenedores li span:nth-child(1)>span a:hover {
    opacity: 1;
}

.Listado_ll_2contenedores li span:nth-child(1)>span a img {
    width: 16px;
    height: 16px;

}

.Listado_ll_2contenedores li>span:nth-child(2) {
    flex: 1;
    min-width: 100px;
    max-width: 200px;
    text-align: center;
    padding: 0 20px;
    border-right: 1px solid #e5e5e5;
}

.liston_mensaje {
    position: relative;
    margin: 0 auto 50px auto;
    display: inline-block;
    padding: 14px 20px;
    width: 100%;
    max-width: 600px;
    background-color: #374151;
    color: #fff;
    border-radius: var(--md-radius-md);
    box-shadow: var(--md-elevation-1);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.02em;
}

.mensaje_especial {
    position: relative;
    margin: 0 auto;
    min-width: 320px;
    max-width: 640px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 24px;
    background-color: #5f7773;
    color: white;
    border-radius: var(--md-radius-md);
    border: none;
    box-shadow: var(--md-elevation-2);
}

.mensaje_especial p {
    text-align: left;
}

.local_btn {
    display: block;
    margin-top: 4px;
    margin-bottom: 0;
    padding: 0 30px;
    font-size: 1rem;
    height: 60px;
    width: 320px;
    line-height: 60px;
}

.contenedor_mensajes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.mensajes_cont {
    background: var(--md-surface);
    border-radius: var(--md-radius-md);
    box-shadow: var(--md-elevation-1);
    transition: all var(--md-transition);
    overflow: hidden;
}

.mensajes_cont:hover {
    box-shadow: var(--md-elevation-3);
    transform: translateY(-2px);
}

.imagen img {
    width: 100%;
    max-width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.titulo {
    padding: 16px 20px 4px 20px;
}

.titulo h3 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--md-on-surface);
}

.mensaje {
    padding: 4px 20px 16px 20px;
}

.mensaje p {
    font-size: 0.9rem;
    color: var(--md-on-surface-variant);
    text-align: left;
    line-height: 1.5;
}

.tipo {
    padding: 0 20px;
}

.tipo p {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: var(--md-radius-full);
    background: var(--md-primary);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.fechas {
    padding: 12px 20px 16px 20px;
}

.fechas p {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 400;
}

hr {
    border: none;
    border-top: 1px solid var(--md-outline-variant);
    width: 100%;
    max-width: 600px;
    margin: 32px auto;
}

.mensajeTTL {
    display: inline-block;
    font-weight: 500;
    color: var(--md-primary);
    cursor: pointer;
    transition: color var(--md-transition);
}

.mensajeTTL:hover {
    color: var(--md-secondary);
}

a {
    color: var(--md-on-surface-variant);
    text-decoration: none;
    transition: color var(--md-transition);
}

a:hover {
    color: var(--md-on-surface);
}

/* ! Calendario Refactor 2  */
/* * Nueva versión Material */
.timeline {
    max-width: 600px;
    margin: 0 auto;
}

.event {
    margin-bottom: 8px;
    border: none;
    border-radius: var(--md-radius-md);
    background-color: var(--md-surface);
    box-shadow: var(--md-elevation-1);
    overflow: hidden;
    transition: all var(--md-transition);
}

.event:hover {
    box-shadow: var(--md-elevation-2);
}

.event-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    cursor: pointer;
    font-weight: 500;
    background-color: var(--md-surface);
    transition: all var(--md-transition);
    color: var(--md-on-surface);
}

.event-header:hover {
    background-color: #f9fafb;
}

.event-header span {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
}

.event-header span span {
    display: flex;
}

.event-header span span:nth-child(1) {
    width: 24px;
    height: 24px;
}

.event-header span span:nth-child(2) {
    width: 167px;
    border-right: 1px solid #ddd;
    height: 24px;
}

.event-header span span:nth-child(3) {
    padding-left: 10px;
}


.event-header .icon {
    margin-right: 12px;
    font-size: 22px;
}

.event-content {
    display: none;
    padding: 16px 18px;
    border-top: 1px solid var(--md-outline-variant);
    background: #fafbfc;
}

.event-content p {
    margin: 0;
    line-height: 1.6;
    color: var(--md-on-surface-variant);
    text-align: left;
}

.event.open .event-content {
    display: block;
}

.postit_lleyow {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fde68a 100%);
    padding: 12px 20px;
    border-radius: var(--md-radius-sm);
    margin-top: 10px !important;
    text-align: left;
    box-shadow: var(--md-elevation-1);
    font-weight: 400;
    font-style: italic;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 13px;
}

/* Toggle Button Style */
#toggleFecha {
    padding: 10px 20px;
    background-color: #39a7cf;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 10px;
}

#toggleFecha:hover {
    background-color: #63bad9;
}

/* Collapsible Container Style */
#fechaContainer {
    transition: max-height 0.3s ease-out;
}


.instruct_container {
    display: flex;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 20px 24px;
    border: 1.5px solid var(--md-outline-variant);
    border-radius: var(--md-radius-md);
    background-color: var(--md-surface);
    box-shadow: var(--md-elevation-1);
    transition: all var(--md-transition);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
}

.instruct_container:hover {
    background-color: #fafbfc;
    box-shadow: var(--md-elevation-2);
}

.instruct_container li {
    list-style-type: none;
    margin-bottom: 10px;
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 10px;
    text-align: left;
    font-size: inherit;
    font-weight: 400;
    color: var(--md-on-surface-variant);
}

.instruct_container summary {
    font-size: 14px;
    font-weight: 500;
    color: var(--md-on-surface);
    cursor: pointer;
}

.btn_azul_hermoso {
    position: relative;
    margin: auto;
    display: inline-flex;
    background-color: var(--md-secondary);
    border: none;
    padding: 0 28px;
    height: 44px;
    border-radius: var(--md-radius-full);
    color: #fff;
    align-items: center;
    justify-content: center;
    box-shadow: var(--md-elevation-2);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: all var(--md-transition);
}

.btn_azul_hermoso:hover {
    background-color: var(--md-secondary-light);
    box-shadow: var(--md-elevation-3);
    transform: translateY(-1px);
}

/* ===== Welcome Page — Material Dashboard ===== */

.welcome-hero {
    text-align: center;
    padding: 40px 20px 32px 20px;
    margin-bottom: 8px;
}

.welcome-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--md-primary), var(--md-secondary));
    color: #fff;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    box-shadow: var(--md-elevation-2);
}

.welcome-hero h1 {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--md-on-surface);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.welcome-subtitle {
    font-size: 14px;
    color: var(--md-on-surface-variant);
    font-weight: 400;
}

.botones_extras {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 16px 0 20px 0;
    flex-wrap: wrap;
}

.dashboard-grid {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 720px;
    margin: 0 auto 24px auto;
    padding: 0 4px;
}

.dashboard-card {
    overflow: hidden;
    text-align: left;
}

.dashboard-card .card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px 14px 20px;
    border-bottom: 1px solid var(--md-outline-variant);
    background: #fafbfc;
}

.dashboard-card .card-header h2 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--md-on-surface);
    margin: 0;
}

.dashboard-card .card-icon {
    font-size: 1.3rem;
}

.dashboard-card .card-body {
    padding: 12px 14px;
    max-height: 480px;
    overflow-y: auto;
}

/* Group list inside cards */
.group-list {
    width: 100%;
    border-radius: var(--md-radius-sm);
    overflow: hidden;
    border: 1px solid var(--md-outline-variant);
}

.group-list-header,
.group-list-body {
    list-style: none;
    padding: 0;
    margin: 0;
}

.group-list-header {
    display: flex;
    background: #374151;
    color: #e5e7eb;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.group-list-header li {
    flex: 1 1 100px;
    padding: 10px 8px;
    text-align: center;
}

.group-list-body .group-row {
    display: flex;
    border-bottom: 1px solid var(--md-outline-variant);
    transition: background var(--md-transition);
}

.group-list-body .group-row:last-child {
    border-bottom: none;
}

.group-list-body .group-row:hover {
    background: #f9fafb;
}

.group-row .group-schedule,
.group-row .group-level,
.group-row .group-location {
    flex: 1 1 100px;
    padding: 10px 8px;
    text-align: center;
    font-size: 13px;
    color: var(--md-on-surface-variant);
}

.group-row .group-schedule {
    font-weight: 500;
    color: var(--md-on-surface);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 32px 16px;
    color: #9ca3af;
    font-size: 13px;
}

/* Announcements section */
.announcements-section {
    margin: 32px auto 0 auto;
    max-width: 720px;
    width: 100%;
    padding: 0 4px;
}

.section-header {
    text-align: center;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--md-on-surface);
    letter-spacing: -0.01em;
}

/* Responsive dashboard */
@media (max-width: 640px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .welcome-hero {
        padding: 28px 16px 20px 16px;
    }

    .welcome-hero h1 {
        font-size: 1.4rem;
    }

    .welcome-avatar {
        width: 56px;
        height: 56px;
        font-size: 22px;
    }
}