/* Index */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f5f5f5;
}
/* Menu de navegacion y barra de busqueda */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background: linear-gradient(180deg, #2E3192 0%, #5B4B9A 35%, #00A9A5 100%);
    padding: 24px 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Logo Sidebar */
.logo-sidebar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px 24px 24px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.5px;
}

/* Navigation */
.sidebar-nav {
    padding: 0 16px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: #00D9C5;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    transform: translateX(4px);
}

.nav-item.active {
    background: rgba(0, 217, 197, 0.2);
    color: #00FFE5;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 217, 197, 0.25);
}

.nav-item.active::before {
    transform: scaleY(1);
}

.nav-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.nav-label {
    flex: 1;
}

/* Nav Section */
.nav-section {
    margin-top: 24px;
}

.nav-section-header {
    padding: 12px 16px 8px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 4px;
}

/* ========== MAIN CONTENT ========== */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
    padding: 0;
}


.title {
    font-size: 32px;
    font-weight: 700;
    color: #2C3E50;
    padding: 35px 40px 20px 40px;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', sans-serif;
    letter-spacing: -0.5px;
    background: #FFFFFF;
    border-bottom: 2px solid #E2E8F0;
}

/* ========== barra de busqueda ========== */
.topbar {
    padding: 25px 40px;
    background: #F8F9FA;
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.topbar input[type="text"] {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    padding: 16px 20px 16px 50px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #FFFFFF;
    color: #2C3E50;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cpath d='m21 21-4.35-4.35'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 18px center;
}

.topbar input[type="text"]:hover {
    border-color: #CBD5E1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.topbar input[type="text"]:focus {
    outline: none;
    border-color: #7ED321;
    background-color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(126, 211, 33, 0.1), 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.topbar input[type="text"]::placeholder {
    color: #94A3B8;
    font-size: 14px;
}

/* ========== TOPBAR ACTIONS ========== */
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.form-inline {
    margin: 0;
    display: inline-block;
}

/* Botón de agregar (+) */
.btn-add {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #7ED321 0%, #39B54A 100%);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(126, 211, 33, 0.3);
}

.btn-add:hover {
    background: linear-gradient(135deg, #39B54A 0%, #2E9138 100%);
    transform: translateY(-2px) rotate(90deg);
    box-shadow: 0 6px 16px rgba(126, 211, 33, 0.4);
}

.btn-add:active {
    transform: translateY(0) rotate(90deg);
}

.btn-add svg {
    width: 20px;
    height: 20px;
}

/* ========== SWITCH CONTAINER ========== */
.switch-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #FFFFFF;
    padding: 8px 16px;
    border-radius: 12px;
    border: 2px solid #E2E8F0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.switch-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748B;
    user-select: none;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #7ED321;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 28px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
    background-color: #DC2626;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* Menu de navegacion y barra de busqueda */


/* Hero section */
.hero {
    background: linear-gradient(135deg, #7B3FF2 0%, #2D9CDB 100%);
    padding: 80px 60px;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 100"><path fill="%237B3FF2" d="M0,0 Q300,100 600,50 T1200,0 L1200,100 L0,100 Z"/></svg>') repeat-x;
    background-size: 1200px 100px;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.hero h1 {
    color: white;
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    color: rgba(255,255,255,0.95);
    font-size: 22px;
    line-height: 1.6;
    font-weight: 400;
}

.hero-image {
    position: absolute;
    right: 60px;
    bottom: 0;
    max-width: 400px;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: auto;
}

/* Sección Nosotros */
#nosotros {
    padding: 80px 60px;
    background: white;
}

#nosotros h2 {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
}

.subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: linear-gradient(135deg, #39B700 0%, #2ec4b6 100%);
    border-radius: 20px;
    padding: 40px 30px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card::before {
    content: "";
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(57,183,0,0.3);
}

.card:hover::before {
    bottom: -30px;
    right: -30px;
    width: 250px;
    height: 250px;
}

.card-icon {
    font-size: 60px;
    margin-bottom: 20px;
    display: inline-block;
}

.card h3 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    z-index: 2;
    position: relative;
}

.card p {
    color: rgba(255,255,255,0.95);
    font-size: 16px;
    line-height: 1.6;
    z-index: 2;
    position: relative;
    opacity: 0;
    max-height: 0;
    transition: all 0.4s ease;
}

.card:hover p {
    opacity: 1;
    max-height: 500px;
}

.card.expanded {
    grid-column: span 2;
    background: linear-gradient(135deg, #39B700 0%, #2D9A00 100%);
}

.card.expanded p {
    opacity: 1;
    max-height: 500px;
}

.card.expanded .card-icon {
    font-size: 80px;
}

/* Index Estadísticas */

.stats-section {
    background: linear-gradient(135deg, #7B3FF2 0%, #2D9CDB 100%);
    padding: 120px 60px 100px;
    position: relative;
    overflow: visible; /* Cambiado de hidden a visible para que no corte el logo */
    min-height: 550px;
    margin-top: 60px; /* Espacio superior para el logo */
}

.stats-logo {
    position: absolute;
    top: -60px; /* Aumentado para que sobresalga más */
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    background: #39B700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 10;
}

.stats-logo img {
    width: 80px;
    height: auto;
}

.stats-title {
    text-align: center;
    color: white;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 80px;
    position: relative;
    z-index: 9;
}

.stats-container {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr 350px; 
    grid-template-rows: repeat(2, 1fr);
    gap: 40px;
    position: relative;
    z-index: 5;
    padding: 0 20px; 
}

.stat-item:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.stat-item:nth-child(2) {
    grid-column: 3;
    grid-row: 1;
    padding-left: 200px; 
}

.stat-item:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
}

.stat-item:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
    padding-left: 200px; 
}

.stat-item {
    position: relative;
}

.stat-item h3 {
    color: white;
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-item p {
    color: rgba(255,255,255,0.95);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
}

.stat-item .subtext {
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    margin-top: 5px;
}

.stat-divider {
    border-bottom: 2px solid rgba(255,255,255,0.3);
    width: 150px;
    margin: 15px 0;
}

.stats-image {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 700px;
    z-index: 2;
    pointer-events: none;
}

.stats-image img {
    width: 100%;
    height: auto;
}
/*Patrones de zig zag en la seccion de estadisticas del SENA*/
.stats-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
    linear-gradient(135deg,
        rgba(255,255,255,0.06) 35%,
        transparent 20%
    ),
    linear-gradient(225deg,
        rgba(255,255,255,0.06) 35%,
        transparent 20%
    );
    background-size: 120px 120px;
    animation: zigzagMove 25s linear infinite;
    z-index: 1;
}
@keyframes zigzagMove {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 800px 400px;
    }
}


/* Responsive */
@media (max-width: 1400px) {
    .stats-container {
        grid-template-columns: 280px 1fr 280px;
    }
    
    .stats-image {
        max-width: 600px;
    }
}

@media (max-width: 1024px) {
    .stats-section {
        padding: 100px 40px 80px;
    }
    
    .stats-container {
        grid-template-columns: 250px 1fr 250px;
    }
    
    .stats-image {
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .stats-section {
        min-height: 900px;
        padding: 80px 30px 100px;
    }
    
    .stats-logo {
        top: 20px;
        width: 100px;
        height: 100px;
    }
    
    .stats-logo img {
        width: 70px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 50px;
    }
    
    .stat-item:nth-child(1),
    .stat-item:nth-child(2),
    .stat-item:nth-child(3),
    .stat-item:nth-child(4) {
        grid-column: 1;
        grid-row: auto;
    }
    
    .stats-image {
        max-width: 400px;
    }
}
/*Index Estadisticas*/

/* Footer en general */
footer {
    background: #1a1a2e;
    color: white;
    text-align: center;
    padding: 30px 60px;
    font-size: 15px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 40px;
    }

    .hero-image {
        position: relative;
        right: 0;
        margin-top: 40px;
        max-width: 300px;
    }

    .card.expanded {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px 20px;
        gap: 15px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    #nosotros {
        padding: 60px 20px;
    }

    #nosotros h2 {
        font-size: 32px;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }

    .stats-section {
        padding: 60px 20px;
    }
}
/*Index*/


/* Formularios*/
/* ========== CONTENEDOR PRINCIPAL ========== */
.title {
    font-size: 32px;
    font-weight: bold;
    padding: 30px 50px 10px 50px;
    color: #1a1a1a;
    position: relative;
}

.title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50px;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #7ED321, #6BC211);
    border-radius: 2px;
}

