/* =====================================================
   MiControl - Estilos principales
   ===================================================== */


/* ================= VARIABLES ================= */

:root {

    --mc-azul: #102a43;
    --mc-azul-2: #173f5f;
    --mc-verde: #20c997;
    --mc-verde-oscuro: #129879;

    --mc-fondo: #f5f8fc;
    --mc-blanco: #ffffff;

    --mc-texto: #1f3349;
    --mc-texto-suave: #7890a5;

    --mc-borde: #e1eaf2;

    --mc-rojo: #ef5b68;
    --mc-azul-claro: #3b82f6;

}


/* ================= GENERAL ================= */

html {
    scroll-behavior: smooth;
}

body {

    margin: 0;

    background: var(--mc-fondo);

    color: var(--mc-texto);

    font-family:
        "Segoe UI",
        Arial,
        sans-serif;
}


/* ================= NAVBAR ================= */

.navbar-mc {

    background: rgba(16, 42, 67, 0.97);

    box-shadow:
        0 8px 25px rgba(16, 42, 67, 0.15);

    padding: 0.9rem 0;

    position: relative;

    z-index: 10;
}


.logo-mc {

    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 1.6rem;

    font-weight: 800;

    color: white !important;
}


.logo-mc span:not(.logo-icon) {

    color: var(--mc-verde);
}


.logo-icon {

    font-size: 1.5rem;
}


.navbar-mc .nav-link {

    color: #d9e5ef;

    font-weight: 500;

    border-radius: 10px;

    padding: 0.6rem 0.9rem !important;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}


.navbar-mc .nav-link:hover {

    color: white;

    background: rgba(32, 201, 151, 0.12);

    transform: translateY(-2px);
}


.navbar-mc .nav-link.active {

    color: white;

    background: rgba(32, 201, 151, 0.16);
}


.navbar-toggler {

    border-color: rgba(255, 255, 255, 0.2);
}


/* ================= HERO ================= */

.hero-mc {

    position: relative;

    overflow: hidden;

    padding: 5rem 0;

    color: white;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(32, 201, 151, 0.20),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            var(--mc-azul),
            var(--mc-azul-2)
        );
}


/* Decoraciones */

.hero-decoracion {

    position: absolute;

    border-radius: 50%;

    filter: blur(2px);

    pointer-events: none;
}


.hero-1 {

    width: 250px;

    height: 250px;

    background: rgba(32, 201, 151, 0.08);

    right: -80px;

    top: -100px;
}


.hero-2 {

    width: 180px;

    height: 180px;

    border: 30px solid rgba(255, 255, 255, 0.03);

    right: 20%;

    bottom: -100px;
}


/* Badge */

.badge-mc {

    display: inline-block;

    padding: 0.65rem 1rem;

    border-radius: 50px;

    color: #70f0cc;

    background: rgba(32, 201, 151, 0.13);

    border: 1px solid rgba(32, 201, 151, 0.25);

    font-size: 0.75rem;

    font-weight: 700;

    letter-spacing: 1px;
}


/* Título */

.hero-mc h1 {

    font-size: clamp(2.4rem, 6vw, 4.5rem);

    line-height: 1.05;

    font-weight: 800;

    margin-bottom: 1.3rem;
}


.hero-mc h1 span {

    color: var(--mc-verde);
}


.hero-text {

    max-width: 650px;

    color: #cbd9e5;

    font-size: 1.15rem;

    line-height: 1.7;
}


/* ================= BOTONES ================= */

