:root {
    --primary: #6C63FF; /* Morado vibrante moderno */
    --secondary: #FF6584; /* Rosa/Coral llamativo */
    --bg-color: #F3F4F6;
    --card-bg: #FFFFFF;
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --success: #10B981;
    --warning: #f1a50e;
    --danger: #EF4444;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.container {
    max-width: 800px;
    width: 100%;
    margin: 40px 20px;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
}

.container-lg {
    max-width: 1500px;
    width: 100%;
    margin: 40px 20px;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.header h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: 700;
}

.header p {
    margin-top: 10px;
    font-size: 1.1em;
    opacity: 0.9;
}

form {
    padding: 40px;
}

.section-title {
    font-size: 1.5em;
    color: var(--primary);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--bg-color);
    padding-bottom: 10px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
}

input[type="text"], input[type="number"], input[type="date"], select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #D1D5DB;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1em;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

/* Estilos de las tarjetas de cursos usando Radio Buttons ocultos */
.course-card {
    position: relative;
}

.course-card input[type="radio"] {
    display: none;
}

.card-content {
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    box-sizing: border-box;
}

.card-content:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.course-card input[type="radio"]:checked + .card-content {
    border-color: var(--primary);
    background-color: rgba(108, 99, 255, 0.05);
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.2);
}

.course-title {
    font-weight: 700;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.course-desc {
    font-size: 0.9em;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
}

.badge-available { background: #D1FAE5; color: var(--success); }
.badge-semi-available { background: #f5e7cb; color: var(--warning); }
.badge-full { background: #FEE2E2; color: var(--danger); }

/* Tarjeta deshabilitada cuando no hay cupo */
.course-card input[type="radio"]:disabled + .card-content {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #E5E7EB;
    transform: none;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 20px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 101, 132, 0.3);
}

/* Footer Estilizado */
footer {
    margin-top: auto;
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9em;
    width: 100%;
}

.nemixs-brand {
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 0.5px;
}

/* Estilo de la Cabecera */
.header-section {
    background: linear-gradient(135deg, var(--azul-jucrismep) 0%, #0056b3 100%);
    padding: 40px 0;
    color: white;
    margin-bottom: -50px; /* Traslape con la tarjeta principal */
}

.header-section h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

/* Contenedor Principal (Tarjeta) */
.inscripciones-card {
    background: white;
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 50px;
}

.card-header-custom {
    background: #fff;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Tabla Estilizada */
.table-custom {
    margin-bottom: 0;
}

.table-custom thead {
    background-color: #f8fafc;
}

.table-custom thead th {
    color: var(--azul-jucrismep);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 15px 25px;
    border: none;
}

.table-custom tbody td {
    padding: 18px 25px;
    vertical-align: middle;
    border: 1px solid #f1f1f1;
}

/* Avatar o Iniciales del Inscrito */
.avatar-circle {
    width: 40px;
    height: 40px;
    background-color: var(--azul-jucrismep);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 12px;
}

/* Estados (Badges) */
.status-badge {
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
}
.status-pagado { background: #dcfce7; color: #166534; }
.status-pendiente { background: #fef9c3; color: #854d0e; }

/* Botones */
.btn-action {
    border-radius: 8px;
    transition: all 0.3s ease;
}
.btn-action:hover {
    transform: translateY(-2px);
}

/* Buscador */
.search-box {
    position: relative;
    max-width: 300px;
}
.search-box input {
    padding-left: 35px;
    border-radius: 20px;
    border: 1px solid #ddd;
}
.search-box i {
    position: absolute;
    left: 12px;
    top: 10px;
    color: #999;
}

table.tabla-admin {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table.tabla-admin th,
table.tabla-admin td {
    border: 1px solid #ccc;
    padding: 6px;
    text-align: center;
}

table.tabla-admin th {
    background: #f5f5f5;
    font-weight: bold;
}
