
        body {
            margin: 0;
            padding: 0;
            font-family: system-ui, -apple-system, sans-serif;
            background-color: #f1f5f9;
            color: #1e293b;
        }

        /* ESTILOS DE LA PANTALLA DE LOGIN */
        .login-wrapper {
            min-height: 80vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .login-card {
            background: #ffffff;
            border-radius: 24px;
            padding: 40px;
            max-width: 400px;
            width: 100%;
            box-shadow: 0 15px 35px rgba(37, 8, 77, 0.12);
            border: 1px solid #e2e8f0;
            text-align: center;
        }

        .login-icon {
            width: 60px;
            height: 60px;
            background: rgba(37, 8, 77, 0.08);
            color: #25084D;
            border-radius: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            margin: 0 auto 20px auto;
        }

        .login-card h2 {
            color: #25084D;
            font-size: 1.6rem;
            font-weight: 800;
            margin: 0 0 8px 0;
        }

        .login-card p {
            color: #64748b;
            font-size: 0.9rem;
            margin: 0 0 25px 0;
            line-height: 1.5;
        }

        .input-group {
            margin-bottom: 20px;
            text-align: left;
        }

        .input-group label {
            display: block;
            font-size: 0.8rem;
            font-weight: 700;
            color: #1A365D;
            margin-bottom: 6px;
            text-transform: uppercase;
        }

        .input-password {
            width: 100%;
            padding: 12px 15px;
            border-radius: 12px;
            border: 1px solid #cbd5e1;
            font-size: 1rem;
            outline: none;
            box-sizing: border-box;
            transition: all 0.2s ease;
        }

        .input-password:focus {
            border-color: #82C91E;
            box-shadow: 0 0 0 3px rgba(130, 201, 30, 0.2);
        }

        .btn-acceder {
            width: 100%;
            background: #25084D;
            color: #ffffff;
            border: none;
            padding: 14px;
            border-radius: 12px;
            font-size: 0.95rem;
            font-weight: 800;
            cursor: pointer;
            transition: background 0.3s ease;
        }

        .btn-acceder:hover {
            background: #36106e;
        }

        .error-msg {
            background: rgba(239, 68, 68, 0.1);
            color: #dc2626;
            padding: 10px;
            border-radius: 10px;
            font-size: 0.85rem;
            font-weight: 600;
            margin-bottom: 20px;
            border: 1px solid rgba(239, 68, 68, 0.2);
        }

        /* ESTILOS DEL PORTAL DE RECURSOS */
        .personal-portal-section {
            padding: 60px 0 90px 0;
        }

        .portal-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .portal-hero-banner {
            background: linear-gradient(135deg, #25084D 0%, #1A365D 100%);
            border-radius: 24px;
            padding: 40px 50px;
            color: #ffffff;
            margin-bottom: 40px;
            box-shadow: 0 15px 35px rgba(37, 8, 77, 0.12);
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
            overflow: hidden;
        }

        .portal-hero-text h2 {
            font-size: 2.2rem;
            font-weight: 900;
            margin: 0 0 10px 0;
        }

        .portal-hero-text p {
            font-size: 1rem;
            color: #cbd5e1;
            line-height: 1.6;
            margin: 0;
            max-width: 700px;
        }

        .portal-badge-area {
            background: rgba(130, 201, 30, 0.15);
            border: 1px solid #82C91E;
            color: #82C91E;
            padding: 8px 16px;
            border-radius: 30px;
            font-size: 0.75rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            display: inline-block;
            margin-bottom: 15px;
        }

        .btn-salir-sesion {
            background: rgba(255, 255, 255, 0.15);
            color: #ffffff;
            border: 1px solid rgba(255, 255, 255, 0.3);
            padding: 10px 18px;
            border-radius: 12px;
            text-decoration: none;
            font-weight: 800;
            font-size: 0.85rem;
            transition: all 0.3s ease;
        }

        .btn-salir-sesion:hover {
            background: #dc2626;
            border-color: #dc2626;
        }

        .portal-search-bar {
            background: #ffffff;
            border-radius: 16px;
            padding: 15px 25px;
            display: flex;
            align-items: center;
            gap: 15px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.03);
            border: 1px solid #e2e8f0;
            margin-bottom: 40px;
        }

        .portal-search-input {
            flex: 1;
            border: none;
            outline: none;
            font-size: 0.95rem;
            color: #1e293b;
        }

        .portal-section-title {
            font-size: 1.4rem;
            font-weight: 800;
            color: #25084D;
            margin: 0 0 20px 0;
        }

        .grid-recursos-empleados {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 25px;
            margin-bottom: 50px;
        }

        .card-recurso {
            background: #ffffff;
            border-radius: 20px;
            padding: 30px;
            border: 1px solid #e2e8f0;
            box-shadow: 0 4px 15px rgba(0,0,0,0.02);
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .card-recurso:hover {
            transform: translateY(-4px);
            border-color: #82C91E;
            box-shadow: 0 12px 30px rgba(37, 8, 77, 0.08);
        }

        .recurso-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            margin-bottom: 15px;
        }

        .recurso-icon {
            width: 48px;
            height: 48px;
            border-radius: 12px;
            background: rgba(37, 8, 77, 0.08);
            color: #25084D;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.3rem;
        }

        .recurso-tipo-tag {
            font-size: 0.68rem;
            font-weight: 800;
            text-transform: uppercase;
            padding: 4px 10px;
            border-radius: 6px;
        }

        .tag-pdf { background: rgba(239, 68, 68, 0.1); color: #dc2626; }
        .tag-doc { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
        .tag-img { background: rgba(130, 201, 30, 0.15); color: #3f6212; }

        .card-recurso h4 {
            color: #1A365D;
            font-size: 1.15rem;
            font-weight: 800;
            margin: 0 0 8px 0;
        }

        .card-recurso p {
            color: #64748b;
            font-size: 0.88rem;
            line-height: 1.5;
            margin: 0 0 20px 0;
        }

        .btn-descargar-archivo {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            background: #f8fafc;
            color: #25084D;
            border: 1px solid #cbd5e1;
            font-weight: 800;
            font-size: 0.82rem;
            padding: 10px;
            border-radius: 10px;
            text-decoration: none;
            transition: all 0.2s ease;
        }

        .btn-descargar-archivo:hover {
            background: #25084D;
            color: #ffffff;
            border-color: #25084D;
        }

        @media (max-width: 1024px) {
            .grid-recursos-empleados { grid-template-columns: repeat(2, 1fr); }
        }
        @media (max-width: 768px) {
            .grid-recursos-empleados { grid-template-columns: 1fr; }
            .portal-hero-banner { flex-direction: column; align-items: flex-start; gap: 20px; }
        }


    .hoja-ventas-section {
        padding: 40px 0;
        background-color: #f8fafc;
        font-family: system-ui, -apple-system, sans-serif;
    }

    .hoja-ventas-container {
        max-width: 1250px;
        margin: 0 auto;
        padding: 0 15px;
    }

    .doc-impresion-card {
        background: #ffffff;
        border-radius: 20px;
        padding: 25px;
        box-shadow: 0 10px 30px rgba(26, 54, 93, 0.08);
        border: 1px solid rgba(26, 54, 93, 0.1);
    }

    .doc-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 3px solid #25084D;
        padding-bottom: 12px;
        margin-bottom: 20px;
    }

    .doc-brand h2 {
        color: #1A365D;
        font-size: 1.3rem;
        font-weight: 800;
        margin: 0 0 3px 0;
    }

    .doc-brand p {
        color: #64748b;
        font-size: 0.72rem;
        margin: 0;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .acciones-grupo {
        display: flex;
        gap: 10px;
    }

    .btn-accion-doc {
        font-weight: 800;
        font-size: 0.8rem;
        padding: 8px 16px;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .btn-descargar-img {
        background: #25084D;
        color: #ffffff;
    }

    .btn-descargar-img:hover {
        background: #36106e;
        transform: translateY(-2px);
    }

    .btn-imprimir-todo {
        background: #82C91E;
        color: #1A365D;
    }

    .btn-imprimir-todo:hover {
        background: #74b31a;
        transform: translateY(-2px);
    }

    /* REJILLA DE 4 COLUMNAS (Mantiene tu distribución exacta) */
    .grid-uniforme-estados {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        align-items: start;
        margin-bottom: 20px;
    }

    .columna-agrupada {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .bloque-estado-card {
        background: #f8fafc;
        border-radius: 10px;
        padding: 10px;
        border: 1px solid #e2e8f0;
        break-inside: avoid;
    }

    .bloque-estado-card h4 {
        font-size: 0.78rem;
        font-weight: 800;
        color: #25084D;
        margin: 0 0 6px 0;
        text-transform: uppercase;
        border-bottom: 2px solid #82C91E;
        padding-bottom: 3px;
        letter-spacing: 0.5px;
        text-align: center;
    }

    .tabla-cabecera {
        display: flex;
        justify-content: space-between;
        font-size: 0.6rem;
        font-weight: 800;
        color: #1A365D;
        background: #e2e8f0;
        padding: 3px 5px;
        border-radius: 4px;
        margin-bottom: 5px;
        text-transform: uppercase;
    }

    .tabla-cabecera span:nth-child(2) {
        text-align: center;
        width: 25px;
    }

    .lista-destinos-mini {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .lista-destinos-mini li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.65rem;
        color: #334155;
        border-bottom: 1px dashed #cbd5e1;
        padding-bottom: 2px;
    }

    .lista-destinos-mini li span:nth-child(1) {
        flex: 1;
        text-align: left;
        font-weight: 700; /* Cambia a 700 para ponerlo en negrita */
        color: #1A365D;    /* Color principal de texto */
    }

    .lista-destinos-mini li span:nth-child(2) {
        width: 25px;
        text-align: center;
        font-weight: 700;
        color: #25084D;
        background: rgba(37, 8, 77, 0.05);
        border-radius: 3px;
    }

    .lista-destinos-mini li span:nth-child(3) {
        flex: 1.1;
        text-align: right;
       font-weight: 600;  /* Ligeramente marcado para que no se pierda al imprimir */
        color: #334155;    /* Gris oscuro corporativo, legible tanto en pantalla como en papel */
    }

    /* TARJETA ESPECIAL PARA LLENAR EL ESPACIO CON EL LOGO */
    .bloque-logo-card {
        background: linear-gradient(135deg, rgba(37, 8, 77, 0.02) 0%, rgba(130, 201, 30, 0.06) 100%);
        border-radius: 10px;
        padding: 15px;
        border: 2px dashed rgba(37, 8, 77, 0.2);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        height: 100%;
        box-sizing: border-box;
    }

    .bloque-logo-card img {
        max-width: 250px;
        height: auto;
        margin-bottom: 8px;
    }

    .bloque-logo-card p {
        font-size: 0.65rem;
        color: #64748b;
        font-weight: 700;
        margin: 0;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* FRANJA INFORMATIVA FIJA DE VENTAS */
    .franja-ventas-footer {
        background: linear-gradient(135deg, rgba(37, 8, 77, 0.04) 0%, rgba(130, 201, 30, 0.08) 100%);
        border: 1px solid rgba(130, 201, 30, 0.4);
        border-radius: 12px;
        padding: 12px 18px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
    }

    .franja-ventas-info h4 {
        color: #25084D;
        font-size: 0.8rem;
        font-weight: 800;
        margin: 0 0 2px 0;
        text-transform: uppercase;
    }

    .franja-ventas-info p {
        color: #334155;
        font-size: 0.7rem;
        margin: 0;
    }

    .franja-ventas-contactos {
        display: flex;
        gap: 15px;
        font-size: 0.7rem;
        font-weight: 700;
        color: #1A365D;
    }

    .franja-ventas-contactos span {
        background: #ffffff;
        padding: 6px 10px;
        border-radius: 8px;
        border: 1px solid #cbd5e1;
        box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    }

    .doc-footer-info {
        margin-top: 15px;
        padding-top: 8px;
        border-top: 1px solid #e2e8f0;
        display: flex;
        justify-content: space-between;
        font-size: 0.65rem;
        color: #64748b;
        font-weight: 600;
    }

    @media print {
        @page {
            size: letter portrait;
            margin: 8mm;
        }
        body * {
            visibility: hidden;
        }
        #hoja-unica-impresion, #hoja-unica-impresion * {
            visibility: visible;
        }
        #hoja-unica-impresion {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            padding: 0;
            margin: 0;
        }
        .acciones-grupo {
            display: none !important;
        }
        .doc-impresion-card {
            box-shadow: none !important;
            border: none !important;
            padding: 0 !important;
        }
        .bloque-estado-card, .bloque-logo-card, .franja-ventas-footer {
            background: #ffffff !important;
            border: 1px solid #94a3b8 !important;
        }
    }

    @media (max-width: 900px) {
        .grid-uniforme-estados {
            grid-template-columns: repeat(2, 1fr);
        }
        .franja-ventas-footer {
            flex-direction: column;
            align-items: flex-start;
        }
    }