.btn-mc {

    border: none;

    background: var(--mc-verde);

    color: #063b2e;

    font-weight: 700;

    border-radius: 12px;

    padding: 0.8rem 1.4rem;

    box-shadow:
        0 8px 20px rgba(32, 201, 151, 0.2);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.btn-mc:hover {

    background: #38d9aa;

    color: #063b2e;

    transform: translateY(-3px);

    box-shadow:
        0 12px 25px rgba(32, 201, 151, 0.3);
}


/* ================= TARJETA DE SALDO ================= */

.saldo-principal {

    padding: 2rem;

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.15),
            rgba(255,255,255,0.06)
        );

    border: 1px solid rgba(255,255,255,0.15);

    backdrop-filter: blur(10px);

    box-shadow:
        0 25px 50px rgba(0,0,0,0.20);
}


.saldo-label {

    color: #c8d9e6;

    font-size: 0.9rem;
}


.saldo-monto {

    font-size: clamp(2rem, 5vw, 3rem);

    font-weight: 800;

    margin: 0;

    color: white;
}


.saldo-icono {

    width: 55px;

    height: 55px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 16px;

    background: rgba(32, 201, 151, 0.18);

    font-size: 1.6rem;
}


.saldo-separador {

    height: 1px;

    background: rgba(255,255,255,0.15);

    margin: 1.5rem 0;
}


/* ================= ENCABEZADOS ================= */

.section-heading {

    margin-bottom: 2rem;
}


.section-mini-title {

    display: inline-block;

    color: var(--mc-verde-oscuro);

    font-size: 0.75rem;

    font-weight: 800;

    letter-spacing: 1.5px;

    margin-bottom: 0.5rem;
}


.section-heading h2,
.acciones-mc h2 {

    color: var(--mc-azul);

    font-size: clamp(1.8rem, 4vw, 2.4rem);

    font-weight: 800;

    margin-bottom: 0.5rem;
}


.section-heading p,
.acciones-mc p {

    color: var(--mc-texto-suave);

    margin: 0;
}


/* ================= TARJETAS FINANCIERAS ================= */

.card-financiera {

    position: relative;

    height: 100%;

    padding: 1.7rem;

    background: white;

    border: 1px solid var(--mc-borde);

    border-radius: 22px;

    overflow: hidden;

    box-shadow:
        0 8px 25px rgba(16, 42, 67, 0.05);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}


.card-financiera:hover {

    transform: translateY(-8px);

    box-shadow:
        0 20px 40px rgba(16, 42, 67, 0.12);
}


.card-financiera::before {

    content: "";

    position: absolute;

    left: 0;

    top: 0;

    width: 5px;

    height: 100%;
}


.tarjeta-verde::before {
    background: var(--mc-verde);
}


.tarjeta-azul::before {
    background: var(--mc-azul-claro);
}


.tarjeta-roja::before {
    background: var(--mc-rojo);
}


.card-financiera-top {

    display: flex;

    justify-content: space-between;

    align-items: center;
}


.card-etiqueta {

    display: block;

    color: var(--mc-texto-suave);

    font-size: 0.75rem;

    font-weight: 700;

    letter-spacing: 1px;

    margin-bottom: 0.5rem;
}


.card-financiera h3 {

    font-size: clamp(1.8rem, 4vw, 2.3rem);

    font-weight: 800;

    margin: 0;

    color: var(--mc-azul);
}


.card-icon {

    width: 58px;

    height: 58px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 17px;

    font-size: 1.7rem;

    background: #f1f7f9;
}


.tarjeta-verde .card-icon {
    background: #e5f8f2;
}


.tarjeta-azul .card-icon {
    background: #eaf2ff;
}


.tarjeta-roja .card-icon {
    background: #fff0f1;
}


.card-footer-mc {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-top: 1.5rem;

    padding-top: 1rem;

    border-top: 1px solid var(--mc-borde);

    color: var(--mc-texto-suave);

    font-size: 0.85rem;
}


.indicador {

    color: var(--mc-verde);

    font-size: 0.8rem;
}


/* ================= ACCIONES ================= */

.acciones-mc {

    padding: 2.5rem;

    background: white;

    border: 1px solid var(--mc-borde);

    border-radius: 24px;

    box-shadow:
        0 8px 25px rgba(16, 42, 67, 0.04);
}


