/* ================================================
   CV Control – Estilos complementarios a Bootstrap 5
   Azul marino base + blanco
   ================================================ */

:root {
    --navy:          #1e3a5f;
    --navy-dark:     #163050;
    --navy-light:    #2d5a8e;
    --btn-edit:      #0d6efd;
    --btn-add:       #198754;
    --btn-delete:    #dc3545;
}

/* ---- Navbar azul marino ---- */
.bg-navy {
    background-color: var(--navy) !important;
}

.text-navy {
    color: var(--navy) !important;
}

.btn-navy {
    background-color: var(--navy);
    color: #fff;
    border: none;
}

.btn-navy:hover {
    background-color: var(--navy-dark);
    color: #fff;
}

/* ---- Cuerpo general ---- */
body {
    background-color: #f0f2f5;
    font-size: 0.925rem;
}

.app-wrapper {
    min-height: calc(100vh - 56px);
}

/* ---- Cards ---- */
.card {
    border-radius: 0.5rem;
}

.card-header {
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

/* ---- Tablas ---- */
.table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.table td {
    vertical-align: middle;
    font-size: 0.875rem;
}

/* ---- Tarjetas dashboard ---- */
.quick-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border-radius: 0.75rem;
}

.quick-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12) !important;
}

/* ---- Badges de acciones ---- */
.badge-estado-activo {
    background-color: #198754;
}

.badge-estado-inactivo {
    background-color: #6c757d;
}

/* ---- Botones de acción en tablas ---- */
.btn-accion {
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 0.3rem;
}

/* ---- Formularios ---- */
.form-label {
    margin-bottom: 0.25rem;
}

.form-control,
.form-select {
    font-size: 0.9rem;
    border-radius: 0.4rem;
}

/* ---- Listas de experiencia ---- */
.exp-card {
    border-left: 4px solid var(--navy);
    transition: box-shadow 0.15s ease;
}

.exp-card:hover {
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
}

.exp-actividad {
    background-color: #f8f9fa;
    border-left: 3px solid #0d6efd;
    border-radius: 0.3rem;
}

.exp-logo {
    max-height: 50px;
    max-width: 140px;
    object-fit: contain;
    display: block;
}

/* ---- Herramientas ---- */
.herr-icono {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    object-fit: contain;
    border-radius: 0.5rem;
    background: #f8f9fa;
    padding: 4px;
    border: 1px solid #e9ecef;
}

.herr-icono-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 1.5rem;
}

/* ---- Multimedia: grupos + cinta horizontal ---- */
.mm-grupo {
    border-radius: 0.5rem;
    overflow: hidden;
}

.mm-strip {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem 0.25rem 0.75rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.mm-strip::-webkit-scrollbar {
    height: 8px;
}

.mm-strip::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 4px;
}

.mm-strip::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 4px;
}

.mm-strip::-webkit-scrollbar-thumb:hover {
    background: #868e96;
}

.mm-item {
    flex: 0 0 auto;
    width: 180px;
    text-align: center;
}

.mm-thumb {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 0.4rem;
    border: 2px solid #dee2e6;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
    display: block;
}

.mm-thumb:hover {
    transform: scale(1.03);
    border-color: var(--navy, #1e3a5f);
}

.mm-video-ph {
    background-color: var(--navy, #1e3a5f);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.mm-item-actions {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.mm-item-desc {
    font-size: 0.7rem;
    color: #868e96;
    margin-top: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-xs {
    padding: 0.1rem 0.4rem;
    font-size: 0.75rem;
    line-height: 1.4;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .app-wrapper {
        padding-top: 4rem;
    }

    .table-responsive {
        font-size: 0.85rem;
    }
}
