/* =========================================================
   ESTILOS GEN5 - Tablas de actividades y pestañas de secuencia
   Plugin: local_gen5styles
   Paleta oficial (Manual de Imagen GEN5):
     Azul marino:  #1d3458
     Azul:         #356b9d
     Verde/teal:   #77c19a
     Gris:         #8b8b8c
   ========================================================= */

/* ---- Tabla principal de actividad ---- */
.gen5-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(29, 52, 88, 0.12);
    border: 1px solid #e3e7ee;
    margin-bottom: 1.5rem;
}
.gen5-table th {
    background: #1d3458;
    color: #ffffff !important;
    text-align: left;
    vertical-align: top;
    padding: 16px 18px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    width: 25%;
    border-left: 4px solid #77c19a;
    border-bottom: 2px solid rgba(255, 255, 255, 0.22);
}
.gen5-table td {
    background: #ffffff;
    padding: 16px 20px;
    font-size: 14.5px;
    line-height: 1.65;
    color: #3b3f51;
    border-bottom: 1px solid #edf0f5;
}
.gen5-table tr:last-child th,
.gen5-table tr:last-child td {
    border-bottom: none;
}
.gen5-table tr:nth-child(even) td {
    background: #f7f9fb;
}
.gen5-table a {
    color: #356b9d;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed rgba(53, 107, 157, 0.4);
    transition: color 0.2s ease, border-color 0.2s ease;
}
.gen5-table a:hover {
    color: #1d3458;
    border-color: #1d3458;
}
.gen5-table ul {
    margin: 6px 0 0 0;
    padding-left: 20px;
}
.gen5-table ul li {
    margin-bottom: 8px;
}

/* ---- Pestañas "Secuencia recomendada" (JS propio, sin depender de Bootstrap JS) ---- */
.gen5-tabs {
    list-style: none !important;
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 0 0 !important;
    padding: 0 !important;
    border-bottom: 2px solid #eaeef2;
}
.gen5-tabs li,
.gen5-tabs .nav-item {
    list-style: none !important;
}
.gen5-tab-btn {
    display: inline-block;
    color: #6b7280;
    background: #f2f4f7;
    border: 1px solid #e5e9ee;
    border-bottom: none;
    font-weight: 600;
    font-size: 13.5px;
    border-radius: 10px 10px 0 0;
    padding: 10px 18px;
    cursor: pointer;
    margin: 0;
}
.gen5-tab-btn:hover {
    color: #1d3458;
    background: #e7ecf1;
}
.gen5-tab-btn.active {
    color: #ffffff !important;
    background: #1d3458 !important;
    border-color: transparent;
}
.gen5-tabcontent {
    border: 1px solid #dee2e6;
    border-top: none;
    padding: 18px;
    border-radius: 0 0 10px 10px;
    background: #f7f9fb;
}
.gen5-tab-pane {
    display: none;
}
.gen5-tab-pane.show.active {
    display: block;
}

/* ---- Numeración circular de pasos ---- */
.gen5-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #77c19a;
    color: #1d3458;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    margin-right: 8px;
}

/* ---- Video embebido responsivo (16:9) ---- */
.gen5-video-wrap {
    position: relative;
    width: 100%;
    max-width: 640px;
    padding-top: 56.25%;
    margin-top: 12px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(29, 52, 88, 0.18);
    border: 1px solid #e5e9ee;
}
.gen5-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---- Badges/etiquetas auxiliares opcionales ---- */
.gen5-badge {
    display: inline-block;
    background: #eef0fd;
    color: #1d3458;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: 6px;
}