.accion-item {

    display: flex;

    align-items: center;

    gap: 1rem;

    padding: 1rem;

    color: var(--mc-texto);

    text-decoration: none;

    border: 1px solid var(--mc-borde);

    border-radius: 15px;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


.accion-item:hover {

    color: var(--mc-texto);

    transform: translateX(5px);

    border-color: var(--mc-verde);

    box-shadow:
        0 8px 20px rgba(16, 42, 67, 0.07);
}


.accion-icon {

    min-width: 48px;

    width: 48px;

    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 13px;

    background: #e9f8f4;

    font-size: 1.3rem;
}


.accion-item span:nth-child(2) {

    flex-grow: 1;
}


.accion-item strong {

    display: block;

    font-size: 0.95rem;
}


.accion-item small {

    display: block;

    color: var(--mc-texto-suave);

    margin-top: 3px;
}


.accion-flecha {

    color: var(--mc-verde-oscuro);

    font-size: 1.2rem;

    font-weight: bold;
}


/* ================= CONSEJO ================= */

.consejo-mc {

    display: flex;

    align-items: center;

    gap: 1rem;

    padding: 1.3rem 1.5rem;

    border-radius: 18px;

    background: #eaf8f5;

    border: 1px solid #c9eee4;

    color: var(--mc-texto);
}


.consejo-icon {

    min-width: 48px;

    width: 48px;

    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: white;

    font-size: 1.3rem;
}


.consejo-mc strong {

    color: var(--mc-azul);
}


/* ================= FOOTER ================= */

.footer-mc {

    margin-top: 3rem;

    padding: 2rem 0;

    background: var(--mc-azul);

    color: #b9c9d7;
}


.footer-mc strong {

    color: white;
}


/* ================= ANIMACIONES ================= */

.animar-entrada {

    animation:
        aparecer 0.8s ease both;
}


.animacion-retrasada {

    animation-delay: 0.2s;
}


@keyframes aparecer {

    from {

        opacity: 0;

        transform: translateY(25px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}


/* ================= RESPONSIVE ================= */

@media (max-width: 991.98px) {

    .hero-mc {

        padding: 4rem 0;
    }

    .saldo-principal {

        max-width: 600px;

        margin: 0 auto;
    }

}


@media (max-width: 575.98px) {

    .hero-mc {

        padding: 3.5rem 0;
    }

    .hero-mc h1 {

        font-size: 2.4rem;
    }

    .saldo-principal {

        padding: 1.5rem;
    }

    .acciones-mc {

        padding: 1.5rem;
    }

    .consejo-mc {

        align-items: flex-start;
    }

}


/* ================= ACCESIBILIDAD ================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }

}
/* =====================================================
   MOVIMIENTOS
   ===================================================== */


/* ================= HERO DE PÁGINA ================= */

.pagina-hero {

    padding: 4rem 0;

    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(32, 201, 151, 0.12),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #102a43,
            #173f5f
        );

    color: white;
}


.pagina-hero h1 {

    font-size: clamp(2.2rem, 5vw, 3.5rem);

    font-weight: 800;

    margin: 0.5rem 0;
}


.pagina-hero p {

    color: #c9d9e6;

    font-size: 1.1rem;

    margin: 0;
}


.hero-mini {

    color: #70f0cc;
}


/* ================= MINI TARJETAS ================= */

.mini-card {

    display: flex;

    align-items: center;

    gap: 1rem;

    height: 100%;

    padding: 1.4rem;

    background: white;

    border: 1px solid var(--mc-borde);

    border-radius: 18px;

    box-shadow:
        0 8px 25px rgba(16, 42, 67, 0.05);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.mini-card:hover {

    transform: translateY(-5px);

    box-shadow:
        0 15px 30px rgba(16, 42, 67, 0.09);
}


.mini-card-icon {

    min-width: 55px;

    width: 55px;

    height: 55px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 16px;

    font-size: 1.5rem;
}


.icono-azul {

    background: #eaf2ff;
}


.icono-verde {

    background: #e5f8f2;
}


.icono-rojo {

    background: #fff0f1;
}


.mini-card span {

    display: block;

    color: var(--mc-texto-suave);

    font-size: 0.7rem;

    font-weight: 700;

    letter-spacing: 1px;
}


.mini-card strong {

    display: block;

    color: var(--mc-azul);

    font-size: 1.5rem;

    font-weight: 800;
}


.mini-card small {

    color: var(--mc-texto-suave);
}


.texto-verde {

    color: var(--mc-verde-oscuro) !important;
}


.texto-rojo {

    color: var(--mc-rojo) !important;
}


/* ================= PANELES ================= */

.panel-movimientos {

    padding: 2rem;

    background: white;

    border: 1px solid var(--mc-borde);

    border-radius: 22px;

    box-shadow:
        0 8px 25px rgba(16, 42, 67, 0.04);
}


.panel-header {

    margin-bottom: 1.5rem;
}


.panel-header h2 {

    margin: 0;

    color: var(--mc-azul);

    font-size: 1.5rem;

    font-weight: 800;
}


/* ================= FORMULARIOS ================= */

.panel-movimientos .form-label {

    color: var(--mc-texto);

    font-weight: 600;

    font-size: 0.9rem;
}


.panel-movimientos .form-control,
.panel-movimientos .form-select {

    min-height: 48px;

    border: 1px solid var(--mc-borde);

    border-radius: 12px;

    color: var(--mc-texto);

    background-color: #fbfdff;
}


.panel-movimientos .form-control:focus,
.panel-movimientos .form-select:focus {

    border-color: var(--mc-verde);

    box-shadow:
        0 0 0 0.2rem rgba(32, 201, 151, 0.12);
}


.input-icono {

    position: relative;
}


.input-icono span {

    position: absolute;

    left: 14px;

    top: 50%;

    transform: translateY(-50%);

    z-index: 2;
}


.input-icono input {

    padding-left: 2.8rem;
}


/* ================= TABLA ================= */

.tabla-mc {

    margin-bottom: 0;

    min-width: 850px;
}


.tabla-mc thead th {

    padding: 1rem;

    background: #f4f8fb;

    border: none;

    color: var(--mc-texto-suave);

    font-size: 0.75rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}


.tabla-mc tbody td {

    padding: 1rem;

    border-bottom: 1px solid #edf2f6;

    color: var(--mc-texto);
}


.tabla-mc tbody tr {

    transition:
        background-color 0.25s ease;
}


.tabla-mc tbody tr:hover {

    background-color: #f8fbfd;
}


/* ================= MOVIMIENTO ================= */

.movimiento-nombre {

    display: flex;

    align-items: center;

    gap: 0.8rem;
}


.movimiento-icono {

    min-width: 42px;

    width: 42px;

    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    background: #f2f7fa;

    font-size: 1.2rem;
}


.movimiento-nombre strong {

    display: block;

    font-size: 0.9rem;
}


.movimiento-nombre small {

    color: var(--mc-texto-suave);

    font-size: 0.75rem;
}


.fecha-mc {

    color: var(--mc-texto-suave);

    font-size: 0.85rem;
}


/* ================= CATEGORÍAS ================= */

.categoria,
.tipo-movimiento {

    display: inline-block;

    padding: 0.45rem 0.7rem;

    border-radius: 50px;

    font-size: 0.75rem;

    font-weight: 700;

    white-space: nowrap;
}


.categoria-azul {

    background: #eaf2ff;

    color: #3675d5;
}


.categoria-verde {

    background: #e5f8f2;

    color: #168e70;
}


.categoria-naranja {

    background: #fff3e5;

    color: #d98420;
}


.categoria-morado {

    background: #f1eaff;

    color: #7955c7;
}


/* ================= TIPO ================= */

.tipo-ingreso {

    background: #e5f8f2;

    color: #168e70;
}


.tipo-gasto {

    background: #fff0f1;

    color: #dc4e5d;
}


/* ================= CANTIDADES ================= */

.cantidad-ingreso {

    color: #168e70;
}


.cantidad-gasto {

    color: #dc4e5d;
}


/* ================= BOTÓN ACCIÓN ================= */

.btn-accion {

    width: 40px;

    height: 40px;

    border: none;

    border-radius: 11px;

    background: #f1f6f9;

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}


.btn-accion:hover {

    transform: translateY(-2px);

    background: #e5f8f2;
}


/* ================= CONTADOR ================= */

.contador-movimientos {

    padding: 0.5rem 0.8rem;

    border-radius: 50px;

    background: #f1f6f9;

    color: var(--mc-texto-suave);

    font-size: 0.8rem;
}


/* ================= PIE DE TABLA ================= */

.tabla-footer {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 1rem;

    padding-top: 1.3rem;

    color: var(--mc-texto-suave);

    font-size: 0.85rem;
}


/* ================= PAGINACIÓN ================= */

.paginacion-mc {

    display: flex;

    gap: 0.4rem;
}


.paginacion-mc button {

    width: 38px;

    height: 38px;

    border: 1px solid var(--mc-borde);

    border-radius: 10px;

    background: white;

    color: var(--mc-texto);

    transition:
        background 0.25s ease,
        color 0.25s ease;
}


.paginacion-mc button:hover:not(:disabled) {

    background: #e5f8f2;

    color: var(--mc-verde-oscuro);
}


.paginacion-mc button:disabled {

    opacity: 0.4;

    cursor: not-allowed;
}


.paginacion-mc .pagina-activa {

    background: var(--mc-verde);

    border-color: var(--mc-verde);

    color: #063b2e;

    font-weight: 700;
}


/* ================= RESPONSIVE ================= */

@media (max-width: 767.98px) {

    .pagina-hero {

        padding: 3rem 0;
    }


    .panel-movimientos {

        padding: 1.2rem;
    }


    .tabla-footer {

        flex-direction: column;

        align-items: flex-start;
    }


    .contador-movimientos {

        align-self: flex-start;
    }

}
/* =====================================================
   REGISTRO
   ===================================================== */


/* ================= PANEL PRINCIPAL ================= */

.registro-panel {

    background: white;

    border: 1px solid var(--mc-borde);

    border-radius: 24px;

    padding: 2.2rem;

    box-shadow:
        0 12px 35px rgba(16, 42, 67, 0.06);
}


/* ================= ENCABEZADO ================= */

.registro-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 1rem;

    padding-bottom: 1.5rem;

    margin-bottom: 1.5rem;

    border-bottom: 1px solid var(--mc-borde);
}


.registro-header h2 {

    margin: 0.3rem 0 0.3rem;

    color: var(--mc-azul);

    font-size: 1.7rem;

    font-weight: 800;
}


.registro-header p {

    margin: 0;

    color: var(--mc-texto-suave);
}


.registro-header-icon {

    min-width: 58px;

    width: 58px;

    height: 58px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 17px;

    background: #e5f8f2;

    font-size: 1.6rem;
}


/* ================= SECCIONES ================= */

.form-section {

    margin-bottom: 1.5rem;
}


.form-label {

    color: var(--mc-azul);

    font-weight: 700;

    margin-bottom: 0.6rem;
}


.texto-opcional {

    color: var(--mc-texto-suave);

    font-size: 0.8rem;

    font-weight: 400;
}


/* ================= INPUTS ================= */

.form-control-mc {

    min-height: 50px;

    border: 1px solid var(--mc-borde);

    border-radius: 12px;

    background: #fbfdff;

    color: var(--mc-texto);

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}


.form-control-mc:focus {

    border-color: var(--mc-verde);

    background: white;

    box-shadow:
        0 0 0 0.2rem rgba(32, 201, 151, 0.12);

    transform: translateY(-1px);
}


textarea.form-control-mc {

    min-height: 120px;

    resize: vertical;
}


/* ================= TIPO DE MOVIMIENTO ================= */

.tipo-card {

    display: flex;

    align-items: center;

    gap: 1rem;

    width: 100%;

    padding: 1.1rem;

    border: 2px solid var(--mc-borde);

    border-radius: 16px;

    background: #fbfdff;

    cursor: pointer;

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.tipo-card:hover {

    transform: translateY(-3px);

    box-shadow:
        0 8px 20px rgba(16, 42, 67, 0.06);
}


.tipo-card-icon {

    min-width: 50px;

    width: 50px;

    height: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 14px;

    font-size: 1.4rem;
}


.tipo-card-ingreso .tipo-card-icon {

    background: #e5f8f2;
}


.tipo-card-gasto .tipo-card-icon {

    background: #fff0f1;
}


.tipo-card strong {

    display: block;

    color: var(--mc-azul);

    font-size: 1rem;
}


.tipo-card small {

    display: block;

    margin-top: 3px;

    color: var(--mc-texto-suave);
}


/* Estado seleccionado */

.btn-check:checked + .tipo-card-ingreso {

    border-color: var(--mc-verde);

    background: #f0fcf8;

    box-shadow:
        0 0 0 3px rgba(32, 201, 151, 0.08);
}


.btn-check:checked + .tipo-card-gasto {

    border-color: var(--mc-rojo);

    background: #fff7f7;

    box-shadow:
        0 0 0 3px rgba(239, 91, 104, 0.08);
}


/* ================= CANTIDAD ================= */

.cantidad-input {

    position: relative;
}


.cantidad-input > span {

    position: absolute;

    left: 16px;

    top: 50%;

    transform: translateY(-50%);

    color: var(--mc-verde-oscuro);

    font-size: 1.1rem;

    font-weight: 800;

    z-index: 2;
}


.cantidad-input input {

    padding-left: 2.5rem;

    font-size: 1.1rem;

    font-weight: 600;
}


/* ================= BOTONES ================= */

.registro-acciones {

    display: flex;

    justify-content: flex-end;

    gap: 0.8rem;

    padding-top: 1.5rem;

    border-top: 1px solid var(--mc-borde);
}


.registro-acciones .btn-light {

    border: 1px solid var(--mc-borde);

    border-radius: 12px;

    color: var(--mc-texto);

    padding-left: 1.3rem;

    padding-right: 1.3rem;
}


.registro-acciones .btn-light:hover {

    background: #f3f7fa;
}


/* ================= RESUMEN LATERAL ================= */

.registro-resumen {

    position: sticky;

    top: 25px;

    padding: 2rem;

    border-radius: 24px;

    color: white;

    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(32, 201, 151, 0.18),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            var(--mc-azul),
            var(--mc-azul-2)
        );

    box-shadow:
        0 15px 35px rgba(16, 42, 67, 0.16);
}


.resumen-icono {

    width: 58px;

    height: 58px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 1.2rem;

    border-radius: 17px;

    background: rgba(32, 201, 151, 0.15);

    font-size: 1.5rem;
}


.registro-resumen .section-mini-title {

    color: #70f0cc;
}


.registro-resumen h3 {

    margin: 0.5rem 0 1rem;

    font-size: 1.7rem;

    font-weight: 800;
}


.registro-resumen > p {

    color: #c6d7e4;

    line-height: 1.7;
}


.resumen-linea {

    height: 1px;

    margin: 1.5rem 0;

    background: rgba(255,255,255,0.15);
}


.resumen-dato {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 1rem;

    padding: 0.7rem 0;

    color: #cbd9e5;

    font-size: 0.9rem;
}


.resumen-dato strong {

    color: white;

    font-size: 1rem;
}


.resumen-dato .texto-verde {

    color: #70f0cc !important;
}


.resumen-dato .texto-rojo {

    color: #ff9da6 !important;
}


/* ================= RESPONSIVE ================= */

@media (max-width: 991.98px) {

    .registro-resumen {

        position: static;

    }

}


@media (max-width: 575.98px) {

    .registro-panel {

        padding: 1.3rem;

        border-radius: 18px;
    }


    .registro-header {

        align-items: center;
    }


    .registro-header-icon {

        min-width: 48px;

        width: 48px;

        height: 48px;
    }


    .registro-acciones {

        flex-direction: column-reverse;
    }


    .registro-acciones .btn {

        width: 100%;
    }


    .registro-resumen {

        padding: 1.5rem;

        border-radius: 18px;
    }

}

/* ================= VALIDACIÓN DEL FORMULARIO ================= */

#formRegistro.was-validated .form-control:invalid,
#formRegistro.was-validated .form-select:invalid {
    border-color: #dc3545;
}

#formRegistro.was-validated .form-control:valid,
#formRegistro.was-validated .form-select:valid {
    border-color: #198754;
}

