        /* --- RESET + BASE --- */
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        
        :root {
            --primary-blue: #4361ee;
            --primary-dark: #1e3a8a;
            --soft-bg: #f8fafc;
            --text-main: #1e293b;
            --text-secondary: #64748b;
            --border-light: #e2e8f0;
            --success: #22c55e;
            --danger: #ef4444;
            --warning: #f59e0b;
        }

        body {
            font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background: #f8fafc;
            color: var(--text-main);
            line-height: 1.5;
        }

        /* --- GRID SYSTEM --- */
   .container,
.container-fluid,
.container-xxl,
.container-xl,
.container-lg,
.container-md,
.container-sm {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  width: 100%;
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container-sm, .container {
    max-width: 540px;
  }
}
@media (min-width: 768px) {
  .container-md, .container-sm, .container {
    max-width: 720px;
  }
}
@media (min-width: 992px) {
  .container-lg, .container-md, .container-sm, .container {
    max-width: 960px;
  }
}
@media (min-width: 1200px) {
  .container-xl, .container-lg, .container-md, .container-sm, .container {
    max-width: 1140px;
  }
}
@media (min-width: 1400px) {
  .container-xxl, .container-xl, .container-lg, .container-md, .container-sm, .container {
    max-width: 1320px;
  }
}
        .row {
            display: flex;
            flex-wrap: wrap;
            margin: 0 -12px;
        }
        .row > * {
            padding: 0 12px;
            width: 100%;
            margin-bottom: 1.5rem;
        }
        
        /* Columnas responsive */
        .col { flex: 1 0 0%; }
        .row-cols-1 > * { flex: 0 0 100%; max-width: 100%; }
        @media (min-width: 576px) {
            .row-cols-sm-2 > * { flex: 0 0 50%; max-width: 50%; }
        }
        @media (min-width: 768px) {
            .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
            .col-md-6 {    flex: 0 0 auto;
    width: 50% }
            .row-cols-md-3 > * { flex: 0 0 33.333%; max-width: 33.333%; }
        }
        @media (min-width: 992px) {
            .col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }
            .col-lg-8 { flex: 0 0 66.666%; max-width: 66.666%; }
            .row-cols-lg-4 > * { flex: 0 0 25%; max-width: 25%; }
        }

        /* --- UTILITIES --- */
        .g-4 > * { margin-bottom: 1.5rem; }
        .g-5 > * { margin-bottom: 3rem; }
        .gap-1 { gap: 0.25rem; }
        .gap-2 { gap: 0.5rem; }
        .gap-3 { gap: 1rem; }
        .mb-0 { margin-bottom: 0 !important; }
        .mb-1 { margin-bottom: 0.25rem; }
        .mb-2 { margin-bottom: 0.5rem; }
        .mb-3 { margin-bottom: 1rem; }
        .mb-4 { margin-bottom: 1.5rem; }
        .mb-5 { margin-bottom: 3rem; }
        .mt-1 { margin-top: 0.25rem; }
        .mt-2 { margin-top: 0.5rem; }
        .mt-3 { margin-top: 1rem; }
        .mt-4 { margin-top: 1.5rem; }
        .mt-5 { margin-top: 3rem; }
        .mt-auto { margin-top: auto; }
        .my-5 { margin-top: 3rem; margin-bottom: 3rem; }
        .me-1 { margin-right: 0.25rem; }
        .me-2 { margin-right: 0.5rem; }
        .ms-auto { margin-left: auto; }
        .ms-lg-3 { margin-left: 1rem; }
        .p-4 { padding: 1.5rem; }
        .p-5 { padding: 3rem; }
        .px-3 { padding-left: 1rem; padding-right: 1rem; }
        .px-5 { padding-left: 3rem; padding-right: 3rem; }
        .py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
        .py-3 { padding-top: 1rem; padding-bottom: 1rem; }
        .py-5 { padding-top: 3rem; padding-bottom: 3rem; }
        .pt-3 { padding-top: 1rem; }
        .pt-2 { padding-top: 0.5rem; }
        .pb-0 { padding-bottom: 0; }
        .pt-0 { padding-top: 0; }

        .d-flex { display: flex; }
        .d-inline-block { display: inline-block; }
        .d-inline-flex { display: inline-flex; }
        .d-none { display: none; }
        .d-block { display: block; }
        @media (min-width: 992px) { .d-lg-flex { display: flex; } }
        @media (min-width: 1200px) { .d-xl-flex { display: flex; } }

        .align-items-center { align-items: center; }
        .align-items-start { align-items: flex-start; }
        .justify-content-center { justify-content: center; }
        .justify-content-between { justify-content: space-between; }
        .justify-content-end { justify-content: flex-end; }
        .flex-grow-1 { flex-grow: 1; }
        .flex-wrap { flex-wrap: wrap; }

        .text-center { text-align: center; }
        .text-start { text-align: left; }
        .text-end { text-align: right; }
        @media (min-width: 768px) {
            .text-md-start { text-align: left; }
            .text-md-end { text-align: right; }
            .justify-content-md-end { justify-content: flex-end; }
        }

        .w-100 { width: 100%; }
        .h-100 { height: 100%; }
        .fw-bold { font-weight: 700; }
        .fw-black { font-weight: 900; }
        .fs-4 { font-size: 1.5rem; }
        .fs-5 { font-size: 1.25rem; }
        .fs-9 { font-size: 0.9rem; }
        .small { font-size: 0.875rem; }

        .text-white { color: #fff; }
        .text-dark { color: var(--text-main); }
        .text-primary { color: var(--primary-blue); }
        .text-secondary { color: var(--text-secondary); }
        .text-success { color: #166534; }
        .text-danger { color: #991b1b; }
        .text-muted { color: var(--text-secondary); }

        .bg-white { background-color: #fff; }
        .bg-light { background-color: #f8fafc; }

        .border-0 { border: 0; }
        .border-top { border-top: 1px solid var(--border-light); }
        .rounded-circle { border-radius: 50%; }

        .shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
        .shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
        .shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

        .sticky-top { position: sticky; top: 0; z-index: 1020; }
        .position-relative { position: relative; }
        .overflow-hidden { overflow: hidden; }

        .opacity-75 { opacity: 0.75; }
        .italic { font-style: italic; }
        a { text-decoration: none; color: inherit; }
        button { cursor: pointer; border: none; background: none; font-family: inherit; }

        /* --- ICONS SVG --- */
        .icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; fill: currentColor; }

        /* --- NAVBAR --- */
        .navbar {
            background: linear-gradient(90deg, #1e3a8a 0%, #4361ee 100%);
            border-radius: 20px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255,255,255,0.1);
            padding: 0.8rem 1rem;
        }
        .navbar-nav {
            display: flex;
            list-style: none;
            align-items: center;
            gap: 1rem;
            flex-direction: column;
            width: 100%;
        }
        @media (min-width: 992px) {
            .navbar-nav { flex-direction: row; width: auto; }
            .py-lg-0 { padding-top: 0; padding-bottom: 0; }

        }
        

        .navbar-brand {
            font-weight: 900;
            font-size: 1.5rem;
            color: white;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .navbar-toggler {
            padding: 0.25rem 0.75rem;
            color: white;
            font-size: 1.5rem;
            display: block;
        }
        @media (min-width: 992px) { .navbar-toggler { display: none; } }
        .navbar-collapse {
            display: none;
            flex-basis: 100%;
            flex-grow: 1;
        }
        .navbar-collapse.show { display: block; }
        @media (min-width: 992px) { .navbar-collapse { display: flex !important; flex-basis: auto; } }
        .navbar-toggler-icon {
            display: inline-block;
            width: 1.5em;
            height: 1.5em;
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        }

        .nav-link-cinta {
            color: rgba(255, 255, 255, 0.8);
            font-weight: 600;
            font-size: 0.9rem;
            transition: 0.3s;
            display: flex;
            align-items: center;
        }
        .nav-link-cinta:hover { color: white; }

        .user-pill-cinta {
            background: rgba(255, 255, 255, 0.1);
            color: white;
            padding: 6px 15px;
            border-radius: 50px;
            font-size: 0.85rem;
            font-weight: 600;
            border: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
        }

        .balance-pill-cinta {
            padding: 6px 15px;
            border-radius: 50px;
            font-size: 0.85rem;
            font-weight: 800;
            display: flex;
            align-items: center;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }
        .bal-cinta-success { background: #22c55e; color: white; border: 1px solid rgba(255,255,255,0.2); }
        .bal-cinta-warning { background: #f59e0b; color: white; }
        .bal-cinta-danger { 
            background: #ef4444; 
            color: white; 
            animation: pulse-red 2s infinite;
        }
        @keyframes pulse-red {
            0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
            70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
            100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
        }

        .btn-logout-cinta {
            width: 35px;
            height: 35px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.2);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            transition: 0.3s;
        }
        .btn-logout-cinta:hover {
            background: #ffffff;
            color: #ef4444;
            transform: scale(1.1) rotate(90deg);
        }

        /* --- SEARCH --- */
        .search-container { position: relative; margin-bottom: 30px; }
        .search-input {
            background: #ffffff;
            border: 1px solid #e2e8f0;
            padding: 12px 20px 12px 45px;
            border-radius: 15px;
            width: 100%;
            font-size: 0.95rem;
            transition: 0.3s;
        }
        .search-input:focus {
            outline: none;
            border-color: var(--primary-blue);
            box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
        }
        .search-icon {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-secondary);
        }

        /* --- SERVICE CARDS --- */
        .service-item-wrapper { display: block; }
        .service-card-pastel {
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 20px;
            padding: 24px;
            transition: all 0.3s ease;
            cursor: pointer;
            height: 100%;
            display: flex;
            flex-direction: column;
        }
        .service-card-pastel:hover {
            transform: translateY(-5px);
            border-color: #cbd5e1;
            box-shadow: 0 10px 20px rgba(0,0,0,0.03);
        }
        .icon-shape-pastel {
            width: 55px;
            height: 55px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
            font-size: 1.8rem;
        }
        .service-card-pastel h6 {
            font-weight: 700;
            font-size: 1.05rem;
            color: #1a202c;
            margin-bottom: 5px;
        }
        .service-card-pastel .card-desc {
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin-bottom: 20px;
        }
        .pastel-badge {
            background: #f8fafc;
            color: #4361ee;
            padding: 6px 14px;
            border-radius: 50px;
            border: 1px solid #e2e8f0;
        }

        .item-pastel-blue .icon-shape-pastel { background-color: #eff6ff; color: #4361ee; }
        .item-pastel-blue .pastel-badge { border-color: #bfdbfe; background-color: #eff6ff; }
        .item-pastel-blue:hover { border-color: #bfdbfe; }
        .item-pastel-green .icon-shape-pastel { background-color: #ecfdf5; color: #166534; }
        .item-pastel-green .pastel-badge { border-color: #a7f3d0; background-color: #ecfdf5; }
        .item-pastel-green:hover { border-color: #a7f3d0; }
        .item-pastel-purple .icon-shape-pastel { background-color: #f3e8ff; color: #6b21a8; }
        .item-pastel-purple .pastel-badge { border-color: #e9d5ff; background-color: #f3e8ff; }
        .item-pastel-purple:hover { border-color: #e9d5ff; }
        .item-pastel-orange .icon-shape-pastel { background-color: #fffbeb; color: #9a3412; }
        .item-pastel-orange .pastel-badge { border-color: #fde68a; background-color: #fffbeb; }
        .item-pastel-orange:hover { border-color: #fde68a; }

        /* --- MODAL --- */
       /* --- MODAL OPTIMIZADO PARA 2 COLUMNAS --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2055;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: none; /* Bootstrap lo cambiará a block */
}

/* Permitir que el modal se expanda en pantallas grandes */
@media (min-width: 1200px) {
    .modal-xl {
        max-width: 1140px; /* Ancho para las 2 columnas */
    }
}

.modal-dialog {
    margin: 1.75rem auto;
    transition: transform 0.3s ease-out;
}

/* Importante: Quitar el ancho fijo de 500px que tenías */
.modal-content {
    background-color: #fff;
    border: 0;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%; /* Que use el ancho del dialog */
}

/* Ajuste para que las columnas se vean bien */
.row.g-0 {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

/* Columna de información (Derecha) */
.info-sidebar {
    background: #f8fafc;
    border-left: 1px solid #f1f5f9;
}

/* Estilos de etiquetas tipo imagen */
.badge-info-spasel {
    display: inline-block;
    padding: 6px 12px;
    font-weight: 900;
    font-size: 10px;
    color: white;
    text-transform: uppercase;
    margin-bottom: 6px;
    border-radius: 4px;
}

/* --- BOTÓN DE CIERRE --- */
.btn-close-custom {
    background: #f1f5f9;
    width: 35px; height: 35px;
    border-radius: 50%;
    border: none;
    color: #64748b;
    cursor: pointer;
    transition: 0.3s;
}
.btn-close-custom:hover { 
    background: #ef4444; 
    color: white; 
    transform: rotate(90deg); 
}
        .modal.show { display: block; }
   
        .modal-dialog-centered {
            display: flex;
            align-items: center;
            min-height: calc(100% - 3.5rem);
        }
      
        
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            padding: 1.5rem 1.5rem 0;
        }
        .modal-body { padding: 1rem 1.5rem 1.5rem; }
        .btn-close-custom {
            background: #f1f5f9;
            width: 32px; height: 32px;
            border-radius: 50%;
            color: #64748b;
            display: flex; align-items: center; justify-content: center;
            transition: 0.3s;
            font-size: 1.2rem;
            
        }
        .btn-close-custom:hover { background: #ef4444; color: white; transform: rotate(90deg); }

        .icon-box-modal {
            width: 52px; height: 52px;
            background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
            color: #4361ee;
            border-radius: 16px;
            display: flex; align-items: center; justify-content: center;
            font-size: 1.6rem;
        }
        .badge-precio-modal {
            background: #4361ee;
            color: white;
            padding: 4px 14px;
            border-radius: 50px;
            font-size: 0.85rem;
            font-weight: 800;
            display: inline-flex;
            align-items: center;
            width: fit-content;
            box-shadow: 0 4px 10px rgba(67, 97, 238, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .label-custom {
            display: block;
            font-size: 0.75rem;
            font-weight: 800;
            color: #64748b;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 8px;
        }
        .input-group-custom { position: relative; display: flex; align-items: center; }
        .input-icon { position: absolute; left: 15px; color: #94a3b8; }
        .form-control-modal {
            width: 100%;
            padding: 12px 15px 12px 42px;
            background: #f8fafc;
            border: 2px solid #f1f5f9;
            border-radius: 15px;
            font-size: 0.95rem;
            font-weight: 600;
            transition: 0.3s;
        }
        .form-control-modal:focus {
            outline: none;
            background: #fff;
            border-color: #4361ee;
            box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
        }

        .upload-container {
            background: #ffffff;
            border: 2px dashed #cbd5e1;
            border-radius: 20px;
            padding: 25px;
            cursor: pointer;
            transition: 0.3s;
        }
        .upload-container:hover {
            border-color: #4361ee;
            background: #eff6ff;
        }
        .upload-icon-circle {
            width: 45px; height: 45px;
            background: #f1f5f9;
            color: #4361ee;
            border-radius: 50%;
            display: inline-flex;
            align-items: center; justify-content: center;
            font-size: 1.4rem;
            transition: 0.3s;
        }
        .upload-container:hover .upload-icon-circle { transform: scale(1.1); background: #4361ee; color: white; }

           .info-card-modal p, 
.info-card-modal h3, 
.info-card-modal span {
    margin-top: 0;
    margin-bottom: 0;
}

     .info-card-modal {
    background: #fff9f0;
    border: 1px solid #ffedd5;
    padding: 10px 15px; /* Padding reducido */
    border-radius: 5px;
    
    /* Configuración Flex */
    display: flex;
    flex-direction: column; /* Apila los elementos uno bajo otro */
    justify-content: center; /* Centra el contenido */
    gap: 5px; /* Controla el espacio exacto ENTRE los elementos internos */
}

        .btn-submit-premium:hover {
            background-color: #1e3a8a !important;
            transform: translateY(-2px);
        }

        /* --- HOW IT WORKS --- */
        .step-num {
            font-size: 2.5rem;
            font-weight: 900;
            line-height: 1;
            background: linear-gradient(135deg, #4361ee 0%, #7209b7 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            opacity: 0.3;
        }
        .card-step {
            background: white;
            border-radius: 25px;
            transition: 0.3s;
        }
        .card-step:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(67, 97, 238, 0.1) !important;
        }
        .card-step:hover .step-num {
            opacity: 1;
            transform: scale(1.1);
            transition: 0.3s;
        }

        /* --- FOOTER --- */
        footer {
            background: #ffffff;
            border-top: 1px solid #e2e8f0;
            border-radius: 40px 40px 0 0;
        }
        .brand-logo {
            font-weight: 800;
            font-size: 1.4rem;
            color: var(--primary-blue);
            display: flex;
            align-items: center;
            gap: 10px;
        }
   
/* Estado inicial: oculto y transparente */
#modalAction {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fondo oscuro (backdrop) */
    z-index: 2000;
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Opcional: Para que el texto de descripción no se vea vacío en recibo de luz */
#panelDesc {
    display: block;
    width: 100%;
    min-height: 40px; /* Le da un espacio base siempre */
}
/* Cuando se añade esta clase vía JS, se muestra */
#modalAction.is-visible {
    display: flex;
    opacity: 1;
}

/* Animación de entrada para el contenido del modal */
#modalAction.is-visible .modal-content {
    transform: translateY(0);
    opacity: 1;
}

#modalAction .modal-content {
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;

width: 500px;    
    max-width: 95vw; 
   
    min-height: 300px;   /* Evita que se vea "aplastado" si hay poco texto */
       margin: auto;
    background: #ffffff;
    border-radius: 10px;

}
@media (min-width: 1200px) {
      .p-xl-5 {
    padding: 3rem !important;
  }
    .col-xl-4 {
    flex: 0 0 auto;
    width: 33.33333333%;
  }
}


/* Asegura que el botón se vea en móviles */
.navbar-toggler {
    border: 1px solid rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
}

/* Icono blanco para el botón (ya que no tienes el SVG de Bootstrap) */
.navbar-toggler-icon {
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
    vertical-align: middle;
    /* Crea las 3 líneas usando gradientes */
    background-image: linear-gradient(
        to bottom, 
        white 20%, transparent 20%, 
        transparent 40%, white 40%, 
        white 60%, transparent 60%, 
        transparent 80%, white 80%
    );
}

/* En pantallas grandes (Desktop), el menú debe estar siempre visible */
@media (min-width: 992px) {
    #navCinta {
        display: flex !important;
        flex-basis: auto;
    }
    .navbar-toggler {
        display: none;
    }
}


.modal-body {
    max-height: 70vh; /* El modal ocupará máximo el 70% de la pantalla */
    overflow-y: auto; /* Activa el scroll vertical solo si es necesario */
    padding-right: 10px; /* Espacio para que el scroll no tape el texto */
}

/* Personalización del Scrollbar (Chrome, Safari, Edge) */
.modal-body::-webkit-scrollbar {
    width: 6px; /* Scrollbar delgadito */
}

.modal-body::-webkit-scrollbar-track {
    background: transparent; /* Fondo invisible */
}

.modal-body::-webkit-scrollbar-thumb {
    background: #4361ee; /* El color azul de tu marca */
    border-radius: 10px; /* Bordes redondeados */
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #3046bc; /* Color un poco más oscuro al pasar el mouse */
}




/* estilos de decsrag*/

        :root {
            --primary: #4361ee;
            --primary-glow: rgba(67, 97, 238, 0.3);
            --success: #22c55e;
            --warning: #f59e0b;
            --danger: #ef4444;
            --bg-main: #f8fafc;
            --bg-card: #ffffff;
            --text-main: #1e293b;
            --text-secondary: #64748b;
            --border: #e2e8f0;
            --radius-lg: 20px;
            --radius-md: 15px;
            --radius-sm: 12px;
            --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
            --shadow-md: 0 10px 15px -3px rgba(67, 97, 238, 0.1);
        }

     

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ocupa el 100% de la pantalla */
}

main {
    flex: 1 0 auto; /* Esto empuja al footer hacia abajo */
}
        /* --- UTILIDADES --- */


        /* --- DOC CARDS --- */
        .doc-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 20px;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 15px;
            transition: 0.3s;
            position: relative;
            box-shadow: var(--shadow-sm);
        }
        .doc-card:hover {
            transform: translateY(-3px);
            border-color: var(--primary);
            box-shadow: var(--shadow-md);
        }
        .icon-box {
            width: 55px; height: 55px;
            background: #eff6ff;
            color: var(--primary);
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .icon-box svg { width: 24px; height: 24px; }
        .doc-info { flex-grow: 1; min-width: 0; }
        .doc-name {
            font-weight: 700;
            color: var(--text-main);
            font-size: 1rem;
            display: block;
        }
        .doc-meta { 
            font-size: 0.75rem; 
            color: var(--text-secondary); 
            display: flex; 
            gap: 10px; 
            margin-top: 4px; 
            flex-wrap: wrap;
        }
        .btn-download {
            background: var(--primary);
            width: 45px; height: 45px;
            border-radius: var(--radius-sm);
            box-shadow: 0 4px 12px var(--primary-glow);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            flex-shrink: 0;
            transition: 0.2s;
        }
        .btn-download:hover { transform: scale(1.05); }
        .btn-download:active { transform: scale(0.95); }

        /* --- BADGES --- */
        .status-badge {
            position: absolute;
            top: -8px; left: 25px;
            padding: 4px 12px;
            border-radius: 50px;
            font-size: 0.7rem;
            font-weight: 800;
            text-transform: uppercase;
        }
        .badge-new { background: var(--primary); color: white; }
        .badge-old { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }

        @keyframes pulse {
            0% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.6; transform: scale(0.98); }
            100% { opacity: 1; transform: scale(1); }
        }

        /* --- BOTÓN LIMPIAR --- */
        .btn-limpiar-historial {
            background: rgba(239, 68, 68, 0.05);
            color: var(--danger);
            border: 2px dashed rgba(239, 68, 68, 0.3);
            border-radius: var(--radius-lg);
            padding: 15px;
            font-weight: 700;
            font-size: 0.9rem;
            transition: 0.3s all ease;
            width: 100%;
            margin-top: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }
        .btn-limpiar-historial:hover {
            background: var(--danger);
            color: white;
            border-style: solid;
            border-color: var(--danger);
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(239, 68, 68, 0.2);
        }

        /* --- MODAL CONFIRMAR --- */
        .confirm-overlay {
            position: fixed; inset: 0;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(8px);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            padding: 20px;
        }
        .confirm-overlay.show { display: flex; }
        .confirm-modal {
            background: #1e293b;
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 28px;
            padding: 30px;
            width: 100%;
            max-width: 340px;
            text-align: center;
            color: white;
        }
        .confirm-modal h3 { margin-bottom: 10px; font-size: 1.25rem; }
        .confirm-modal p { color: #94a3b8; font-size: 0.9rem; margin-bottom: 25px; }
        .btn-group { display: flex; gap: 12px; }
        .btn-cancel, .btn-delete {
            flex: 1;
            padding: 12px;
            border-radius: 14px;
            font-weight: 700;
            border: none;
        }
        .btn-cancel {
            background: transparent;
            color: white;
            border: 1px solid rgba(255,255,255,0.2);
        }
        .btn-delete {
            background: var(--danger);
            color: white;
        }

        /* --- TOAST --- */
    /* Contenedor de Toasts */
#toastContainer {
    position: fixed;
    top: 30px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* La tarjeta del Toast */
.gmz-toast {
    background: #ffffff;
    border: 1px solid #edf2f7;
    min-width: 280px;
    max-width: 320px;
    padding: 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1), 0 5px 15px -8px rgba(0, 0, 0, 0.05);
    
    /* Animación */
    transform: translateX(120%);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gmz-toast.show {
    transform: translateX(0);
}

/* Caja del Icono */
.toast-icon-box {
    width: 42px;
    height: 42px;
    background: #eff6ff; /* Azul pastel */
    color: #4361ee;      /* Tu color primary */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Textos */
.toast-content {
    flex-grow: 1;
}

.toast-title {
    margin: 0;
    font-weight: 800;
    font-size: 0.9rem;
    color: #1e293b;
    letter-spacing: -0.3px;
}

.toast-msg {
    margin: 2px 0 0 0;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
}

/* Botón de cerrar */
.btn-close-toast {
    background: #f8fafc;
    border: none;
    color: #94a3b8;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    flex-shrink: 0;
}

.btn-close-toast:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* --- CONFIGURACIÓN MÓVIL (Menos de 992px) --- */
@media (max-width: 991px) {
    .collapse:not(.show-manual) {
        display: none !important; /* Oculto por defecto si no tiene la clase */
    }

    .collapse.show-manual {
        display: block !important; /* Se muestra al dar clic */
        width: 100%;
        background: rgba(255, 255, 255, 0.05); /* Fondo sutil para el menú desplegado */
        border-radius: 10px;
        margin-top: 10px;
    }

    .navbar-nav {
        flex-direction: column; /* Items uno sobre otro */
        padding: 15px 0;
    }
}

/* --- CONFIGURACIÓN ESCRITORIO (992px o más) --- */
@media (min-width: 992px) {
    .navbar-toggler {
        display: none !important; /* Escondemos el botón de 3 rayitas */
    }

    .collapse {
        display: flex !important; /* Forzamos a que siempre se vea en PC */
    }

    .navbar-nav {
        flex-direction: row !important; /* Menú horizontal */
    }
}