:root {
    --app-bg: #f5f7fb;
    --app-card: #ffffff;

    --app-primary: #635bff;
    --app-primary-dark: #5148e5;

    --app-text: #1d2433;
    --app-text-soft: #7b8496;

    --app-border: #e7eaf0;

    --app-radius: 22px;
}


* {
    box-sizing: border-box;
}


html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}


body {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    background: var(--app-bg);
    color: var(--app-text);

    -webkit-font-smoothing: antialiased;
}


/* --------------------------------
   CONTENEDOR GENERAL APP
-------------------------------- */

.app-container {
    min-height: 100dvh;

    display: flex;
    flex-direction: column;

    max-width: 600px;
    margin: 0 auto;

    background: var(--app-bg);
}


/* --------------------------------
   LOGIN
-------------------------------- */

.login-content {
    flex: 1;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding:
        max(24px, env(safe-area-inset-top))
        20px
        24px;
}


.login-brand {
    text-align: center;
    margin-bottom: 30px;
}


.login-logo {
    width: 76px;
    height: 76px;

    margin: 0 auto 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 24px;

    background: var(--app-primary);
    color: #ffffff;

    font-size: 25px;
    font-weight: 800;

    box-shadow: 0 12px 30px rgba(99, 91, 255, .22);
}


.login-brand h1 {
    margin: 0;

    font-size: 27px;
    font-weight: 750;

    letter-spacing: -.5px;
}


.login-brand p {
    margin: 5px 0 0;

    color: var(--app-text-soft);

    font-size: 15px;
}


.login-card {
    background: var(--app-card);

    border: 1px solid rgba(0, 0, 0, .025);

    border-radius: var(--app-radius);

    padding: 25px 21px;

    box-shadow:
        0 15px 40px rgba(31, 42, 68, .07);
}


.login-card-header {
    margin-bottom: 23px;
}


.login-card-header h2 {
    margin: 0 0 5px;

    font-size: 22px;
    font-weight: 700;
}


.login-card-header p {
    margin: 0;

    color: var(--app-text-soft);

    font-size: 14px;
    line-height: 1.45;
}


/* --------------------------------
   FORMULARIOS
-------------------------------- */

.form-label {
    margin-bottom: 7px;

    font-size: 13px;
    font-weight: 650;

    color: #4b5565;
}


.app-input {
    height: 54px;

    padding: 0 16px;

    border: 1px solid var(--app-border);
    border-radius: 14px;

    background: #fafbfc;

    color: var(--app-text);

    font-size: 16px;

    box-shadow: none !important;
}


.app-input:focus {
    background: #ffffff;

    border-color: var(--app-primary);

    box-shadow:
        0 0 0 3px rgba(99, 91, 255, .10)
        !important;
}


/* --------------------------------
   BOTONES
-------------------------------- */

.app-btn-primary {
    min-height: 54px;

    border: 0;
    border-radius: 14px;

    background: var(--app-primary);

    color: #ffffff;

    font-size: 16px;
    font-weight: 700;

    transition:
        transform .1s ease,
        background .15s ease;
}


.app-btn-primary:hover,
.app-btn-primary:focus {
    background: var(--app-primary-dark);
    color: #ffffff;
}


.app-btn-primary:active {
    transform: scale(.985);
}


/* --------------------------------
   MENSAJES
-------------------------------- */

.login-message {
    margin-top: 15px;

    padding: 12px 14px;

    border-radius: 12px;

    font-size: 14px;
}


/* --------------------------------
   FOOTER
-------------------------------- */

.login-footer {
    padding:
        10px
        20px
        max(18px, env(safe-area-inset-bottom));

    text-align: center;

    color: #a0a7b4;

    font-size: 12px;
}


/* --------------------------------
   PANTALLAS GRANDES
-------------------------------- */

@media (min-width: 601px) {

    .login-content {
        padding-left: 40px;
        padding-right: 40px;
    }

}