/* Mostrar los mensajes de los campos inválidos */
#formRegistro.was-validated .invalid-feedback {
    display: block;
}

/* Mantener el borde del campo de cantidad */
#formRegistro.was-validated .cantidad-input .form-control:invalid {
    border-color: #dc3545;
}

#formRegistro.was-validated .cantidad-input .form-control:valid {
    border-color: #198754;
}


/* ================= SEMANA 6 ================= */

/* Modal personalizado de MiControl */
.modal-mc {
    border: 1px solid var(--mc-borde);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(16, 42, 67, 0.18);
}

.modal-mc .modal-header {
    background: #f4fbf8;
    border-bottom: 1px solid var(--mc-borde);
}

.modal-mc .modal-title {
    color: var(--mc-azul);
    font-weight: 800;
}

.modal-mc .modal-body {
    padding: 1.5rem;
    color: var(--mc-texto);
}

.modal-mc .modal-footer {
    border-top: 1px solid var(--mc-borde);
    gap: 0.5rem;
}

/* Enfocar los campos con claridad */
.form-control-mc:focus,
.panel-movimientos .form-control:focus,
.panel-movimientos .form-select:focus {
    outline: none;
}

/* Mejoras para pantallas medianas y pequeñas */
@media (max-width: 767.98px) {
    .pagina-hero {
        padding: 2.5rem 0;
    }

    .pagina-hero h1 {
        font-size: clamp(2rem, 8vw, 2.7rem);
        overflow-wrap: anywhere;
    }

    .panel-movimientos {
        padding: 1rem;
        border-radius: 17px;
    }

    .mini-card {
        padding: 1.1rem;
    }

    .registro-panel {
        padding: 1.2rem;
    }

    .registro-header h2 {
        font-size: 1.4rem;
    }

    .registro-acciones .btn {
        min-height: 48px;
    }

    .table-responsive {
        border-radius: 10px;
    }

    .modal-mc .modal-footer {
        flex-wrap: wrap;
    }
}

/* Mejoras para celulares pequeños */
@media (max-width: 480px) {
    .logo-mc {
        font-size: 1.35rem;
    }

    .pagina-hero p {
        font-size: 1rem;
    }

    .mini-card strong {
        font-size: 1.3rem;
        overflow-wrap: anywhere;
    }

    .registro-header {
        gap: 0.6rem;
    }

    .registro-header-icon {
        flex-shrink: 0;
    }

    .resumen-dato {
        flex-wrap: wrap;
    }

    .modal-dialog {
        margin: 0.75rem;
    }

    .modal-mc .modal-footer .btn {
        flex: 1 1 auto;
    }
}
