/**
 * Creati Manager - Estilos públicos
 * Formularios de inscripción y área del estudiante
 */

:root {
    --cp-yellow:      #F5A623;
    --cp-yellow-dark: #D4891A;
    --cp-yellow-light:#FFF8EC;
    --cp-black:       #1A1A1A;
    --cp-gray-700:    #374151;
    --cp-gray-500:    #6B7280;
    --cp-gray-300:    #D1D5DB;
    --cp-gray-100:    #F3F4F6;
    --cp-white:       #FFFFFF;
    --cp-red:         #EF4444;
    --cp-green:       #10B981;
    --cp-radius:      10px;
    --cp-shadow:      0 4px 24px rgba(0,0,0,0.08);
    --cp-font:        'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

/* ---- PAGE WRAPPER ---- */
.creati-form-page {
    min-height: 100vh;
    background: #F7F7F5;
    font-family: var(--cp-font);
    padding: 0 0 60px 0;
}

/* ---- HEADER ---- */
.creati-form-header {
    background: var(--cp-black);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.creati-form-header__logo {
    color: var(--cp-yellow);
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.02em;
}
.creati-form-header__logo:hover { color: var(--cp-yellow); text-decoration: none; }
.creati-form-header__tagline {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

/* ---- HERO DEL CURSO ---- */
.creati-form-hero {
    background: var(--cp-black);
    padding: 40px 24px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.creati-form-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 32px;
    background: #F7F7F5;
    border-radius: 50% 50% 0 0 / 32px 32px 0 0;
}
.creati-form-hero__tipo {
    display: inline-block;
    background: var(--cp-yellow);
    color: var(--cp-black);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 99px;
    margin-bottom: 14px;
}
.creati-form-hero__titulo {
    font-size: clamp(24px, 5vw, 36px);
    font-weight: 700;
    color: var(--cp-white);
    margin: 0 0 12px 0;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.creati-form-hero__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
}
.creati-form-hero__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.75);
    font-size: 14px;
}
.creati-form-hero__meta-item strong { color: var(--cp-yellow); }

/* ---- CONTAINER ---- */
.creati-form-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- CARD DEL FORMULARIO ---- */
.creati-form-card {
    background: var(--cp-white);
    border-radius: var(--cp-radius);
    box-shadow: var(--cp-shadow);
    padding: 32px;
    margin-top: 32px;
}
.creati-form-card__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--cp-black);
    margin: 0 0 6px 0;
}
.creati-form-card__subtitle {
    font-size: 14px;
    color: var(--cp-gray-500);
    margin: 0 0 24px 0;
}
.creati-form-divider {
    height: 1px;
    background: var(--cp-gray-100);
    margin: 24px 0;
}

/* ---- CAMPOS ---- */
.cp-field {
    margin-bottom: 16px;
}
.cp-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.cp-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--cp-gray-700);
    margin-bottom: 5px;
}
.cp-label--req::after {
    content: ' *';
    color: var(--cp-red);
}
.cp-input, .cp-select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--cp-gray-300);
    border-radius: 8px;
    font-family: var(--cp-font);
    font-size: 15px;
    color: var(--cp-black);
    background: var(--cp-white);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    appearance: none;
}
.cp-input:focus, .cp-select:focus {
    border-color: var(--cp-yellow);
    box-shadow: 0 0 0 3px rgba(245,166,35,0.18);
}
.cp-input.error { border-color: var(--cp-red); }
.cp-error-msg {
    font-size: 12px;
    color: var(--cp-red);
    margin-top: 4px;
    display: none;
}
.cp-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

/* ---- CHECKBOX RESPONSABLE ---- */
.cp-check-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    padding: 14px;
    border: 1.5px solid var(--cp-gray-300);
    border-radius: 8px;
    transition: border-color 0.15s, background 0.15s;
}
.cp-check-label:hover { border-color: var(--cp-yellow); background: var(--cp-yellow-light); }
.cp-check-label input[type=checkbox] {
    width: 18px;
    height: 18px;
    accent-color: var(--cp-yellow);
    flex-shrink: 0;
    margin-top: 1px;
}
.cp-check-label__text strong { display: block; font-size: 14px; color: var(--cp-black); }
.cp-check-label__text span { font-size: 12px; color: var(--cp-gray-500); }

