.panel {
    display: flex;
    min-height: 100vh;
}

.barra_lateral {
    width: 220px;
    background-color: #111827;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
}

.barra_lateral .logo {
    padding: 24px 20px;
    border-bottom: 1px solid #1f2937;
}

.barra_lateral .logo a {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.navegacion {
    flex: 1;
    padding: 12px 0;
    overflow-y: auto;
}

.navegacion a {
    display: block;
    padding: 10px 20px;
    color: #9ca3af;
    font-size: 13px;
}

.navegacion a:hover {
    color: #fff;
    background-color: #1f2937;
}

.cambio_modo {
    padding: 16px 20px;
    border-top: 1px solid #1f2937;
}

.cambio_modo a {
    color: #9ca3af;
    font-size: 12px;
}

.cambio_modo a:hover {
    color: #fff;
}

.principal {
    margin-left: 220px;
    flex: 1;
    padding: 32px;
    background-color: #f9fafb;
    min-height: 100vh;
}

.encabezado_pagina {
    margin-bottom: 28px;
}

.encabezado_pagina h1 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

.encabezado_pagina p {
    color: #6b7280;
    font-size: 13px;
}

.seccion {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
}

.seccion h2 {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 20px;
}

.instruccion_texto {
    color: #374151;
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.instruccion_subtitulo {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin: 24px 0 10px;
}

.instruccion_etiqueta {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin: 16px 0 8px;
}

.codigo_linea {
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 2px 6px;
    font-family: monospace;
    font-size: 12px;
    color: #111827;
}

.bloque_codigo {
    background-color: #111827;
    color: #d1fae5;
    border-radius: 8px;
    padding: 20px 24px;
    font-family: monospace;
    font-size: 12px;
    line-height: 1.8;
    overflow-x: auto;
    margin-bottom: 16px;
    white-space: pre;
}

.instruccion_motivacion {
    text-align: center;
    background-color: #111827;
    border-color: #111827;
}

.instruccion_motivacion p {
    color: #d1fae5;
    font-size: 14px;
    line-height: 1.8;
}

.foto_perfil {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.columnas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.tablero {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.tarjeta {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px;
    display: block;
}

.tarjeta h3 {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.tarjeta p {
    color: #6b7280;
    font-size: 12px;
}

.tarjeta:hover {
    border-color: #9ca3af;
}

.lista {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.item .informacion {
    flex: 1;
}

.item h4 {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.item p {
    color: #6b7280;
    font-size: 12px;
    margin-bottom: 2px;
}

.boton_eliminar {
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #fee2e2;
    color: #dc2626;
    cursor: pointer;
    font-size: 12px;
    flex-shrink: 0;
}

.boton_eliminar:hover {
    background-color: #fecaca;
}

.vacio {
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
    padding: 32px 0;
}

.insignia {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    background-color: #e5e7eb;
    color: #374151;
}

.insignia_activa {
    background-color: #d1fae5;
    color: #065f46;
}

.insignia_pendiente {
    background-color: #fef3c7;
    color: #92400e;
}

.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.plantilla {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.plantilla .vista_previa {
    height: 160px;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.plantilla .detalle {
    padding: 16px;
}

.plantilla h3 {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
}

.plantilla p {
    color: #6b7280;
    font-size: 12px;
    margin-bottom: 16px;
}

.plantilla .detalle form {
    display: block;
    gap: 0;
}

.tabla_contenedor {
    overflow-x: auto;
}

.tabla {
    width: 100%;
    border-collapse: collapse;
}

.tabla th,
.tabla td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
}

.tabla th {
    font-weight: 600;
    color: #374151;
    background-color: #f9fafb;
}

.tabla td {
    color: #6b7280;
}

.tabla tbody tr:last-child td {
    border-bottom: none;
}

.acciones {
    display: flex;
    align-items: center;
    gap: 8px;
}

.acciones form {
    display: block;
}

.visor_controles {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background-color: #fff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 12px;
    z-index: 100;
}

.visor {
    padding: 80px 24px 40px;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.visor iframe {
    width: 210mm;
    height: 297mm;
    border: none;
    display: block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

@media print {
    .visor_controles {
        display: none;
    }

    .visor {
        padding: 0;
        background: none;
        min-height: auto;
    }
}

.inicio {
    min-height: 100vh;
}

.inicio .cabecera {
    background-color: #111827;
    padding: 16px 0;
}

.inicio .cabecera .contenedor {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inicio .cabecera .logo {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.inicio .cabecera nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.inicio .cabecera nav a {
    color: #9ca3af;
    font-size: 13px;
}

.inicio .cabecera nav a:hover {
    color: #fff;
}

.inicio .cabecera nav .boton {
    color: #fff;
}

.inicio .hero {
    background-color: #111827;
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.inicio .hero h1 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.inicio .hero p {
    font-size: 15px;
    color: #9ca3af;
    margin-bottom: 36px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.inicio .hero .acciones {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.autenticacion {
    min-height: 100vh;
    background-color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.autenticacion .tarjeta {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

.autenticacion .tarjeta > a {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    display: block;
    margin-bottom: 20px;
}

.autenticacion .tarjeta h1 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

.autenticacion .tarjeta .subtitulo {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 28px;
}

.autenticacion .tarjeta .pie {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #6b7280;
}

.autenticacion .tarjeta .pie a {
    color: #3b82f6;
}