.login-message-error {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}

/* =========================================================
   INTERIOR DE LA APP
========================================================= */

.home-app {
    min-height: 100dvh;
    padding-bottom: 85px;
}


/* HEADER */

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding:
        max(18px, env(safe-area-inset-top))
        20px
        16px;

    background: #ffffff;

    border-bottom: 1px solid var(--app-border);
}


.app-header-small {
    margin-bottom: 2px;

    color: var(--app-primary);

    font-size: 12px;
    font-weight: 700;
}


.app-header h1 {
    margin: 0;

    font-size: 22px;
    font-weight: 750;

    letter-spacing: -.4px;
}


.app-header-button {
    padding: 9px 13px;

    border-radius: 11px;

    background: var(--app-bg);

    color: var(--app-text-soft);

    font-size: 13px;
    font-weight: 650;

    text-decoration: none;
}


/* CONTENIDO */

.app-main {
    flex: 1;
    padding: 22px 18px;
}


.section-title {
    display: flex;
    align-items: center;

    margin-bottom: 13px;
}


.section-title h2 {
    margin: 0;

    font-size: 16px;
    font-weight: 700;
}


.section-title span {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 25px;
    height: 25px;

    margin-left: 8px;

    padding: 0 7px;

    border-radius: 20px;

    background: #ebeaff;
    color: var(--app-primary);

    font-size: 12px;
    font-weight: 700;
}


/* HIJOS */

.children-list {
    display: flex;
    flex-direction: column;

    gap: 12px;
}


.child-card {
    display: flex;
    align-items: center;

    min-height: 84px;

    padding: 14px 16px;

    background: #ffffff;

    border: 1px solid rgba(0, 0, 0, .025);
    border-radius: 18px;

    color: var(--app-text);

    text-decoration: none;

    box-shadow:
        0 6px 22px rgba(31, 42, 68, .055);

    -webkit-tap-highlight-color: transparent;
}


.child-card:active {
    transform: scale(.99);
}


.child-avatar {
    flex: 0 0 52px;

    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 17px;

    background: #ebeaff;
    color: var(--app-primary);

    font-size: 21px;
    font-weight: 800;
}


.child-info {
    flex: 1;

    min-width: 0;

    padding-left: 14px;
}