.cp-responsable-wrap {
    background: var(--cp-gray-100);
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
    display: none;
}

/* ---- HORARIOS ---- */
.cp-horarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}
.cp-horario-option {
    display: none;
}
.cp-horario-option + label {
    display: flex;
    flex-direction: column;
    padding: 12px 14px;
    border: 1.5px solid var(--cp-gray-300);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 13px;
    line-height: 1.4;
}
.cp-horario-option + label:hover {
    border-color: var(--cp-yellow);
    background: var(--cp-yellow-light);
}
.cp-horario-option:checked + label {
    border-color: var(--cp-yellow);
    background: var(--cp-yellow-light);
    font-weight: 600;
}
.cp-horario-option + label .cp-horario-dia {
    font-weight: 600;
    color: var(--cp-black);
    margin-bottom: 2px;
}
.cp-horario-option + label .cp-horario-hora {
    color: var(--cp-gray-500);
    font-size: 12px;
}

/* ---- BOTÓN SUBMIT ---- */
.cp-btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--cp-yellow);
    color: var(--cp-black);
    border: none;
    border-radius: 8px;
    font-family: var(--cp-font);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    margin-top: 8px;
    letter-spacing: -0.01em;
}
.cp-btn-submit:hover { background: var(--cp-yellow-dark); }
.cp-btn-submit:active { transform: scale(0.99); }
.cp-btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---- AVISO DE PRIVACIDAD ---- */
.cp-privacy {
    font-size: 12px;
    color: var(--cp-gray-500);
    text-align: center;
    margin-top: 14px;
    line-height: 1.5;
}