.container {
    display: grid;
    /* grid-template-columns: 1.1fr; */
    gap: 40px;
    padding: 20px 50px 50px 50px;
    max-width: 100%;
}

/* 
.container-proyectos {
    display: grid;
    gap: 40px;
    padding: 20px 50px 50px 50px;
    max-width: 100%;
}
*/

/* ========== FORMULARIOS ========== */
.formulario {
    background: white;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.formulario:hover {
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
}

.formulario h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #1a1a1a;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

/* ========== CAMPOS DE FORMULARIO ========== */
.mb-4, .mb-6 {
    margin-bottom: 20px;
}

label {
    font-size: 13px;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    color: #333;
    letter-spacing: 0.3px;
}

input, select {
    width: 100%;
    padding: 13px 15px;
    margin-bottom: 0;
    border-radius: 8px;
    border: 2px solid #e5e5e5;
    font-size: 14px;
    background: #ffffff;
    transition: all 0.3s ease;
    font-family: inherit;
}

input:hover, select:hover {
    border-color: #d0d0d0;
}

input:focus, select:focus {
    outline: none;
    border-color: #7ED321;
    background: #fafffe;
    box-shadow: 0 0 0 3px rgba(126, 211, 33, 0.1);
    transform: translateY(-1px);
}

input::placeholder {
    color: #999;
    font-size: 13px;
}

input[readonly] {
    background: #f5f5f5;
    cursor: not-allowed;
    color: #666;
}

/* ========== BOTONES ========== */
.btn {
    width: 100%;
    max-width: 220px;
    background: linear-gradient(135deg, #7ED321 0%, #39B54A 100%);
    padding: 14px 28px;
    border: none;
    color: white;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(126, 211, 33, 0.3);
    letter-spacing: 0.3px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.btn:hover {
    background: linear-gradient(135deg, #39B54A 0%, #2E9138 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(126, 211, 33, 0.4);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(126, 211, 33, 0.3);
}
/* Botón cancelar */
.inline-block {
    display: inline-block;
    margin-left: 15px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.inline-block:hover {
    color: #7ED321;
}

/* ========== BOTONES CIRCULARES ========== */
.btn-circular {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #7ED321 0%, #6BC211 100%);
    border: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50%;
    cursor: pointer;
    margin: 5px 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(126,211,33,0.3);
}

.btn-circular:hover {
    background: linear-gradient(135deg, #6BC211 0%, #5AA110 100%);
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 4px 12px rgba(126,211,33,0.45);
}

.btn-circular:active {
    transform: scale(1.05);
}

/* ========== TABLAS ========== */
.table-wrapper {
    width: 100%;
    max-height: 650px;
    overflow-y: auto;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
}

.table-wrapper::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: #F8F9FA;
    border-radius: 5px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 5px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

th {
    background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
    font-weight: 600;
    color: #333;
    padding: 16px 14px;
    text-align: left;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid #e5e5e5;
}

td {
    padding: 14px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
    font-size: 14px;
    color: #444;
}

tr {
    transition: all 0.2s ease;
}

tr:hover {
    background-color: #f8fff4;
    transform: scale(1.002);
}

tr:last-child td {
    border-bottom: none;
}

/* ========== ACCIONES EN TABLA ========== */
.text-indigo-600 {
    color: #5b5bdd;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 5px;
    display: inline-block;
}

.text-indigo-600:hover {
    color: #4c4cc9;
    background: #f0f0ff;
    transform: translateX(2px);
}

.text-red-600 {
    color: #dc2626;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 5px;
    display: inline-block;
}

.text-red-600:hover {
    color: #b91c1c;
    background: #fff0f0;
    transform: translateX(2px);
}

/* ========== ALERTAS ========== */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px 30px 40px 30px;
    }
    
    .title {
        padding: 20px 30px 10px 30px;
    }
    
    .title::after {
        left: 30px;
    }
}

@media (max-width: 768px) {
    .formulario {
        padding: 25px 20px;
    }
    
    .btn {
        width: 100%;
        max-width: 100%;
    }
    
    .table-wrapper {
        max-height: 500px;
    }
    
    th, td {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .title {
        font-size: 26px;
        padding: 15px 20px 10px 20px;
    }
}



/* Formularios Radio buttons  */
.radio-group {
    display: flex;
    gap: 15px;
    margin-top: 8px;
}

.radio-container {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-container input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #282828;
}

.radio-container span {
    font-size: 15px;
    color: #333;
}

/* Formularios Checkboxes simples y organizados */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
    padding: 15px;
    background: #fafafa;
    border-radius: 6px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #7ED321;
}

/* Formularios Label de los campos */
.mb-4 label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
    font-size: 15px;
}


/* Formulario de proyectos Tablas de las tareas de todas las actividades */
.tabla-tareas-actividad {
    width: 100%;
    border-collapse: collapse;
    background: #fafafa;
    border-radius: 8px;
    overflow: hidden;
}

.tabla-tareas-actividad th {
    background: #f0f0f0;
    font-size: 13px;
    text-align: left;
    padding: 8px;
}

.tabla-tareas-actividad td {
    padding: 6px;
}
.tabla-tareas-actividad input {
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}
/* Formulario de proyectos Tablas de las tareas de todas las actividades */

/* Formularios de instructores,aprendices e investigadores, clases campo proyecto con el select y el boton  */
.campo-proyecto {
    display: flex;
    gap: 10px;
}

.campo-proyecto select{
    width: 70%;
}
.campo-proyecto button {
    width: 30%;
    max-width: 100%;
}
/* Formularios de instructores,aprendices e investigadores, clases campo proyecto con el select y el boton  */

/* Formularios de instructores,aprendices e investigadores, lista de proyectos  */
.lista-proyectos {
    margin-top: 15px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lista-proyectos li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #ffffff;
    border-radius: 8px;
    border-left: 5px solid #7ED321;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    font-size: 14px;
    transition: all 0.25s ease;
}

/* Hover */
.lista-proyectos li:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

/*Boton de la lista*/
.lista-proyectos li button {
    background: #7ED321;
    color: white;
    border: none;
    border-radius: 999px;
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-weight: bold;
    line-height: 1;
}
/* Formularios de instructores,aprendices e investigadores, lista de proyectos  */


/* Ocultar formulario cuando no está en modo edición/creación */
.container-solo-tabla {
    display: block;
    padding: 20px 50px 50px 50px;
}

.container-solo-tabla .formulario {
    max-width: 100%;
}

.formulario.oculto {
    display: none;
}
.btn-oculto {
    display: none;
}
/* Ocultar formulario cuando no está en modo edición/creación */



/* Ventana emergente para agregar fecha de inactivacion */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #1a1a1a;
    font-weight: 600;
}

.modal-content p {
    margin-bottom: 25px;
    color: #666;
    font-size: 15px;
    line-height: 1.5;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.modal-buttons .btn {
    flex: 1;
    margin-top: 0;
    max-width: none;
}

.btn-confirmar {
    background: linear-gradient(135deg, #7ED321 0%, #6BC211 100%);
}

.btn-cancelar {
    background: linear-gradient(135deg, #e0e0e0 0%, #d0d0d0 100%);
    color: #333;
}

.btn-cancelar:hover {
    background: linear-gradient(135deg, #d0d0d0 0%, #c0c0c0 100%);
}
/* Ventana emergente para agregar fecha de inactivacion */



/* DASHBOARD */

.dashboard-section {
    padding: 60px 40px 80px;
    background: #F4F6F9;
}

/* Header */
.db-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.dashboard-title {
    font-size: 30px;
    font-weight: 700;
    color: #1A1D29;
    margin-bottom: 6px;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', sans-serif;
}

.db-header .subtitle { text-align:left; margin-bottom:0; font-size:15px; }

.db-selector-form { flex-shrink:0; }

.db-selector {
    padding: 14px 20px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #fff;
    color: #2C3E50;
    cursor: pointer;
    min-width: 280px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.db-selector:hover { border-color:#39B54A; }
.db-selector:focus { outline:none; border-color:#39B54A; box-shadow:0 0 0 4px rgba(57,181,74,.12); }

/* ── KPI GRID ── */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.kpi-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px 24px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 16px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-top: 3px solid var(--kpi-accent, #39B54A);
    flex-wrap: wrap;
}

.kpi-card:hover { transform:translateY(-4px); box-shadow:0 10px 28px rgba(98, 255, 0, 0.1); }

.kpi-icon-wrap {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items:center; justify-content:center;
    font-size: 26px; flex-shrink:0;
}

.kpi-body { display:flex; flex-direction:column; gap:2px; flex:1; padding-bottom:20px; }

.kpi-label {
    font-size: 12px; font-weight:600; text-transform:uppercase;
    letter-spacing:.8px; color:#94A3B8;
}

.kpi-value {
    font-size: 34px; font-weight:800; color:#1A1D29;
    font-family:'Trebuchet MS','Lucida Sans Unicode',sans-serif;
    line-height:1.1;
}

.kpi-value--sm { font-size:22px; }
.kpi-sub { font-size:12px; color:#94A3B8; }

.kpi-progress {
    width: calc(100% + 48px);
    margin-left: -24px;
    height: 4px;
    background: #F1F3F5;
    flex-basis: 100%;
    overflow:hidden;
}

.kpi-progress div {
    height:100%; background:var(--kpi-accent,#39B54A);
    transition: width 1s ease;
}


/* ── BANNER PROYECTO ── */
.proj-banner {
    background: linear-gradient(135deg, #39B54A 0%, #7ED321 100%);
    border-radius: 16px;
    padding: 28px 36px;
    display: flex; align-items:center;
    justify-content:space-between;
    gap:24px; flex-wrap:wrap;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(57,181,74,.25);
}

.proj-banner-eyebrow {
    font-size:11px; font-weight:700; text-transform:uppercase;
    letter-spacing:1.2px; color:rgba(255,255,255,.75);
    display:block; margin-bottom:6px;
}

.proj-banner-info h3 {
    font-size:22px; font-weight:700; color:#fff;
    margin-bottom:10px;
    font-family:'Trebuchet MS','Lucida Sans Unicode',sans-serif;
}

.proj-banner-meta { display:flex; gap:24px; flex-wrap:wrap; }
.proj-banner-meta span { color:rgba(255,255,255,.9); font-size:14px; font-weight:500; }

.proj-banner-nums { display:flex; gap:28px; flex-wrap:wrap; }

.pbn-item { text-align:center; }
.pbn-item span {
    display:block; font-size:30px; font-weight:800; color:#fff;
    font-family:'Trebuchet MS','Lucida Sans Unicode',sans-serif;
    line-height:1;
}
.pbn-item small { font-size:11px; color:rgba(255,255,255,.75); text-transform:uppercase; letter-spacing:.6px; }

/* ── SV GRID (stats de valor) ── */
.sv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
    gap: 20px;
}

.sv-card {
    background: #fff; border-radius:16px; padding:28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform .25s ease, box-shadow .25s ease;
}

.sv-card:hover { transform:translateY(-4px); box-shadow:0 10px 28px rgba(0,0,0,.10); }

.sv-title {
    font-size:17px; font-weight:700; color:#1A1D29; margin-bottom:4px;
    font-family:'Trebuchet MS','Lucida Sans Unicode',sans-serif;
}

.sv-sub { font-size:13px; color:#94A3B8; margin-bottom:20px; }

.sv-canvas-wrap { position:relative; height:220px; }
.sv-canvas-wrap canvas { max-height:220px; }

.sv-list { display:flex; flex-direction:column; gap:12px; }

.sv-row {
    display:flex; justify-content:space-between; align-items:center;
    padding:12px 16px; background:#F8F9FA; border-radius:10px;
    transition:background .2s;
}

.sv-row:hover { background:#EDF0F3; }
.sv-name { font-size:14px; color:#2C3E50; font-weight:500; }
.sv-val { font-size:16px; font-weight:700; font-family:'Trebuchet MS','Lucida Sans Unicode',sans-serif; }

.sv-empty { text-align:center; padding:40px 20px; color:#94A3B8; }
.sv-empty span { font-size:48px; display:block; margin-bottom:12px; }
.sv-empty p { font-size:14px; }

/* Empty global */
.db-empty { text-align:center; padding:80px 40px; }
.db-empty-icon { font-size:72px; margin-bottom:20px; opacity:.45; }
.db-empty h3 { font-size:22px; font-weight:700; color:#2C3E50; margin-bottom:10px; }
.db-empty p { font-size:15px; color:#64748B; max-width:440px; margin:0 auto; }

/* ── RESPONSIVE ── */
@media (max-width:1100px){
    .sparks-col { flex-direction:row; flex-wrap:wrap; }
    .spark-card { flex:1 1 200px; }
}

@media (max-width:768px){
    .dashboard-section { padding:40px 20px 60px; }
    .db-header { flex-direction:column; }
    .db-selector { min-width:100%; width:100%; }
    .kpi-grid { grid-template-columns:1fr 1fr; }
    .proj-banner { flex-direction:column; }
    .proj-banner-nums { justify-content:space-around; width:100%; }
    .sv-grid { grid-template-columns:1fr; }
}

@media (max-width:480px){
    .kpi-grid { grid-template-columns:1fr; }
}


