.child-name {
    overflow: hidden;

    color: var(--app-text);

    font-size: 17px;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.child-action {
    margin-top: 3px;

    color: var(--app-text-soft);

    font-size: 13px;
}


.child-arrow {
    padding-left: 10px;

    color: #b0b6c2;

    font-size: 29px;
    font-weight: 300;
}


/* SIN RESULTADOS */

.empty-card {
    padding: 35px 25px;

    background: #ffffff;

    border-radius: var(--app-radius);

    text-align: center;
}


.empty-icon {
    margin-bottom: 12px;

    font-size: 35px;
}


.empty-card h2 {
    margin: 0 0 8px;

    font-size: 18px;
}


.empty-card p {
    margin: 0;

    color: var(--app-text-soft);

    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   NAVEGACIÓN INFERIOR
========================================================= */

.bottom-nav {
    position: fixed;

    z-index: 100;

    bottom: 0;
    left: 50%;

    width: 100%;
    max-width: 600px;

    display: flex;

    padding:
        8px
        10px
        max(8px, env(safe-area-inset-bottom));

    background: rgba(255, 255, 255, .96);

    border-top: 1px solid var(--app-border);

    transform: translateX(-50%);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}


.bottom-nav-item {
    flex: 1;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 52px;

    color: #9aa1ae;

    font-size: 11px;
    font-weight: 600;

    text-decoration: none;
}


.bottom-nav-item.active {
    color: var(--app-primary);
}


.bottom-nav-item.disabled {
    opacity: .55;
}


.bottom-nav-icon {
    height: 24px;

    display: flex;
    align-items: center;

    margin-bottom: 2px;

    font-size: 18px;
}

/* =========================================================
   FICHA ALUMNO
========================================================= */

.app-back-button {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: var(--app-bg);
    color: var(--app-text);

    font-size: 30px;
    font-weight: 300;

    line-height: 1;

    text-decoration: none;
}


.app-header-center {
    flex: 1;
    text-align: center;
}


.app-header-space {
    width: 40px;
}


/* CABECERA ALUMNO */

.student-hero {
    display: flex;
    align-items: center;

    padding: 20px;

    background: #ffffff;

    border-radius: 22px;

    box-shadow:
        0 6px 22px rgba(31, 42, 68, .055);
}


.student-avatar {
    flex: 0 0 64px;

    width: 64px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;

    background: #ebeaff;
    color: var(--app-primary);

    font-size: 26px;
    font-weight: 800;
}


.student-hero-info {
    min-width: 0;
    padding-left: 16px;
}


.student-hero-info h2 {
    margin: 0;

    font-size: 20px;
    font-weight: 750;

    line-height: 1.25;
}


.student-subtitle {
    margin-top: 5px;

    color: var(--app-text-soft);

    font-size: 13px;
}


.student-section-title {
    margin-top: 25px;
}


/* OPCIONES */

.student-options {
    display: flex;
    flex-direction: column;

    gap: 10px;
}


.student-option-card {
    display: flex;
    align-items: center;

    min-height: 78px;

    padding: 13px 15px;

    background: #ffffff;

    border-radius: 18px;

    color: var(--app-text);

    text-decoration: none;

    box-shadow:
        0 5px 20px rgba(31, 42, 68, .045);

    -webkit-tap-highlight-color: transparent;
}


.student-option-card:active {
    transform: scale(.99);
}


.student-option-icon {
    flex: 0 0 48px;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background: #f0efff;
    color: var(--app-primary);

    font-size: 21px;
}


.student-option-info {
    flex: 1;

    min-width: 0;

    padding-left: 13px;
}


.student-option-title {
    font-size: 15px;
    font-weight: 700;
}


.student-option-description {
    margin-top: 2px;

    color: var(--app-text-soft);

    font-size: 12px;
}


/* DATOS */

.student-data-card {
    overflow: hidden;

    background: #ffffff;

    border-radius: 18px;

    box-shadow:
        0 5px 20px rgba(31, 42, 68, .04);
}


.student-data-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    min-height: 58px;

    padding: 12px 16px;

    border-bottom: 1px solid var(--app-border);

    font-size: 13px;
}


.student-data-row:last-child {
    border-bottom: 0;
}


.student-data-row span {
    color: var(--app-text-soft);
}


.student-data-row strong {
    text-align: right;

    font-weight: 650;
}

/* =========================================================
   CLASES Y HORARIOS
========================================================= */

.classes-list,
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* CLASES */

.class-card {
    display: flex;
    align-items: center;

    min-height: 72px;

    padding: 12px 15px;

    background: #ffffff;
    border-radius: 18px;

    box-shadow:
        0 5px 20px rgba(31, 42, 68, .045);
}


.class-icon {
    flex: 0 0 46px;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: #ebeaff;
    color: var(--app-primary);

    font-size: 12px;
    font-weight: 800;
}


.class-info {
    flex: 1;
    min-width: 0;

    padding-left: 13px;
}


.class-name {
    font-size: 15px;
    font-weight: 700;

    line-height: 1.3;
}


/* HORARIOS */

.schedule-section-title {
    margin-top: 27px;
}


.schedule-card {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    min-height: 68px;

    padding: 13px 16px;

    background: #ffffff;
    border-radius: 18px;

    box-shadow:
        0 5px 20px rgba(31, 42, 68, .045);
}


.schedule-day {
    min-width: 0;
}


.schedule-day-name {
    margin-bottom: 2px;

    color: var(--app-primary);

    font-size: 12px;
    font-weight: 700;
}


.schedule-time {
    color: var(--app-text);

    font-size: 15px;
    font-weight: 650;
}


.schedule-badge {
    flex-shrink: 0;

    padding: 6px 9px;

    border-radius: 10px;

    background: #eef8f2;
    color: #278253;

    font-size: 11px;
    font-weight: 700;
}


.schedule-empty {
    padding: 20px;

    background: #ffffff;

    border-radius: 18px;

    color: var(--app-text-soft);

    text-align: center;

    font-size: 13px;
}

/* =========================================================
   COBROS
========================================================= */

.payments-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}