/* ---- ESTADO LLENO ---- */
.cp-lleno-box {
    background: #FEF2F2;
    border: 1.5px solid #FCA5A5;
    border-radius: var(--cp-radius);
    padding: 28px 24px;
    text-align: center;
    margin-top: 32px;
}
.cp-lleno-box__icon { font-size: 36px; margin-bottom: 12px; }
.cp-lleno-box__title { font-size: 18px; font-weight: 700; color: #991B1B; margin-bottom: 6px; }
.cp-lleno-box__text { font-size: 14px; color: #7F1D1D; }

/* ---- PANTALLA DE ÉXITO ---- */
.cp-success {
    text-align: center;
    padding: 48px 24px;
}
.cp-success__icon { font-size: 56px; margin-bottom: 16px; }
.cp-success__title { font-size: 24px; font-weight: 700; color: var(--cp-black); margin-bottom: 8px; }
.cp-success__text { font-size: 15px; color: var(--cp-gray-500); max-width: 400px; margin: 0 auto 24px; line-height: 1.6; }
.cp-success__btn {
    display: inline-block;
    background: var(--cp-yellow);
    color: var(--cp-black);
    padding: 13px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.15s;
}
.cp-success__btn:hover { background: var(--cp-yellow-dark); color: var(--cp-black); text-decoration: none; }

/* ---- NOTICE GENERAL ---- */
.cp-notice {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.cp-notice--error { background: #FEF2F2; color: #991B1B; border-left: 3px solid var(--cp-red); }
.cp-notice--success { background: #ECFDF5; color: #065F46; border-left: 3px solid var(--cp-green); }

/* ---- RESPONSIVE ---- */
@media (max-width: 560px) {
    .creati-form-card { padding: 20px 16px; }
    .cp-field-row { grid-template-columns: 1fr; }
    .cp-horarios-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   SHORTCODES (prefijo csc- = creati shortcode)
   Diseñados para funcionar dentro de Divi sin conflictos
   ============================================================ */

.creati-sc-wrap {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1A1A1A;
    max-width: 680px;
    margin: 0 auto;
}

.creati-sc-error {
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: #991B1B;
}

/* ---- HERO del shortcode ---- */
.csc-hero {
    background: #1A1A1A;
    border-radius: 12px;
    padding: 28px 28px 24px;
    margin-bottom: 24px;
    text-align: center;
}
.csc-hero__tipo {
    display: inline-block;
    background: #F5A623;
    color: #1A1A1A;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 3px 12px;
    border-radius: 99px;
    margin-bottom: 10px;
}
.csc-hero__titulo {
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 8px;
    line-height: 1.2;
    letter-spacing: -.02em;
}
.csc-hero__desc {
    color: rgba(255,255,255,.65);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 14px;
}
.csc-hero__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    font-size: 13px;
    color: rgba(255,255,255,.75);
}
.csc-hero__meta span strong,
.csc-hero__meta strong { color: #F5A623; }

/* ---- GRUPO LLENO ---- */
.csc-lleno {
    background: #FEF2F2;
    border: 1.5px solid #FCA5A5;
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
}
.csc-lleno__icon { font-size: 32px; margin-bottom: 10px; }
.csc-lleno__title { font-size: 17px; font-weight: 700; color: #991B1B; margin-bottom: 6px; }
.csc-lleno__text { font-size: 14px; color: #7F1D1D; margin-bottom: 16px; line-height: 1.5; }
.csc-btn-whatsapp {
    display: inline-block;
    background: #25D366;
    color: white;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: background .15s;
}
.csc-btn-whatsapp:hover { background: #1fad57; color: white; text-decoration: none; }

/* ---- FORM WRAP ---- */
.csc-form-wrap {
    background: #FFFFFF;
    border: 1.5px solid #E5E7EB;
    border-radius: 12px;
    padding: 28px;
}
.csc-form-wrap__title {
    font-size: 18px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 4px;
}
.csc-form-wrap__subtitle {
    font-size: 14px;
    color: #6B7280;
    margin: 0 0 22px;
}

/* ---- CAMPOS ---- */
.csc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 0;
}
.csc-field { margin-bottom: 14px; }
.csc-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}
.csc-label--req::after { content: ' *'; color: #EF4444; }
.csc-input {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid #D1D5DB;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    color: #1A1A1A;
    background: #FFFFFF;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
    /* Neutralizar estilos de Divi */
    height: auto !important;
    line-height: normal !important;
}
.csc-input:focus {
    border-color: #F5A623;
    box-shadow: 0 0 0 3px rgba(245,166,35,.15);
}
.csc-input.csc-error { border-color: #EF4444; }
.csc-err {
    display: none;
    font-size: 12px;
    color: #EF4444;
    margin-top: 3px;
}
.csc-input--codigo {
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
    font-size: 16px;
}

/* ---- HORARIOS ---- */
.csc-horarios {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 8px;
}
.csc-horario-radio { display: none; }
.csc-horario-label {
    display: flex;
    flex-direction: column;
    padding: 11px 13px;
    border: 1.5px solid #D1D5DB;
    border-radius: 8px;
    cursor: pointer;
    transition: all .15s;
}
.csc-horario-label:hover { border-color: #F5A623; background: #FFF8EC; }
.csc-horario-radio:checked + .csc-horario-label {
    border-color: #F5A623;
    background: #FFF8EC;
    font-weight: 600;
}
.csc-horario-label__dia { font-size: 13px; font-weight: 600; color: #1A1A1A; }
.csc-horario-label__hora { font-size: 12px; color: #6B7280; margin-top: 2px; }
.csc-horario-label__alerta { font-size: 11px; color: #D97706; font-weight: 600; margin-top: 4px; }

/* ---- RESPONSABLE ---- */
.csc-check-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px;
    border: 1.5px solid #D1D5DB;
    border-radius: 8px;
    cursor: pointer;
    transition: all .15s;
}
.csc-check-wrap:hover { border-color: #F5A623; background: #FFF8EC; }
.csc-check-input {
    width: 17px !important;
    height: 17px !important;
    accent-color: #F5A623;
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
}
.csc-check-text strong { display: block; font-size: 14px; color: #1A1A1A; }
.csc-check-text span { font-size: 12px; color: #6B7280; }
.csc-responsable-extra {
    background: #F9FAFB;
    border-radius: 8px;
    padding: 14px;
    margin-top: 10px;
}

/* ---- BOTÓN SUBMIT ---- */
.csc-btn-submit {
    width: 100%;
    padding: 14px;
    background: #F5A623;
    color: #1A1A1A;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    margin-top: 6px;
    letter-spacing: -.01em;
}
.csc-btn-submit:hover { background: #D4891A; }
.csc-btn-submit:disabled { opacity: .6; cursor: not-allowed; }
.csc-privacidad {
    font-size: 12px;
    color: #9CA3AF;
    text-align: center;
    margin: 10px 0 0;
    line-height: 1.5;
}

/* ---- NOTICE ---- */
.csc-notice { padding: 11px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 14px; }
.csc-notice--error { background: #FEF2F2; color: #991B1B; border-left: 3px solid #EF4444; }
.csc-notice--success { background: #ECFDF5; color: #065F46; border-left: 3px solid #10B981; }

/* ---- VERIFICADOR ---- */
.csc-verificar {
    background: #FFFFFF;
    border: 1.5px solid #E5E7EB;
    border-radius: 12px;
    padding: 28px;
}
.csc-verificar__title { font-size: 20px; font-weight: 700; color: #1A1A1A; margin: 0 0 6px; }
.csc-verificar__subtitle { font-size: 14px; color: #6B7280; margin: 0 0 20px; }
.csc-verificar__form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.csc-verificar__form .csc-input { flex: 1; }
.csc-btn-verificar {
    padding: 10px 20px;
    background: #F5A623;
    color: #1A1A1A;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: background .15s;
}
.csc-btn-verificar:hover { background: #D4891A; }

/* Resultado verificación */
.csc-verificar__resultado {
    border-radius: 10px;
    padding: 22px;
    margin-top: 16px;
}
.csc-verificar__resultado--error {
    background: #FEF2F2;
    border: 1.5px solid #FCA5A5;
    text-align: center;
}
.csc-result__icon { font-size: 32px; margin-bottom: 8px; }
.csc-result__title { font-size: 16px; font-weight: 700; color: #991B1B; margin-bottom: 6px; }
.csc-result__text { font-size: 14px; color: #7F1D1D; margin: 0; }

.csc-verificar__resultado--valido {
    background: #ECFDF5;
    border: 1.5px solid #6EE7B7;
    text-align: center;
}
.csc-result__check { font-size: 36px; margin-bottom: 8px; }
.csc-result__valido-title { font-size: 17px; font-weight: 700; color: #065F46; margin-bottom: 3px; }
.csc-result__valido-sub { font-size: 13px; color: #6B7280; margin: 0 0 18px; }
.csc-result__datos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    text-align: left;
}
.csc-result__dato {
    background: white;
    border-radius: 8px;
    padding: 11px 13px;
}
.csc-result__dato-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6B7280;
    margin-bottom: 3px;
}
.csc-result__dato-valor { font-size: 14px; font-weight: 600; color: #1A1A1A; }

.csc-verificar__inicial {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: #9CA3AF;
}

/* ---- PANTALLA ÉXITO (post-submit) ---- */
.csc-exito {
    text-align: center;
    padding: 36px 20px;
}
.csc-exito__icon { font-size: 52px; margin-bottom: 14px; }
.csc-exito__title { font-size: 22px; font-weight: 700; color: #1A1A1A; margin-bottom: 8px; }
.csc-exito__text { font-size: 15px; color: #6B7280; line-height: 1.65; margin-bottom: 22px; max-width: 380px; margin-left: auto; margin-right: auto; }
.csc-exito__btn {
    display: inline-block;
    background: #F5A623;
    color: #1A1A1A;
    padding: 12px 26px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: background .15s;
}
.csc-exito__btn:hover { background: #D4891A; color: #1A1A1A; text-decoration: none; }

/* ---- RESPONSIVE ---- */
@media (max-width: 540px) {
    .csc-row { grid-template-columns: 1fr; }
    .csc-result__datos { grid-template-columns: 1fr; }
    .csc-verificar__form { flex-direction: column; }
    .csc-horarios { grid-template-columns: 1fr 1fr; }
    .csc-form-wrap { padding: 20px 16px; }
}

/* ============================================================
   ÁREA DEL ESTUDIANTE — MI CUENTA
   ============================================================ */
.creati-mc {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 520px;
    margin: 0 auto;
    color: #1A1A1A;
}

/* ---- LOGIN ---- */
.mc-login-wrap { padding: 20px 0; }
.mc-login-card {
    background: #FFFFFF;
    border: 1.5px solid #E5E7EB;
    border-radius: 16px;
    padding: 32px 28px;
    text-align: center;
}
.mc-login-logo {
    font-size: 24px;
    font-weight: 700;
    color: #F5A623;
    margin-bottom: 8px;
}
.mc-login-title {
    font-size: 22px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 6px;
}
.mc-login-subtitle {
    font-size: 14px;
    color: #6B7280;
    margin: 0 0 24px;
}

/* ---- CAMPOS ---- */
.mc-field { margin-bottom: 14px; text-align: left; }
.mc-label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 5px; }
.mc-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #D1D5DB;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    color: #1A1A1A;
    outline: none;
    box-sizing: border-box;
    transition: border-color .15s;
    background: #FFFFFF;
}
.mc-input:focus { border-color: #F5A623; box-shadow: 0 0 0 3px rgba(245,166,35,.15); }

/* ---- BOTONES ---- */
.mc-btn-primary {
    width: 100%;
    padding: 13px;
    background: #F5A623;
    color: #1A1A1A;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 6px;
    transition: background .15s;
}
.mc-btn-primary:hover { background: #D4891A; }
.mc-btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.mc-btn-link {
    background: none;
    border: none;
    color: #6B7280;
    font-size: 13px;
    cursor: pointer;
    margin-top: 12px;
    text-decoration: underline;
    font-family: inherit;
    display: block;
    width: 100%;
    text-align: center;
}
.mc-btn-link:hover { color: #1A1A1A; }
.mc-btn-pago {
    display: block;
    width: 100%;
    padding: 12px;
    background: #1A1A1A;
    color: #F5A623;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    transition: background .15s;
}
.mc-btn-pago:hover { background: #333; color: #F5A623; text-decoration: none; }

/* ---- NOTICES ---- */
.mc-notice { padding: 10px 14px; border-radius: 8px; font-size: 13px; text-align: left; margin-bottom: 12px; }
.mc-notice--error   { background: #FEF2F2; color: #991B1B; border-left: 3px solid #EF4444; }
.mc-notice--success { background: #ECFDF5; color: #065F46; border-left: 3px solid #10B981; }

/* ---- APP ---- */
.mc-app {
    border: 1.5px solid #E5E7EB;
    border-radius: 16px;
    overflow: hidden;
    background: #F9FAFB;
    min-height: 560px;
    display: flex;
    flex-direction: column;
}
.mc-header {
    background: #1A1A1A;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.mc-header__logo { color: #F5A623; font-weight: 700; font-size: 16px; }
.mc-header__user { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,.75); }
.mc-btn-logout {
    background: rgba(255,255,255,.1);
    border: none;
    color: white;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 16px;
    cursor: pointer;
    transition: background .15s;
}
.mc-btn-logout:hover { background: rgba(255,255,255,.2); }

/* ---- NAV ---- */
.mc-nav {
    display: flex;
    background: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
    flex-shrink: 0;
    order: 999; /* Al fondo */
}
.mc-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 4px 8px;
    background: none;
    border: none;
    cursor: pointer;
    border-top: 2px solid transparent;
    transition: all .15s;
    font-family: inherit;
}
.mc-nav__item.active { border-top-color: #F5A623; }
.mc-nav__icon { font-size: 18px; }
.mc-nav__label { font-size: 10px; color: #9CA3AF; font-weight: 500; }
.mc-nav__item.active .mc-nav__label { color: #F5A623; font-weight: 600; }

/* ---- SCREENS ---- */
.mc-screens { flex: 1; overflow: hidden; position: relative; }
.mc-screen { display: none; flex-direction: column; height: 100%; }
.mc-screen.active { display: flex; }
.mc-screen__header {
    background: #FFFFFF;
    padding: 14px 20px;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.mc-screen__title { font-size: 16px; font-weight: 700; margin: 0; }
.mc-btn-back {
    background: none;
    border: none;
    font-size: 13px;
    color: #6B7280;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}
.mc-btn-back:hover { color: #1A1A1A; }
.mc-screen__body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

/* ---- COMPONENTES ---- */
.mc-card {
    background: #FFFFFF;
    border: 1.5px solid #E5E7EB;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}
.mc-card--destacada { border-color: #F5A623; background: #FFFBF0; }
.mc-card__label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #9CA3AF; margin-bottom: 4px; }
.mc-card__title { font-size: 17px; font-weight: 700; color: #1A1A1A; margin-bottom: 4px; }
.mc-card__meta { font-size: 13px; color: #6B7280; margin-top: 3px; }

.mc-kpi-grid { display: flex; gap: 12px; margin: 14px 0; }
.mc-kpi { flex: 1; background: #FFFFFF; border: 1.5px solid #E5E7EB; border-radius: 10px; padding: 12px; text-align: center; }
.mc-kpi__num { font-size: 22px; font-weight: 700; }
.mc-kpi__label { font-size: 11px; color: #9CA3AF; margin-top: 2px; }

.mc-accesos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.mc-acceso {
    background: #FFFFFF;
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    transition: all .15s;
}
.mc-acceso span:first-child { font-size: 22px; }
.mc-acceso:hover { border-color: #F5A623; background: #FFFBF0; }

.mc-dashboard-saludo { font-size: 18px; font-weight: 700; margin-bottom: 16px; color: #1A1A1A; }

.mc-menu-lista { display: flex; flex-direction: column; gap: 2px; }
.mc-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: #FFFFFF;
    border: none;
    border-bottom: 1px solid #F3F4F6;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    color: #1A1A1A;
    text-align: left;
    transition: background .15s;
    border-radius: 0;
}
.mc-menu-item:first-child { border-radius: 8px 8px 0 0; }
.mc-menu-item:last-child  { border-radius: 0 0 8px 8px; border-bottom: none; }
.mc-menu-item:hover { background: #F9FAFB; }
.mc-menu-item span:last-child { margin-left: auto; color: #9CA3AF; }

.mc-stat { text-align: center; }
.mc-stat__num { font-size: 18px; font-weight: 700; }
.mc-stat__label { font-size: 11px; color: #9CA3AF; }

.mc-tabla { width: 100%; font-size: 14px; border-collapse: collapse; }
.mc-tabla td { padding: 8px 0; border-bottom: 1px solid #F3F4F6; }
.mc-tabla td:first-child { color: #6B7280; width: 40%; }
.mc-tabla td:last-child { font-weight: 500; }

.mc-material-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #FFFFFF;
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    margin-bottom: 8px;
    text-decoration: none;
    color: #1A1A1A;
    transition: border-color .15s;
}
.mc-material-item:hover { border-color: #F5A623; text-decoration: none; color: #1A1A1A; }
.mc-material-icon { font-size: 22px; flex-shrink: 0; }

.mc-loading { text-align: center; padding: 40px; color: #9CA3AF; font-size: 14px; }
.mc-empty { text-align: center; padding: 40px 20px; color: #9CA3AF; font-size: 14px; line-height: 1.6; }
.mc-error { color: #991B1B; font-size: 14px; padding: 12px; background: #FEF2F2; border-radius: 8px; }