.payment-card {
    padding: 15px 16px;

    background: #ffffff;
    border-radius: 18px;

    box-shadow:
        0 5px 20px rgba(31, 42, 68, .045);
}


.payment-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 11px;
}


.payment-date {
    color: var(--app-text-soft);

    font-size: 12px;
    font-weight: 600;
}


.payment-status {
    padding: 5px 9px;

    border-radius: 9px;

    font-size: 11px;
    font-weight: 700;
}


.payment-status-paid {
    background: #eef8f2;
    color: #278253;
}


.payment-status-pending {
    background: #fff3ed;
    color: #c85a26;
}


.payment-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 18px;
}


.payment-description {
    flex: 1;

    color: var(--app-text);

    font-size: 14px;
    font-weight: 650;

    line-height: 1.35;
}


.payment-amount {
    flex-shrink: 0;

    color: var(--app-text);

    font-size: 18px;
    font-weight: 750;

    white-space: nowrap;
}


.payments-more {
    width: 100%;
    min-height: 50px;

    margin-top: 16px;

    border: 1px solid var(--app-border);
    border-radius: 14px;

    background: #ffffff;

    color: var(--app-primary);

    font-size: 14px;
    font-weight: 700;
}


.payments-more:active {
    background: #f7f7fb;
}

.payment-paid-date {
    margin-top: 10px;

    color: #278253;

    font-size: 11px;
    font-weight: 600;
}


.payment-observation {
    margin-top: 10px;
    padding-top: 10px;

    border-top: 1px solid var(--app-border);

    color: var(--app-text-soft);

    font-size: 12px;
    line-height: 1.4;
}

/* =========================================================
   MENSAJES / COMUNICACIONES
========================================================= */

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.message-card {
    padding: 16px;

    background: #ffffff;
    border-radius: 18px;

    box-shadow:
        0 5px 20px rgba(31, 42, 68, .045);
}


.message-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 13px;
    padding-bottom: 11px;

    border-bottom: 1px solid var(--app-border);
}


.message-date {
    color: var(--app-text);

    font-size: 14px;
    font-weight: 750;
}


.message-schedule {
    margin-top: 3px;

    color: var(--app-primary);

    font-size: 11px;
    font-weight: 650;
}


.message-time {
    flex-shrink: 0;

    color: var(--app-text-soft);

    font-size: 12px;
    font-weight: 600;
}


/*
 * El contenido procede del editor Summernote.
 */
.message-text {
    overflow-wrap: anywhere;

    color: var(--app-text);

    font-size: 14px;
    line-height: 1.55;
}


.message-text p {
    margin: 0 0 8px;
}


.message-text p:last-child {
    margin-bottom: 0;
}


.message-text img {
    max-width: 100%;
    height: auto;

    border-radius: 10px;
}


.message-text ul,
.message-text ol {
    padding-left: 20px;
    margin-bottom: 8px;
}

/* =========================================================
   REDISEÑO FICHA ALUMNO - V2
========================================================= */

/* Más contenido visible en pantalla */
.app-main {
    padding: 18px 18px;
}


/* ---------- CABECERA ---------- */

.app-header {
    padding:
        max(14px, env(safe-area-inset-top))
        18px
        13px;
}

.app-back-button {
    width: 36px;
    height: 36px;

    border-radius: 12px;

    font-size: 26px;
}

.app-header-small {
    font-size: 11px;
}

.app-header h1 {
    font-size: 20px;
}


/* ---------- FICHA PRINCIPAL ---------- */

.student-hero {
    position: relative;

    padding: 17px 18px;

    border-radius: 20px;

    border: 1px solid rgba(99, 91, 255, .08);

    box-shadow:
        0 8px 24px rgba(31, 42, 68, .05);
}

.student-avatar {
    flex: 0 0 58px;

    width: 58px;
    height: 58px;

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            #ebeaff,
            #dddafe
        );

    font-size: 24px;
}

.student-hero-info {
    padding-left: 14px;
}

.student-hero-info h2 {
    font-size: 18px;
    line-height: 1.2;
}

.student-subtitle {
    margin-top: 4px;
    font-size: 12px;
}


/* ---------- TÍTULOS ---------- */

.student-section-title {
    margin-top: 21px;
    margin-bottom: 10px;
}

.student-section-title h2 {
    font-size: 15px;
}


/* ---------- MENÚ INFORMACIÓN ---------- */

.student-options {
    overflow: hidden;

    display: block;

    background: #ffffff;

    border-radius: 18px;

    border: 1px solid rgba(31, 42, 68, .035);

    box-shadow:
        0 7px 24px rgba(31, 42, 68, .045);
}

.student-option-card {
    position: relative;

    min-height: 67px;

    padding: 10px 14px;

    border-radius: 0;

    box-shadow: none;
}

.student-option-card + .student-option-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 70px;
    right: 14px;

    height: 1px;

    background: var(--app-border);
}

.student-option-icon {
    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    border-radius: 13px;

    background: #f0efff;

    font-size: 18px;
}

.student-option-info {
    padding-left: 12px;
}

.student-option-title {
    font-size: 14px;
}

.student-option-description {
    margin-top: 1px;

    font-size: 11px;
}

.student-option-card .child-arrow {
    padding-left: 7px;

    font-size: 24px;

    color: #c0c5cf;
}


/* ---------- DATOS DEL ALUMNO ---------- */

.student-data-card {
    border-radius: 18px;

    border: 1px solid rgba(31, 42, 68, .035);

    box-shadow:
        0 7px 24px rgba(31, 42, 68, .035);
}

.student-data-row {
    min-height: 52px;

    padding: 10px 14px;

    font-size: 12px;
}


/* ---------- NAVEGACIÓN INFERIOR ---------- */

.bottom-nav {
    padding-top: 6px;
}

.bottom-nav-item {
    min-height: 48px;

    font-size: 10px;
}

.bottom-nav-icon {
    height: 21px;

    margin-bottom: 2px;

    font-size: 16px;
}

.app-main > .student-section-title:first-child {
    margin-top: 0;
}

/* =========================================================
   ICONOS FICHA ALUMNO
========================================================= */

.student-option-icon svg {
    width: 21px;
    height: 21px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Clases y horarios */

.student-option-icon-schedule {
    background: #eaf2ff;
    color: #3978e9;
}


/* Comunicaciones */

.student-option-icon-message {
    background: #fff0e8;
    color: #ed7445;
}


/* Cobros */

.student-option-icon-payment {
    background: #e9f8ef;
    color: #2c9b62;
}

/* Botón volver */

.app-back-button {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border-radius: 12px;

    background: #f5f7fb;
    color: #4f46c8;

    text-decoration: none;
}

.app-back-button svg {
    display: block;

    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-back-button:active {
    background: #ebeaff;
    transform: scale(.96);
}
/* =========================================================
   NAVEGACIÓN INFERIOR V2
========================================================= */

.bottom-nav {
    padding:
        7px
        12px
        max(7px, env(safe-area-inset-bottom));

    background: rgba(255, 255, 255, .97);

    box-shadow:
        0 -5px 20px rgba(31, 42, 68, .035);
}


.bottom-nav-item {
    position: relative;

    min-height: 52px;

    gap: 2px;

    color: #9ba3b1;

    font-size: 10px;
    font-weight: 600;

    transition:
        color .15s ease,
        transform .1s ease;
}


.bottom-nav-icon {
    width: 25px;
    height: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;
}


.bottom-nav-icon svg {
    width: 21px;
    height: 21px;

    display: block;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.bottom-nav-item.active {
    color: var(--app-primary);
}


.bottom-nav-item.active .bottom-nav-icon {
    width: 32px;
    height: 27px;

    border-radius: 10px;

    background: #eeedff;
}


.bottom-nav-item:active {
    transform: scale(.95);
}

/* =========================================================
   SERVICIOS Y GRUPOS V2
========================================================= */

.classes-list {
    overflow: hidden;

    display: block;

    background: #ffffff;

    border-radius: 18px;

    border: 1px solid rgba(31, 42, 68, .035);

    box-shadow:
        0 7px 24px rgba(31, 42, 68, .045);
}


.class-card {
    position: relative;

    min-height: 64px;

    padding: 10px 14px;

    border-radius: 0;

    box-shadow: none;
}


/* Separador entre filas */

.class-card + .class-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 68px;
    right: 14px;

    height: 1px;

    background: var(--app-border);
}


/* Iconos */

.class-icon {
    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    border-radius: 13px;

    font-size: inherit;
}


.class-icon svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Servicios */

.class-icon-service {
    background: #eaf2ff;
    color: #3978e9;
}


/* Grupos */

.class-icon-group {
    background: #f1edff;
    color: #7657df;
}


.class-info {
    padding-left: 12px;
}


.class-name {
    font-size: 14px;
    font-weight: 700;
}

/* =========================================================
   HORARIOS AGRUPADOS
========================================================= */

.schedule-list {
    overflow: hidden;

    display: block;

    background: #ffffff;

    border-radius: 18px;

    border: 1px solid rgba(31, 42, 68, .035);

    box-shadow:
        0 7px 24px rgba(31, 42, 68, .045);
}


.schedule-card {
    position: relative;

    min-height: 58px;

    padding: 10px 14px;

    border-radius: 0;

    box-shadow: none;
}


/* Separador entre horarios */

.schedule-card + .schedule-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 68px;
    right: 14px;

    height: 1px;

    background: var(--app-border);
}


.schedule-time {
    font-size: 14px;
    font-weight: 700;
}

.schedule-icon {
    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 12px;

    border-radius: 13px;

    background: #fff0e8;
    color: #ed7445;
}

.schedule-icon svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.schedule-day {
    flex: 1;
    min-width: 0;
}

.schedule-time {
    text-align: left;
}

/* =========================================================
   COMUNICACIONES - TIMELINE
========================================================= */

.messages-list {
    display: block;
}


/* Cada comunicación */

.timeline-item {
    position: relative;

    display: flex;

    padding-bottom: 22px;
}


/* Columna timeline */

.timeline-marker {
    position: relative;

    flex: 0 0 25px;

    width: 25px;
}


/* Línea vertical */

.timeline-marker::after {
    content: "";

    position: absolute;

    top: 17px;
    bottom: -22px;
    left: 6px;

    width: 1px;

    background: #dde1e9;
}


/* Último mensaje sin continuación */

.timeline-item:last-child .timeline-marker::after {
    display: none;
}


/* Punto */

.timeline-dot {
    position: relative;

    z-index: 2;

    width: 13px;
    height: 13px;

    margin-top: 4px;

    border: 3px solid #fff0e8;
    border-radius: 50%;

    background: #ed7445;

    box-shadow:
        0 0 0 2px #ffffff;
}


/* Contenido */

.timeline-content {
    flex: 1;
    min-width: 0;
}


/* Fecha + hora */

.timeline-meta {
    display: flex;
    align-items: center;

    gap: 7px;

    margin-bottom: 7px;
}


.timeline-date {
    color: var(--app-text);

    font-size: 13px;
    font-weight: 750;
}


.timeline-time {
    color: var(--app-text-soft);

    font-size: 11px;
    font-weight: 600;
}


.timeline-time::before {
    content: "·";

    margin-right: 7px;

    color: #b8bec8;
}


/* Horario asociado */

.timeline-schedule {
    width: fit-content;

    display: flex;
    align-items: center;

    gap: 5px;

    margin-bottom: 8px;

    padding: 4px 8px;

    border-radius: 8px;

    background: #eaf2ff;
    color: #3978e9;

    font-size: 10px;
    font-weight: 700;
}


.timeline-schedule svg {
    width: 13px;
    height: 13px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Tarjeta del mensaje */

.timeline-content .message-card {
    padding: 13px 14px;

    border: 1px solid rgba(31, 42, 68, .035);
    border-radius: 14px;

    box-shadow:
        0 4px 15px rgba(31, 42, 68, .035);
}


.timeline-content .message-text {
    font-size: 13px;
    line-height: 1.55;
}

/* =========================================================
   CÓDIGO DE ACCESO DEL ALUMNO
========================================================= */

.student-barcode-row {
    padding: 13px 14px 16px;

}

.student-barcode-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.student-barcode-header > span {
    color: var(--app-text-soft);
    font-size: 12px;
    font-weight: 600;
}

.student-barcode {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    padding: 5px 10px;
}

.student-barcode img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.student-barcode-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    padding: 6px 9px;

    border: 0;
    border-radius: 9px;

    background: #f1edff;
    color: var(--app-primary);

    font-size: 11px;
    font-weight: 700;
}

.student-barcode-share svg {
    display: block;
    width: 14px;
    height: 14px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.student-barcode-share:active {
    transform: scale(.96);
}

/* =========================================================
   COBROS - NUEVO DISEÑO
========================================================= */

.payment-card {
    background: #fff;
    border-radius: 18px;
    padding: 16px;

    box-shadow: 0 8px 25px rgba(30, 41, 59, .04);
}


/* CABECERA */

.payment-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 16px;
}


.payment-date {
    display: flex;
    align-items: center;
    gap: 7px;

    color: #718096;
    font-size: 12px;
    font-weight: 500;
}


.payment-date svg {
    width: 17px;
    height: 17px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ESTADOS */

.payment-status {
    padding: 6px 10px;
    border-radius: 10px;

    font-size: 11px;
    font-weight: 700;
}


.payment-status-paid {
    background: #eaf8f0;
    color: #159455;
}


.payment-status-pending {
    background: #fff0e9;
    color: #e76532;
}


/* CONCEPTO E IMPORTE */

.payment-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;

    padding-bottom: 15px;
}


.payment-description {
    flex: 1;

    color: var(--app-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}


.payment-amount {
    white-space: nowrap;

    color: var(--app-text);
    font-size: 18px;
    font-weight: 800;
}


/* PIE */

.payment-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding-top: 13px;

    border-top: 1px solid var(--app-border);
}


.payment-paid-date {
    display: flex;
    align-items: center;
    gap: 6px;

    color: #159455;
    font-size: 11px;
    font-weight: 600;
}


.payment-paid-date svg {
    width: 17px;
    height: 17px;

    flex-shrink: 0;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* DESCARGAR */

.payment-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 7px 10px;

    border: 1px solid #20a464;
    border-radius: 9px;

    background: #fff;
    color: #159455;

    font-size: 11px;
    font-weight: 700;
}


.payment-download svg {
    width: 16px;
    height: 16px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.payment-download:active {
    background: #eaf8f0;
    transform: scale(.97);
}

.payment-download {
    text-decoration: none;
}
/* OBSERVACIONES */

.payment-observation {
    margin-top: 12px;
    padding-top: 12px;

    border-top: 1px solid var(--app-border);

    color: var(--app-text-soft);
    font-size: 12px;
}

.student-option-icon-computer {
    background: #e8f5e9;
    color: #2e7d32;
}